/* ============================================
   SMA Negeri 2 Singkep - Public Website CSS
   Ultra Modern, Premium, & Responsive Design
   Color Identity: Deep Navy Blue, Royal Blue, Gold Accent, Pure White
   ============================================ */

:root {
    --primary: #0f2a4a;
    --primary-gradient: linear-gradient(135deg, #0b1e36 0%, #173b67 55%, #1e4a82 100%);
    --primary-light: #2563eb;
    --primary-dark: #0a1727;
    --secondary: #3b82f6;
    --accent: #d4a843;
    --accent-light: #fef3c7;
    --accent-hover: #b88d30;
    --accent-gradient: linear-gradient(135deg, #d4a843 0%, #f3c358 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #091322;
    --bg-surface: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(15, 42, 74, 0.12);
    --shadow-xl: 0 20px 35px -10px rgba(15, 42, 74, 0.2);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14.5px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Top Bar */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar-info {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-info span, .top-bar-info a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.top-bar-info a:hover {
    color: #fff;
}
.top-bar-social {
    display: flex;
    gap: 14px;
    align-items: center;
}
.top-bar-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.top-bar-social a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}
.top-bar-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.35);
    color: #fef08a !important;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}
.top-bar-login-btn:hover {
    background: var(--accent);
    color: #0f172a !important;
    border-color: var(--accent);
}

/* Header & Navbar */
.site-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
}

/* Brand Logo & Name */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}
.brand-logo-fallback {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-text h1 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.2px;
}
.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    margin: 2px 0 0;
    font-weight: 600;
    text-transform: uppercase;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary-light);
    background: #f1f5f9;
}
.nav-link.active {
    color: var(--primary-light);
    background: #eff6ff;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    border: 1px solid var(--border-color);
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1100;
}
.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: var(--transition);
}
.dropdown-item a:hover {
    background: #f8fafc;
    color: var(--primary-light);
    padding-left: 24px;
}

/* PPDB CTA Button in Navbar */
.nav-ppdb {
    background: var(--accent-gradient);
    color: #0f172a !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    padding: 9px 20px !important;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.35);
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-ppdb:hover {
    background: #e6b84d;
    box-shadow: 0 6px 18px rgba(212, 168, 67, 0.5);
    transform: translateY(-1px);
    color: #000 !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-toggle:hover {
    background: #e2e8f0;
}

/* ============================================
   HERO SECTION (2-Column Premium Layout)
   ============================================ */
.hero {
    position: relative;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 70px 0 80px;
    overflow: hidden;
}
.hero:not(.has-custom-bg)::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 85% 25%, rgba(212, 168, 67, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 15% 75%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}
.hero.has-custom-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 650px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: #fef08a;
    margin-bottom: 22px;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #ffffff;
}
.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary {
    background: var(--accent-gradient);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 168, 67, 0.5);
    color: #000;
}
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #fff;
}
.btn-hero-ppdb {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
}
.btn-hero-ppdb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.6);
}

/* Hero Right Card (Glassmorphism Info Card - Kept for backwards compatibility) */
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.hero-card-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}
.hero-card-header-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hero-card-header-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin: 2px 0 0;
}
.hero-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.hero-stat-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}
.hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #fef08a;
    line-height: 1.1;
}
.hero-stat-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}
.hero-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

/* ============================================
   HERO VIDEO CARD (Dynamic Admin-Managed Video)
   ============================================ */
.hero-video-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.hero-video-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.25), transparent 70%);
    pointer-events: none;
}
.hero-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hero-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}
.hero-video-pulse {
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.hero-video-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}
.hero-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: var(--radius-lg);
}
.hero-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #091a2f, #1e3a5f);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.hero-video-placeholder-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero-video-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.5);
    transition: var(--transition);
}
.hero-video-placeholder:hover .hero-video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 26px rgba(212, 168, 67, 0.75);
}
.hero-video-placeholder-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hero-video-placeholder-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin: 4px 0 0;
    max-width: 300px;
    line-height: 1.5;
}
.hero-video-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-video-school-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.hero-video-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fef08a;
    font-weight: 600;
    font-size: 11.5px;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, #92400e, #d97706);
    color: #ffffff;
    padding: 11px 0;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.announcement-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.announcement-badge {
    background: #ffffff;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.section {
    padding: 75px 0;
}
.section-muted {
    background-color: #ffffff;
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.section-tag {
    display: inline-block;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}
.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 14.5px;
}

/* Principal Greeting Card */
.greeting-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 44px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 44px;
    align-items: center;
}
.greeting-photo {
    width: 240px;
    height: 290px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: var(--shadow-md);
}
.greeting-photo-placeholder {
    width: 240px;
    height: 290px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.greeting-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.greeting-text {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 24px;
}
.greeting-author h4 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--primary);
}
.greeting-author p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stat Box Grid */
.stat-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.stat-box-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.stat-box-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat-box-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Grids */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* News Card */
.news-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.news-thumb {
    height: 190px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-thumb img {
    transform: scale(1.06);
}
.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}
.news-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.news-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Event List Card */
.event-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    margin-bottom: 14px;
}
.event-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.event-date-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 12px 10px;
    min-width: 65px;
    text-align: center;
    flex-shrink: 0;
}
.event-date-day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.event-date-month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}
.event-info h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.event-info p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Teacher Card */
.teacher-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    padding: 26px 18px;
    transition: var(--transition);
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.teacher-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-sm);
    border: 3px solid #f1f5f9;
}
.teacher-avatar-default {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.teacher-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.teacher-position {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 65px 0;
    text-align: center;
    position: relative;
}
.cta-section h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 28px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 65px 0 24px;
    font-size: 13.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1.5fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-col h3 {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}
.footer-col p {
    line-height: 1.75;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
}

/* Subpage Header */
.subpage-header {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 48px 0;
}
.subpage-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.subpage-breadcrumb {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}
.subpage-breadcrumb a {
    color: #ffffff;
    font-weight: 500;
}
.subpage-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   PROFILE & SUBPAGE RESPONSIVE STYLES
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.profile-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}

.profile-sidebar-header {
    padding: 16px 20px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-sidebar-nav {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.profile-nav-link:hover {
    background: #f8fafc;
    color: var(--primary-light);
    padding-left: 24px;
}

.profile-nav-link.active {
    font-weight: 700;
    color: var(--primary-light);
    background: #eff6ff;
    border-left-color: var(--primary-light);
}

.profile-content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.profile-content-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.profile-principal-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.profile-principal-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.profile-accreditation-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* General Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary-light);
    color: #ffffff;
}
.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ============================================ */

@media (max-width: 1080px) {
    .navbar {
        height: 74px;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 24px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid var(--border-color);
        display: none;
        gap: 6px;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1100;
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
        font-size: 14px;
    }
    .dropdown-chevron {
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        padding: 6px 0;
        transform: none;
        display: none;
        opacity: 1;
        background: #f8fafc;
        border-radius: var(--radius-md);
        margin: 4px 0 8px;
    }
    .nav-item.has-dropdown.open .dropdown-menu {
        display: block !important;
    }
    .nav-item.has-dropdown.open .dropdown-chevron {
        transform: rotate(180deg);
    }
    .dropdown-item a {
        padding: 10px 18px;
        font-size: 13px;
    }
    .nav-ppdb {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-card, .hero-video-card {
        max-width: 580px;
        width: 100%;
        margin: 0 auto;
    }
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .greeting-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }
    .greeting-photo, .greeting-photo-placeholder {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-bar-info span:not(:first-child) {
        display: none;
    }
    .hero {
        padding: 50px 0 60px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-outline,
    .hero-actions .btn-hero-ppdb {
        width: 100%;
        justify-content: center;
    }
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    .stat-counter-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 24px;
    }
    .subpage-title {
        font-size: 24px;
    }
}

/* Profile & Layout Responsive Overrides */
@media (max-width: 960px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-sidebar {
        position: static;
        border-radius: var(--radius-md);
    }
    .profile-sidebar-header {
        padding: 12px 16px;
        font-size: 13px;
    }
    .profile-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        gap: 6px;
        scrollbar-width: thin;
    }
    .profile-sidebar-nav::-webkit-scrollbar {
        height: 4px;
    }
    .profile-sidebar-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .profile-nav-link {
        white-space: nowrap;
        border-radius: var(--radius-sm);
        border-left: none;
        padding: 8px 14px;
        font-size: 12.5px;
        background: #f1f5f9;
        flex-shrink: 0;
    }
    .profile-nav-link:hover {
        padding-left: 14px;
    }
    .profile-nav-link.active {
        background: var(--primary-gradient);
        color: #ffffff !important;
        box-shadow: var(--shadow-sm);
    }
    .profile-content-card {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .subpage-header {
        padding: 32px 0;
    }
    .subpage-title {
        font-size: 22px;
    }
    .profile-content-card {
        padding: 18px 14px;
    }
    .profile-content-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .profile-principal-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 18px;
    }
    .profile-principal-photo,
    .profile-principal-grid .greeting-photo-placeholder {
        margin: 0 auto;
        width: 160px !important;
        height: 200px !important;
    }
    .profile-accreditation-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
        gap: 16px;
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    .data-table {
        min-width: 440px;
    }
    .data-table td {
        padding: 10px 12px;
        font-size: 12.5px;
    }
}

