/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Brand Colors extracted from design */
    --c-yellow: #fcd500;
    --c-yellow-bg: #f8c812;
    --c-orange: #f26d21;
    --c-red: #d52229;
    --c-maroon: #8a151b;
    --c-tan: #fcecd3;
    --c-light-grey: #f4f5f9;
    
    /* Footer Dark Theme Colors */
    --c-footer-bg: #1a1a1a;
    --c-footer-text: #cccccc;
    --c-footer-white: #ffffff;

    /* Typography */
    --font-main: 'Anek Kannada', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-main); color: #222; overflow-x: hidden; line-height: 1.6; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* General Layout Classes */
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; width: 100%; }
.full-vh { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 100px 0; }
.text-center { text-align: center; }
.text-maroon { color: var(--c-maroon); }

/* Section Titles */
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; }
.section-subtitle { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: var(--transition); background: rgba(0,0,0,0.0); /*backdrop-filter: blur(5px);*/ }
.main-header.scrolled { background: #ffffff; box-shadow: var(--shadow-soft); padding: 10px 0; }
.main-header.scrolled .nav-link { color: var(--c-maroon); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0 5%; }
.desktop-nav .nav-list { display: flex; gap: 30px; align-items: center; }
.nav-link { font-size: 1.1rem; font-weight: 600; color: #fff; transition: var(--transition); position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--c-yellow); transition: var(--transition); }
.nav-link:hover::after { width: 100%; }
.nav-item.dropdown { position: relative; }
.submenu { position: absolute; top: 100%; left: 0; background: #fff; border-radius: 8px; min-width: 200px; padding: 10px 0; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); }
.nav-item.dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 20px; color: #222; font-weight: 600; transition: background 0.3s; }
.submenu a:hover { background: var(--c-tan); color: var(--c-maroon); }

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.section-hero { position: relative; overflow: hidden; padding: 0; }
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-image: url("hero_bg.png"); }
.hero-bg { width: 100%; height: 100%; background: url('hero-bg.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 10, 5, 0.7); }
.ken-burns { animation: kenBurns 20s ease-out infinite alternate; transform-origin: center; }

@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }

.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-logos { display: flex; gap: 30px; justify-content: center; margin-bottom: 30px; }
.hero-logo-item { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #fff; }
.hero-title-eng { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: var(--c-yellow); }
.hero-title-kan { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; color: #fff; }

/* ==========================================================================
   2. About Section
   ========================================================================== */
.section-about { background-color: var(--c-tan); }
.about-grid { display: flex; flex-direction: column; gap: 40px; }
.about-top, .about-bottom { display: flex; align-items: center; gap: 50px; justify-content: space-between; }
.about-logo img { width: 200px; height: auto; }
.about-text-top, .about-text-bottom { flex: 1; }
.about-text-top p, .about-text-bottom p { font-size: 1.1rem; line-height: 1.8; color: #444; }
.about-portrait img { width: 350px; border-radius: 12px; object-fit: cover; }

/* ==========================================================================
   3. Office Bearers Section
   ========================================================================== */
.section-bearers { background-color: var(--c-yellow-bg); }
.bearers-grid { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; }
.bearer-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); text-align: center; width: 300px; transition: var(--transition); }
.bearer-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.bearer-img { width: 100%; height: 350px; object-fit: cover; }
.bearer-info { padding: 20px; }
.bearer-info h4 { font-size: 1.2rem; color: var(--c-maroon); margin-bottom: 5px; }
.bearer-actions { display: flex; flex-direction: column; gap: 20px; }
.action-btn { display: inline-flex; align-items: center; justify-content: space-between; padding: 20px 30px; border-radius: 12px; color: #fff; font-size: 1.2rem; font-weight: 700; width: 350px; transition: var(--transition); box-shadow: var(--shadow-soft); }
.action-btn:hover { transform: translateX(10px); box-shadow: var(--shadow-hover); }
.btn-red { background-color: var(--c-maroon); }
.btn-orange { background-color: var(--c-orange); }

/* ==========================================================================
   4. Gallery Section
   ========================================================================== */
.section-gallery { background-color: var(--c-tan); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.gallery-item { position: relative; border-radius: 16px; transition: var(--transition); cursor: pointer; }
.gallery-img-wrapper { position: relative; border-radius: 16px; overflow: hidden; z-index: 2; box-shadow: var(--shadow-soft); }
/* The offset shape behind images matching design */
.gallery-item::after { content: ''; position: absolute; top: 15px; left: 15px; width: 100%; height: 100%; background: #e8d0a9; border-radius: 16px; z-index: 1; transition: var(--transition); }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item:hover::after { transform: translate(5px, 5px); }
.gallery-img-wrapper img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img-wrapper img { transform: scale(1.05); }

/* ==========================================================================
   5. Videos Section
   ========================================================================== */
.section-videos { background-color: var(--c-yellow-bg); }
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.video-card { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; transition: var(--transition); }
.video-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.video-thumbnail img { width: 100%; height: 400px; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; background: red; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.5rem; transition: var(--transition); box-shadow: 0 4px 15px rgba(255,0,0,0.4); }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

/* ==========================================================================
   6. Recent News Section
   ========================================================================== */
.section-news { background-color: var(--c-light-grey); }
.news-layout { display: flex; gap: 40px; align-items: stretch; }
.news-featured { flex: 1; }
.featured-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; transition: var(--transition); cursor: pointer; }
.featured-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.featured-card img { width: 100%; height: 300px; object-fit: cover; }
.featured-content { padding: 30px; text-align: center; }
.featured-content h3 { font-size: 1.5rem; color: var(--c-maroon); }

.news-links-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-link-card { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 20px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow-soft); transition: var(--transition); min-height: 180px; }
.news-link-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.news-link-card h4 { font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.news-link-card i { align-self: flex-end; font-size: 1.5rem; }
.bg-yellow { background-color: var(--c-yellow); color: var(--c-maroon); }
.bg-orange { background-color: var(--c-orange); color: #fff; }
.bg-red { background-color: var(--c-red); color: #fff; }

/* ==========================================================================
   7. Footer (Dark Theme Implementation)
   ========================================================================== */
.main-footer { background-color: var(--c-footer-bg); color: var(--c-footer-text); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { width: 180px; margin-bottom: 20px; filter: brightness(0) invert(1); /* Makes logo white */ }
.brand-col p { font-size: 1rem; line-height: 1.8; margin-bottom: 25px; max-width: 90%; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; color: var(--c-footer-white); transition: var(--transition); }
.social-icons a:hover { background: var(--c-yellow); color: var(--c-footer-bg); transform: translateY(-3px); }

.links-col h4 { color: var(--c-footer-white); font-size: 1.2rem; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.links-col ul li { margin-bottom: 12px; }
.links-col a { color: var(--c-footer-text); transition: var(--transition); }
.links-col a:hover { color: var(--c-yellow); padding-left: 5px; }

.footer-bottom { background-color: #111; padding: 25px 0; text-align: center; }
.footer-bottom p { font-size: 0.9rem; color: #888; margin: 0; }

/* ==========================================================================
   Animations & Reveals (Initial States)
   ========================================================================== */
.reveal-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-fade-in { opacity: 0; transition: opacity 1s ease; }
.reveal-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-slide-down { opacity: 0; transform: translateY(-20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-slide-left { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-slide-right { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }

.is-visible { opacity: 1 !important; transform: translate(0) scale(1) !important; }

/* ==========================================================================
   Mobile Menu & Breakpoints
   ========================================================================== */
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 35px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 1001; pointer-events: auto; }
.hamburger .bar { width: 100%; height: 3px; background-color: var(--c-maroon); border-radius: 3px; transition: var(--transition); }
.main-header:not(.scrolled) .hamburger .bar { background-color: #fff; } /* White on dark hero */

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); z-index: 900; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transform: translateY(-100%); transition: var(--transition); }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-list { text-align: center; display: flex; flex-direction: column; gap: 30px; }
.mobile-nav-list a { font-size: 1.8rem; font-weight: 700; color: var(--c-maroon); }
.mobile-submenu { display: none; margin-top: 15px; gap: 15px; flex-direction: column; }
.mobile-submenu.active { display: flex; }
.mobile-submenu a { font-size: 1.2rem; color: #222; }

@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-layout { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .desktop-nav { display: none !important; }
    .hamburger { display: flex !important; }
    
    .full-vh { height: auto; min-height: 0; padding: 80px 0; }
    .section-hero.full-vh { min-height: 100vh; }
    
    .about-top, .about-bottom { flex-direction: column; text-align: center; }
    .about-portrait img { width: 100%; max-width: 400px; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg); background-color: var(--c-maroon) !important; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); background-color: var(--c-maroon) !important; }
}

@media (max-width: 768px) {
    .videos-grid { grid-template-columns: 1fr; }
    .news-links-grid { grid-template-columns: 1fr; }
    .bearers-grid { flex-direction: column; gap: 40px; }
    .action-btn { width: 100%; max-width: 350px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}