/*
Theme Name: Annur Hub
Theme URI: https://an-nur.ac.id
Author: Tomi Nur Rohman
Description: Tema modern untuk Universitas Islam An Nur Lampung.
Version: 3.2
text-domain: annur
*/

/* ===== VARIABLES ===== */
/* ===== VARIABLES ===== */
:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --accent: #f59e0b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.flex {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 48px;
}

.bg-soft {
    background: var(--bg-soft);
}

.section-spacer {
    padding: 80px 0;
}

/* Reduce bottom padding for the last section on homepage to bring footer closer */
.home .section-spacer:last-of-type {
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .section-spacer {
        padding: 48px 0;
    }

    /* Remove bottom padding for the last section on homepage to bring footer closer */
    .home .section-spacer:last-of-type {
        padding-bottom: 0;
    }
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* ===== NAVIGATION ===== */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    height: 70px;
    position: relative;
    z-index: 1001;
    background: inherit;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 40px;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Handle WordPress menu output */
.nav-links li {
    list-style: none;
    position: relative;
    /* For dropdown positioning */
}

/* Dropdown Indicator */
.menu-item-has-children>a::after {
    content: '▾';
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.2s;
}

.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    padding: 8px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    display: block;
    /* Override default hidden but use opacity for transition */
}

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

.nav-links .sub-menu li {
    display: block;
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-links .sub-menu a:hover {
    background: var(--bg-soft);
    color: var(--primary);
    transform: translateX(4px);
    display: block;
    /* Ensure block display on hover too */
}

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

.btn-reg {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-reg:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Search Button - Hidden on Desktop */
.nav-search-btn {
    display: none;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.search-form {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0;
    background: transparent;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: none;
    border: none;
    display: flex;
    gap: 8px;
    width: 300px;
    transition: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.search-form.hidden {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.search-field {
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 99px;
    /* Rounded pill shape */
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-soft);
}

.search-field:focus {
    background: #fff;
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit {
    display: none;
    /* Hide submit button, press enter to search */
}

/* Mobile Menu Variables */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-search-btn {
        display: none;
    }

    .nav {
        gap: 12px;
        /* Add gap to main nav container */
    }

    .nav-left {
        margin-right: 0;
        flex-shrink: 0;
        max-width: 120px;
        /* Limit logo width to prevent overflow */
    }

    .nav-left .logo img {
        height: 36px !important;
        /* Fixed height for consistency */
        width: auto !important;
    }

    .nav-right {
        flex: 1;
        /* Take remaining space */
        justify-content: flex-end;
        gap: 12px;
        /* Space between search and hamburger */
        width: 100%;
    }

    .search-container {
        margin-right: 0;
        flex: 1;
        /* Allow search to take available space */
        display: flex;
        justify-content: flex-end;
        /* Align search field to right near menu */
    }

    .search-form {
        width: 100%;
        max-width: 100%;
        /* Let it take full available space in container */
    }

    .search-field {
        width: 100%;
        font-size: 0.9rem;
        /* Slightly smaller font */
        padding: 8px 12px;
        /* slightly compact padding */
    }
}

/* SEARCH OVERLAY */
/* Old search wrapper rule removed to avoid conflict with the new compact style */

#gatewaySearchInput {
    width: 100%;
    padding: 16px 24px;
    padding-left: 54px;
    /* Space for icon */
    border-radius: 99px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    color: #333;
    outline: none;
    background: white;
    transition: all 0.3s ease;
}

#gatewaySearchInput:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.25);
}

.mobile-menu {
    display: none;
}

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero-section {
    background-color: #0f172a;
    /* Luxurious modern dark blue gradient */
    background: radial-gradient(circle at 10% 20%, rgb(30, 58, 138) 0%, rgb(15, 23, 42) 90%);
    padding: 80px 0;
    /* Reduced vertical padding for compactness */
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 550px;
    /* More compact width */
    margin: 0;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    /* Reduced font size */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.15rem;
    /* Slightly smaller reading size */
    color: #cbd5e1;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 95%;
}

.btn-hero {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark) !important;
    padding: 14px 32px;
    /* Compact button */
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: var(--primary) !important;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 80px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== ICON GRID (MODERN STRIP) ===== */
.icon-grid-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 20;
    margin-bottom: 60px;
}

.icon-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
    min-width: 100px;
}

.icon-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 72px;
    height: 72px;
    background: var(--bg-soft);
    color: var(--primary);
    border-radius: 24px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.icon-card:hover .icon-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transform: rotate(-5deg);
}

.icon-card span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}


/* ===== FACULTY TABS (REFINED) ===== */
.tab-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.tab-headers {
    display: flex;
    justify-content: center;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 8px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab-content {
    padding: 48px;
    display: none;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    color: var(--text-main);
    margin-bottom: 32px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.tab-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 3px;
}

.prodi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.prodi-list li {
    background: var(--bg-soft);
    padding: 16px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-main);
    transition: 0.2s;
    border: 1px solid transparent;
}

.prodi-list li:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}


/* ===== FRONT PAGE LISTS ===== */
.fp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fp-list li:last-child {
    border-bottom: none;
}

.fp-list h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
}

.fp-list h4 a {
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-list h4 a:hover {
    color: var(--primary);
}

.fp-item-view {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    opacity: 1;
    transform: none;
    transition: color 0.2s;
}

.fp-item-view:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ===== NEWS GRID V3 ===== */
.news-grid-v3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card-v3 {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

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

.news-thumb {
    height: 160px;
    overflow: hidden;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.news-body h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--text-main);
    font-weight: 700;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.news-card-v3:hover .read-more::after {
    transform: translateX(4px);
}

/* ===== HIGHLIGHTS GRID (Fasilitas, Kurikulum, Karir) ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.highlight-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.highlight-thumb {
    height: 240px;
    background-color: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-thumb img {
    transform: scale(1.05);
}

.highlight-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--bg-soft);
}

.highlight-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.highlight-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.highlight-excerpt {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
    flex-grow: 1;
}

.btn-highlight {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 0;
    font-size: 1rem;
}

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

/* ===== STATS SECTION ===== */
.stats-section {
    background: #0f172a;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

/* ===== SERVICE BANNER ===== */
.service-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.service-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.service-content {
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.service-content h2 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 2rem;
}

.service-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.btn-service {
    display: inline-block;
    background: #fff;
    color: var(--primary) !important;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn-service:hover {
    background: var(--bg-soft);
    transform: translateY(-2px);
}

/* ===== MODERN FOOTER (MINIMALIST) ===== */
/* ===== MODERN FOOTER (MINIMALIST & DARK) ===== */
.site-footer {
    background: #0f172a;
    /* Dark Slate */
    padding: 24px 0;
    /* Compact padding */
    margin-top: 0;
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Reduced gap */
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    /* White Logo */
    margin-bottom: 12px;
    display: block;
}

.footer-desc {
    color: #94a3b8;
    /* Muted Slate */
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

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

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

/* Footer Link Specificity Fix */
.site-footer a,
.site-footer .widget a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
}

.site-footer a:hover,
.site-footer .widget a:hover {
    color: #fff;
    transform: translateX(4px);
    display: inline-block;
}

.site-footer ul {
    list-style: none;
    /* Remove default bullets if desired, or keep them */
    padding-left: 0;
}

.site-footer li {
    margin-bottom: 10px;
    color: #94a3b8;
}

/* Custom Bullet for standard widgets */
.site-footer .widget_nav_menu li a::before,
.site-footer .widget_pages li a::before,
.site-footer .widget_categories li a::before,
.site-footer .widget_archive li a::before {
    content: "•";
    color: var(--primary);
    margin-right: 8px;
    display: inline-block;
}

/* Stat Card Modern */
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    /* Dark mode compatible */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 0;
    border-top: none;
    /* Subtle dark border */
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

    /* Menu & Hero Logic from before... */
    .hidden-mobile {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1100;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-main);
        transition: 0.3s;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* ===== PREMIUM MOBILE MENU (FULL SCREEN) ===== */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-menu.active {
        visibility: visible;
        pointer-events: auto;
    }

    /* Backdrop */
    .mobile-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.4s ease;
        backdrop-filter: blur(4px);
    }

    .mobile-menu.active::before {
        opacity: 1;
    }

    /* Drawer Container */
    .mobile-menu-inner {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 360px;
        background: var(--primary-dark);
        /* Dark BG */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu.active .mobile-menu-inner {
        transform: translateX(0);
    }

    /* Menu Header */
    .mobile-menu-header {
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
    }

    .mobile-menu-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #fff;
        /* White Text */
        letter-spacing: -0.02em;
    }

    .menu-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        transition: all 0.2s;
    }

    .menu-close:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* Menu List */
    .mobile-menu-content {
        flex: 1;
        overflow-y: auto;
        padding: 16px 0;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle border */
    }

    /* Parent Links */
    .mobile-menu a {
        display: block;
        padding: 16px 24px;
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        /* White Link */
        text-decoration: none;
        position: relative;
    }

    .mobile-menu a:active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Accordion Toggle */
    .menu-item-has-children {
        position: relative;
    }

    .dropdown-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s;
    }

    /* Update Icon SVG Color to White */
    .dropdown-toggle::after {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        opacity: 0.7;
    }

    .dropdown-toggle {
        font-size: 0;
    }

    .dropdown-toggle.toggled-on::after {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Submenu */
    .mobile-menu .sub-menu {
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
        /* Darker inset */
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu .sub-menu.toggled-on {
        max-height: 500px;
    }

    .mobile-menu .sub-menu a {
        padding-left: 40px;
        font-size: 0.95rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* Registration Button in Mobile */
    .btn-reg-mobile {
        background: var(--primary);
        color: #fff !important;
        text-align: center;
        padding: 14px;
        border-radius: 99px;
        /* Pill shape */
        margin-top: 24px;
        border: none;
        display: block;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    /* Container adjustment for mobile */
    .container {
        padding: 0 20px;
        width: 100%;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    /* Horizontal Scroll stuff */
    .icon-grid {
        grid-template-columns: repeat(7, 1fr);
        overflow-x: auto;
        padding: 20px;
        gap: 20px;
        justify-content: start;
        display: flex;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
    }

    .icon-card {
        min-width: 80px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .icon-circle {
        background: #fff;
        box-shadow: var(--shadow);
        border: none;
        width: 60px;
        height: 60px;
    }

    .tab-headers {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 12px 20px;
        white-space: nowrap;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 20px;
        background: #f1f5f9;
        border-radius: 99px;
        font-size: 0.9rem;
    }

    .tab-btn.active {
        background: var(--primary);
        color: #fff;
    }



    .read-more {
        display: none;
    }

    /* Service */
    .service-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }

    .service-image {
        display: none;
    }

    /* Modern Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {}

/* ===== ARCHIVE PAGE STYLES ===== */
.archive-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.archive-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* M O D E R N   A R C H I V E   C A R D   (2 0 2 5   REFRESH) */
.archive-card {
    background: #fff;
    border-radius: 20px;
    /* Soft UI Radius */
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft Diffusion Shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle highlight border */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    /* Colored shadow on hover */
    z-index: 2;
}

.archive-thumb {
    position: relative;
    padding-top: 60%;
    /* Slightly taller than 16:9 for modern feel */
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.archive-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-card:hover .archive-img {
    transform: scale(1.08);
}

/* Glassmorphism Badge */
.cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.archive-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.archive-title a {
    color: var(--text-main);
    background: linear-gradient(to right, var(--text-main), var(--text-main)),
        linear-gradient(to right, var(--primary), var(--primary));
    background-size: 100% 0px, 0 2px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s;
    text-decoration: none;
}

.archive-title a:hover {
    background-size: 0 2px, 100% 2px;
    color: var(--primary);
}

.archive-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-read-more:hover {
    gap: 10px;
    /* Arrow slide effect */
}

/* ===== PAGINATION (Complete Rewrite) ===== */
.archive-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Target ALL possible pagination elements */
.archive-pagination .nav-links a,
.archive-pagination .nav-links span,
.archive-pagination .nav-links .page-numbers,
.archive-pagination a.page-numbers,
.archive-pagination span.page-numbers,
.archive-pagination .nav-links a.page-numbers,
.archive-pagination .nav-links span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Hover state */
.archive-pagination .nav-links a:hover,
.archive-pagination a.page-numbers:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Current/Active page */
.archive-pagination .nav-links .current,
.archive-pagination .nav-links span.current,
.archive-pagination span.page-numbers.current,
.archive-pagination .page-numbers.current {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Dots separator */
.archive-pagination .nav-links .dots,
.archive-pagination span.dots {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    min-width: auto !important;
    padding: 0 8px !important;
}

/* ===== MOBILE OPTIMIZATIONS (COMPACT/HORIZONTAL) ===== */
@media (max-width: 768px) {

    /* Reduce container padding */
    .container {
        padding: 0 16px;
    }

    /* Reduce Header Spacing */
    .archive-header {
        margin-bottom: 24px;
        text-align: left;
        /* Align left usually looks cleaner on mobile */
    }

    .archive-header h1 {
        font-size: 1.75rem;
        /* Smaller Title */
        margin-bottom: 8px;
    }

    .archive-description {
        font-size: 0.95rem;
    }

    /* Switch Grid to Single Column but Horizontal Card */
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .archive-card {
        flex-direction: row;
        /* Horizontal Layout */
        align-items: stretch;
        height: auto;
        min-height: 120px;
    }

    .archive-thumb {
        width: 35%;
        /* Fixed width for image */
        padding-top: 0;
        /* Reset Aspect Ratio hack */
        flex-shrink: 0;
        position: relative;
    }

    .archive-img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Adjust Badge for small card */
    .cat-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        top: 8px;
        left: 8px;
    }

    /* Content adjustments */
    .archive-content {
        padding: 12px 14px;
        width: 65%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .archive-meta {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .archive-title {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.35;
        /* Limit to 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .archive-excerpt {
        display: none;
        /* Hide excerpt on mobile to save space */
    }

    .btn-read-more {
        font-size: 0.8rem;
        margin-top: 4px;
    }
}

/* ===== DARK HEADER REDESIGN ===== */
.nav-wrapper {
    background: var(--primary) !important;
    /* Force Dark Blue */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* Glass Effect */
    padding: 0;
    /* Slightly taller */
    transition: all 0.3s ease;
}

/* Scrolled State (Optional: Make it slightly transparent on scroll) */
.nav-wrapper.scrolled {
    background: rgba(37, 99, 235, 0.95) !important;
}

/* Dark Header Links */
.nav-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Logo Optimization for Dark Header */
.logo img {
    height: auto;
    max-width: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

/* Logo Text Color for Dark Header */
.logo {
    color: #fff !important;
}

/* Search Icon in Dark Header */
.nav-search-btn {
    color: #fff !important;
}

.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle Color */
.menu-toggle span {
    background: #fff !important;
}

/* Dropdown text fix (Must remain dark on white bg) */
.nav-links .sub-menu {
    background: #fff !important;
}

.nav-links .sub-menu a {
    color: var(--text-main) !important;
}

.nav-links .sub-menu a:hover {
    color: var(--primary) !important;
    background: var(--bg-soft) !important;
}

/* Admin Bar Fix for Sticky Header */
body.admin-bar .nav-wrapper {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .nav-wrapper {
        top: 46px;
        /* WP Admin bar is taller on mobile */
    }
}

/* ===== HEADER MAIN LOGIC (Refactored) ===== */

/* 1. Default State (Inner Pages): Solid Dark Blue & Sticky */
.nav-wrapper {
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #1e3a8a !important;
    /* Solid Blue Default */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
}

/* 2. Homepage Override: Transparent & Fixed */
body.home .nav-wrapper {
    position: fixed !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nav-wrapper.scrolled {
    background: rgba(30, 58, 138, 0.95) !important;
    /* Dark Blue Glass */
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* Ensure links are white on transparent header (since hero is dark) */
.nav-links>li>a {
    color: #fff !important;
}

/* Hero Section Adjustment for Fixed Header */
/* Hero Section Adjustment for Sticky Header */
/* Hero Section Adjustment for Sticky Header */
.hero-section {
    padding-top: 100px !important;
    /* Spacious on Desktop */
    margin-top: 0 !important;
    background-position: center top;
}

/* Site Main Margin Reset */
.site-main {
    margin-top: 0 !important;
    /* Remove old margin if any */
}

/* ===== HEADER HEIGHT ADJUSTMENT ===== */
.nav-wrapper {
    padding: 10px 0 !important;
    /* Reduced from 15px */
}

/* Logo size controlled by Customizer */

/* Scrolled State - Even more compact */
.nav-wrapper.scrolled {
    padding: 8px 0 !important;
}

.nav-wrapper.scrolled .logo img {
    transition: all 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .nav-wrapper,
    body.home .nav-wrapper {
        padding: 8px 0 !important;
        background-color: #1e3a8a !important;
        /* Force Dark Blue on mobile */
        position: sticky !important;
    }

    /* Logo size responsive */
}

/* ===== HEADER PROPORTION FIX ===== */

/* 1. Remove Fixed Height from Container */
.nav {
    height: auto !important;
    /* Let content dictate height */
    min-height: 0 !important;
    padding: 0 !important;
}

/* Logo padding */
.logo img {
    padding: 4px 0;
}

/* 3. Tighten Wrapper Padding */
.nav-wrapper {
    padding: 0 0 !important;
    /* No extra wrapper padding */
}

/* 4. Align Items Vertically */
.nav.flex {
    align-items: center;
    /* ensure flex-items (logo, menu) are centered */
}

/* Scrolled state transition */
.nav-wrapper.scrolled .logo img {
    transition: 0.3s ease;
}

/* Mobile logo handled by Customizer */

/* ===== REMOVE HEADER BORDER ===== */
.nav-wrapper {
    border-bottom: none !important;
}

/* ===== SOLID SCROLLED HEADER FIX ===== */
.nav-wrapper.scrolled {
    background: #1e3a8a !important;
    /* Solid Dark Blue (No RGBA) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    /* Stronger shadow */
}

/* ===== INNER PAGE HEADER FIX ===== */

/* 1. Only Transparent on Homepage */
body.home .nav-wrapper {
    background: transparent !important;
}

/* 2. Solid Dark Blue on Inner Pages (Default) */
body:not(.home) .nav-wrapper {
    background: #1e3a8a !important;
    /* Solid Primary Dark */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    /* Can simply be sticky on inner pages */
}

/* 3. Add Top Padding to Body on Inner Pages to prevent overlap */
body:not(.home) {
    padding-top: 80px;
    /* Approximate header height */
}

/* 4. Ensure Scrolled State works everywhere */
.nav-wrapper.scrolled {
    background: #1e3a8a !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ===== FIX HEADER GAP ===== */
/* Remove top padding since header is sticky, not fixed */
body:not(.home) {
    padding-top: 0 !important;
}

/* Ensure header sticks to top */
body:not(.home) .nav-wrapper {
    top: 0 !important;
    position: sticky !important;
    margin-top: 0 !important;
}

/* ===== EMERGENCY FIX: INVISIBLE HEADER ===== */
/* Force Solid Blue on ALL non-home pages with high specificity */
body:not(.home) .nav-wrapper {
    background-color: #1e3a8a !important;
    /* Primary Dark Blue */
    position: sticky !important;
    top: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    z-index: 99999 !important;
}

/* Ensure links are white */
body:not(.home) .nav-links a {
    color: #ffffff !important;
}

/* Ensure mobile menu toggle is visible */
body:not(.home) .menu-toggle span {
    background: #ffffff !important;
}

/* ===== FIX: HOMEPAGE SCROLLED STATE ===== */
/* When scrolled on homepage, header MUST become solid */
body.home .nav-wrapper.scrolled {
    background: #1e3a8a !important;
    /* Solid Blue on Scroll */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ===== SINGLE POST LAYOUT WITH SIDEBAR ===== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 900px) {
    .single-layout {
        padding-bottom: 0px !important;
        /* Minimal padding on mobile before footer */
    }
}

.single-content-area {
    min-width: 0;
    /* Prevent overflow */
}

.single-content-area .entry-content {
    max-width: 100%;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sidebar Styling */
.single-sidebar {
    position: sticky;
    top: 100px;
    /* Below header */
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* Responsive: Stack on Mobile */
@media (max-width: 900px) {
    .single-layout {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        position: static;
        margin: 0;
        padding: 0;
    }

    /* Remove card styling on mobile - sidebar items use same style as related-posts */
    .sidebar-widget {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
        margin-bottom: 0;
        /* Eliminate bottom margin to reduce gap to footer */
    }

    .sidebar-heading {
        font-size: 1.25rem;
        /* Match Related Posts Title */
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 24px;
        /* Match Related Posts Margin */
        padding-left: 0;
        border-bottom: none;
        /* Remove underline to match */
        padding-bottom: 0;
    }

    /* Make sidebar list items look exactly like related-posts-list items */
    .sidebar-news-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sidebar-news-list li {
        padding: 12px;
        background: var(--bg-soft);
        border-radius: var(--radius);
        border-bottom: none;
        transition: all 0.2s;
    }

    .sidebar-news-list li:hover {
        background: #fff;
        box-shadow: var(--shadow);
    }
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 500;
}

/* ===== RELATED POSTS SECTION ===== */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-post-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    transition: all 0.2s ease;
}

.related-post-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.related-post-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ARTICLE TAGS DISPLAY ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tags-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 8px;
}

.tag-item {
    background: var(--bg-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== UPDATED RELATED POSTS (No Images, List Style) ===== */
.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-posts-list li {
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.related-posts-list li:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.related-posts-list li a {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 4px;
}

.related-posts-list li a:hover {
    color: var(--primary);
}

.related-posts-list .related-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .related-posts-list {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER COLOR HARMONY ===== */
/* Match footer with header primary blue theme */
.site-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    /* Primary Blue Gradient */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ===== FOOTER DARKER SHADE ===== */
.site-footer {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%) !important;
    /* Darker Navy Blue */
}

/* ===== FOOTER EVEN DARKER ===== */
.site-footer {
    background: #0c1e3d !important;
    /* Very Dark Navy */
}

/* ===== FOOTER BOTTOM TEXT VISIBILITY ===== */
.footer-bottom,
.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Brighter white text */
}

/* ===== HERO TITLE SIZE ADJUSTMENT ===== */
.hero-section h1 {
    font-size: 2.5rem !important;
    /* Reduced from ~3.5rem */
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
}

/* ===== HERO SUBTITLE SIZE ADJUSTMENT ===== */
.hero-section p {
    font-size: 1rem !important;
    /* Reduced from ~1.25rem */
    opacity: 0.9;
}

/* ========================================
   CONSOLIDATED HEADER & FOOTER STYLES
   (Supersedes all previous fragmented rules)
   ======================================== */

/* HEADER: Consolidated Rules (Desktop & Mobile) */
.nav-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    border-bottom: none !important;
    background-color: #1e3a8a !important;
    /* Solid Dark Blue Global */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px 0 !important;
    /* Consistent padding */
    height: auto !important;
}

/* Ensure no transparency on Homepage anymore */
body.home .nav-wrapper {
    background-color: #1e3a8a !important;
    position: sticky !important;
}

/* Scrolled state (same) */
body.home .nav-wrapper.scrolled,
.nav-wrapper.scrolled {
    background-color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Nav Links: White on dark header */
body:not(.home) .nav-links a,
body.home .nav-wrapper.scrolled .nav-links a {
    color: #fff !important;
}

/* FOOTER: Consolidated */
.site-footer {
    background: #0c1e3d !important;
}

.footer-bottom,
.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* HERO: Optimized Sizes */
.hero-section h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

.hero-section p {
    font-size: 1rem !important;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
}

/* ===== SIDEBAR NEWS LIST ===== */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-list li:last-child {
    border-bottom: none;
}

.sidebar-news-list li a {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-news-list li a:hover {
    color: var(--primary);
}

.sidebar-news-list .news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .share-buttons {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto;
        /* Allow scroll if really too tight, but try to fit */
        white-space: nowrap;
    }

    .share-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        flex-shrink: 0;
    }

    .share-label {
        font-size: 0.9rem;
        margin-right: -4px;
    }
}

.share-label {
    font-weight: 600;
    color: var(--text-main);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.share-wa {
    background: #25D366;
    color: #fff;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.share-wa:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
}

.share-copy {
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.share-copy:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== FACULTY SECTION REDESIGN ===== */
.tab-wrapper {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tab-headers {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.tab-content h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.tab-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.prodi-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.prodi-list li {
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.prodi-list li::before {
    content: '›';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

.prodi-list li:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .prodi-list {
        grid-template-columns: 1fr;
    }

    .tab-wrapper {
        padding: 20px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ===== MOBILE PRODI LIST COMPACT ===== */
@media (max-width: 768px) {
    .prodi-list li {
        padding: 10px 12px 10px 36px;
        font-size: 0.85rem;
    }

    .prodi-list li::before {
        left: 10px;
        font-size: 0.9rem;
    }

    .tab-content h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .tab-content h3::after {
        margin: 8px auto 0;
        width: 40px;
        height: 3px;
    }

    .tab-wrapper {
        padding: 16px;
        margin: 0 -8px;
    }

    .tab-headers {
        margin-bottom: 20px;
        gap: 6px;
    }
}

/* ===== MOBILE PRODI - SIMPLE LIST STYLE ===== */
@media (max-width: 768px) {
    .prodi-list {
        display: block;
    }

    .prodi-list li {
        background: transparent;
        border: none;
        padding: 6px 0 6px 20px;
        font-size: 0.9rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .prodi-list li:last-child {
        border-bottom: none;
    }

    .prodi-list li::before {
        content: '•';
        color: var(--primary);
        font-size: 1.2rem;
        left: 0;
    }

    .prodi-list li:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .tab-content h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .tab-content h3::after {
        display: none;
    }
}

/* ===== FIX: MOBILE PRODI SPACING & ICON ===== */
@media (max-width: 768px) {
    .tab-headers {
        margin-bottom: 16px;
    }

    .tab-content h3 {
        margin-bottom: 8px;
    }

    .prodi-list li::before {
        content: '🎓';
        font-size: 0.85rem;
    }

    .prodi-list li {
        padding-left: 28px;
    }
}

/* ===== FIX: REDUCE TAB TO CONTENT SPACING ===== */
@media (max-width: 768px) {
    .tab-headers {
        margin-bottom: 12px !important;
    }

    .tab-content {
        padding-top: 0 !important;
    }
}

/* ===== ACADEMIC SERVICES REDESIGN ===== */
.service-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
}

.service-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.service-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.service-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.service-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.service-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 400px;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}

.service-image {
    position: relative;
    z-index: 1;
}

.service-image span {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .service-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .service-content {
        max-width: 100%;
        width: 100%;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }

    .service-content p {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-image span {
        font-size: 60px !important;
    }
}

/* ===== FIX: SHOW CLOUD ICON ===== */
.service-image {
    display: block !important;
}

.service-image svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .service-image {
        order: -1;
        margin-bottom: 16px;
    }

    .service-image svg {
        width: 80px;
        height: 80px;
    }
}

/* ===== ICON GRID NAVIGATION BUTTONS ===== */
.icon-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    transition: all 0.2s;
}

.icon-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.icon-nav-left {
    left: -12px;
}

.icon-nav-right {
    right: -12px;
}

@media (max-width: 768px) {
    .icon-nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon-grid-wrapper {
        padding: 0 24px;
    }

    .icon-nav-left {
        left: 0;
    }

    .icon-nav-right {
        right: 0;
    }
}

/* ===== FIX: ICON NAV BUTTONS MORE VISIBLE ===== */
.icon-nav {
    width: 40px !important;
    height: 40px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.icon-nav:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* ===== FIX: CENTER ICON GRID ===== */
.icon-grid-wrapper {
    justify-content: center !important;
}

.icon-grid {
    justify-content: center !important;
}

/* ===== FIX: ICON GRID MOBILE SCROLL ===== */
@media (max-width: 768px) {
    .icon-grid {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        scroll-snap-type: x mandatory;
    }

    .icon-card {
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .icon-grid-wrapper {
        padding: 0 40px !important;
    }
}

/* ===== MOBILE: WIDER ICON GRID ===== */
@media (max-width: 768px) {
    .icon-grid-wrapper {
        margin: -40px 8px 20px !important;
        padding: 16px 32px !important;
    }

    .icon-card {
        min-width: 70px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .icon-card span {
        font-size: 0.75rem;
    }
}

/* ===== MOBILE: LAYOUT & TYPOGRAPHY OPTIMIZATIONS ===== */
@media (max-width: 768px) {

    /* Make container wider on mobile */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reduce section title size */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 24px !important;
    }

    /* Kabar Kampus Header - Align title and link */
    .flex.justify-between {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .flex.justify-between .section-title {
        margin-bottom: 0 !important;
        flex: 1;
        min-width: 150px;
    }

    .flex.justify-between a {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Align News header with cards below */
    .bg-soft .flex.justify-between {
        padding-left: 12px;
        padding-right: 12px;
        /* Add right padding too for View All */
        /* Match card edge alignment */
    }

    /* Adjust Faculty Tabs wrapper spacing */
    .tab-wrapper {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    /* Adjust News/Kabar Kampus grid spacing */
    .news-grid-v3 {
        gap: 16px !important;
    }

    /* Make Hero text more proportional */
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
}

/* ===== FACULTY CARD GRID ===== */
.faculty-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.faculty-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faculty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.faculty-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.faculty-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.prodi-count {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Click Indicator - "Lihat Detail" text */
.faculty-card::after {
    content: 'Lihat Prodi →';
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.faculty-card:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* Faculty Modal */
.faculty-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.faculty-modal.active {
    display: flex;
}

.faculty-modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-soft);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
}

.faculty-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-right: 40px;
}

/* Modal Prodi List - Clean Single Column */
.faculty-modal-content .prodi-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faculty-modal-content .prodi-list li {
    padding: 8px 12px;
    padding-left: 32px;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 0.9rem;
}

.faculty-modal-content .prodi-list li:last-child {
    border-bottom: none;
}

/* ===== ACCORDION STYLES (For Mobile Faculty Section) ===== */
/* Desktop: Hide accordion headers, keep tabs */
.accordion-header {
    display: none;
}

.desktop-only {
    display: block;
}

/* ===== MOBILE APP LAYOUT ENHANCEMENTS ===== */
@media (max-width: 768px) {

    /* GRID LAYOUT - Show All Icons (2 Columns) */
    .icon-grid-wrapper {
        position: relative;
    }

    /* Hide Navigation Arrows */
    .icon-nav {
        display: none !important;
    }

    .icon-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        /* 4 columns */
        gap: 12px !important;
        padding: 20px 16px !important;
        background: #fff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid var(--border) !important;
        overflow: visible !important;
    }

    .icon-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: transparent !important;
        padding: 12px 8px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        border: none !important;
    }

    .icon-card:active {
        background: var(--bg-soft) !important;
    }

    .icon-circle {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 8px !important;
        font-size: 20px !important;
        background: var(--bg-soft) !important;
        border: none !important;
        color: var(--primary) !important;
    }

    .icon-card span {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        color: var(--text-main) !important;
        line-height: 1.2 !important;
    }

    /* Mobile Faculty Card Grid - Compact Single Column */
    .faculty-card-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-left: -12px;
        margin-right: -12px;
        /* Pull grid wider */
    }

    .faculty-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 14px 16px !important;
        gap: 14px !important;
    }

    .faculty-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .faculty-card h4 {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
    }

    .faculty-card p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        display: none;
        /* Hide description on mobile for compact view */
    }

    .prodi-count {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Chevron Arrow for Clickability Indicator */
    .faculty-card::after {
        content: '›';
        font-size: 1.5rem;
        color: var(--text-muted);
        margin-left: 8px;
        flex-shrink: 0;
    }

    /* Mobile Modal - Centered Card Style */
    .faculty-modal-content {
        padding: 24px !important;
        margin: 16px !important;
        width: auto !important;
        position: relative !important;
        /* Reset absolute positioning */
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        border-radius: 20px !important;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    }

    .faculty-modal {
        align-items: center !important;
        /* Center vertically */
        justify-content: center !important;
        padding: 0 !important;
    }

    .faculty-modal-content h3 {
        font-size: 1.1rem !important;
    }

    /* 2. Prodi List - Vertical Stack (Show All) */
    .prodi-list {
        color: var(--primary) !important;
    }

    /* ===== MOBILE ACCORDION FOR FACULTY SECTION ===== */
    /* Hide tab headers on mobile */
    .tab-headers {
        display: none !important;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show accordion headers */
    .accordion-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 20px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 0;
        transition: all 0.3s ease;
    }

    .accordion-header.active {
        background: var(--primary-dark);
        border-radius: 12px 12px 0 0;
    }

    .accordion-icon {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }

    /* Accordion item spacing */
    .accordion-item {
        margin-bottom: 12px;
    }

    /* Accordion content (hidden by default on mobile) */
    .accordion-content {
        display: none !important;
        background: #fff;
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 12px 12px;
        padding: 16px;
    }

    .accordion-content.active {
        display: block !important;
    }

    /* Style the prodi-list inside accordion */
    .accordion-content .prodi-list {
        margin: 0;
        padding: 0;
    }

    .accordion-content .prodi-list li {
        padding: 6px 0;
        border-bottom: 1px solid var(--border);
    }

    .accordion-content .prodi-list li:last-child {
        border-bottom: none;
    }

    .icon-card span {
        font-size: 0.75rem !important;
        line-height: 1.2;
        display: block;
        /* Ensure 2 lines max */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 2. Prodi List - Horizontal Swipe */
    /* 2. Prodi List - Vertical Stack (Show All) */
    .prodi-list {
        display: grid !important;
        /* Back to grid */
        overflow-x: visible !important;
        /* No scroll */
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: 1fr !important;
        /* 1 Column full width */
        scrollbar-width: auto;
    }

    .prodi-list::-webkit-scrollbar {
        display: none;
    }

    .prodi-list li {
        flex: none !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        /* Full width */
        border-radius: 12px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid var(--border) !important;
    }

    /* 3. News Grid - Horizontal List Card Style */
    .news-grid-v3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .news-card-v3 {
        display: flex !important;
        flex-direction: row !important;
        /* Side by side */
        align-items: center;
        height: 110px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    }

    .news-thumb {
        width: 110px !important;
        height: 100% !important;
        flex-shrink: 0;
        border-radius: 12px !important;
        /* All corners rounded */
        overflow: hidden;
    }

    .news-thumb img {
        height: 100% !important;
        border-radius: 12px !important;
    }

    .news-body {
        padding: 0 16px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        flex-grow: 1;
    }

    .news-body h4 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
        /* Line limit - allow 3 lines for better readability */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Article Content Typography (Mobile Optimization) */
    .single-content-area .entry-content {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Compact Header for Mobile */
    .nav {
        height: 64px !important;
        /* Increased from 58px */
    }

    /* Logo size controlled by Customizer */

    /* Fix Spacing: Home uses fixed header, hero handles its own spacing */
    body.home .site-main {
        padding-top: 0 !important;
    }

    /* Inner pages (Sticky Header) don't need huge padding */
    .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* FIX: Reduce single-layout top padding on mobile */
    .single-layout {
        padding-top: 16px !important;
    }

    /* Refined Title Styling - Only Size */
    .entry-title {
        font-size: 1.5rem !important;
        /* Smaller on mobile */
    }

    /* Modern Mobile Breadcrumb */
    .breadcrumb {
        margin: 0 0 16px 0 !important;
        padding: 8px 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Prevent stack */
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar */
        gap: 6px !important;
        font-size: 0.8rem !important;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb a {
        color: var(--text-muted) !important;
        font-weight: 500;
    }

    .breadcrumb-current {
        color: var(--text-main) !important;
        font-weight: 600;
    }

    /* Modern Separator */
    .breadcrumb-separator {
        color: #cbd5e1 !important;
        font-size: 0.75rem;
    }
}

/* =========================================
   MOBILE ADJUSTMENTS (Simplified)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Reset Global Container just in case */
    .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.home {
        background-color: #fff !important;
    }

    /* 2. Hero Section - Pull up behind fixed header */
    .hero-section {
        margin-top: -1px !important;
        /* Overlap to prevent any gap */
        padding-top: 90px !important;
        /* Content padding below header */
    }

    /* Mobile logo handled by Customizer */
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.search-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.search-query {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Search Results List */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-item:first-child {
    padding-top: 0;
}

.search-item:hover {
    background: var(--bg-soft);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--radius);
}

.search-item:hover .search-item-title {
    color: var(--primary);
}

.search-item:hover .search-item-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Thumbnail */
.search-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
}

.search-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 24px;
}

/* Content */
.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.search-meta-sep {
    color: var(--border);
}

.search-item-cat {
    color: var(--primary);
    font-weight: 600;
}

.search-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.search-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow */
.search-item-arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Pagination */
.search-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.search-pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Target ALL possible pagination elements */
.search-pagination .nav-links a,
.search-pagination .nav-links span,
.search-pagination .nav-links .page-numbers,
.search-pagination a.page-numbers,
.search-pagination span.page-numbers,
.search-pagination .nav-links a.page-numbers,
.search-pagination .nav-links span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Hover state */
.search-pagination .nav-links a:hover,
.search-pagination a.page-numbers:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Current/Active page */
.search-pagination .nav-links .current,
.search-pagination .nav-links span.current,
.search-pagination span.page-numbers.current,
.search-pagination .page-numbers.current {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Dots separator */
.search-pagination .nav-links .dots,
.search-pagination span.dots {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    min-width: auto !important;
    padding: 0 8px !important;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 80px 20px;
}

.search-no-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.search-no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.search-no-results p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 12px;
}

.search-no-tips {
    font-size: 0.9rem;
    margin-bottom: 24px !important;
}

/* ===== SEARCH RESULTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .search-title {
        font-size: 1.25rem;
    }

    .search-query {
        font-size: 0.9rem;
    }

    .search-item {
        gap: 16px;
        padding: 16px 0;
    }

    .search-item-thumb {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }

    .search-item-title {
        font-size: 1rem;
    }

    .search-item-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .search-item-arrow {
        display: none;
    }

    .search-item:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }
}

/* ===== ARCHIVE PAGE (LIST LAYOUT) ===== */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.archive-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Archive List */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.archive-item:first-child {
    padding-top: 0;
}

.archive-item:hover {
    background: var(--bg-soft);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--radius);
}

.archive-item:hover .archive-item-title {
    color: var(--primary);
}

.archive-item:hover .archive-item-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Archive Thumbnail */
.archive-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
}

.archive-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 24px;
}

/* Archive Content */
.archive-item-content {
    flex: 1;
    min-width: 0;
}

.archive-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.archive-meta-sep {
    color: var(--border);
}

.archive-item-cat {
    color: var(--primary);
    font-weight: 600;
}

.archive-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.archive-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-item-arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

/* Archive Pagination */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-soft);
    transition: all 0.2s;
}

.archive-pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
}

.archive-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
}

/* Archive No Results */
.archive-no-results {
    text-align: center;
    padding: 80px 20px;
}

.archive-no-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.archive-no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.archive-no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== ARCHIVE RESPONSIVE ===== */
@media (max-width: 768px) {
    .archive-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .archive-title {
        font-size: 1.25rem;
    }

    .archive-item {
        gap: 16px;
        padding: 16px 0;
    }

    .archive-item-thumb {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }

    .archive-item-title {
        font-size: 1rem;
    }

    .archive-item-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .archive-item-arrow {
        display: none;
    }

    .archive-item:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }
}

/* ===== HOMEPAGE NEWS LIST (MOBILE) ===== */
@media (max-width: 768px) {

    /* Transform news grid to list on mobile */
    .news-grid-v3 {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .news-card-v3 {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--border);
        height: auto;
    }

    .news-card-v3:first-child {
        padding-top: 0;
    }

    .news-card-v3:last-child {
        border-bottom: none;
    }

    .news-card-v3:hover {
        transform: none;
        box-shadow: none;
    }

    .news-thumb {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        border-radius: 8px;
        overflow: hidden;
    }

    .news-body {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .news-body h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-date {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .read-more {
        display: none;
    }
}

/* ===== FEATURED POST HERO ===== */
.featured-post {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    text-decoration: none;
    color: #fff;
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 320px;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.featured-author {
    color: #f59e0b;
    font-weight: 600;
}

.featured-post:hover .featured-title {
    color: #f59e0b;
}

/* Archive item author styling */
.archive-item-author {
    color: var(--primary);
    font-weight: 600;
}

.archive-item-comments {
    color: var(--text-muted);
}

/* ===== FEATURED POST RESPONSIVE ===== */
@media (max-width: 768px) {
    .featured-post-image {
        height: 220px;
    }

    .featured-post-content {
        padding: 16px;
    }

    .featured-title {
        font-size: 1.15rem;
    }

    .featured-meta {
        font-size: 0.75rem;
        gap: 12px;
    }
}

/* ===== BLOG POSTS GRID (from sigerblog) ===== */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Featured First Post - Full Width */
.blog-posts .post-card:first-child {
    grid-column: 1 / -1;
}

.blog-posts .post-card:first-child .post-thumbnail {
    height: 320px;
}

.blog-posts .post-card:first-child .post-title {
    font-size: 1.5rem;
}

/* Card Design */
.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--border) 100%);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-meta .author {
    color: var(--primary);
    font-weight: 600;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* ===== MOBILE: Featured Hero + Horizontal List ===== */
@media (max-width: 768px) {
    .blog-posts {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Featured First Post - Hero Style with Overlay */
    .blog-posts .post-card:first-child {
        display: block;
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
        background: none;
        padding: 0;
    }

    .blog-posts .post-card:first-child .post-thumbnail {
        width: 100%;
        height: 220px;
        min-height: unset;
        border-radius: 0;
    }

    .blog-posts .post-card:first-child .post-thumbnail::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
        pointer-events: none;
    }

    .blog-posts .post-card:first-child .post-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: none;
        z-index: 2;
    }

    .blog-posts .post-card:first-child .post-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.35;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .blog-posts .post-card:first-child .post-title a {
        color: #fff;
    }

    .blog-posts .post-card:first-child .post-meta {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.75rem;
        gap: 10px;
        margin-bottom: 0;
    }

    .blog-posts .post-card:first-child .post-meta .author {
        color: #f59e0b;
        font-weight: 600;
    }

    .blog-posts .post-card:first-child .post-excerpt {
        display: none;
    }

    /* Other Posts - Horizontal Card Layout */
    .blog-posts .post-card:not(:first-child) {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .blog-posts .post-card:not(:first-child):hover {
        transform: none;
    }

    .blog-posts .post-card:not(:first-child) .post-thumbnail {
        width: 80px;
        height: 80px;
        min-height: unset;
        border-radius: 10px;
        overflow: hidden;
    }

    .blog-posts .post-card:not(:first-child) .post-thumbnail::after {
        display: none;
    }

    .blog-posts .post-card:not(:first-child) .post-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .blog-posts .post-card:not(:first-child) .post-title {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 0;
        color: var(--text-main);
    }

    .blog-posts .post-card:not(:first-child) .post-title a {
        color: var(--text-main);
    }

    .blog-posts .post-card:not(:first-child) .post-meta {
        font-size: 0.7rem;
        gap: 8px;
        margin-bottom: 0;
        color: var(--text-muted);
    }

    .blog-posts .post-card:not(:first-child) .post-excerpt {
        display: none;
    }
}

/* ===== FEATURED + SIDEBAR LAYOUT ===== */
.archive-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.view-all-link:hover {
    color: var(--primary);
}

.news-featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* Left: Big Featured Post */
.featured-big {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    text-decoration: none;
}

/* ===== ARCHIVE WITH SIDEBAR LAYOUT ===== */
.site-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.sidebar-area {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-soft);
}

.sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-news-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-news-list a {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-news-list a:hover {
    color: var(--primary);
}

.sidebar-news-list .news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .site-main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        position: static;
        margin-top: 40px;
    }
}

.featured-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-big-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.featured-big-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.featured-big-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.featured-big-date {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.featured-big-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-big-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.featured-big:hover .featured-big-title {
    color: var(--accent);
}

.featured-big:hover .featured-big-link {
    color: #fff;
}

/* Right: Small Posts Stack */
.featured-side-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-side-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.2s ease;
}

.featured-side-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.featured-side-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-side-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-soft);
}

.featured-side-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-side-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.featured-side-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-side-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.featured-side-item:hover .featured-side-title {
    color: var(--primary);
}

/* Remaining Posts Section */
.remaining-posts-section {
    margin-top: 48px;
}

.remaining-posts-section .section-title {
    margin-bottom: 24px;
}

/* Post Card Tweaks */
.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== FEATURED LAYOUT RESPONSIVE ===== */
@media (max-width: 900px) {
    .news-featured-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-big {
        min-height: 280px;
    }

    .featured-big-title {
        font-size: 1.25rem;
    }

    .featured-side-item {
        padding: 12px;
        gap: 12px;
    }

    .featured-side-thumb {
        width: 80px;
        height: 64px;
    }

    .featured-side-title {
        font-size: 0.9rem;
    }
}

/* ===== MINIMALIST ARCHIVE HEADER ===== */
.archive-hero {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    /* Reduced from 40px */
    position: relative;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    margin-top: 30px;
    /* Reduced from 40px */
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    /* Reduced from 40px */
}

.archive-hero::before {
    display: none;
    /* Remove decoration */
}

.archive-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    /* Reduced from 12px */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.archive-breadcrumbs a:hover {
    color: var(--primary);
}

.archive-breadcrumbs .sep {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.archive-breadcrumbs .current {
    color: var(--primary);
}

.archive-hero .archive-title {
    font-size: 2.25rem;
    /* Reduced from 3rem */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.archive-hero .archive-desc {
    font-size: 1.05rem;
    /* Slightly reduced */
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.6;
}

/* Fix container alignment inside hero - allow it to behave normally */
.archive-hero .container {
    position: relative;
    padding-left: 0;
    /* Align flush with content if needed, but container usually has padding */
    padding-right: 0;
}

@media (max-width: 768px) {
    .archive-hero {
        margin-top: 20px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .archive-hero .archive-title {
        font-size: 1.75rem;
    }


    .archive-hero .archive-desc {
        font-size: 0.95rem;
    }
}

/* ===== ARTICLE CONTENT LINK STYLES ===== */
.entry-content a,
.post-content a {
    color: var(--primary);
    text-decoration: none;
}

.entry-content a:hover,
.post-content a:hover {
    color: var(--primary-dark);
}

/* ===== PROGRAM PROFILE SECTION ===== */
.program-profile-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.program-profile-content {
    max-width: 900px;
    margin: 0 auto;
}

.program-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.highlight-icon {
    font-size: 2.5rem;
    line-height: 1;
}

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

.highlight-text strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

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

.btn-profile {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.btn-profile:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

/* ===== AGENDA SECTION ===== */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.agenda-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.agenda-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.agenda-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
    min-width: 80px;
    text-align: center;
}

.agenda-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.agenda-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agenda-content {
    flex: 1;
}

.agenda-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.agenda-title a {
    color: var(--text-main);
    transition: color 0.2s;
}

.agenda-title a:hover {
    color: var(--primary);
}

.agenda-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .program-profile-card {
        padding: 32px 24px;
    }

    .profile-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .agenda-card {
        flex-direction: column;
        text-align: center;
    }

    .agenda-date-box {
        width: 100%;
        padding: 12px;
    }

    .program-desc {
        font-size: 1rem;
    }
}

/* ===== FRONT PAGE 3-COLUMN GRID ===== */
.front-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .front-page-grid {
        grid-template-columns: 1fr;
    }
}

.fp-col h3.col-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    position: relative;
    color: var(--text-main);
    font-weight: 800;
}

.fp-col h3.col-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.fp-content {
    color: var(--text-main);
    line-height: 1.8;
}

/* List Styling - Compact & Minimal */
/* List Styling - Clean & Spacious */
.fp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-list li {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.fp-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fp-list h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 700;
}

.fp-list h4 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.fp-list h4 a:hover {
    color: var(--primary);
}

.fp-item-view {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.fp-item-view:hover {
    gap: 8px;
}

.fp-item-view::after {
    content: '→';
}

/* ===== ARCHIVE PAGE LAYOUT ===== */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   ARCHIVE PAGE - CLEAN & SIMPLE
   ================================================ */

.archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
}

@media (max-width: 768px) {
    .archive-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 24px 16px 60px;
    }
}

/* Breadcrumb */
.breadcrumb-simple {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.breadcrumb-simple a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-simple a:hover {
    color: var(--primary);
}

.breadcrumb-simple span {
    margin: 0 6px;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Post List */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.post-item:last-child {
    border-bottom: none;
}

.post-info {
    flex: 1;
    padding-right: 24px;
}

.post-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
}

.post-title:hover {
    color: var(--primary);
}

.post-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.post-more:hover {
    text-decoration: underline;
}

.post-date {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-top: 2px;
}

/* No Posts */
.no-posts {
    color: #64748b;
    font-size: 1rem;
    padding: 40px 0;
    text-align: center;
}

/* Pagination */
.pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ================================================
   SIDEBAR WIDGET - CLEAN
   ================================================ */

.archive-aside {
    position: sticky;
    top: 100px;
}

.widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.widget h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget li:first-child {
    padding-top: 0;
}

.widget a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.widget a:hover {
    color: var(--primary);
}

/* ===== GATEWAY PAGE STYLES (COMPACT & COLORFUL) ===== */
.gateway-body {
    background: #fdfdfd;
}

.gateway-body .container {
    max-width: 1000px;
    /* Compact width */
    padding: 0 24px;
}

.gateway-hero {
    position: relative;
    padding: 40px 0 40px;
    /* Reduced padding */
    background: radial-gradient(circle at top, #1e3a8a, #0f172a);
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.4);
}

.gateway-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
    pointer-events: none;
}

.gateway-title-wrapper {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure centering */
}

.gateway-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bae6fd;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gateway-hero h1 {
    font-size: 2.25rem;
    /* Slightly smaller */
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gateway-hero p {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.5;
    max-width: 550px;
    margin: 0 auto 24px;
}

/* SEARCH OVERLAY - Compact */
.gateway-search-wrapper {
    max-width: 600px;
    margin: -35px auto 40px;
    position: relative;
    z-index: 50;
    padding: 0 20px;
}

#gatewaySearchInput {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    height: 56px;
    /* Ensure sufficient height */
}

#gatewaySearchInput:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15) !important;
}

/* Faculty Section Styling */
.gateway-faculty-section {
    position: relative;
    padding-bottom: 40px;
    padding-top: 30px !important;
}

.faculty-block {
    margin-bottom: 30px;
    /* Reduced spacing */
    position: relative;
    /* Default Colors */
    --theme-primary: #3b82f6;
    --theme-soft: #eff6ff;
}

/* THEMES */
.theme-ftk {
    --theme-primary: #059669;
    --theme-soft: #ecfdf5;
}

/* Emerald */
.theme-febi {
    --theme-primary: #d97706;
    --theme-soft: #fffbeb;
}

/* Amber */
.theme-fs {
    --theme-primary: #7c3aed;
    --theme-soft: #f5f3ff;
}

/* Violet */
.theme-pasca {
    --theme-primary: #2563eb;
    --theme-soft: #eff6ff;
}

/* Blue */
.theme-doktor {
    --theme-primary: #be123c;
    --theme-soft: #fff1f2;
}

/* Rose */

.faculty-header-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
    gap: 8px;
}

.faculty-header-modern::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--theme-primary);
    /* Use Theme Color */
    border-radius: 4px;
}

.faculty-title-group h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.faculty-title-group span {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-visit-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    background: white;
    color: var(--theme-primary);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-visit-main:hover {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.prodi-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* More compact width */
    gap: 12px;
    /* Reduced gap */
    padding: 2px;
}

/* Program Card - Colorful & Compact */
.program-card-modern {
    background: var(--theme-soft);
    /* Colorful Background */
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.program-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-primary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.program-card-modern:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    /* Lift effect */
    border-color: var(--theme-primary);
}

.program-card-modern:hover::before {
    background: var(--theme-primary);
    opacity: 1;
}

/* No Icon Wrapper Needed */

.program-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.program-card-modern:hover .program-name {
    color: var(--theme-primary);
}

.program-link {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.program-card-modern:hover .program-link {
    color: var(--theme-primary);
}

.gateway-search-input::placeholder {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .gateway-hero {
        padding: 60px 0 40px;
        border-radius: 0 0 20px 20px;
    }

    .gateway-hero h1 {
        font-size: 1.75rem;
    }
}