/*
Theme Name: PORTAL_KAMPUS_ITKA
Theme URI: http://localhost/portal_kampus
Author: Antigravity AI (Ide oleh ITKA)
Description: Tema formal dan profesional ala universitas. Menggabungkan Biru Royal dan Kuning Emas.
Version: 2.0
Text Domain: portal-kampus
*/

:root {
    --primary: #003b73; /* Royal Blue */
    --primary-light: #00509e;
    --accent: #f59e0b; /* Gold / Yellow */
    --accent-light: #fcd34d;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-color: #f4f5f7;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Top Bar */
.top-bar {
    background-color: #2575fc; /* Brighter blue matching ITKA */
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.6rem 5%;
    border-radius: 0 0 8px 8px; /* Slightly rounded bottom matching image */
    margin: 0 1rem; /* Creating the floating effect seen in image */
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
}
.topbar-item svg {
    color: #d4ff00; /* Yellow/Greenish icon color */
}
.topbar-divider {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin: 0 0.25rem;
}
.topbar-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.topbar-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    border-bottom: 4px solid var(--primary); /* Strong blue border at bottom */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-branding img {
    max-height: 55px;
    width: auto;
}
.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    margin: 0;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title span { color: var(--accent); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-transform: uppercase; /* Formal look */
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent);
}

/* Sub-menu (Dropdown) styling */
.main-navigation ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary); /* Blue dropdown for contrast */
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 0.25rem 0.25rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--accent);
}

.main-navigation li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul.sub-menu li {
    width: 100%;
}

.main-navigation ul ul.sub-menu a {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: none; /* Keep submenus normal case */
}

.main-navigation ul ul.sub-menu li:last-child > a {
    border-bottom: none;
}

.main-navigation ul ul.sub-menu a:hover {
    background: var(--primary-light);
    color: var(--accent);
    padding-left: 2rem;
}

.main-navigation .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.6em;
    margin-left: 5px;
    vertical-align: middle;
}

/* Hero Section (Slider) */
.hero {
    position: relative;
    padding: 0;
    text-align: center;
    color: white;
    overflow: hidden;
    background: none;
    line-height: 0; 
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    border-radius: 0.25rem; /* Sharper corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.swiper-slide {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary); 
    height: auto;
}

.slider-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    opacity: 1 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    position: relative;
}
.section-title svg { color: var(--accent); }
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Cards (Replacing Glassmorphism) */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--white);
    background: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 0.15rem;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Info Card (Text & Button only, no image) */
.info-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    height: 100%;
}
.info-card-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.info-card-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.info-card-btn {
    display: inline-flex;
    align-items: center;
    background-color: #facc15; /* Yellow */
    color: #000000;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}
.info-card-btn:hover {
    background-color: #eab308;
}
.info-card-btn svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

/* Announcements & Agendas lists */
.list-item {
    background: var(--white);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}
.list-item:hover {
    border-left-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.date-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: white;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    text-decoration: none;
}
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination a:hover {
    background: var(--bg-color);
}

/* Kerjasama Slider */
.kerjasama-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}
.kerjasama-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: transparent !important; /* override default swiper slide fallback */
}
.mitra-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}
.mitra-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Fat Footer */
.fat-footer {
    background-color: #1a1a1a;
    color: #e5e5e5;
    padding: 4rem 5% 3rem 5%;
    border-top: 5px solid var(--accent);
}
.fat-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col .widget-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background-color: var(--accent);
}
.footer-col p, .footer-col .textwidget {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}
.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--accent);
}

/* Copyright Footer */
.site-footer {
    background: #111111;
    color: #888888;
    text-align: center;
    padding: 1.5rem 5%;
    font-size: 0.85rem;
}

/* Page content & Single */
.page-content {
    background: white;
    padding: 2rem; /* Reduced for tighter spacing */
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-top: 1.5rem; /* Reduced to pull closer to menu */
    margin-bottom: 4rem;
}
.page-content h1 { 
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 1.5rem; 
    color: var(--primary); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 1rem; 
}
.page-content p { margin-bottom: 1rem; }

.entry-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.25rem;
}

/* Single Post Layout */
.single-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    align-items: start;
}
.single-content.page-content {
    margin-top: 2rem; /* Adjusted for less gap */
    margin-bottom: 2rem;
}
.entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Sidebar Styles */
.single-sidebar {
    margin-top: 2rem;
}
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.sidebar-widget .widget-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-list a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}
.sidebar-list a:hover {
    color: var(--primary);
}
.sidebar-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}
.sidebar-post {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.sidebar-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Kalender Akademik */
.pk-kalender-container, .pk-kalender-full-container {
    max-width: 100%;
    margin: 0 auto;
}
.pk-calendar-block {
    background: white;
}
.pk-calendar-wrapper {
    display: flex;
    border: 2px solid #e28a38; /* Orange border */
    background: #fff;
}
.pk-calendar-month-label {
    background-color: #fbd6b1; /* Peach */
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 60px;
    border-right: 2px solid #e28a38;
}
.pk-calendar-month-label span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 1.25rem;
    white-space: nowrap;
    letter-spacing: 2px;
}
.pk-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    flex-grow: 1;
}
.pk-cal-day-header {
    background: #f1f5f9;
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #e28a38;
    border-right: 2px solid #e28a38;
    font-size: 0.95rem;
}
.pk-cal-day-header:nth-child(7n) { border-right: none; }
.pk-cal-cell {
    text-align: center;
    padding: 12px 0;
    border-bottom: 2px solid #e28a38;
    border-right: 2px solid #e28a38;
    background-color: #bce6f0; /* Default blue */
    font-size: 1.1rem;
}
.pk-cal-cell.blank { background-color: #fff; }
.pk-cal-cell:nth-child(7n) { border-right: none; }
.pk-calendar-grid .pk-cal-cell:nth-last-child(-n+7) { border-bottom: none; }

.pk-calendar-legend {
    margin-top: 1rem;
    font-size: 0.95rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.pk-kalender-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.pk-semester-title {
    text-align: center;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}
.pk-semester-title span {
    color: var(--primary);
}
@media (max-width: 900px) {
    .pk-kalender-full-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Pastikan logo mitra selalu berwarna asli (tidak abu-abu) */
.kerjasama-slide .mitra-logo {
    filter: none !important;
    opacity: 1 !important;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.4rem 5%;
        margin: 0;
        border-radius: 0;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 0.25rem;
    }
    .top-bar-left {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .topbar-title, .topbar-divider {
        display: none;
    }
    .top-bar-right {
        justify-content: center;
    }

    .menu-toggle { display: block; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem 5%;
        border-top: 3px solid var(--accent);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        z-index: 99;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .main-navigation li { width: 100%; }
    .main-navigation a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--white);
    }
    .main-navigation ul ul.sub-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        display: none;
        padding: 0 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
    }
    .main-navigation li:hover > ul.sub-menu,
    .main-navigation li:focus-within > ul.sub-menu { display: flex; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .single-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-content, .single-content.page-content {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
    .single-sidebar {
        margin-top: 0;
    }
    
    .page-content h1 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
}
