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

:root {
    --primary-color: #1B263B;
    --primary-dark: #0D1B2A;
    --accent-color: #E63946;
    --accent-hover: #c42935;
    --bg-color: #ffffff;
    --bg-light: #F8F9FA;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Navbar */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
}

.top-bar {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.85rem;
    padding: 5px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--accent-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

/* Marquee */
.marquee-container {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(27, 38, 59, 0.85)), url('https://images.unsplash.com/photo-1541888002636-fbfecda62214?auto=format&fit=crop&q=80&w=2070') center/cover;
    padding: 100px 0;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--accent-color);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 35px auto;
    color: #e0e0e0;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.4);
}

/* Main Content Area */
main {
    flex: 1;
}

/* Grid Layanan */
.services-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card:hover .service-icon {
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Berita & Agenda Section */
.news-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    transition: transform 0.3s ease;
}

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

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Data Tables (CRUD) Area */
.crud-container {
    padding: 40px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.page-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover { background-color: #c82333; }

.btn-info {
    background-color: #17a2b8;
    color: white;
}
.btn-info:hover { background-color: #138496; }

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}
.btn-warning:hover { background-color: #e0a800; }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.table-responsive {
    overflow-x: auto;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.formal-table {
    width: 100%;
    border-collapse: collapse;
}

.formal-table th, 
.formal-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.formal-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.formal-table tbody tr:hover {
    background-color: rgba(27, 38, 59, 0.05);
}

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

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Forms */
.form-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* Detail Card */
.detail-card {
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
}

.detail-img-container {
    width: 300px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.detail-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.detail-img-placeholder {
    width: 200px;
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border-radius: 8px;
    font-size: 4rem;
}

.detail-info {
    padding: 30px;
    flex: 1;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 15px;
}

.detail-label {
    width: 150px;
    font-weight: 600;
    color: var(--primary-dark);
}

.detail-value {
    color: var(--text-main);
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: auto;
}

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

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #adb5bd;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
