/*
Theme Name: BMKG Karimun
Description: Tema WordPress untuk Stasiun Meteorologi Raja Haji Abdullah Karimun
Version: 2.0
Author: BMKG Developer
*/

:root {
    --navy: #0a2351;
    --navy-light: #1e3a5f;
    --green: #00b894;
    --gold: #f9ca24;
    --white: #ffffff;
    --gray: #f5f6fa;
    --dark: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 0; /* No padding needed, nav is inside header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - MUST BE FIXED AT TOP */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    width: 100%;
}

body.admin-bar .main-nav {
    top: 32px !important; /* Adjust for WordPress admin bar */
}

@media (max-width: 782px) {
    body.admin-bar .main-nav {
        top: 46px !important; /* Mobile admin bar height */
    }
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-logo .logo-text {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu - HIDDEN BY DEFAULT */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin-top: 15px;
    z-index: 1000;
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    transition: all 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--gray);
    color: var(--green);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Header with Slideshow */
.site-header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 60px; /* Space for fixed nav */
}

/* Header Slideshow */
.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 35, 81, 0.7) 0%, rgba(10, 35, 81, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(10, 35, 81, 0.3);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.logo-header {
    width: 120px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

/* Clock Styles */
.header-clock {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.time-zone {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.time-zone:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.zone-name {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-weight: 500;
    text-align: center;
}

.zone-time {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
}

/* Quick Links */
.quick-links {
    padding: 80px 0;
    background: var(--gray);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quick-link-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.quick-link-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.quick-link-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Services */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border-top: 5px solid var(--navy);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-top-color: var(--green);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    color: var(--green);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-content h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--green);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.read-more:hover {
    color: var(--green);
}

/* Bulletin Section */
.bulletin-section {
    padding: 80px 0;
    background: var(--white);
}

.bulletin-slider {
    margin-top: 50px;
    overflow: hidden;
}

.bulletin-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bulletin-track::-webkit-scrollbar {
    display: none;
}

.bulletin-item {
    min-width: 250px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.bulletin-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bulletin-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bulletin-label {
    padding: 20px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Organization Chart */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.org-level {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.org-member {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    width: 250px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.org-member.head {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    width: 280px;
    transform: scale(1.05);
}

.org-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.org-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    transition: transform 0.3s ease;
}

.org-photo:hover {
    transform: scale(1.1);
}

.org-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-position {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.org-member.head .org-position {
    color: var(--gold);
}

.org-name {
    font-size: 1rem;
    color: #666;
}

.org-member.head .org-name {
    color: var(--white);
}

/* Profile Cards */
.profile-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    margin-top: 50px;
}

.profile-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-header p {
    font-size: 1.1rem;
    color: var(--gold);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.profile-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.profile-info-text h4 {
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.profile-info-text p {
    color: #666;
    line-height: 1.6;
}

.profile-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: var(--gray);
    border-bottom: 1px solid #eee;
    margin-top: 60px; /* Space for fixed nav */
}

.breadcrumbs a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--green);
}

/* Main Content - Add margin for fixed nav */
.main-content {
    margin-top: 60px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--navy);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow);
        z-index: 999;
        transition: left 0.3s ease;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--gray);
        margin-top: 10px;
        margin-left: 20px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .org-member {
        width: 100%;
        max-width: 280px;
    }
    
    .org-member.head {
        transform: scale(1);
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .header-clock {
        gap: 10px;
    }
    
    .time-zone {
        padding: 10px 15px;
    }
    
    .quick-links-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .bulletin-track {
        padding: 10px;
    }
    
    .bulletin-item {
        min-width: 200px;
    }
}

/* Style untuk Ikon Media Sosial di Footer */
.footer-col .social-media-icons {
    display: flex;
    gap: 15px; /* Jarak antar ikon */
    margin-top: 10px;
}

.footer-col .social-media-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef; /* Warna latar belakang abu-abu muda */
    color: var(--navy, #0a2351); /* Warna ikon */
    border-radius: 50%; /* Membuatnya menjadi lingkaran */
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-col .social-media-icons a:hover {
    background-color: var(--navy, #0a2351); /* Warna latar saat disentuh */
    color: white; /* Warna ikon saat disentuh */
    transform: translateY(-3px); /* Efek sedikit terangkat */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}