/* ============================================
   TCAS 69 Landing Page - Style System
   คณะสังคมศาสตร์และมนุษยศาสตร์ มหาวิทยาลัยมหิดล
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary:       #1a56a0;
    --primary-dark:  #0e3d75;
    --primary-light: #2e7ad1;
    --accent:        #b8e635;
    --accent-dark:   #8fb800;
    --bg-light:      #e8f0f8;
    --bg-body:       #f5f8fc;
    --white:         #ffffff;
    --text-dark:     #1a2332;
    --text-muted:    #5a6a80;
    --gradient-hero: linear-gradient(135deg, #0e3d75 0%, #1a56a0 40%, #2e7ad1 100%);
    --gradient-accent: linear-gradient(135deg, #b8e635 0%, #8fb800 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(232,240,248,0.7));
    --shadow-sm:     0 2px 8px rgba(26,86,160,0.08);
    --shadow-md:     0 8px 30px rgba(26,86,160,0.12);
    --shadow-lg:     0 16px 50px rgba(26,86,160,0.18);
    --shadow-glow:   0 0 40px rgba(184,230,53,0.3);
    --radius-sm:     12px;
    --radius-md:     20px;
    --radius-lg:     30px;
    --radius-xl:     40px;
    --font-th:       'Noto Sans Thai', sans-serif;
    --font-en:       'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-th);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* ---------- Animation Keyframes ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26,86,160,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.nav-cta {
    background: var(--gradient-accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(184,230,53,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46,122,209,0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-pattern .dot-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-bg-pattern .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(184,230,53,0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-bg-pattern .shape-1 { width: 200px; height: 200px; top: 10%; right: 10%; animation-delay: 0s; }
.hero-bg-pattern .shape-2 { width: 120px; height: 120px; bottom: 20%; left: 5%;  animation-delay: 2s; }
.hero-bg-pattern .shape-3 { width: 80px;  height: 80px;  top: 40%;  right: 30%; animation-delay: 4s; background: rgba(255,255,255,0.05); }

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,230,53,0.15);
    border: 1px solid rgba(184,230,53,0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-th);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(184,230,53,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(184,230,53,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(184,230,53,0.2);
    z-index: -1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,86,160,0.08);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-tag .tag-icon {
    font-size: 1rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-title .highlight {
    color: var(--primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Programs Overview (Section 2) ---------- */
.programs-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184,230,53,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.program-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s ease;
}

.program-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-image-card img {
    width: 100%;
    transition: transform 0.5s ease;
}

.program-image-card:hover img {
    transform: scale(1.03);
}

.program-info {
    padding: 10px 0;
}

.program-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.program-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Admission rounds */
.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.round-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.round-item:hover {
    background: rgba(26,86,160,0.06);
    transform: translateX(4px);
}

.round-name {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    min-width: 110px;
}

.round-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.round-seats {
    margin-left: auto;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Major Groups (Section 3) ---------- */
.majors-section {
    background: var(--bg-body);
    position: relative;
}

.majors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.majors-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    cursor: pointer;
}

.majors-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.major-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.major-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,86,160,0.06);
    transition: all 0.3s ease;
    cursor: default;
}

.major-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,86,160,0.15);
}

.major-number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 800;
}

.major-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.major-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Careers Section (Section 4) ---------- */
.careers-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.careers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.careers-grid.reverse {
    direction: rtl;
}

.careers-grid.reverse > * {
    direction: ltr;
}

.career-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    cursor: pointer;
}

.career-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.career-tag {
    background: var(--bg-light);
    border: 1px solid rgba(26,86,160,0.1);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.career-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.career-tag .tag-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Curriculum Section (Section 5) ---------- */
.curriculum-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.curriculum-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 80% 80%, rgba(184,230,53,0.1) 0%, transparent 50%);
}

.curriculum-section .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.curriculum-section .section-title {
    color: var(--white);
}

.curriculum-section .section-title .highlight {
    color: var(--accent);
}

.curriculum-section .section-desc {
    color: rgba(255,255,255,0.7);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.curriculum-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    cursor: pointer;
}

.curriculum-image:hover {
    transform: scale(1.02);
}

.curriculum-table {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.curriculum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease;
}

.curriculum-row:last-child {
    border-bottom: none;
}

.curriculum-row:hover {
    background: rgba(255,255,255,0.05);
}

.curriculum-row.header {
    background: rgba(184,230,53,0.15);
}

.curr-label {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.curr-label .curr-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
}

.curr-value {
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-en);
    font-size: 1rem;
}

.curr-sub {
    padding-left: 42px;
}

.curr-sub .curr-label {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    font-size: 0.9rem;
}

.curr-sub .curr-value {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.total-credits {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.total-credits .credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 14px 36px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.total-credits .credits-number {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

/* ---------- Medical Records Section (Section 6-7) ---------- */
.medrec-section {
    background: var(--bg-body);
}

.medrec-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.medrec-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.medrec-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    cursor: pointer;
}

.medrec-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ---------- Contact Section ---------- */
.contact-section {
    background: var(--white);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    cursor: pointer;
}

.contact-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid rgba(26,86,160,0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card-title .card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-info-item .info-icon {
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

.contact-info-item a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: var(--gradient-hero);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(184,230,53,0.1) 0%, transparent 60%);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Image Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-hero);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Image Gallery Hover Overlay ---------- */
.image-hover-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.image-hover-overlay::after {
    content: '🔍 คลิกเพื่อขยาย';
    position: absolute;
    inset: 0;
    background: rgba(26,86,160,0.6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
}

.image-hover-overlay:hover::after {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
    }

    .hero-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .program-grid,
    .majors-grid,
    .careers-grid,
    .curriculum-grid,
    .medrec-hero,
    .medrec-features,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .careers-grid.reverse {
        direction: ltr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(14,61,117,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 32px;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 14px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .round-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .round-seats {
        margin-left: 0;
    }

    .career-tags {
        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .major-card {
        padding: 20px;
    }

    .curriculum-row {
        padding: 14px 18px;
        flex-wrap: wrap;
        gap: 4px;
    }
}
