/* === General Styles === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f4f7f9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    color: #1a3a6b;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 60px 0;
}

/* === Header === */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a3a6b;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

nav a:hover, .dropdown:hover > a {
    color: #007bff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown:hover::after {
    display: block;
}

/* Improved hover area for better UX - creates invisible bridge */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
    display: none;
}

.dropdown:hover::after {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn {
    background: transparent;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.login-btn:hover {
    background: #1976d2;
    color: white;
}

.register-btn {
    background: #1976d2;
    color: white;
    border: 2px solid #1976d2;
}

.register-btn:hover {
    background: #1565c0;
    border-color: #1565c0;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown {
    background: #1976d2;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background: #1565c0;
    color: white;
}

.user-menu .dropdown-menu {
    min-width: 200px;
    right: 0;
    left: auto;
}

.user-menu .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hide mobile auth items on desktop */
.mobile-auth-item {
    display: none !important;
}

/* Show mobile auth items only on mobile/tablet */
@media (max-width: 992px) {
    .mobile-auth-item {
        display: list-item !important;
    }
}

/* === Hero Section === */
.hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 107, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* === Peserta Page Styles === */
.peserta-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.peserta-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.accordion-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #1a3a6b 0%, #007bff 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #163152 0%, #0056b3 100%);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.accordion-header i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-icon {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body.active {
    max-height: 2000px;
}

.accordion-content {
    padding: 30px;
    line-height: 1.8;
    display: none;
}

.accordion-content p {
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.accordion-content h4 {
    margin: 30px 0 15px 0;
    color: #1a3a6b;
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-content ul, .accordion-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.accordion-content li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.accordion-content hr {
    margin: 25px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.accordion-content strong {
    color: #1a3a6b;
    font-weight: 600;
}

/* === Page Hero (For Profile Page, etc.) === */
.page-hero {
    padding: 80px 0;
    background-image: url('../images/bpjskesehatankantor.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: left;
    color: #1a3a6b;
    position: relative;
    background-color: #f8f9fa;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 40%, 
        rgba(26, 58, 107, 0.6) 70%, 
        rgba(26, 58, 107, 0.7) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    color: #1a3a6b;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.page-hero p {
    margin: 15px 0 0;
    font-size: 1.1rem;
    color: #666;
    text-shadow: none;
}

.page-hero a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.page-hero a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* === Page Content === */
.page-content {
    padding: 60px 0;
}

/* === Layanan Kami Section === */
.layanan-kami {
    background-color: #e9f5ff;
}
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    text-align: center;
}

.layanan-item {
    background: #fff;
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.layanan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.layanan-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
}

.layanan-item span {
    font-weight: 600;
    color: #1a3a6b;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
}

/* === Data JKN Section === */
.data-jkn {
    background-color: #f4f7f9;
}
.data-jkn-layout {
    width: 100%;
}
.data-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}
.data-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.data-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #1a3a6b;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.5;
}
.data-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.data-item-full {
    margin-bottom: 25px;
}
.data-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* === Accordion (Used on Profile Page) === */
.accordion-item {
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-title {
    padding: 15px 50px 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1a3a6b;
    border-bottom: 1px solid #eee;
    position: relative;
    margin: 0;
    font-size: 1rem;
}

.accordion-title::after {
    content: '+';
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #007bff;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-title::after {
    content: '-';
}

.accordion-content {
    display: none;
    padding: 20px;
    text-align: left;
    border-top: 1px solid #eee;
}

.accordion-content img {
    max-width: 450px;
    width: 100%;
}

/* === Download JKN Section === */
.download-jkn {
    background-color: #f4f7f9;
}
.download-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.download-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.app-buttons img {
    height: 50px;
    margin-right: 15px;
}

.download-image img {
    max-width: 300px;
}


/* === Layanan Informasi Section === */
.layanan-info {
    background-color: #fff;
}
.info-tabs {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    position: relative;
    margin: 0 10px;
    border-bottom: 3px solid transparent;
    padding-bottom: 15px;
    transform: translateY(2px);
    transition: color 0.3s, border-color 0.3s;
}

.tab-link.active {
    color: #007bff;
    border-color: #007bff;
}

.tab-link.active::after {
   display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.info-content-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.info-image {
    flex: 1;
}

.info-image img {
    max-width: 100%;
    border-radius: 10px;
}

.info-text {
    flex: 1.5;
}

.info-text p, .info-text ol, .info-text ul {
    line-height: 1.8;
}


/* === Footer === */
footer {
    background-color: #1a3a6b;
    color: #fff;
    padding-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #007bff;
}

.footer-section p {
    line-height: 1.7;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.app-stores {
    margin-top: 20px;
}
.app-stores img {
    height: 40px;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #3f5d8a;
    text-align: center;
    padding: 20px 0;
}

.footer-section.about {
    padding-top: 25px;
}

.footer-section.about p {
    margin-bottom: 15px;
}

.footer-iso-img {
    max-width: 250px;
    margin-top: 10px;
}

/* === Responsive === */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    header .container {
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 5px;
        padding: 10px 0;
        margin-top: 10px;
        z-index: 1000;
    }
    
    nav ul.mobile-active {
        display: flex;
    }
    
    nav li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        padding: 15px 20px;
        display: block;
        color: #555;
        position: relative;
    }
    
    /* Mobile dropdown chevron styling */
    .dropdown a i {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        padding: 5px;
        cursor: pointer;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown.mobile-dropdown-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 12px 40px;
        background-color: #f8f9fa;
        color: #666;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Mobile auth buttons styling */
    .mobile-auth-item {
        border-top: 1px solid #e0e0e0;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .mobile-auth-item:first-of-type {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .mobile-login-btn {
        background: #1976d2 !important;
        color: white !important;
        border-radius: 8px;
        margin: 0 15px !important;
        text-align: center;
        font-weight: 600;
    }
    
    .mobile-login-btn:hover {
        background: #1565c0 !important;
        color: white !important;
    }
    
    .mobile-register-btn {
        background: #2e7d32 !important;
        color: white !important;
        border-radius: 8px;
        margin: 0 15px !important;
        text-align: center;
        font-weight: 600;
    }
    
    .mobile-register-btn:hover {
        background: #1b5e20 !important;
        color: white !important;
    }
    
    .charts img {
        width: 45%;
    }
    
    /* Tablet specific adjustments */
    .layanan-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .data-item-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .download-content {
        gap: 30px;
    }
    
    .info-content-inner {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .page-hero {
        padding: 60px 0;
        background-size: cover;
        background-position: center;
    }
    .page-hero::before {
        background: linear-gradient(90deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.85) 40%, 
            rgba(26, 58, 107, 0.6) 70%, 
            rgba(26, 58, 107, 0.7) 100%);
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
    
    /* Layanan Grid */
    .layanan-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    /* Peserta Page Responsive */
    .peserta-content {
        padding: 40px 0;
    }
    
    .accordion-header {
        padding: 20px 25px;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .accordion-content {
        padding: 25px;
    }
    
    .layanan-item {
        padding: 15px;
    }
    
    .layanan-item img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .layanan-item span {
        font-size: 0.9rem;
    }
    
    /* Data JKN Section */
    .data-item {
        padding: 20px;
    }
    
    .data-item h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .data-item-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Download Section */
    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .download-text h2 {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .download-image img {
        max-width: 250px;
        width: 100%;
    }
    
    /* Tabs */
    .tab-link {
        padding: 12px 20px;
        font-size: 1rem;
        margin: 0 5px;
    }
    
    .info-content-inner {
        flex-direction: column;
        gap: 25px;
    }
    
    .info-image img {
        max-width: 100%;
        height: auto;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 25px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-iso-img {
        max-width: 200px;
    }
    
    /* Accordion */
    .accordion-title {
        padding: 12px 40px 12px 15px;
        font-size: 0.95rem;
    }
    
    .accordion-content {
        padding: 15px;
    }
    
    .accordion-content img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    section {
        padding: 30px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .page-hero {
        padding: 40px 0;
        background-size: cover;
        background-position: center;
    }
    .page-hero::before {
        background: linear-gradient(90deg, 
            rgba(255, 255, 255, 0.97) 0%, 
            rgba(255, 255, 255, 0.88) 40%, 
            rgba(26, 58, 107, 0.65) 70%, 
            rgba(26, 58, 107, 0.75) 100%);
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 0.9rem;
    }
    
    /* Layanan Grid Mobile */
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .layanan-item {
        padding: 12px;
    }
    
    .layanan-item img {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .layanan-item span {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Data JKN Mobile */
    .data-item {
        padding: 15px;
    }
    
    .data-item h3 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    /* Download Section Mobile */
    .download-content {
        text-align: center;
        gap: 25px;
    }
    
    .download-text h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .download-image img {
        max-width: 200px;
    }
    
    .app-buttons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .app-buttons img {
        height: 40px;
        margin-right: 10px;
    }
    
    /* Peserta Page Mobile */
    .peserta-content {
        padding: 30px 0;
    }
    
    .accordion-header {
        padding: 18px 20px;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .accordion-content {
        padding: 20px;
    }
    
    .accordion-content ul, .accordion-content ol {
        padding-left: 20px;
    }
    
    /* Tabs Mobile */
    .tab-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin: 0 3px;
        margin-bottom: 10px;
    }
    
    .info-tabs {
        margin-bottom: 30px;
    }
    
    .info-content-inner {
        gap: 20px;
    }
    
    /* Footer Mobile */
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-iso-img {
        max-width: 180px;
    }
    
    .app-stores img {
        height: 35px;
        margin-right: 8px;
    }
    
    /* Accordion Mobile */
    .accordion-title {
        padding: 10px 35px 10px 12px;
        font-size: 0.9rem;
    }
    
    .accordion-title::after {
        font-size: 1.5rem;
        right: 15px;
    }
    
    .accordion-content {
        padding: 12px;
    }
    
    /* Charts (if any) */
    .charts {
        flex-direction: column;
        align-items: center;
    }
    .charts img {
        width: 80%;
    }
} 