/*
Theme Name: TAFA V2
Theme URI: https://tafa.or.th
Author: Antigravity
Author URI: https://google.com
Description: Custom premium theme for Thai Accounting Firms Association.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tafa-v2
*/

:root {
    /* Digital TrustBridge Palette */
    --primary: #3B82F6;
    /* Bright Blue */
    --primary-light: #60A5FA;
    --accent: #0EA5E9;
    /* Sky Blue */
    --accent-hover: #0284C7;
    --gold: #D4AF37;
    /* Champagne Gold */
    --bg-light: #F8FAFC;
    /* Cloud White */
    --text-main: #334155;
    /* Slate Grey */
    --text-muted: #64748b;

    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 4px;

    --font-heading: 'IBM Plex Sans Thai', sans-serif;
    --font-body: 'Sarabun', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 0;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 40px;
    /* Space between logo, menu, actions */
}

/* Logo Styles */
.site-logo {
    position: relative;
    z-index: 10;
}

.site-logo a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    padding: 5px;
    transition: transform 0.3s ease;
}

.site-logo img {
    height: 90px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Subtle breathing animation */
    animation: logo-breathe 3s infinite ease-in-out;
}

.site-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 15px rgba(37, 99, 235, 0.25));
}

@keyframes logo-breathe {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 6px 10px rgba(37, 99, 235, 0.15));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }
}

/* Glass Reflection Animation (Subtler) */
.site-logo a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
    /* Slower, less distracting */
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    15% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* ============================================
   MODERN NAVIGATION - Premium Design 2024
   ============================================ */

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation>ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 8px 16px;
    /* Glassmorphism pill container */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hide HOME menu item since logo serves that purpose */
.main-navigation>ul>li:first-child,
.main-navigation>ul>li.menu-item-home,
.main-navigation>ul>li:nth-child(1) {
    display: none !important;
}

/* ============================================
   HEADER ACTIONS - Premium Design
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
}

/* Language Switcher - Glassmorphism Pill */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(80%) opacity(0.5);
    cursor: pointer;
    position: relative;
}

.lang-flag .fi {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-flag:hover {
    transform: scale(1.15);
    filter: grayscale(0%) opacity(1);
}

.lang-flag.active {
    filter: grayscale(0%) opacity(1);
    background: rgba(59, 130, 246, 0.1);
}

.lang-flag.active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
    animation: langRing 1.5s ease-in-out infinite;
}

@keyframes langRing {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login Button - Ghost Style */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

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

.btn-login:hover::before {
    opacity: 1;
}

.btn-login i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: scale(1.1);
}

/* Register Button - Gradient with Glow */
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-register span,
.btn-register i {
    position: relative;
    z-index: 1;
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-register:hover::before {
    opacity: 1;
}

.btn-register i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-register:hover i {
    transform: rotate(-5deg) scale(1.1);
}

.btn-register:active {
    transform: translateY(-1px) scale(0.98);
}

/* Main Navigation Links */
.main-navigation>ul>li {
    position: relative;
}

.main-navigation>ul>li>a {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 10px 18px;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Gradient background on hover */
.main-navigation>ul>li>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.85);
}

.main-navigation>ul>li>a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-navigation>ul>li>a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Elegant underline effect from center */
.main-navigation>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.main-navigation>ul>li>a:hover::after {
    width: 70%;
}

/* Active State */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    color: white;
    font-weight: 600;
}

.main-navigation .current-menu-item>a::before,
.main-navigation .current_page_item>a::before {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown arrow indicator */
.main-navigation>ul>li.menu-item-has-children>a {
    padding-right: 28px;
}

.main-navigation>ul>li.menu-item-has-children>a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    background: none;
    left: auto;
}

.main-navigation>ul>li.menu-item-has-children:hover>a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu - Glassmorphism */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    min-width: 240px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border: none;
    border-radius: 20px;
    padding: 10px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown arrow pointer */
.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -3px -3px 10px rgba(0, 0, 0, 0.03);
}

/* Invisible bridge for hover continuity */
.main-navigation ul ul::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.main-navigation ul li:hover>ul {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.main-navigation ul ul li {
    width: 100%;
    opacity: 0;
    animation: dropdownItemFade 0.3s ease forwards;
}

.main-navigation ul ul li:nth-child(1) {
    animation-delay: 0s;
}

.main-navigation ul ul li:nth-child(2) {
    animation-delay: 0.05s;
}

.main-navigation ul ul li:nth-child(3) {
    animation-delay: 0.1s;
}

.main-navigation ul ul li:nth-child(4) {
    animation-delay: 0.15s;
}

.main-navigation ul ul li:nth-child(5) {
    animation-delay: 0.2s;
}

.main-navigation ul ul li:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes dropdownItemFade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-navigation ul ul a {
    color: var(--text-main);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Left accent bar on hover */
.main-navigation ul ul a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease;
}

.main-navigation ul ul a:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.08));
    color: var(--primary);
    padding-left: 20px;
}

.main-navigation ul ul a:hover::before {
    height: 60%;
}

/* Remove default focus outlines */
.main-navigation a:focus {
    outline: none;
}

.main-navigation a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 25px;
}

/* Click/Active effect */
.main-navigation>ul>li>a:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* --- Hero --- */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Glass Reflection Animation for Hero */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: hero-shine 8s infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes hero-shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    40% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.hero-wrapper {
    margin-bottom: 60px;
    border-radius: 0;
    /* Minimal look - no rounded bottom */
    overflow: hidden;
    position: relative;
}

.hero-wrapper img {
    width: 100%;
    height: 600px;
    /* Taller hero */
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darker, full overlay for better text contrast */
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    /* Lighter weight for minimal feel */
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 60px;
}

.bento-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    /* Slightly less rounded */
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Tailwind-like subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* Specific Items */
.welcome-card {
    grid-column: span 2;
    justify-content: center;
    background: white;
}

.welcome-card h2 {
    font-size: 2.2rem;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 15px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.benefits-card {
    grid-column: span 1;
    grid-row: span 2;
    background: var(--primary);
    color: white;
}

.benefits-card h3 {
    color: white;
}

.benefits-card .icon-box {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modern-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.modern-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-list li:last-child {
    border-bottom: none;
}

.list-icon {
    font-size: 1.5rem;
}

.service-card {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: #f8fafc;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    color: var(--primary);
}

.cta-card {
    grid-column: span 3;
    background: var(--primary);
    color: white;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
}

.cta-card h2 {
    color: white;
    margin-bottom: 5px;
}

.cta-card p {
    margin: 0;
    opacity: 0.9;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    /* Less rounded */
    font-weight: 500;
    text-align: center;
    transition: 0.2s;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.button.small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.button.full-width {
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: var(--primary);
}

.button.white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.white:hover {
    background: white;
    color: var(--primary);
    transform: none;
    /* Remove scale effect */
}

.button.outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.button.outline:hover {
    background: var(--primary);
    color: white;
}

.link-arrow {
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
    color: var(--primary);
}

/* News Section */
.news-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.news-card h4 {
    font-size: 1.1rem;
    margin: 0;
}

/* Executives Section */
.executives-section {
    margin-bottom: 80px;
}

.exec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.exec-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.exec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.exec-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.exec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.exec-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 700;
}

.exec-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* President Styling (First Item) */
.exec-card.president {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, white 0%, #f0f9ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 40px;
}

.exec-card.president .exec-image {
    width: 200px;
    height: 200px;
    margin: 0 40px 0 0;
    flex-shrink: 0;
}

.exec-card.president h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.exec-card.president p {
    font-size: 1.1rem;
}

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

    .exec-card.president {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .exec-card.president .exec-image {
        margin: 0 auto 20px;
    }
}

/* Mobile Language Switcher */
.mobile-lang-switch {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

/* Footer */
.site-footer {
    background: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    padding: 80px 0 30px;
    font-size: 0.95rem;
    margin-top: auto;
    box-shadow: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 20px;
    /* No background needed for light theme if logo is transparent, 
       but if logo has white bg, it blends in. 
       Assuming logo might need a container if it's white text, 
       but usually logos are colored. Let's check logo. 
       If logo is white-only, we might need a colored version. 
       But user said "light bg", so I assume they have a colored logo or it will look okay.
       Let's keep it simple. */
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--text-muted);
}

.footer-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.footer-links,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: 0.3s;
    display: inline-block;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    color: var(--text-muted);
}

.contact-list i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.1rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 35, 102, 0.2);
}

.site-info {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-title::after {
        left: 0;
        /* Keep left aligned on mobile too, or center if text-align center */
    }
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .welcome-card,
    .benefits-card,
    .cta-card {
        grid-column: span 1;
        grid-row: auto;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .events-grid,
    .news-grid,
    .benefits-grid,
    .exec-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .logo-grid {
        flex-wrap: wrap;
        gap: 2rem !important;
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }
}

.event-card:hover,
.news-card:hover,
.exec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--accent) !important;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
    z-index: 1001;
    /* Ensure above the overlay */
    position: relative;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--accent);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none !important;
    }

    /* Simple Mobile Menu - Basic Style */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-navigation.toggled {
        display: block;
    }

    /* Hide language switcher by default on mobile */
    .mobile-lang-switch {
        display: none !important;
    }

    /* Show when menu is toggled */
    .main-navigation.toggled .mobile-lang-switch {
        display: flex !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        margin: 0;
        background: white;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .main-navigation ul li {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }

    .main-navigation a {
        color: var(--text-main) !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 15px 20px !important;
        display: block !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        background: white !important;
        border-left: 3px solid transparent !important;
        text-align: center !important;
    }

    .main-navigation a:hover,
    .main-navigation a:focus {
        background: var(--primary) !important;
        color: white !important;
        border-left-color: var(--accent) !important;
        padding-left: 25px !important;
    }

    /* Active/Current Menu Item - Subtle styling */
    .main-navigation .current-menu-item>a,
    .main-navigation .current_page_item>a {
        color: var(--primary) !important;
        font-weight: 600 !important;
        background: rgba(37, 99, 235, 0.1) !important;
        border-left-color: var(--primary) !important;
    }

    /* When hovering over active item, show full color */
    .main-navigation .current-menu-item>a:hover,
    .main-navigation .current_page_item>a:hover {
        background: var(--primary) !important;
        color: white !important;
        border-left-color: var(--accent) !important;
        padding-left: 25px !important;
    }

    /* Dropdowns on mobile */
    .main-navigation ul ul {
        display: none;
        background: #f8f9fa;
        padding-left: 20px;
        position: static;
        min-width: auto;
        box-shadow: none;
        border: none;
    }

    .main-navigation ul li:hover>ul,
    .main-navigation ul li.focus>ul {
        display: block;
    }

    .main-navigation ul ul a {
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
        background: #f8f9fa !important;
    }

    .main-navigation ul ul a:hover {
        background: #e9ecef !important;
    }

    .main-navigation ul ul::before {
        display: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- Cool Course Card Animations --- */
.event-card .event-thumb {
    overflow: hidden;
    position: relative;
}

.event-card .event-thumb img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.event-card:hover .event-thumb img {
    transform: scale(1.1);
}

.event-card .event-overlay {
    transition: all 0.4s ease;
    opacity: 0.9;
}

.event-card:hover .event-overlay {
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%) !important;
    opacity: 1;
}

.event-card .event-thumb h3 {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card:hover .event-thumb h3 {
    transform: translateY(-5px);
}

.event-card .event-date {
    transition: transform 0.4s ease;
    z-index: 5;
}

.event-card:hover .event-date {
    transform: scale(1.05) rotate(3deg);
}

/* --- Hero Typewriter Effect --- */
.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}