/* =======================================
   CSS Variables & Typography Reset
   ======================================= */
:root {
    --primary-color: #1e3a8a;
    /* Deep Blue for professionalism */
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #f59e0b;
    /* Amber/Gold for contrast */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --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);
}

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

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* =======================================
   Typography & Buttons
   ======================================= */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* =======================================
   Navigation Bar
   ======================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: -4px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* =======================================
   Hero Section
   ======================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    height: 140px;
    width: auto;
    margin: 0 auto 25px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* =======================================
   Generic Sections
   ======================================= */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =======================================
   News & Announcements
   ======================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.news-card:hover h3 {
    color: var(--primary-color);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .read-more i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
}

/* =======================================
   Services Grid
   ======================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-box:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-box p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* =======================================
   Footer
   ======================================= */
.footer {
    background-color: #0f172a;
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-desc {
    margin-top: 20px;
    color: #94a3b8;
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links ul li a {
    color: #94a3b8;
    font-size: 0.95rem;
}

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

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =======================================
   Animations & Responsive
   ======================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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