/* ==========================================================================
   STYLING SYSTEM FOR SMP NEGERI 3 METRO
   Inspirasi Desain: ummetro.ac.id
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --primary-color: #0038f1;      /* Deep Academic Green (Muhammadiyah Green) */
    --primary-light: #127c46;      /* Lighter Forest Green */
    --primary-dark: #010a58;       /* Very Dark Green */
    --secondary-color: #0c2461;    /* Royal Navy Blue */
    --accent-color: #e5a93b;       /* Gold/Yellow Accent */
    --accent-light: #f3ce7e;       /* Light Gold Accent */
    --text-dark: #1e272e;          /* Dark Text for Readability */
    --text-muted: #57606f;         /* Secondary Muted Text */
    --bg-light: #f8f9fa;           /* Off-White Page Background */
    --bg-white: #ffffff;           /* Pure White */
    --border-color: #e2e8f0;       /* Border Color */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(11, 82, 46, 0.1);
    --border-radius: 12px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

li {
    list-style: none;
}

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

/* --- SECTION CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-bg-alt {
    background-color: var(--bg-white);
}

/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 15px auto 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(11, 82, 46, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 82, 46, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(12, 36, 97, 0.2);
}

.btn-secondary:hover {
    background-color: #1e3799;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(12, 36, 97, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(229, 169, 59, 0.2);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 169, 59, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   LAYOUT: HEADER & NAVIGATION (Inspirasi UM Metro)
   ========================================================================== */

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info, .top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-info i {
    color: var(--accent-color);
}

.top-bar-socials {
    display: flex;
    gap: 12px;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.top-bar-socials a:hover {
    color: var(--accent-color);
}

.top-bar-links a {
    color: var(--bg-white);
    background-color: rgba(255,255,255,0.1);
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
}

.top-bar-links a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* --- MAIN HEADER --- */
.main-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--accent-color) 20%, var(--primary-color) 80%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.6rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 2px solid var(--accent-light);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- NAV MENUS --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    border-radius: 6px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary-color);
    background-color: rgba(11, 82, 46, 0.05);
}

/* --- DROPDOWNS --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* --- MENU MOBILE BUTTON --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   HOMEPAGE: HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 600px;
    background-color: #111;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(7, 33, 19, 0.9) 30%, rgba(12, 36, 97, 0.4) 100%);
}

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

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 650px;
    transform: translateY(30px);
    transition: transform 1s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.slide-content h2 span {
    color: var(--accent-color);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.slide-btns {
    display: flex;
    gap: 15px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

/* ==========================================================================
   HOMEPAGE: QUICK PORTALS (Akses Cepat)
   ========================================================================== */
.portals-section {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portal-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 4px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 60%, rgba(0,0,0,0.03) 100%);
    z-index: 1;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.portal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.portal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.portal-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-link i {
    transition: transform 0.2s ease;
}

.portal-card:hover .portal-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   HOMEPAGE: WELCOME MESSAGE (Sambutan Kepala Sekolah)
   ========================================================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.welcome-image-container {
    position: relative;
}

.welcome-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 480px;
    border: 5px solid var(--bg-white);
}

.welcome-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-md);
    line-height: 1.2;
}

.welcome-badge span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(12, 36, 97, 0.8);
    text-transform: uppercase;
}

.welcome-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text h2 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.welcome-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.welcome-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 25px 0;
}

.welcome-author {
    margin-top: 30px;
}

.welcome-author h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.welcome-author p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   HOMEPAGE: STATISTICS COUNTER
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   HOMEPAGE: NEWS, ANNOUNCEMENT & AGENDA (Tabs Layout)
   ========================================================================== */
.news-tabs-container {
    margin-top: 30px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Grid Layouts for Tabs */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11,82,46,0.2);
}

.news-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Announcement List Styles */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.announcement-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.announcement-date {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
    border: 1px solid var(--border-color);
}

.announcement-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.announcement-date .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.announcement-details {
    flex-grow: 1;
}

.announcement-details h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.announcement-details h3 a:hover {
    color: var(--primary-color);
}

.announcement-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Agenda List Styles */
.agenda-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.agenda-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    border-top: 4px solid var(--accent-color);
}

.agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.agenda-date {
    background-color: rgba(229, 169, 59, 0.1);
    color: #b27a1c;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-date .day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-date .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agenda-details {
    flex-grow: 1;
}

.agenda-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.agenda-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agenda-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-info i {
    color: var(--primary-color);
}

/* ==========================================================================
   PAGE: PROFIL (Profil Sekolah)
   ========================================================================== */
.page-banner {
    background: linear-gradient(rgba(11, 82, 46, 0.85), rgba(12, 36, 97, 0.85)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* Visi Misi Layout */
.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.visimisi-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--primary-color);
}

.visimisi-card.misi {
    border-top-color: var(--accent-color);
}

.visimisi-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visimisi-card h3 i {
    color: var(--accent-color);
}

.visi-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--primary-color);
    text-align: center;
    padding: 20px 0;
}

.misi-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.misi-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Guru Grid */
.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.guru-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.guru-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.guru-img {
    height: 250px;
    background-color: #eee;
    overflow: hidden;
}

.guru-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guru-info {
    padding: 20px;
}

.guru-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.guru-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   PAGE: AKADEMIK & KESISWAAN
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.table-custom th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 20px;
    font-weight: 600;
}

.table-custom td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:nth-child(even) {
    background-color: rgba(0,0,0,0.01);
}

/* Facilities Cards */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fac-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.fac-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.fac-img {
    height: 200px;
    overflow: hidden;
}

.fac-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fac-info {
    padding: 20px;
}

.fac-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.fac-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PAGE: GALERI & FILTER
   ========================================================================== */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 240px;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11,82,46,0.1), rgba(12,36,97,0.85));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
    color: var(--bg-white);
}

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

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

.gallery-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

/* ==========================================================================
   PAGE: KONTAK (Contact Form & Map)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(11,82,46,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-info-details p, .contact-info-details a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(11,82,46,0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.map-container {
    margin-top: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Alert Notification Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   LAYOUT: FOOTER (Inspirasi UM Metro)
   ========================================================================== */
footer {
    background-color: #07152b; /* Sleek Navy Dark */
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 20px;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-about .footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: 180px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Copyright Bar */
.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.copyright-bar a {
    color: var(--accent-color);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .welcome-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visimisi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar-info {
        display: none; /* Hide contacts on small screen top bars */
    }
    
    .top-bar .container {
        justify-content: flex-end;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Mobile Dropdown adjustment */
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background-color: var(--bg-light);
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-item:hover .dropdown {
        transform: none;
    }
    
    .nav-item.active-dropdown .dropdown {
        display: block;
    }
    
    .dropdown-link {
        padding: 12px 35px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .welcome-text h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-badge {
        right: 0;
        bottom: -10px;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-btn {
        width: 100%;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        text-align: center;
        padding: 12px;
    }
    
    .tab-btn.active {
        background-color: var(--primary-color);
        color: var(--bg-white);
        border-color: var(--primary-color);
    }
}
