/* 
   PT Jamkrida Papua - Premium Corporate Design System
   Color Palette: Deep Blue (#0f2e59), Gold (#d4af37), Light Gray (#f8f9fa), Dark Charcoal (#222)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f2e59;
    --primary-light: #1d447a;
    --accent: #d4af37;
    --accent-light: #f3e5ab;
    --dark: #1a202c;
    --light: #f8f9fa;
    --gray: #e2e8f0;
    --text-muted: #718096;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

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

a:hover {
    color: var(--accent);
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}

.nav-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-item:hover:after {
    width: 100%;
}

.nav-item.active:after {
    width: 100%;
}

/* Dropdown Menu Layout */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    font-weight: 500;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    text-align: left;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--light);
    color: var(--accent);
    padding-left: 25px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.btn-portal {
    background-color: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary);
}

.btn-portal:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #071f3f 0%, #153c6c 100%);
    padding: 80px 5%;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Main Layout & Containers */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Laporan Keuangan Section */
.grid-reports {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.report-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--gray);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.report-year {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.report-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 10px 0 20px 0;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--light);
    border: 1px solid var(--gray);
    color: var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-download:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* News Section & Grid */
.grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--primary);
}

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

.news-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Static Page Content Styling */
.page-content {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.page-content h2, .page-content h3 {
    margin: 30px 0 15px 0;
}

.page-content p {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 15px;
}

.page-content blockquote {
    background-color: var(--light);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    font-size: 16px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.page-content ul, .page-content ol {
    margin: 20px 0 20px 30px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Footer Section */
.footer {
    background-color: #071324;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 5% 30px 5%;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

/* Admin Dashboard Styling */
.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 45px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 46, 89, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--primary);
    color: #fff;
    padding: 30px 20px;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 20px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-main {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--light);
    min-width: 0;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.table-admin {
    width: 100%;
    background: #fff;
    border-radius: var(--border-radius);
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-admin th, .table-admin td {
    padding: 15px 20px;
    text-align: left;
}

.table-admin th {
    background-color: #f1f5f9;
    font-weight: 600;
    border-bottom: 2px solid var(--gray);
}

.table-admin td {
    border-bottom: 1px solid #f1f5f9;
}

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

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: #22c55e;
    border: 1px solid #dcfce7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 32px;
    }
    .page-content {
        padding: 20px;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
}

/* Enforce CKEditor and WYSIWYG editor container responsiveness */
.ck-editor {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ck-editor__main {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ck-editor__editable_inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
}
.ck-content table {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto;
    display: block;
}
.ck-content img {
    max-width: 100% !important;
    height: auto !important;
}

.ck-content ul, .ck-content ol {
    padding-left: 30px !important;
    margin-left: 10px !important;
}
.ck-content li {
    margin-bottom: 8px;
}
