/* Professional Modern Design for SMAN 1 Mimika */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #0d9488;
    --bg-light: #f0fdfa;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --white: #ffffff;
    --border: #ccfbf1;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

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

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

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Main Content Container */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* H1 Banner Card */
.banner-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 35px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.banner-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-card p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Section Cards & Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.btn-card {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

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

/* Homepage Gallery Images */
.homepage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.homepage-gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Tables & Responsive Cards for Mobile */
.table-container {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.data-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

/* Random Links (Partner Kami) Styling for SEO & Ahrefs */
.random-links-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.random-links-container h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.partner-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.partner-links-grid a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: block;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-links-grid a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-light);
}

/* Footer */
footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 6px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 12px;
        align-items: flex-start;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 8px 0;
        font-size: 1rem;
    }

    .header-container {
        padding: 10px 15px;
    }
    
    .brand-text h1 {
        font-size: 0.95rem;
    }

    .brand-text span {
        font-size: 0.75rem;
    }

    /* Transform tables into cards on mobile */
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        margin-bottom: 15px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid #f3f4f6;
    }

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

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-dark);
        text-align: left;
        margin-right: 15px;
    }
}
