/* Reset and Base Styles */
:root {
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(180deg, #0b0f1a, #0a0e18);
}



/* ===== GLOBAL WIDTH FIX ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0a0e27;
    --secondary-color: #1a1f3a;
    --accent-color: #2d3561;
    --text-color: #e8e8e8;
    --light-text: #b8b8b8;
    --white: #ffffff;
    --border-color: #3a3f5c;
    --hover-color: #ff6b6b;
    --dark-bg: #0f1419;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
}




/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(180deg, #0b0f1a, #0a0e18);
}


.navbar {
    position: sticky;
    top: var(--header-height); /* 🔑 THIS IS THE KEY */
    z-index: 1000;
    width: 100%;
    background: linear-gradient(180deg, #0a0e18, #070b14);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;

    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 60px;
}


.header-container,
.nav-container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
}


.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}


.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-name {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.visitor-counter i {
    font-size: 1rem;
}

.business-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.3s;
}

.business-email:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.business-email i {
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem !important;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--hover-color);
}

/* Navigation Bar */
/* .navbar {
    background: var(--secondary-color);
    padding: 0;
    position: sticky;
    top: 90px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}


.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.nav-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--hover-color);
    transition: transform 0.3s;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* Mobile Menu Items (inside hamburger dropdown) */
.mobile-menu-items {
    display: none;
}

.mobile-menu-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.mobile-menu-info .visitor-counter,
.mobile-menu-info .business-email {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.mobile-menu-info .social-icons {
    justify-content: center;
    gap: 20px;
}

/* Hero Section */

    /* .hero-section {
    margin-top: calc(var(--header-height) + 56px);
} */

/* .hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
} */

/* .hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
} */

/* .hero-slide.active {
    opacity: 1;
} */

/* .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

/* Scrolling Tagline */
.tagline-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    border-top: 2px solid var(--hover-color);
}

.tagline-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tagline-content {
    display: inline-flex;
    animation: scroll-tagline 30s linear infinite;
}

.tagline-text {
    display: inline-block;
    padding: 0 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--hover-color);
}

.subsection-title {
    font-size: 2rem;
    margin: 40px 0 30px;
    color: var(--white);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;           /* tighter but clean */
    margin-bottom: 30px;
}


.tile {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
    border-color: var(--hover-color);
}

.tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
}



.tile h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--white);
    text-align: center;
}

.tile a {
    text-decoration: none;
    color: inherit;
}

/* Live Links Section */
.live-links-section {
    background: var(--dark-bg);
}

.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 14px 50px;
    background: linear-gradient(135deg, var(--hover-color) 0%, #ff5252 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    font-family: 'Poppins', sans-serif;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, var(--hover-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Moulana's Directory */
.moulana-section {
    background: var(--dark-bg);
}

.moulana-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.moulana-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
    border-color: var(--hover-color);
}

.moulana-card img {
    width: 150px;
    height: 150px;
    /* border-radius: 50%; */
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--accent-color);
}

.moulana-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.moulana-card .city {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 5px;
}

.moulana-card .designation {
    color: var(--hover-color);
    font-style: italic;
}

/* Ashoorkhana's Directory */
.ashoorkhana-section {
    background: var(--dark-bg);
}

.ashoorkhana-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.ashoorkhana-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.ashoorkhana-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
    border-color: var(--hover-color);
}

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

.ashoorkhana-card h3 {
    padding: 15px;
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
}

.ashoorkhana-card p {
    padding: 0 15px 15px;
    color: var(--light-text);
    text-align: center;
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 50px auto;
    padding: 20px;
    max-width: 1200px;
    color: var(--white);
}

.channel-name {
    white-space: nowrap;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: var(--hover-color);
}

#galleryTitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background: var(--dark-bg);
}

.founder-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    flex-shrink: 0;
}

.founder-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.founder-designation {
    color: var(--hover-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.founder-text {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.team-section {
    margin-bottom: 60px;
}

.team-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
    border-color: var(--hover-color);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--accent-color);
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.team-card p {
    color: var(--light-text);
}

.testimonials-section {
    margin-top: 60px;
}

.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--secondary-color);
    min-height: 350px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    padding: 50px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--hover-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.testimonial-author {
    font-weight: 600;
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.testimonial-designation {
    color: var(--hover-color);
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.testimonial-text-container {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    font-size: 1.4rem;
    line-height: 1.9;
    margin: 0;
    font-weight: 400;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.testimonial-dot.active {
    background: var(--hover-color);
    transform: scale(1.3);
}

.testimonial-dot:hover {
    background: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}


.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 18px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
}

.footer-section h4::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--hover-color);
    display: block;
    margin-top: 8px;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cfd3ff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--hover-color);
    transform: translateX(4px);
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--secondary-color);
    color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--hover-color);
    background: var(--accent-color);
}

.contact-form button {
    padding: 12px 30px;
    background: var(--hover-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    align-self: flex-start;
}

.contact-form button:hover {
    background: #d63447;
    transform: scale(1.05);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}



.footer-bottom p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tiles-grid,
    .ashoorkhana-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    #moulanaGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Keep desktop layout for 1024px - no changes to header */
}

/* Tablet and Mobile - breakpoint at 768px */
@media (max-width: 768px) {
    /* Hide header-right in mobile/tablet */
    .header-right {
        display: none;
    }

    .contact-form button {
        width: 100%;
    }

     :root {
        --header-height: 64px;
    }

     #moulanaGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Show hamburger in header */
    .hamburger {
        display: flex;
    }

    
    
    /* Adjust logo section for mobile/tablet */
    .logo-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .channel-name {
        flex: 1;
        margin: 0;
    }
    
    .header-container {
        padding: 10px 20px;
    }
  
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .channel-name {
        font-size: 1.1rem;
    }
    
    .hamburger {
        margin-left: 10px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--secondary-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li.mobile-menu-items {
        border-bottom: none;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .mobile-menu-info .visitor-counter,
    .mobile-menu-info .business-email {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .mobile-menu-info .business-email span {
        word-break: break-all;
        text-align: center;
    }
    
    /* .hero-section {
        margin-top: 0;
    } */
    
    .tagline-text {
        font-size: 0.9rem;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tiles-grid,
    .ashoorkhana-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .founder-section {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-image {
        width: 150px;
        height: 150px;
    }
    
    .testimonial-slide {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }
    
    .testimonial-author-info {
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .channel-name {
        font-size: 0.95rem;
    }

    #moulanaGrid {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .nav-menu.active .mobile-menu-items {
        display: block;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .contact-form button {
        width: 100%;
    }

    .mobile-menu-info {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .mobile-menu-info .business-email {
        color: #fff;
        font-size: 14px;
        text-align: center;
    }

    .mobile-menu-info .business-email i {
        margin-right: 6px;
        color: #ffcc66;
    }

    .mobile-menu-info .social-icons {
        display: flex;
        gap: 16px;
        justify-content: center;
    }

    .mobile-menu-info .social-icons a {
        font-size: 20px;
        color: #fff;
        transition: color 0.3s ease;
    }

    .mobile-menu-info .social-icons a:hover {
        color: #ffcc66;
    }

     .mobile-menu-info .social-icons a {
        font-size: 1.3rem;
    }
    
    /* .hero-section {
        height: 25vh;
        min-height: 200px;
    } */

    .header-container {
        display: flex;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tiles-grid,
    .ashoorkhana-grid {
        grid-template-columns: 1fr;
    }
}

    
   
    
    .founder-image {
        width: 120px;
        height: 120px;
    }
    
    .moulana-card img,
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .mobile-info-bar {
        padding: 12px 0;
    }
    
    .mobile-info-bar .visitor-counter,
    .mobile-info-bar .business-email {
        font-size: 0.75rem;
        padding: 6px 12px;
    }


/* ===== MOULANA DIRECTORY GRID ===== */
/* ===== MOULANA DIRECTORY GRID (FIXED COLUMNS) ===== */
.moulana-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* ===== MOULANA PROFILE CARD ===== */
.moulana-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;

    background: linear-gradient(145deg, #1c2340, #151b33);
    border-radius: 14px;
    padding: 14px;

    min-height: 120px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moulana-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

/* Photo */
.moulana-photo img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.15);
}

/* Details */
.moulana-details h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.moulana-details .city {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 4px;
}

.moulana-details .designation {
    font-size: 13px;
    color: #ff6b6b;
    font-style: italic;
}




/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile,
.moulana-card,
.ashoorkhana-card,
.team-card,
.testimonial-card {
    animation: fadeIn 0.5s ease-in;
}

/* Contact Form Snackbar - Industry Standard */
.contact-snackbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    font-weight: 500;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-snackbar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.contact-snackbar.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.contact-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button loading state */
.contact-form button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}


