/* 
 * Efarina Etaham - Main Stylesheet
 * Colors: Teal (#008080) for Health, Green (#2E8B57) for Education
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1642ad; /* Teal - Kesehatan */
    --secondary-color: #fb0202; /* SeaGreen - Pendidikan */
    --teritary-color: #5cc020;
    --accent-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 118px; /* Adjusted for fixed header height */
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.breadcrumb-item+.breadcrumb-item::before{
    color:#ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 128, 128, 0.8), rgba(46, 139, 87, 0.8)), url('https://source.unsplash.com/1600x900/?hospital,university');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-ptb{
    padding-top: 70px;
    padding-bottom: 100px;
}

/* Buttons */
.btn-primary-custom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #006666;
    border-color: #006666;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.text-health { color: var(--primary-color); }
.text-edu { color: var(--secondary-color); }

/* Footer */
footer {
    background-color: #222;
    color: #ddd;
    padding: 40px 0 20px;
}

footer a {
    color: #ddd;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

 .letter-spacing-1 { letter-spacing: 1px; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.3s ease; display: block; }
.footer-link:hover { color: #fff; transform: translateX(5px); }
.social-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; transition: all 0.3s ease; }
.social-btn:hover { background: var(--bs-danger); color: #fff; transform: translateY(-3px); }
.hover-white:hover { color: #fff !important; }

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Headers */
.page-header {
    background-color: var(--accent-color);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    min-height: 300px;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
}

/* Gallery */
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.8;
}

/* Contact Form */
.error-msg {
    color: red;
    font-size: 0.875rem;
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    /* Adjust padding for mobile where Top Bar is hidden */
    body {
        padding-top: 88px;
    }
}

/* Top Bar Styling */
.top-bar {
    background-color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Mobile Menu Borders */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}