
            /* for line spce  */
            
/* ✅ Fix line spacing inside all content boxes */
/* Ensure good line spacing inside all boxes */
.quote-box,
.random-quote-box,
/* Fix line height inside random generated boxes */
.quote-box,
.quote-box h2,
.quote-box h3,
.quote-box p {
  line-height: 1.6;
}
.wish-box {
  line-height: 1.6;   /* better readability */
  word-wrap: break-word; /* break long words if needed */
}


/* ✅ Mobile fix */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.9;
  }
}

            /* Header container */
            header {
            background: #ffffff;
            padding: 20px;
            text-align: center;
            border-bottom: 3px solid #1bc2f0;
            }

            /* Title with shine effect */
            .site-title {
            font-family: 'Poppins', sans-serif;
            font-size: 42px;
            font-weight: 900;
            color: rgb(0, 0, 0);
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            display: inline-block;
            overflow: hidden;
            }

            /* Shine animation */
            .site-title::before {
            content: "";
            position: absolute;
            top: 0;
            left: -75%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
                120deg,
                rgba(255,255,255,0.2) 0%,
                rgba(54, 215, 248, 0.6) 50%,
                rgba(255,255,255,0.2) 100%
            );
            transform: skewX(-25deg);
            }

            .site-title:hover::before {
            left: 125%;
            transition: left 1s ease-in-out;
            }

            /* Navigation bar */
            nav {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 5–6 per row depending on screen */
            gap: 12px;
            padding: 20px;
            background: #fff;
            }

            nav a {
            display: block;
            text-align: center;
            padding: 12px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            color: #000000;
            text-decoration: none;
            transition: transform 0.3s, box-shadow 0.3s;
            }


            /* Hover effect for nav links */
            nav a:hover {
            background: #00ccff;  /* Golden highlight */
            color: #111;
            border-color: #ffd700;
            transform: translateY(-2px);
            }
            /* showing opened category */
            nav a.active {
            background: #00d9ff;   /* gold highlight */
            color: #111;
            border-color: #ffd700;
            font-weight: 600;
            }

            
            /* ✨ colourline under title */
            .site-title::after {
            content: "";
            display: block;
            width: 60px;            /* length of line */
            height: 3px;            /* thickness */
            background: #0df115;    /* gold color */
            margin: 8px auto 0;     /* centered under text */
            border-radius: 2px;
            }

        /* Hamburger menu styling */
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding: 10px 20px;
        }

        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .hamburger {
            display: none;
            font-size: 28px;
            cursor: pointer;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                gap: 10px;
                margin-top: 10px;
            }

            .nav-links.active {
                display: flex;
            }

            .hamburger {
                display: block;
            }

            nav a {
                width: 100%; /* Full width links on mobile */
                text-align: left;
                padding: 12px 15px;
            }
        }
            

    /* body stylish */
    body {
    font-family: 'Merriweather', serif;
    text-align: center;
    background: #e2e2e2;
    color: #333;
    margin: 0;
    padding: 0;
    }

    /* quote box stylish */
    .quote-box {
    background: #f9f9f9;
    border-left: 6px solid #00c8ff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    max-width: 10000px;   /* 🔥 sets smaller width */
    width: 90%;         /* keeps it responsive */
    text-align: center; /* centers text */
    font-size: 11px;
    line-height: 0.5;
    }


    /* footer stylish */
    footer {
    background: #0ca1ce;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    }

    footer a {
      color: #000000;
      text-decoration: none;
    }
    footer p {
    margin: 5px 0;
    }
    footer p:first-child {
    font-weight: bold;
    }

    /* this is buttons stylish */
    .quote-buttons {
    text-align: center;
    margin: 20px;
    }
    .quote-buttons button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    }
    .quote-buttons button:hover {
    background: #357ab7;
    }

    /* copy button stylish */
    .copy-btn {
    margin-top: 10px;
    padding: 6px 14px;
    background: #02a4ea;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    color: #111;
    transition: all 0.3s ease;
    }

    .copy-btn:hover {
    background: #ffcc00;
    transform: scale(1.05);
    }

        /* catagory small or big */
        .categories {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
        margin: 30px auto;
        max-width: 1100px;
        padding: 10px;
        }

        .category-card {
        position: relative;
        color: white;
        padding: 30px 15px;
        border-radius: 16px;
        cursor: pointer;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        transition: transform 0.3s, box-shadow 0.3s;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        overflow: hidden;
        }

        /* Hover effect */
        .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }

        /* Background colors per category */
        .motivation { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
        .love { background: linear-gradient(135deg, #ff4e50, #f9d423); }
        .life { background: linear-gradient(135deg, #43cea2, #185a9d); }
        .friendship { background: linear-gradient(135deg, #ff6a00, #ee0979); }
        .success { background: linear-gradient(135deg, #56ab2f, #a8e063); }
        .happiness { background: linear-gradient(135deg, #f7971e, #ffd200); }
        .attitude { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
        .sad { background: linear-gradient(135deg, #614385, #516395); }
        .positive { background: linear-gradient(135deg, #11998e, #38ef7d); }
        .wisdom { background: linear-gradient(135deg, #373b44, #4286f4); }
        .family { background: linear-gradient(135deg, #f7971e, #ffd200); }
        .morning { background: linear-gradient(135deg, #ff512f, #f09819); }
        .night { background: linear-gradient(135deg, #141e30, #243b55); }
        .funny { background: linear-gradient(135deg, #56ccf2, #2f80ed); }
        .inspiration { background: linear-gradient(135deg, #8360c3, #2ebf91); }
        .hardwork { background: linear-gradient(135deg, #f12711, #f5af19); }
        .selflove { background: linear-gradient(135deg, #ff6a88, #ff99ac); }
        .time { background: linear-gradient(135deg, #00c6ff, #0072ff); }
        .failure { background: linear-gradient(135deg, #8e0e00, #1f1c18); }
        .spiritual { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
        
        .mother { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
        .father { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
        .sister { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
        .brother { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
        .friends { background: linear-gradient(135deg, #fddb92, #d1fdff); }
        .birthday { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
        .anniversary { background: linear-gradient(135deg, #ffdde1, #ee9ca7); }
        .wedding { background: linear-gradient(135deg, #ffafbd, #ffc3a0); }
        .engagement { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
        .festival { background: linear-gradient(135deg, #f6d365, #fda085); }
        .teacher { background: linear-gradient(135deg, #fddb92, #d1fdff); }
        .children { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .goodmorning { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
        .goodnight { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
        .congratulations { background: linear-gradient(135deg, #43e97b, #38f9d7); }
        .farewell { background: linear-gradient(135deg, #ff758c, #ff7eb3); }
        .exam { background: linear-gradient(135deg, #30cfd0, #330867); }
        .newyear { background: linear-gradient(135deg, #00c6ff, #0072ff); } 
        .valentine { background: linear-gradient(135deg, #ffdde1, #ee9ca7); }
        .getwell { background: linear-gradient(135deg, #84fab0, #8fd3f4); }


    /* search stylish */
    .home-content {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    }

    #searchInput {
    padding: 10px;
    width: 60%;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin: 10px 0;
    font-size: 16px;
    }
    button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    }
    button:hover {
    background: #357ab7;
    }

    #search-results {
    margin-top: 20px;
    }
    #search-results .quote-box {
    margin-top: 15px;
    }

    /* searcard stylish */
    .search-card {
    position: relative;
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* purple-blue gradient */
    color: rgb(0, 0, 0);
    padding: 40px 20px;
    border-radius: 16px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    }

    .search-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    /* Shine effect like category cards */
    .search-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    }

    .search-card:hover::before {
    left: 125%;
    transition: left 0.8s ease-in-out;
    }

    /* Input & button inside search card */
    .search-card input {
    padding: 12px;
    width: 60%;
    border-radius: 8px;
    border: none;
    margin: 10px 0;
    font-size: 16px;
    outline: none;
    }

    .search-card button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #2575fc;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
    }

    .search-card button:hover {
    background: #f0f0f0;
    }
    /*  search separate catagory */
    .search-container {
    top: 60px;          /* adjust depending on your navbar height */
    background: rgb(224, 224, 224);  /* so it doesn’t overlap with text */
    padding: 15px 0;
    text-align: center;
    z-index: 10;        /* stays above quotes */
    border-bottom: 2px solid rgb(224, 224, 224); /* subtle line */
    }

    #search-box {
    width: 60%;
    max-width: 400px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
    }

    #search-box:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    outline: none;
    }

    /* qr pay stylish */
    /* Popup Overlay */
    .popup {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    }

    /* Popup Box */
    .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    }

    /* Close Button */
    #close-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    }


    /* ======================= */
    /* Privacy & Contact Pages */
    /* ======================= */

    /* Card container */
    .privacy-contact-card {
        background: #ffffff;
        padding: 30px 25px;
        border-radius: 16px;
        max-width: 800px;
        margin: 40px auto;
        text-align: center; /* center all text inside */
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .privacy-contact-card:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    }

    /* Headings inside card */
    .privacy-contact-card h2 {
        color: #2575fc;
        font-size: 30px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .privacy-contact-card h3 {
        color: #4a90e2;
        font-size: 20px;
        margin: 15px 0;
        font-weight: 600;
    }

    /* Paragraphs and lists */
    .privacy-contact-card p, 
    .privacy-contact-card ul {
        font-size: 16px;
        line-height: 1.7;
        color: #333;
        margin-bottom: 15px;
    }

    .privacy-contact-card ul li {
        margin-bottom: 8px;
    }

    /* ======================= */
    /* Contact Form Styling */
    /* ======================= */

    /* Input & Textarea boxes */
    .contact-form input,
    .contact-form textarea {
        max-width: 500px;        /* limit width */
        width: 90%;              /* responsive width */
        display: block;
        margin: 12px auto;       /* center horizontally */
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #ccc;
        outline: none;
        transition: all 0.3s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #2575fc;
        box-shadow: 0 0 8px rgba(37,117,252,0.3);
    }

    .contact-form textarea {
        height: 100px;
        resize: vertical;        /* allow vertical resizing */
    }

    /* Submit button */
    .contact-form button {
        display: block;
        margin: 20px auto 0;
        padding: 12px 28px;
        background: #2575fc;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .contact-form button:hover {
        background: #4a90e2;
        transform: scale(1.05);
    }

    /* ======================= */
    /* Intro Text Above Form */
    /* ======================= */
    .contact-intro {
        text-align: center;
        font-size: 16px;
        margin-bottom: 20px;
        color: #333;
    }


/* ======================= */
/* Responsive Fixes */
/* ======================= */

/* Adjust header and title for smaller screens */
@media (max-width: 1024px) {
    .site-title {
        font-size: 36px;
    }

    nav {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        padding: 15px;
    }

    nav a {
        font-size: 13px;
        padding: 10px;
    }

    .quote-box {
        font-size: 12px;
        line-height: 1.2;
        padding: 15px;
    }

    .categories {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .category-card {
        font-size: 16px;
        padding: 20px 10px;
    }

    #searchInput,
    .search-card input,
    #search-box {
        width: 80%;
    }

    .search-card {
        padding: 30px 15px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .site-title {
        font-size: 32px;
    }

    nav {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        padding: 10px;
    }

    nav a {
        font-size: 12px;
        padding: 8px;
    }

    .quote-box {
        font-size: 11px;
        line-height: 1;
        padding: 12px;
    }

    .category-card {
        font-size: 14px;
        padding: 15px 10px;
    }

    #searchInput,
    .search-card input,
    #search-box {
        width: 90%;
        font-size: 14px;
    }

    .search-card {
        padding: 20px 10px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 95%;
    }

    .privacy-contact-card {
        padding: 20px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .site-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    nav a {
        padding: 8px;
        font-size: 12px;
    }

    .quote-box {
        font-size: 10px;
        line-height: 1;
        padding: 10px;
    }

    .category-card {
        font-size: 13px;
        padding: 12px 8px;
    }

    .search-card {
        padding: 15px 8px;
    }

    button,
    .quote-buttons button,
    .copy-btn,
    .contact-form button {
        padding: 8px 15px;
        font-size: 14px;
    }
}
/* Make random quote boxes on homepage smaller in mobile view */
@media (max-width: 768px) {
  #random-quotes .quote-box {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  #random-quotes .quote-box {
    font-size: 7px;
  }
}

        /* ======================
        About Us Page Styling
        ====================== */
        .about-section {
        max-width: 900px;
        margin: 50px auto;
        padding: 30px;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        text-align: center;
        }

        .about-section h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        color: #333;
        margin-bottom: 20px;
        }

        .about-section p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 15px;
        }

        .about-highlight {
        font-weight: 600;
        color: #0077cc; /* highlight color */
        }

        @media (max-width: 768px) {
        .about-section {
            margin: 20px;
            padding: 20px;
        }
        .about-section h1 {
            font-size: 1.5rem;
        }
        .about-section p {
            font-size: 1rem;
        }
        }
