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

:root {
    /* Fallback default color palette - overridden dynamically by database settings in header.php */
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #172554;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --bg-light: #f9fafb;
    --surface: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    
    --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 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(30, 58, 138, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', 'Kanit', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
}

/* Sticky Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Prompt', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span.sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Prompt', sans-serif;
    transition: var(--transition);
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

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

.nav-cta {
    background: var(--secondary-color);
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    background: #e08f0a;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Page Hero Banner */
.page-hero {
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.05" width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 100 L100 0" stroke="%23fff" stroke-width="2"/></svg>') repeat;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 3rem;
    color: white !important;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

.page-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    background: transparent !important;
    padding: 0 !important;
    line-height: 1.6;
    display: block !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px 40px;
        min-height: 200px;
    }
    .page-hero h1 {
        font-size: 2.25rem;
    }
    .page-hero p {
        font-size: 1.05rem;
    }
}

/* Section Common */
section {
    padding: 80px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--secondary-color);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Hero Section Carousel */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    color: var(--text-light);
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--text-light);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
    font-weight: 300;
}

.hero-content .hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s;
}

.hero-slide.active .hero-content h2,
.hero-slide.active .hero-content p,
.hero-slide.active .hero-content .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Ideology Section */
.ideology-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ideology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.ideology-card:hover::before {
    height: 8px;
    background: var(--secondary-color);
}

.ideology-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
    transition: var(--transition);
}

.ideology-card:hover .ideology-icon-box {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: scale(1.1) rotate(5deg);
}

.ideology-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Achievements Portfolio */
.achievements-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition-slow);
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.achievement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.achievement-item:hover {
    transform: scale(1.02);
}

.achievement-item:hover .achievement-img {
    transform: scale(1.1);
}

.achievement-item:hover .achievement-overlay {
    opacity: 1;
}

.achievement-overlay h4 {
    color: var(--text-light);
    margin: 0 0 5px 0;
    font-size: 1.15rem;
}

.achievement-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.85rem;
}

/* Management Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

.team-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
}

.team-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.2);
}

.team-card:hover .team-img-wrapper {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

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

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.team-quote {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    position: relative;
    padding: 0 10px;
}

/* Departments cards */
.department-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.dept-header-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dept-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.department-card:hover .dept-header-img img {
    transform: scale(1.08);
}

.dept-color-bar {
    height: 6px;
    width: 100%;
}

.dept-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dept-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.dept-head {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dept-head span {
    font-weight: 600;
    color: var(--primary-color);
}

.dept-quote {
    background: var(--bg-light);
    border-left: 3px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

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

/* Activities masonry & Lightbox */
.activities-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 900px) {
    .activities-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .activities-masonry {
        column-count: 1;
    }
}

.activity-brick {
    background: var(--surface);
    display: inline-block;
    margin: 0 0 1.5rem 0;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.activity-brick img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

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

.activity-brick:hover img {
    transform: scale(1.03);
}

.activity-caption {
    padding: 1.25rem 1.5rem;
}

.activity-caption h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.activity-caption p {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: block;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* News List & Cards */
.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-img-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.news-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    box-shadow: var(--shadow-sm);
}

.news-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: var(--transition);
}

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

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-readmore {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    align-self: flex-start;
}

.news-readmore:hover {
    color: var(--secondary-color);
    gap: 8px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3.5rem;
}

.pagination-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 231, 235, 0.8);
    background: var(--surface);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-item:hover, .pagination-item.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: 3rem;
}

@media (max-width: 640px) {
    .form-card {
        padding: 1.5rem;
    }
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #f9fafb;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 16px rgba(30, 58, 138, 0.2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #f97316);
    color: var(--text-dark);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-lg), 0 8px 16px rgba(245, 158, 11, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

/* Floating Actions & Utilities */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

/* Footer Section */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.65);
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-title {
    font-family: 'Prompt', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-col h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* HTML drawer menu hack */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -4px 0 10px rgba(0,0,0,0.05);
        z-index: 999;
        transition: var(--transition);
        padding: 2rem;
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    nav a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
    .header-container {
        padding: 0 1rem;
    }
}
