/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1F2937;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sarabun', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 87.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 87.5rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1.5rem rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #1E3A8A;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(30, 58, 138, 0.3);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #FFFFFF;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(59, 130, 246, 0.4);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 37.5rem;
    margin: 0 auto;
}

/* Cards */
.card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Cookies Consent Modal */
.cookies-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.cookies-consent.show {
    transform: translateY(0);
}

.cookies-consent-content {
    max-width: 87.5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookies-consent-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 18.75rem;
}

.cookies-consent-text i {
    font-size: 2rem;
    color: #F59E0B;
    flex-shrink: 0;
}

.cookies-consent-text p {
    color: #FFFFFF;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookies-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.75rem rgba(59, 130, 246, 0.4);
}

.btn-reject {
    padding: 0.75rem 1.5rem;
    background: #6B7280;
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #4B5563;
    transform: scale(1.05);
}

/* Header and Navigation */
.header {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-container {
    max-width: 87.5rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-menu li a {
    color: #1F2937;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: width 0.3s ease;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: #3B82F6;
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1F2937;
    cursor: pointer;
    padding: 0.5rem;
}

/* Footer */
.footer {
    background: #1F2937;
    color: #E5E7EB;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 2.5rem;
    width: auto;
}

.footer-logo-text {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-description {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3B82F6;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-contact i {
    color: #3B82F6;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #3B82F6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-menu {
        position: fixed;
        top: 4.5rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4.5rem);
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid #E5E7EB;
    }

    .navbar-menu li a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .navbar-toggle {
        display: block;
    }

    .btn-download span {
        display: none;
    }

    .cookies-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookies-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-accept,
    .btn-reject {
        flex: 1;
        max-width: 12.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .cookies-consent {
        padding: 1rem;
    }

    .cookies-consent-text {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

