
/* ===== CSS VARIABLES ===== */
:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --primary: #0b4a7a;
    --primary-dark: #073a5e;
    --primary-light: #0f5c94;
    --accent: #f6b428;
    --accent-dark: #d99d1f;
    --accent-light: #f9c653;
    --muted: #6b7280;
    --text-dark: #0f1724;
    --text-light: #374151;
    --border: #e6e9ef;

    /* Layout */
    --maxw: 1200px;
    --header-h: 72px;
    --spacing: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.04);
    --shadow-md: 0 4px 16px rgba(2, 6, 23, 0.06);
    --shadow-lg: 0 8px 28px rgba(2, 6, 23, 0.08);
    --shadow-xl: 0 12px 36px rgba(11, 74, 122, 0.12);
    --shadow-hover: 0 16px 40px rgba(11, 74, 122, 0.15);

    /* Transitions */
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
    --glass: rgba(255, 255, 255, 0.6);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg);
    padding-top: var(--header-h);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 94%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.site-header {
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Brand Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform var(--transition);
    z-index: 1100;
}

.brand:hover {
    transform: scale(1.03);
}

.brand-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.brand:hover .brand-logo {
    transform: scale(1.1);
}

.brand-text {
    white-space: nowrap;
}

/* Navigation Menu */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    display: inline-block;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    display: block;
}

.nav .btn-primary {
    color: #fff;
}

/* Nav link underline animation */
.nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav a:hover,
.nav a:focus {
    color: var(--primary);
    background: rgba(11, 74, 122, 0.06);
}

.nav a:hover::after {
    width: 60%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(11, 74, 122, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 28px rgba(11, 74, 122, 0.35);
    outline: none;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(11, 74, 122, 0.25);
}


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

.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 74, 122, 0.25);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1100;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Hamburger animation */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

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

/* Slide background with Ken Burns effect */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    padding: 20px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content .slide-highlight {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

/* Slider Navigation Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.slider-nav-btn:hover,
.slider-nav-btn:focus {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Slider Thumbnails */
.slider-thumb-strip {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.thumb-btn {
    width: 90px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0.7;
}

.thumb-btn:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.thumb-btn[aria-current="true"] {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(246, 180, 40, 0.5);
}

/* Slider Dot Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
}

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

.section-alt {
    background: #fbfcfe;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.gap-lg {
    gap: 50px;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid rgba(11, 74, 122, 0.08);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(11, 74, 122, 0.15);
}

.card h2,
.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Image Cards */
.image-card img,
.course-card img {
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

/* ===== WELCOME SECTION ===== */
.section-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.welcome-card {
    padding: 40px;
}

.welcome-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.welcome-card p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.welcome-card .highlight {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 20px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(246, 180, 40, 0.2);
}

/* ===== VIDEO PLAYER ===== */
.video-card {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-xl);
    position: relative;
    max-width: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Video Play Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 6;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.play-overlay .fa-play,
.play-overlay i {
    font-size: 56px;
    line-height: 1;
    color: #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 6px 18px rgba(2, 6, 23, 0.45));
    transition: transform var(--transition), opacity var(--transition);
}

.play-overlay:hover .fa-play,
.play-overlay:focus .fa-play {
    transform: scale(1.08);
    opacity: 1;
}

/* Hide overlay when video is playing */
.video-card.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    visibility: hidden;
}

.play-overlay:focus,
.play-overlay:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 74, 122, 0.18);
    border-radius: var(--radius-lg);
}

.video-wrapper.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.02) 100%);
    z-index: 5;
}

.video-controls {
    display: none;
}

.video-wrapper:focus-within .play-overlay {
    box-shadow: 0 8px 30px rgba(11, 74, 122, 0.12);
}

/* ===== NOTICE BOARD ===== */
.notice-board {
    padding: 80px 0;
    background: var(--bg);
}

.notice-left {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 450px;
    box-shadow: var(--shadow-lg);
}

.notice-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.notice-left:hover img {
    transform: scale(1.08);
}

.notice-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(11, 74, 122, 0.95) 0%, transparent 100%);
    padding: 35px 30px;
    transition: all var(--transition);
}

.notice-overlay h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.notice-overlay p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    opacity: 0.95;
}

.notice-overlay .btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
}

.notice-overlay .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Notice List Panel */
.notice-right {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 74, 122, 0.06);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.notice-header {
    margin-bottom: 24px;
}

.notice-header h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.notice-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-controls input,
.notice-controls select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    flex: 1;
    min-width: 150px;
    transition: border-color var(--transition);
}

.notice-controls input:focus,
.notice-controls select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 74, 122, 0.1);
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    flex-grow: 1;
}

.notice-card {
    display: flex;
    align-items: center;
    background: #fefefe;
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.notice-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 74, 122, 0.1);
    background: #fff;
}

.notice-date-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 18px;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 74, 122, 0.25);
}

.notice-day {
    font-size: 22px;
    line-height: 1;
}

.notice-month {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.notice-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.notice-more {
    margin-top: 20px;
    text-align: center;
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--muted);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.modal-head h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 700;
}

.modal-head time {
    font-size: 0.9rem;
    color: var(--muted);
}

.modal-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== COURSE CARDS ===== */
.course-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
}

.course-card>div {
    padding: 25px;
}

.course-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.course-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.course-card .btn {
    margin-top: 10px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

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

.gallery-item .overlay i {
    color: #fff;
    font-size: 2rem;
}

/* ===== GALLERY MODAL ===== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease forwards;
}

.gallery-modal .modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

/* ===== CLOSE BUTTON ===== */
.gallery-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gallery-modal .close:hover {
    color: red;
    transform: rotate(90deg);
}

/* ===== NAVIGATION ARROWS ===== */
.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
    /* prevent blocking modal image */
}

.modal-nav button {
    pointer-events: all;
    border: none;
    color: #504d4d;
    font-size: 2.5rem;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
}

.modal-nav button:hover {
    transform: scale(1.2);
    color: #504d4d;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/*                                               */
.section-alt {
    background: #f8f9fa;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 30px;
    text-align: center;
}

.counter-card {
    background: #ffffff;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.counter-icon {
    font-size: 2.5rem;
    color: #0b4a7a;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.counter-card:hover .counter-icon {
    transform: scale(1.1);
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0b4a7a;
    margin-bottom: 6px;
}

.counter-card p {
    font-weight: 500;
    color: #555;
    margin: 0;
}


/*news section*/
.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    color: #0b4a7a;
    margin-bottom: 8px;
}

.section-header .muted {
    color: #555;
    font-size: 0.95rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.news-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.2rem;
    color: #0b4a7a;
    margin-bottom: 10px;
}

.news-content p {
    color: #555;
    font-size: 0.95rem;
    flex: 1;
}

.news-content .btn-outline {
    align-self: flex-start;
    padding: 6px 15px;
    font-size: 0.85rem;
    border: 1px solid #0b4a7a;
    color: #0b4a7a;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-content .btn-outline:hover {
    background: #0b4a7a;
    color: #fff;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

h5 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 4px 0 0;
}





/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color var(--transition);
}

footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
}

footer h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: var(--radius-sm);
}

footer p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.footer-about .footer-social {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 16px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li i,
.footer-contact li i {
    color: var(--accent);
    min-width: 18px;
}

.footer-newsletter form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-newsletter input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.footer-newsletter .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary);
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(11, 74, 122, 0.25);
}

.footer-newsletter .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 74, 122, 0.35);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}


/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* ===== Large Tablets & Small Desktops (1024px and below) ===== */
@media (max-width: 1024px) {
    :root {
        --spacing: 0.875rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 3rem;
    }

    .container {
        width: 95%;
    }

    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }

    /* Section spacing */
    .section {
        padding: 60px 0;
    }

    /* Hero adjustments */
    .hero {
        max-height: 700px;
    }

    .slide-content h2 {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    /* Slider controls repositioning */
    .slider-controls {
        bottom: 20px;
        left: 20px;
    }

    .slider-thumb-strip {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }

    .thumb-btn {
        width: 70px;
        height: 50px;
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ===== Tablets (768px and below) ===== */
@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --spacing: 0.75rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 2.5rem;
    }

    body {
        padding-top: 64px;
    }

    /* Header & Navigation */
    .header-inner {
        gap: 16px;
    }

    .brand {
        font-size: 1rem;
        gap: 10px;
    }

    .brand-logo {
        height: 40px;
        width: 40px;
    }

    /* Mobile menu toggle */
    .menu-toggle {
        display: flex;
    }

    /* Mobile navigation */
    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        width: 100%;
    }

    .nav a::after {
        display: none;
    }

    /* Hero adjustments */
    .hero {
        min-height: 450px;
        max-height: 600px;
    }

    .slide-content {
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .slide-content .slide-highlight {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .slide-content p {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    /* Hide thumbnail strip on tablets */
    .slider-thumb-strip {
        display: none;
    }

    .slider-controls {
        bottom: 15px;
        left: 15px;
        gap: 8px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-indicators {
        bottom: 15px;
    }

    /* Grid layouts */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* Section adjustments */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Welcome section */
    .welcome-card {
        padding: 30px;
    }

    .welcome-card h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    /* Notice board */
    .notice-board {
        padding: 50px 0;
    }

    .notice-left {
        min-height: 350px;
    }

    .notice-overlay {
        padding: 25px 20px;
    }

    .notice-overlay h3 {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
    }

    .notice-right {
        padding: 25px;
        min-height: auto;
    }

    .notice-controls {
        flex-direction: column;
        gap: 10px;
    }

    .notice-controls input,
    .notice-controls select {
        width: 100%;
        min-width: auto;
    }

    .notice-card {
        padding: 14px 16px;
    }

    .notice-date-box {
        width: 55px;
        height: 55px;
        margin-right: 14px;
    }

    .notice-day {
        font-size: 18px;
    }

    .notice-month {
        font-size: 10px;
    }

    .notice-title {
        font-size: 0.95rem;
    }

    /* Modal */
    .modal {
        width: 92%;
        padding: 25px;
        max-height: 90vh;
    }

    .modal-head h3 {
        font-size: 1.4rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .gallery-item img {
        height: 150px;
    }

    /* Course cards */
    .course-card img {
        height: 200px;
    }

    .course-card>div {
        padding: 20px;
    }

    /* Counters */
    .counters-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }

    .counter-card {
        padding: 20px 12px;
    }

    .counter-icon {
        font-size: 2rem;
    }

    .counter-number {
        font-size: 1.6rem;
    }

    /* News section */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    footer h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-about .footer-social {
        justify-content: center;
    }

    .footer-links ul,
    .footer-contact ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-newsletter form {
        justify-content: center;
    }

    .footer-newsletter input[type="email"] {
        min-width: 200px;
    }

    footer {
        padding: 50px 0 25px;
    }
}

/* ===== Mobile Phones (480px and below) ===== */
@media (max-width: 480px) {
    :root {
        --header-h: 60px;
        --spacing: 0.625rem;
        --spacing-lg: 1rem;
        --spacing-xl: 2rem;
    }

    body {
        padding-top: 60px;
        font-size: 0.95rem;
    }

    .container {
        width: 96%;
        padding: 0 0.5rem;
    }

    /* Header */
    .site-header {
        height: 60px;
    }

    .brand {
        font-size: 0.9rem;
        gap: 8px;
    }

    .brand-logo {
        height: 35px;
        width: 35px;
    }

    .menu-toggle {
        gap: 4px;
        padding: 6px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    /* Navigation */
    .nav {
        top: 60px;
        padding: 15px;
    }

    .nav a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        max-height: 500px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h2 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 0.8rem;
    }

    .slide-content .slide-highlight {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .slider-controls {
        bottom: 10px;
        left: 10px;
        gap: 6px;
    }

    .slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .slider-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Cards */
    .card {
        padding: 20px;
    }

    /* Welcome section */
    .welcome-card {
        padding: 20px;
    }

    .welcome-card h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .welcome-card p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .welcome-card .highlight {
        padding: 15px;
        font-size: 0.95rem;
    }

    /* Video */
    .video-wrapper {
        aspect-ratio: 16/9;
    }

    .play-overlay .fa-play,
    .play-overlay i {
        font-size: 42px;
    }

    /* Notice board */
    .notice-board {
        padding: 40px 0;
    }

    .notice-left {
        min-height: 280px;
    }

    .notice-overlay {
        padding: 20px 15px;
    }

    .notice-overlay h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: 8px;
    }

    .notice-overlay p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .notice-right {
        padding: 20px;
    }

    .notice-header h2 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        margin-bottom: 12px;
    }

    .notice-card {
        padding: 12px;
    }

    .notice-card:hover {
        transform: translateX(4px);
    }

    .notice-date-box {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .notice-day {
        font-size: 16px;
    }

    .notice-month {
        font-size: 9px;
    }

    .notice-title {
        font-size: 0.9rem;
    }

    /* Modal */
    .modal {
        width: 94%;
        padding: 20px;
        max-height: 92vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modal-head {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .modal-head h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .modal-head time {
        font-size: 0.85rem;
    }

    .modal-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .gallery-item .overlay i {
        font-size: 1.5rem;
    }

    .gallery-modal .close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }

    .modal-nav {
        padding: 0 10px;
    }

    .modal-nav button {
        font-size: 2rem;
        padding: 8px 12px;
    }

    /* Course cards */
    .course-card img {
        height: 180px;
    }

    .course-card>div {
        padding: 18px;
    }

    .course-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .course-card p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* Counters */
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .counter-card {
        padding: 18px 10px;
    }

    .counter-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .counter-number {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .counter-card p {
        font-size: 0.85rem;
    }

    /* News section */
    .news-card {
        margin-bottom: 0;
    }

    .news-thumb img {
        height: 160px;
    }

    .news-content {
        padding: 18px;
    }

    .news-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    .news-content .btn-outline {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 30px;
    }

    footer h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    footer p {
        font-size: 0.9rem;
    }

    .footer-about .footer-social {
        margin-top: 12px;
        gap: 12px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .footer-links li,
    .footer-contact li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .footer-newsletter input[type="email"] {
        padding: 9px 12px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }

    .footer-newsletter .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 0.8rem;
    }
}

/* ===== Extra Small Devices (360px and below) ===== */
@media (max-width: 360px) {
    .brand-text {
        display: none;
    }

    .slide-content h2 {
        font-size: 1.2rem;
    }

    .slide-content .slide-highlight {
        font-size: 0.85rem;
    }

    .slide-content p {
        font-size: 0.8rem;
    }

    .counters-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Landscape mode adjustments ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        max-height: none;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-content .slide-highlight {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .slider-controls,
    .slider-indicators {
        bottom: 10px;
    }
}

/* ===== Print styles ===== */
@media print {

    header,
    .menu-toggle,
    .slider-controls,
    .slider-thumb-strip,
    .slider-indicators,
    .play-overlay,
    footer {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .section {
        page-break-inside: avoid;
    }

    .card,
    .notice-card,
    .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}