@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #fdfdfd;
    --card-bg: #ffffff;
    --primary-green: #10b981;
    --primary-light: #ecfdf5;
    --secondary-yellow: #fbbf24;
    --secondary-light: #fffbeb;
    --text-main: #064e3b;
    /* Deep Green */
    --text-muted: #10b981;
    /* Medium Green */
    --border-color: #d1fae5;
    --shadow-sm: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(16, 185, 129, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 0% 0%, var(--primary-light) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, var(--secondary-light) 0%, transparent 40%);
    background-attachment: fixed;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo {
    height: clamp(36px, 8vw, 48px);
    width: auto;
}

.logo {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main {
    padding-top: clamp(7rem, 20vw, 10rem);
    padding-bottom: 3rem;
    overflow-x: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto clamp(3rem, 10vw, 6rem);
    padding: 0 1.5rem;
}

.thai-title {
    font-size: clamp(0.8rem, 3vw, 1rem);
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.main-nics {
    font-size: clamp(3.5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-green), var(--secondary-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.english-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* 3 Core Buttons */
.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto clamp(4rem, 12vw, 8rem);
    padding: 0 1.5rem;
}

.tech-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: clamp(1.5rem, 5vw, 3rem) 1.5rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
    min-height: clamp(180px, 30vh, 420px);
    justify-content: flex-start;
}

@media (hover: hover) {
    .tech-btn:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-green);
        animation: bounce 2s infinite ease-in-out;
    }

    .tech-btn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent);
        transform: rotate(45deg);
        transition: 0.6s;
        opacity: 0;
    }

    .tech-btn:hover::after {
        opacity: 1;
        left: 100%;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-12px) scale(1.02);
    }

    50% {
        transform: translateY(-18px) scale(1.02);
    }
}

.btn-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-title {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.btn-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Activities Section */
.activities-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    content-visibility: auto;
    contain-intrinsic-size: 0 1000px;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 8vw, 4rem);
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--primary-green);
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: white;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.activity-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Conclusion */
.conclusion-box {
    margin-top: clamp(4rem, 12vw, 8rem);
    background: linear-gradient(to right bottom, var(--primary-light), white);
    padding: clamp(2rem, 10vw, 4rem) 1.5rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--primary-green);
}

.aim-text {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.final-cta {
    font-size: clamp(1.3rem, 5vw, 1.75rem);
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.3;
}

footer {
    margin-top: 4rem;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }

    .button-container {
        gap: 0.75rem !important;
        padding: 0 1rem !important;
    }

    .tech-btn {
        min-height: auto !important;
        padding: 1rem !important;
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        gap: 1rem !important;
        border-radius: 16px !important;
        justify-content: flex-start !important;
    }

    .btn-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }

    .btn-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.2 !important;
    }

    .btn-desc {
        font-size: 0.75rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
    }
}