/* ==================================================
   CSS/STYLE.CSS - FILE CSS UTAMA
   RS AR RAHMAH MEDIKA
   ================================================== */

/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004080;
    --secondary-color: #0066cc;
    --accent-color: #00bfff;
    --dark-color: #001f3f;
    --light-bg: #f0f8ff;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.9;
}

.header-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ffffff; /* sesuaikan warna header Anda */
}

.header-info i {
    color: #00d4ff; /* bisa diganti sesuai warna tema RS */
    font-size: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: var(--white);
}

.nav-menu i {
    margin-right: 6px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.95) 0%, rgba(0, 31, 63, 0.95) 100%),
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1200') center/cover;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    min-width: 150px;
}

.stat-item i {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cta {
    background: var(--warning);
    color: var(--white);
    font-size: 18px;
    padding: 16px 40px;
}

.btn-cta:hover {
    background: var(--danger);
    transform: scale(1.05);
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.view-all:hover {
    color: var(--secondary-color);
}

/* ========== QUICK INFO ========== */
.quick-info {
    background: var(--white);
    padding: 40px 20px;
    box-shadow: var(--shadow);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-dark);
    line-height: 1.8;
}

.info-card a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== FACILITIES ========== */
.facilities-preview {
    background: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.facility-card {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.facility-card i {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.facility-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.facility-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* ========== STATISTICS ========== */
.statistics {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.stat-box i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-box h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== NEWS ========== */
.news-preview {
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--danger) 0%, var(--warning) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-bg);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .facilities-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 18px;
    }

    .hero-title {
        font-size: 24px;
    }

    .stat-item {
        min-width: 120px;
    }
}