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

:root {
    --primary: #0f2d11;
    --primary-light: #235226;
    --secondary: #dfb12f;
    --secondary-hover: #c49924;
    --background: #fbfaf7;
    --surface: #ffffff;
    --text: #2c2c2c;
    --text-muted: #666666;
    --border: rgba(15, 45, 18, 0.08);
    
    /* Layered Ambient Shadows with Green Tints */
    --shadow-sm: 0 2px 8px rgba(15, 43, 17, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 43, 17, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 43, 17, 0.08);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', 'Noto Sans Kannada', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header Styles */
.top-bar {
    background-color: #0b1f0c;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left span {
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-gst {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.top-bar-lang-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.top-bar-lang-btn:hover {
    background-color: #ffffff;
    color: var(--primary);
    transform: translateY(-1px);
}

.header-container {
    background: linear-gradient(135deg, #fbfaf7 0%, #f4edd9 100%);
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    max-width: 320px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}


.leader-card img {
    width: 65px;
    height: 85px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-light);
}

.leader-info h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.leader-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: pre-line;
    line-height: 1.35;
}

.center-branding {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.society-logo {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}


.center-branding h1 {
    font-size: 1.65rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

.center-branding h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.awards-ribbon {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
}

.awards-ribbon span {
    background: rgba(223, 177, 47, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(223, 177, 47, 0.3);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.lang-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Navigation Menu */
.nav-bar {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item > a, .nav-item .dropbtn {
    display: block;
    padding: 15px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover > a, .nav-item.active > a, .nav-item.dropdown:hover .dropbtn {
    background-color: var(--primary-light);
    border-bottom: 3px solid var(--secondary);
    color: var(--secondary);
}

/* Navigation Dropdowns */
.nav-item.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    z-index: 1001;
    top: 100%;
    left: 0;
    padding: 8px 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text) !important;
    padding: 10px 20px !important;
    text-decoration: none;
    display: block;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    border-left: none !important;
    transition: var(--transition);
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none !important;
}

.dropdown-content a:hover {
    background-color: #faf6ec !important;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

.nav-item.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Marquee Bar */
.marquee-bar {
    background-color: #f0e6d2;
    color: var(--primary);
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.marquee-label {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 4px 15px;
    margin-right: 15px;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Layout */
.main-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 12px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .grid-container-home {
        grid-template-columns: 3fr 1fr;
    }
}

/* Card Styles */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card p {
    text-align: justify;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    border-left: 4px solid var(--secondary);
    padding: 5px 0 5px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.card-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 45, 18, 0.08);
    color: var(--primary-light);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* President Message UI */
.president-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (min-width: 768px) {
    .president-section {
        flex-direction: row;
    }
}

.president-photo {
    flex-shrink: 0;
    text-align: center;
}

.president-photo img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.president-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444444;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.president-text blockquote {
    font-style: italic;
    background: #f7f9f7;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

/* Certificate Box */
.cert-box {
    text-align: center;
    margin-top: 30px;
}

.cert-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.cert-image:hover {
    transform: scale(1.02);
}

/* What's New Sidebar */
.whats-new-scroll-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

/* Fading gradients at the top and bottom of the news scroll container */
.whats-new-scroll-container::before,
.whats-new-scroll-container::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 35px;
    z-index: 2;
    pointer-events: none;
}
.whats-new-scroll-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--surface) 0%, rgba(255, 255, 255, 0) 100%);
}
.whats-new-scroll-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--surface) 0%, rgba(255, 255, 255, 0) 100%);
}

.whats-new-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.whats-new-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border) !important;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Customer Services List */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .services-list {
        grid-template-columns: 1fr 1fr;
    }
}

.service-list-item {
    background: #faf8f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.service-list-item:hover {
    transform: translateX(5px);
    background: #f1ede4;
}

/* Unified Services Page Layout */
.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .services-container {
        grid-template-columns: 1fr 3fr;
    }
}

.services-sidebar {
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px var(--shadow);
    padding: 15px 0;
    height: fit-content;
}

.services-nav-list {
    list-style: none;
}

.services-nav-item a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.services-nav-item a:hover, .services-nav-item.active a {
    background-color: #faf6ec;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
}

/* Custom Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.custom-table th {
    background-color: var(--primary);
    color: #ffffff;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:nth-child(even) td {
    background-color: #faf8f5;
}

/* Grid & Grid Cards */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.logo-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    box-shadow: 0 2px 5px var(--shadow);
    transition: var(--transition);
}

.logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Oil Mill Layout */
.oil-mill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .oil-mill-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.oil-mill-ad {
    text-align: center;
}

.oil-mill-ad img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.oil-process-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.oil-process-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Outlets & Contact Page */
.outlets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.outlet-card {
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px var(--shadow);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.outlet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.outlet-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.outlet-detail {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.outlet-detail span:first-child {
    font-weight: 600;
    color: var(--primary-light);
}

.outlet-map-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.outlet-map-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Financier Page List */
.financier-list {
    list-style: none;
}

.financier-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px var(--shadow);
}

/* Awards Page */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.award-card {
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.award-card img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.award-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 12px;
    box-shadow: 0 2px 6px var(--shadow);
}

.gallery-card h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-card ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gallery-card li {
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}

.gallery-card li:last-child {
    border-bottom: none;
}

/* Footer UI */
footer {
    background-color: #112d12;
    color: #e2e8e2;
    padding: 60px 20px 40px;
    margin-top: 70px;
    border-top: 4px solid var(--secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

.footer-section h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding-bottom: 10px;
}

.footer-section p {
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #e2e8e2;
    text-decoration: none;
    font-size: 0.93rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-brand-banner {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 0; /* Vertical padding only for edge-to-edge scrolling */
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    margin-top: 45px;
}

/* Fading gradient overlays on left/right edges for premium transition look */
.footer-brand-banner::before,
.footer-brand-banner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.footer-brand-banner::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.footer-brand-banner::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.footer-brand-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 25px;
    animation: marquee-scroll 45s linear infinite;
}

.footer-brand-track:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background: transparent;
    transition: var(--transition);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.brand-item:hover img {
    transform: scale(1.05);
}

.brand-item.text-fallback span {
    color: #333333;
    font-weight: 700;
    font-size: 0.8rem;
    background: #f1ede4;
    padding: 6px 12px;
    border-radius: 4px;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #a0bca0;
}


.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.footer-bottom-spacer {
    flex: 1 1 0px;
}

.copyright-text {
    flex: 0 0 auto;
    text-align: center;
    margin: 0;
    font-size: 0.8rem;
    color: #a0bca0;
}

.powered-by-text {
    flex: 1 1 0px;
    text-align: right;
    margin: 0;
    font-size: 0.8rem;
    color: #a0bca0;
}

.powered-by-text a {
    color: #a0bca0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.powered-by-text a:hover {
    color: #dfb12f;
}

/* Forms styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(30,70,32,0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Mobile Menu & Stacking Responsiveness */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

@media (max-width: 992px) {
    /* Header Stacking */
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px;
    }
    .header-right {
        align-items: center;
        width: 100%;
    }
    .leader-card {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    .center-branding {
        padding: 0;
    }
    .center-branding h1 {
        font-size: 1.3rem;
    }
    .awards-ribbon {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    /* Top Bar */
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        width: 100%;
    }

    /* Mobile Hamburger Menu */
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-item a, .nav-item .dropbtn {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-left: 4px solid transparent;
    }
    .nav-item a:hover, .nav-item.active a, .nav-item.dropdown:hover .dropbtn, .nav-item.dropdown.open .dropbtn {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-left: 4px solid var(--secondary);
        background-color: var(--primary-light);
        color: var(--secondary);
    }
    
    /* Mobile dropdown styling */
    .nav-item.dropdown .dropbtn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav-item.dropdown .dropdown-content {
        display: none;
        position: static;
        background-color: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    .nav-item.dropdown.open .dropdown-content {
        display: block;
    }
    .dropdown-content a {
        color: rgba(255, 255, 255, 0.85) !important;
        padding: 12px 30px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-left: none !important;
    }
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--secondary) !important;
        padding-left: 35px !important;
    }

    /* Services Horizontal Swiper Tab bar on Mobile */
    .services-sidebar {
        width: 100%;
        overflow-x: auto;
        padding: 12px 15px;
        white-space: nowrap;
        background: #faf8f5;
        border-radius: 8px;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .services-nav-list {
        display: flex;
        gap: 10px;
    }
    .services-nav-item {
        display: inline-block;
    }
    .services-nav-item a {
        padding: 8px 15px;
        border-radius: 30px;
        border: 1px solid var(--border);
        background: var(--surface);
        border-left: none;
        font-size: 0.85rem;
    }
    .services-nav-item.active a {
        background: var(--primary);
        color: #ffffff;
        border-color: var(--primary);
    }
    
    /* Footer Stack */
    footer {
        padding: 30px 15px 15px;
    }
    .footer-brand-track {
        gap: 15px; /* Keep horizontal scrolling on mobile, just reduce gap slightly */
    }
}

@media (max-width: 576px) {
    .main-wrapper {
        margin: 15px auto;
        padding: 0 10px;
    }
    .card {
        padding: 15px;
        border-radius: 8px;
    }
    .card-title {
        font-size: 1.15rem;
    }
    .president-photo img {
        width: 150px;
    }
    .outlets-grid {
        grid-template-columns: 1fr;
    }
    
    /* Header optimization on mobile */
    .leader-card {
        padding: 8px 12px;
        max-width: 100%;
    }
    .leader-card img {
        width: 50px;
        height: 65px;
    }
    .leader-info h4 {
        font-size: 0.85rem;
    }
    .leader-info p {
        font-size: 0.7rem;
    }
    .society-logo {
        width: 80px;
        height: 80px;
    }
    .center-branding h1 {
        font-size: 1.15rem;
    }
    .center-branding h3 {
        font-size: 0.85rem;
    }
    .awards-ribbon span {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    /* Hero Carousel optimization on mobile */
    .left-carousel-container {
        height: 280px;
    }
    .right-carousel-container {
        height: 220px;
    }
    .carousel-indicators {
        bottom: 230px;
    }
}

/* Hero Slider Section */
.hero-slider-section {
    max-width: 1200px;
    margin: 20px -12px;
    width: calc(100% + 24px);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: var(--surface);
}

.slide-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 340px);
    min-height: 450px;
    gap: 6px;
    background: #f4edd9;
    padding: 0;
}

.left-carousel-container,
.right-carousel-container {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.left-carousel-container {
    border-radius: var(--radius-md);
}

.right-carousel-container {
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
}

#leftTrack {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#rightTrack {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left Card */
.slide-left-card {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f7f9f6 0%, #edf5e7 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.slide-left-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.slide-card-image-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f5;
    padding: 0;
}

.slide-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.slide-card-caption {
    padding: 15px 10px;
    background: linear-gradient(to bottom, #f2f7ef 0%, #dbebd3 100%);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Right Image */
.slide-right-img {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background-color: #faf8f5;
}

.slide-right-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.indicator-dot.active, .indicator-dot:hover {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 31, 12, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface);
    margin: auto;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-president-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-president-img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid var(--primary);
}

/* Responsiveness for Slider */
@media (max-width: 992px) {
    .hero-slider-section {
        margin: 15px 0;
        width: 100%;
    }
    .slide-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }
    .left-carousel-container {
        height: 380px;
    }
    .right-carousel-container {
        height: 300px;
    }
    .carousel-indicators {
        bottom: 330px;
        right: 30px;
    }
}

/* Admin Leader Cards */
.admin-card {
    background: #faf8f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    transition: var(--transition);
}

.admin-card.president-card {
    border-left: 5px solid var(--primary);
}

.admin-card.vp-card {
    border-left: 5px solid var(--secondary);
    margin-bottom: 40px;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-card-photo {
    flex-shrink: 0;
}

.admin-card-photo img {
    width: 150px;
    height: 185px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.admin-card-photo .avatar-placeholder {
    width: 150px;
    height: 185px;
    background: #e6e2da;
    border-radius: var(--radius-sm);
    border: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.admin-card-info {
    flex: 1;
    text-align: center;
}

.admin-card-info h3 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-card-info .designation {
    font-weight: 600;
    color: var(--secondary-hover);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.admin-card-info .description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .admin-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }

    .admin-card-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-bottom-spacer {
        display: none;
    }
    
    .copyright-text {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
    }
    
    .powered-by-text {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
    }
}

