/*
Theme Name: Human Right Social People Association Theme
Theme URI: https://example.com/hrspa-theme
Author: Antigravity
Author URI: https://google.com
Description: A premium, modern WordPress theme for Human Right Social People Association (HRSPA). Featuring bilingual support and a clean, responsive design.
Version: 1.1.5
Text Domain: mas-theme
*/

:root {
    --primary-color: #ea580c;
    /* Matched from --color-orange-600 */
    --primary-hover: #c2410c;
    --light-orange: #fff7ed;
    /* Matched from --color-orange-50/100 */
    --dark-bg: #1A1A1A;
    --light-bg: #F8F8F8;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;

    /* Font Stacks */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', sans-serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.625;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: var(--transition);
}

.site-header.header-scroll {
    padding: 2px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.site-header.header-scroll .header-inner {
    height: 70px;
}

.site-header .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    /* Reduced from 140px for better stability */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .logo-box {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-box img,
.logo-box .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    line-height: 1.1;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    margin: 2px 0 0;
    color: #ea580c;
    font-weight: 600;
    font-family: var(--font-body);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Increased gap for better spacing */
    flex-shrink: 0;
}

/* Bilingual Menu Styling */
.main-nav ul {
    display: flex;
    gap: 2px;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-title {
    font-size: 1rem;
    font-weight: 500;
    color: #4B5563;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
}

.menu-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 2px;
}

/* Active/Hover states for Menu Items */
.main-nav li.current-menu-item a,
.main-nav a:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.main-nav li.current-menu-item a .menu-title,
.main-nav a:hover .menu-title,
.main-nav li.current-menu-item a .menu-subtitle,
.main-nav a:hover .menu-subtitle {
    color: #fff;
}

/* Language Selector (Google Translate) */
.lang-selector {
    margin-top: 0;
}

/* --- TNM Style Language Selector (Restored to Side) --- */
.tnm-style-lang {
    margin-left: 10px;
    display: flex;
    align-items: center;
    min-width: 170px;
    min-height: 40px;
    margin-top: 0;
    transform: translateY(-10px); /* Increased to align perfectly with menu titles */
}

#google_translate_element {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
}

/* Fix for sticky header when Google Translate bar is present */
.translated-ltr .site-header,
.translated-rtl .site-header {
    top: 40px;
}

/* Google Translate Simple Style (Clean White Box) */
.goog-te-gadget-simple {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
}

.goog-te-gadget-simple img {
    display: none !important;
}

.goog-te-menu-value span {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.goog-logo-link {
    display: none !important;
}

/* Hero Carousel */
#heroCarousel {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.carousel-item {
    min-height: 85vh;
    display: flex !important;
    align-items: center;
    padding: 120px 0;
}

/* Dark overlay shown when background image is set */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.4) 100%);
    z-index: 1;
}

.hero-content-only {
    max-width: 1000px;
    /* Increased to prevent 3-line wrapping */
    position: relative;
    z-index: 2;
    margin-left: -60px;
}


.hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    /* Increased for that reference image look */
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.hero-content-only h1 {
    font-size: clamp(3.5rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-content-only h1 span {
    color: var(--primary-color);
}

.hero-content-only .bilingual-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 1000px;
    /* Increased to allow one long line */
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: 16px;
    /* Stylish rounded corners like reference */
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #f54a00;
    /* Specific color for this button only */
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-dark {
    background-color: #2D2D2D;
    /* Dark grey like reference */
    color: var(--white);
}

.btn-dark:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    color: var(--white);
}

.stats-card {
    background: rgba(45, 45, 45, 0.4);
    /* Semi-transparent dark like reference */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    max-width: 360px;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

/* Focus Areas */
.focus-areas {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tagline {
    font-family: var(--font-sans);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark-bg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.focus-areas .container {
    max-width: 1440px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.focus-card {
    padding: 30px 25px;
    border-radius: 40px;
    background: var(--white);
    border: 2.5px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--white);
    padding: 45px 35px;
    border-radius: 35px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: left;
    /* Align text to left */
    height: 100%;
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    margin-left: 0;
    /* Align icon box to left */
}

/* Light background boxes matching image */
.bg-light-blue {
    background-color: #f0f7ff;
    color: #2563eb;
}

.bg-light-green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.bg-light-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.bg-light-pink {
    background-color: #fff1f2;
    color: #e11d48;
}

.focus-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-family: var(--font-body);
    line-height: 1.2;
}

.focus-subtitle {
    color: #ff4500;
    /* Vibrant orange like image */
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.focus-card p:not(.focus-subtitle) {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin-left: 0;
    text-align: left;
}

/* Footer */
.site-footer {
    background-color: #111111;
    color: var(--white);
    padding: 100px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1.1fr 1.1fr;
    gap: 70px;
    padding-bottom: 80px;
}

.footer-widget h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 35px;
}

.footer-widget p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.footer-widget ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-widget ul li a {
    color: #ccc;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-widget li i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.social-links a {
    color: #999;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.site-footer .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.site-footer .logo-box,
.footer-logo img {
    width: 60px;
    /* Increased size slightly for better visibility in footer */
    height: 60px;
    object-fit: contain;
}

.site-footer .logo-box {
    background: #ff4500;
    color: white;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.site-footer .logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: white;
    line-height: 1.3;
}

/* Newsletter Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.newsletter-form input {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 18px 20px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.1);
}

.newsletter-form button {
    background: #ff4500;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #e63e00;
    transform: translateY(-2px);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: #0a0a0a;
    padding: 40px 0;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #666;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #999;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .header-right {
        gap: 16px;
    }

    .hero {
        min-height: 60vh;
        padding: 80px 0;
    }

    .hero-content-only {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        width: auto;
    }

    .btn {
        width: auto;
        margin-left: 0 !important;
    }
}

/* --- Styled CTA Banner (Perfect Image Match) --- */
.cta-banner-styled {
    background-color: #f54a00;
    /* More vibrant orange like image */
    padding: 85px 0;
    /* Increased height */
    color: white;
}

.cta-banner-styled .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.cta-text p {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff !important;
    margin: 0;
    font-family: var(--font-body);
}

.cta-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-donate {
    background-color: white;
    color: #f54a00;
    padding: 16px 45px;
    /* Larger buttons */
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background-color: transparent;
    color: white;
    padding: 15px 45px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 1.8px solid white;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-contact:hover {
    background-color: white;
    color: #f54a00;
}

.btn-contact:hover {
    background-color: white;
    color: #ff4500;
}

@media (max-width: 991px) {
    .cta-banner-styled .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* --- Generic Page Template Styling --- */
.page-main {
    padding: 80px 0;
    min-height: 60vh;
    background: #fafafa;
}

.page-content-wrap {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f54a00;
    display: inline-block;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* --- About Page Styles --- */
.about-page-main {
    background-color: #ffffff;
    padding: 80px 0;
}

.containerWide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-hero-section {
    margin-bottom: 80px;
}

.sub-tag {
    color: #ff4d00;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.about-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.about-main-title span {
    color: #ff4d00;
    font-style: italic;
}

.about-subtitle-marathi {
    font-size: 1.25rem;
    color: #666;
    max-width: 850px;
    line-height: 1.6;
    font-family: var(--font-body);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.about-image-col .image-wrapper {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.about-image-col img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background-color: #fff7ed;
    border-radius: 40px;
    z-index: 1;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pillar-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.pillar-number {
    width: 48px;
    height: 48px;
    background-color: #ff4d00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pillar-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.pillar-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    margin-top: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.dot-orange {
    width: 8px;
    height: 8px;
    background-color: #ff4d00;
    border-radius: 50%;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .containerWide {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .about-image-col img {
        height: 350px;
    }
}

/* ==============================================
   FULLY RESPONSIVE — ALL DEVICES
============================================== */

/* ---- Laptops & Tablets (Under 1200px) ---- */
@media (max-width: 1200px) {
    .container {
        max-width: 92%;
    }

    .hero-content-only {
        margin-left: 0 !important;
    }
}

/* ---- iPad & Tablets (Under 1024px) ---- */
@media (max-width: 1024px) {
    .site-header {
        padding: 8px 0 !important;
    }

    .header-inner {
        height: auto !important;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .logo-link {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .site-header .logo-box {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: 0.95rem !important;
        line-height: 1.2;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
    }

    /* MOBILE MENU DRAWER */
    .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff !important;
        z-index: 10000 !important;
        padding: 80px 30px 40px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-nav a {
        display: block !important;
        text-align: left !important;
        padding: 15px 10px !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-title {
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #4B5563 !important; /* Original color */
    }

    .menu-subtitle {
        font-size: 0.85rem !important;
        color: #6B7280 !important; /* Original color */
        display: block !important;
    }

    /* Fix for Admin Bar overlap on Tablets */
    .admin-bar .site-header {
        top: 32px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ---- Tablets & Phones (Under 768px) ---- */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    .header-inner {
        min-height: 70px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px !important;
        width: 100% !important;
    }

    .logo-link {
        gap: 8px;
    }

    .site-header .logo-box {
        width: 42px !important;
        height: 42px !important;
    }

    .logo-text h1 {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        max-width: 130px;
    }

    .logo-text p {
        display: block !important;
        font-size: 0.5rem !important;
        margin-top: 1px !important;
    }

    /* Hide Marathi sub-text on very small header to save space */

    .header-right {
        gap: 5px !important;
        margin: 0;
    }

    .tnm-style-lang {
        transform: scale(0.7);
        transform-origin: right center;
        width: auto;
        min-width: 100px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .admin-bar .site-header {
        top: 46px !important;
    }

    .admin-bar.header-scroll .site-header {
        top: 46px !important;
    }

    /* Ensure no white gap above admin bar */
    .admin-bar html {
        margin-top: 46px !important;
    }

    .site-header.header-scroll .header-inner {
        min-height: 60px !important;
    }

    .mobile-toggle {
        z-index: 9999;
    }

    /* Hero Fixes */

    /* Hero Fixes */
    .carousel-item,
    .hero,
    .carousel-item>div {
        min-height: 75vh !important;
        padding: 50px 0 !important;
    }

    .carousel-item .container,
    .hero .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .hero-content-only h1 {
        font-size: 2.2rem !important;
        line-height: 1.25;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    /* Focus Areas */
    .focus-areas {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    /* Inner Pages */
    .enrollment-title,
    .about-main-title,
    .contact-title,
    .events-page .display-3,
    .activity-page .display-3 {
        font-size: 2rem !important;
    }

    /* FOOTER FIX FOR MOBILE */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .footer-widget {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-widget ul {
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-widget li {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-widget h4 {
        margin-bottom: 20px;
        font-size: 1.2rem;
    }

    .social-links {
        justify-content: center !important;
    }

    .newsletter-form {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Footer Bottom Overlap Fix */
    .footer-bottom .container {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 30px 15px !important;
    }

    .footer-bottom-links {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
}

/* ---- Small Phones (Under 480px) ---- */
@media (max-width: 480px) {

    /* FOCUS AREAS */
    .focus-areas {
        padding: 60px 0 !important;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .focus-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .focus-card {
        padding: 30px 20px !important;
    }

    /* CTA BANNER - FULL FIX */
    .cta-banner-styled {
        padding: 60px 0 !important;
    }

    .cta-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px;
    }

    .cta-text h2 {
        font-size: 1.8rem !important;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .cta-text p {
        font-size: 1rem !important;
    }

    .cta-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 15px !important;
    }

    .btn-donate,
    .btn-contact {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 15px 30px !important;
    }

    /* MARQUEE SECTION MOBILE */
    .marquee-section {
        height: 40px !important;
    }

    .marquee-label {
        display: flex !important;
        padding: 0 10px !important;
        font-size: 0.7rem !important;
    }

    .marquee-content {
        font-size: 0.85rem !important;
    }
}

/* Extra small devices fix */
@media (max-width: 380px) {
    .logo-text h1 {
        font-size: 0.7rem !important;
    }

    .hero-content-only h1 {
        font-size: 1.6rem !important;
    }
}
/* ENROLLMENT FORM MOBILE FIXES */
@media (max-width: 768px) {
    .enroll-wrap { padding: 15px !important; }
    .application-card { 
        padding: 25px 15px !important; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
        border-radius: 15px !important;
    }
    
    .card-top-header { flex-direction: column !important; gap: 20px; text-align: left; }
    .date-owd { 
        width: 100% !important; 
        justify-content: flex-start !important; 
        border-top: 1px solid #eee; 
        padding-top: 15px; 
    }
    
    .field-row { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 8px !important;
        margin-bottom: 25px !important;
    }
    
    .fnum, .fcolon { display: none !important; } 
    
    .flabel { 
        width: 100% !important; 
        font-weight: 700 !important; 
        color: #333 !important; 
        font-size: 0.95rem !important;
        margin-bottom: 5px;
    }
    
    .finput { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin-left: 0 !important; 
        padding: 12px 15px !important;
        border: 1px solid #ddd !important;
        background: #fdfdfd !important;
    }
    
    .inline-group { 
        flex-direction: column !important; 
        width: 100% !important; 
        gap: 12px !important; 
        align-items: flex-start !important;
        padding-left: 15px !important; /* Right shift Indent as requested */
    }
    
    .donation-row { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    
    .signature-area { 
        flex-direction: column !important; 
        gap: 40px !important; 
        margin-top: 40px !important;
        text-align: center !important; 
    }
    
    .application-footer { text-align: center !important; }
}

/* DONATE PAGE RESPONSIVE FIXES */
@media (max-width: 768px) {
    .donate-header { padding: 40px 0 !important; }
    .donate-header h1 { font-size: 2.2rem !important; }
    
    .bank-card-landscape { 
        padding: 30px 20px !important; 
        border-radius: 20px !important;
        margin: 0 10px !important;
        max-width: 100% !important;
    }
    .bank-card-header { flex-direction: column !important; text-align: center; gap: 10px !important; margin-bottom: 30px !important; }
    .bank-card-header h2 { font-size: 1.6rem !important; }
    
    .bank-card-body .value { 
        font-size: 1.1rem !important; 
        word-break: break-all !important; /* Fix for long email address */
    }
    .bank-card-footer p { font-size: 0.85rem !important; }
}

/* FINAL STABILITY & MENU FIX */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

@media (max-width: 768px) {
    #main-nav.main-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important; /* Force off-screen */
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 10000 !important;
        visibility: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -10px 0 20px rgba(0,0,0,0.15) !important;
        padding: 80px 20px 20px !important;
    }

    #main-nav.main-nav.active {
        right: 0 !important;
        visibility: visible !important;
    }
    
    .header-right {
        overflow: visible !important;
    }
}

.close-menu {
    display: none !important; /* Global Hide - Desktop safe */
}

@media (max-width: 768px) {
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex !important; /* Show only on Mobile */
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 50%;
        z-index: 10001;
    }
}

/* GLOBAL RESPONSIVE SAFETY BLOCK - (DOUBLE CHECKED) */
@media (max-width: 768px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    h1, .display-3 { font-size: 2.2rem !important; word-wrap: break-word !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    .py-5 { padding-top: 50px !important; padding-bottom: 50px !important; }
    
    /* Ensure all row/col behavior is clean */
    .row { margin-left: -10px !important; margin-right: -10px !important; }
    .col-md-6, .col-lg-6, .col-lg-4, .col-md-4 { padding-left: 10px !important; padding-right: 10px !important; }
    
    /* Fixed for about, events, and other listing pages */
    .about-content img, .events-header img, .activity-list img {
        margin-bottom: 30px !important;
    }
    
    /* Contact Page specificity */
    .contact-form-wrap, .contact-info-card {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }
}
