/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f6f8fb;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
header {
    background: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #7a0c12;
    line-height: 1.2;
}

/* ===== NAV LINKS ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover {
    color: #7a0c12;
    background: #f8f8f8;
    border-radius: 6px;
}

/* ===== DONATE BUTTON ===== */
.btn-primary {
    background: #7a0c12;
    color: #fff !important;
    padding: 8px 6px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5e080d;
}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7a0c12;
    background: none;
    border: none;
    padding: 5px 10px;
    order: 3;              /* Toggle button last me */
}
/* ===== NAV ===== */
nav {
    order: 2;              /* Nav middle me */
}



/* ===== SUBMENU ===== */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    list-style: none;
    padding: 4px 0;              /* 8px se 4px kiya */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;                      /* Added - No gap between items */
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;                   /* No margin */
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 8px 16px;           /* 10px se 8px kiya - kam padding */
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover {
    background: #f6f6f6;
    color: #7a0c12;
}

/* ===== HERO ===== */
.hero-section {
   /* background: url('https://plus.unsplash.com/premium_photo-1661638457252-fa8944066a8f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTN8fGVtcG93ZXJpbmclMjBiZXR0ZXIlMjBmb3IlMjBlZHVjYXRpb24lMjBhbmQlMjBpbmZvcm1hdGlvbiUyMHRlY2hub2xvZ3l8ZW58MHx8MHx8fDA%3D') no-repeat center/cover;*/
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 80px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section .btn-primary {
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Slider wrapper */
.hero-slider {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%; /* 4 slides */
    height: 100%;
    display: flex;
    animation: slideHero 20s infinite ease-in-out; 
}

/* Each slide */
.hero-slide {
    width: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* Dark overlay */
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 120px;
    padding: 0 20px;
    color: #fff;
}

/* PAUSE + SLIDE Animation */
@keyframes slideHero {
    0%   { transform: translateX(0%); }
    20%  { transform: translateX(0%); }

    25%  { transform: translateX(-100%); }
    45%  { transform: translateX(-100%); }

    50%  { transform: translateX(-200%); }
    70%  { transform: translateX(-200%); }

    75%  { transform: translateX(-300%); }
    95%  { transform: translateX(-300%); }

    100% { transform: translateX(0%); }
}


/* ===== SECTIONS ===== */
section {
    padding: 60px 0;
    position: relative;
}

/* ===== SECTION HEADINGS ===== */
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e90ff;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #ff6600;
    display: block;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.about-flex img {
    flex: 1;
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-flex div {
    flex: 1;
    min-width: 300px;
}

.about-flex p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/*===== stats plus (+) sign===*/
.count-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.count-wrap .plus {
    font-size: 32px;
    font-weight: 700;
    margin-left: 4px;
    color: #e8f802; /* Change color as you want */
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.card h3 {
    font-size: 1.3rem;
    margin: 15px 20px 10px;
    color: #333;
}

.card p,
.card ul {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #1e90ff, #4169e1);
    padding: 50px 0;
    border-radius: 12px;
    margin: 40px auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BRANCHES SECTION ===== */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.branch-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.branch-item h3 {
    font-size: 1.3rem;
    color: #1e90ff;
    margin-bottom: 10px;
}

.branch-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== ALUMNI SECTION ===== */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.alumni-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.alumni-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.alumni-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.alumni-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alumni-card blockquote {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #333;
}

.contactForm {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contactForm h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
}

.contactForm input,
.contactForm textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.contactForm input:focus,
.contactForm textarea:focus {
    outline: none;
    border-color: #7a0c12;
}

.contactForm button {
    width: 100%;
}

/* ===== DONATE SECTION ===== */
.donate-section {
    background: linear-gradient(135deg, #f8fbff, #eef3ff);
    padding: 70px 0;
}

.donate-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.donate-content h2 {
    font-size: 2.3rem;
    color: #1e90ff;
    margin-bottom: 15px;
    text-align: left;
}

.donate-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.donate-points {
    list-style: none;
    padding: 0;
}

.donate-points li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
    padding-left: 25px;
    position: relative;
}

.donate-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

.donate-card {
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.donate-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #7a0c12;
    font-size: 1.5rem;
}

.donate-form {
    display: grid;
    gap: 15px;
}

.donate-form input {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.donate-form input:focus {
    outline: none;
    border-color: #1e90ff;
}

.donate-form button {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 14px;
}

.donate-note {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.donate-qr {
    text-align: center;
    margin-top: 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donate-qr h4 {
      margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1e90ff;
    text-align: center;

}

.donate-qr canvas {
    display: block;
    margin: 0 auto 15px auto;  /* Center me laane ke liye */
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    max-width: 200px;
    height: auto;
}

.donate-qr #scanNotice {
    text-align: center;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555;
}

.donate-qr #verifyPayment {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 1rem;
}

.donate-qr img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 12px;
}

/* ===== GALLERY SLIDER ===== */
.gallery-slider {
    overflow: hidden;
    margin-top: 30px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: scrollGallery 30s linear infinite;
}

.gallery-track img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== FORMS ===== */
form.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto;
}

form input,
form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

form textarea {
    grid-column: 1/-1;
    height: 120px;
    resize: vertical;
}

form button {
    grid-column: 1/-1;
    background: linear-gradient(45deg, #ff6600, #ff9933);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background: linear-gradient(45deg, #e65c00, #ff8000);
}

#result.success {
    color: green;
    text-align: center;
    margin-top: 10px;
}

#result.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal h2 {
    color: #ff4757;
    margin-bottom: 15px;
}

.modal p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.modal .btn-primary {
    padding: 12px 20px;
    font-size: 16px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ff4757;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    background: #1e90ff;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   ================================================== */

/* ===== TABLET (iPad & similar) - 768px to 1024px ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-flex {
        padding: 15px 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donate-wrapper {
        gap: 30px;
    }
}

/* ===== MOBILE & SMALL TABLET - max 768px ===== */
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

     /* HEADER */
     .header-flex {
        padding: 10px 15px;
        position: relative;
    }
    
     
    .logo {
        order: 1;
        flex: 1;
    }
   .logo img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    .nav-toggle {
        display: block !important;
        order: 3;
        z-index: 2001;
        position: relative;
    }
    nav {
        order: 2;
        position: static;
    }
    
    nav ul {
        display: none !important;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 70px;
        right: 15px;
        left: auto;
        width: 250px;
        padding: 10px 0;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        gap: 0;
        z-index: 2000;
    }
    
    nav ul.show {
        display: flex !important;
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
    }
    
    nav ul li a {
        padding: 12px 20px;
        width: 100%;
        display: block;
    }
    /* Submenu */
    .has-submenu {
        position: relative;
    }
    
    .submenu {
        position: static !important;
        box-shadow: none !important;
        background: #f9f9f9 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .submenu.show {
        display: flex !important;
        flex-direction: column !important;
    }
    
     .submenu li a {
        padding: 10px 30px !important;
    }
 
    
    
    /* HERO */
    .hero-section {
        height: 60vh;
        min-height: 400px;
        margin-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section .btn-primary {
        font-size: 1rem;
        padding: 10px 18px;
    }
    
    /* SECTIONS */
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* ABOUT */
    .about-flex {
        flex-direction: column;
    }
    
    .about-flex img {
        max-width: 100%;
    }
    
    /* CARDS */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* STATS */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* BRANCHES */
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    /* ALUMNI */
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .contactForm {
        padding: 25px 20px;
    }
    
    /* DONATE */
    .donate-section {
        padding: 50px 0;
    }
    
    .donate-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .donate-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .donate-qr img {
        width: 150px;
        height: 150px;
    }
     .donate-qr canvas {
        max-width: 160px;
    }
    
    .donate-qr h4 {
        font-size: 1rem;
    }
    
    .donate-qr #verifyPayment {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* FORMS */
    form.form-grid {
        grid-template-columns: 1fr;
    }
    
    /* GALLERY */
    .gallery-track img {
        width: 200px;
        height: 140px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #7a0c12;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #5e080d;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}
/* ===== VERY SMALL MOBILE - max 480px ===== */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .header-flex {
        padding: 10px;
        gap: 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 0.75rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .stat-item h3 {
        font-size: 1.6rem;
    }
    
    .donate-content h2 {
        font-size: 1.5rem;
    }
    
    .donate-card {
        padding: 25px 20px;
    }
    
    .gallery-track img {
        width: 160px;
        height: 120px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}
