

        *{
            box-sizing:border-box;
            padding:0;
            margin:0;
        }
        .project-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .project-list {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: flex-start;
            margin-top: 30px;
        }
        .container h2{
            margin-bottom:18px;
        }
        .project-item-card {
            position: relative;
            width: 210px;
            height: calc(210px * 1.414); /* A4 ratio height */
            border: 1px solid #ccc;
            border-radius: 10px;
            overflow: hidden;
            background-color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .project-item-card:hover {
            transform: scale(1.02);
        }

       .template-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
            opacity: 1;
        }

        .project-title {
            padding: 10px;
            text-align: center;
            font-weight: bold;
            font-size: 14px;
            z-index: 2;
        }

        .project-title a {
            text-decoration: none;
            color: #333;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            color: #fff;
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 10px;
            z-index: 2; 
        }


        .project-item-card:hover .overlay {
            opacity: 1; 
        }

        .overlay-top {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .overlay-top i {
            cursor: pointer;
            font-size: 18px;
        }

        .overlay-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .btn-overlay {
            background-color:rgba(255, 255, 255, 0.849);
            padding: 10px 17px;
            font-weight:600;
            border-radius: 50px;
            color: rgb(0, 59, 107);
            text-decoration: none;
            font-size: 16px;
            transition: background-color 0.3s ease;
            margin-bottom:20px;
        }

        .btn-overlay:hover {
            background-color:rgb(203, 231, 255);
        }


        .project-item {
            background: #f9f9f9;
            padding: 15px 20px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 8px;
            border: 1px solid #ddd;
        }
        .project-item a {
            color: #333;
            text-decoration: none;
            font-weight: 600;
        }
        .project-actions i {
            margin-left: 12px;
            cursor: pointer;
            color: #666;
            transition: color 0.3s ease;
        }
        .project-actions i:hover {
            color: #000;
        }
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            justify-content: center;
            align-items: center;
            z-index: 999;
        }
        .modal-content {
            background: #fff;
            padding: 25px;
            border-radius: 10px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        .modal input {
            width: 100%;
            padding: 10px;
            margin-top: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .modal button {
            margin-top: 15px;
            margin-right: 10px;
            padding: 10px 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

            /* Footer */
    footer {
      background-color: var(--footer-bg);
      color: var(--footer-text);
      text-align: center;
      padding: 30px 20px;
      font-size: 0.9rem;
      user-select: none;
    }

    footer a {
      color: var(--footer-text);
      text-decoration: underline;
      margin: 0 5px;
      font-weight: 500;
    }

    footer a:hover {
      color: white;
    }
        .logo {
            font-size: 24px;
            font-weight: bold;
            display:flex; align-items:center; justify-content:center;
        }
        .logo img{
            height:30px; background:rgb(255, 255, 255);
            border-radius:50px;
        }
        #navMenu{
          padding:10px 0;
        }
        nav a {
            margin: 0 8px;
            color: #ffffff;
            text-decoration: none;
        }
        nav a:hover {
            color: #fff;
        }
        .container {
            padding: 40px 20px;
            max-width: 950px;
            margin: 0 auto;
        }
        button {
            padding: 10px 16px;
            background-color: #0066cc;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        button:hover {
            background-color: #004999;
        }

        @media (max-width: 500px) {
               .overlay {
                    padding: 20px; 
                }
                  .btn-overlay {
            font-size: 22px;

        }
            .project-list {
                justify-content: center;
            }

            .project-item-card {
                width: 90vw;
                height: calc(90vw * 1.414);
            }

            main.container h2,
            main.container button {
                display: block;
                text-align: center;
                margin: 0 auto 10px;
            }
        }

        /*****************************************/

      #toast {
        position: fixed;
        bottom: 30px;
        right: 30px;
        min-width: 250px;
        padding: 15px 20px;
        background-color: #333;
        color: #fff;
        border-radius: 8px;
        opacity: 0;
        z-index: 9999;
        transition: opacity 0.5s ease;
        font-family: sans-serif;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }

      #toast.show {
        opacity: 1;
      }

      #toast.success {
        background-color: #4CAF50;
      }

      #toast.error {
        background-color: #f44336;
      }
      .input-body{
        border:1px solid #888; border-radius:10px; padding:17px 10px; 
        background:white;
      }
      .list-group{
        padding:6px 0;
      }
      .double-input{display:flex; flex-direction:row; height:auto; margin:20px 0;}
      .double-input-left{width:70%; display:flex; flex-direction:column;}
      .double-input-right{width:30%; display:flex; flex-direction:column;}