/*
Theme Name: IBNUS University Theme
Theme URI: https://ibnus.ac.id
Author: IBNUS Team
Author URI: https://ibnus.ac.id
Version: 1.1
License: Proprietary
Text Domain: ibnus-theme
*/

:root {
    --primary-color: #0095DA;
    /* Binus Blue */
    --secondary-color: #005B8C;
    /* Darker Blue */
    --accent-color: #F8991D;
    /* Orange Accent */
    --text-color: #333;
    --bg-color: #fff;
    --light-gray: #f4f4f4;
    --gradient-rainbow: linear-gradient(90deg, #ed1c24 0%, #f68e1e 20%, #ffde17 40%, #00a651 60%, #0054a6 80%, #662d91 100%);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.rainbow-strip {
    height: 5px;
    background: var(--gradient-rainbow);
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #fff;
    /* White background */
    color: var(--primary-color);
    /* Blue Text */
    padding: 1px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align tabs to bottom */
}

.lang-dropdown-wrapper {
    display: none;
}

/* Hide old dropdown styles if any */

.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}


.top-menu a {
    color: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.top-menu a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Language Bookmark Tabs */
.lang-bookmark-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3px;
    margin-bottom: -6px;
    /* Pull down to sit on line */
}

.lang-tab {
    position: relative;
}

.lang-tab a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    /* Reduced gap */
    padding: 5px 5px 4px;
    /* Reduced padding */
    background: #f0f0f0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    position: relative;
    min-width: 40px;
    /* Reduced min-width */
}

/* Bookmark tab shape */
.lang-tab a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.lang-tab a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.lang-tab.active a {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    border-bottom: 3px solid var(--accent-color);
}

.lang-tab.active a::before {
    background: var(--accent-color);
}

.lang-tab .tab-flag {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.lang-tab .tab-code {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Optional: Add subtle shadow to make tabs pop */
.lang-bookmark-tabs {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}


.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 0;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 10px 0;
}

nav a {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu (Desktop) */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    display: block;
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    margin-top: 8px;
}

nav ul li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li ul li {
    padding: 0;
}

nav ul li ul a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

nav ul li ul a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide effect */
}

nav ul li ul li:last-child a {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

nav ul li ul li:first-child a {
    border-radius: 8px 8px 0 0;
}

/* Dropdown Arrow Indicator */
.menu-item-has-children>a::after {
    content: '▼';
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: 0.4s ease;
        padding-top: 5px;
        /* Increased to clear the X button */
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    nav a {
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
    }

    /* Mobile Dropdown */
    nav ul li ul {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default */
        background: #f9f9f9;
        min-width: 100%;
        border-top: none;
        border-radius: 0;
    }

    nav ul li.dropdown-open>ul {
        display: block;
    }

    .menu-item-has-children>a::after {
        content: '+';
        font-size: 16px;
        font-weight: 300;
    }

    nav ul li.dropdown-open>a::after {
        content: '−';
    }

    /* Mobile Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Hero & Slider Redesign */
.hero-welcome-info {
    padding: 40px 0 20px;
}

.welcome-label {
    font-size: 18px;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 5px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

/* Hero Slider (Splide.js) */
.home-slideshow-list {
    margin: 40px 0;
    overflow: visible !important;
}

.splide__track {
    overflow: visible !important;
    /* Essential for peeking side slides */
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-slide-item {
    height: 600px;
    min-height: 400px;
    background-color: #f0f0f0;
    /* Debug background */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s ease;
    opacity: 0.5;
    transform: scale(0.9);
}

.splide__slide.is-active .hero-slide-item {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slider-empty-placeholder {
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 12px;
}

/* Original styles below kept for compatibility or cleanup */
.hero {
    display: none;
    /* Hide old hero container if present */
}



/* Sections Global */
.section-container {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background: #f3f2f2;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

/* Awards Grid */
.awards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.award-item {
    text-align: center;
    width: 200px;
}

.award-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Knowledge Grid */
.knowledge-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.knowledge-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.knowledge-item:hover {
    transform: translateY(-5px);
}

.k-icon-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 56px;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h3 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-dates {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.date-box,
.location-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-warning {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Blue Info Section */
.info-section-blue {
    background: linear-gradient(90deg, #9d2483 0%, #0095da 100%);
    /* Purple to Blue gradient */
    padding: 20px 0;
    color: #fff;
    margin-bottom: 40px;
}

.info-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 32px;
}

.info-text h4 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
}

.info-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.btn-small {
    background: #fff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    margin-left: 10px;
}

/* Partner Section */
.partner-section {
    padding: 40px 0;
    text-align: center;
    background: #f9f9f9;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    color: #999;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 25px;
}

.main-content-pad {
    padding: 10px 5px;
}

.section-title-white {
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-bottom: 5px;
}

.section-title-primary {
    font-weight: bold;
    text-align: center;
    color: #062e9e;
    margin-bottom: 5px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #02558b;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    /* Dark Blue */
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.footer-column ul li:last-child {
    border-bottom: none;
}

.footer-column a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    transition: 0.3s;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 5px;
        padding: 5px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;

        /* Company Profile Video Section */
        .company-profile-video-section {
            background-color: #f9f9f9;
        }

        .video-wrapper-box {
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .video-overlay {
            transition: all 0.3s ease;
        }

        .video-overlay:hover .play-button {
            transform: scale(1.1);
            background: #fff;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        }

        .play-button {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .play-button i {
            color: #c00;
            font-size: 30px;
            margin-left: 5px;
        }
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-sidebar-column {
        order: 2;
    }

    .sidebar-sticky-wrap {
        position: static;
    }

    .post-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 40px 0 30px;
    }

    .post-title {
        font-size: 30px;
    }

    .post-main-wrapper {
        padding: 40px 0 60px;
    }

    .entry-content {
        font-size: 17px;
    }

    .post-navigation-custom .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }
}

/* Partners Section */
.partners-section {
    background-color: #f8f9fa;
    padding: 10px 0;
}

.partner-category-title {
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.partner-category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
}

.partner-name-text {
    font-weight: 700;
    color: #555;
    text-align: center;
}

/* Partner Modal */
.ibn-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.ibn-modal.active {
    visibility: visible;
    opacity: 1;
}

.ibn-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.ibn-modal-container {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.ibn-modal.active .ibn-modal-container {
    transform: scale(1);
}

.ibn-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.ibn-modal-close:hover {
    color: #333;
}

.modal-partner-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

/* 404 Page Styles */
.error-404-container {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-illustration {
    position: relative;
    margin-bottom: 30px;
}

.error-code {
    font-size: 150px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.error-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: rgba(0, 149, 218, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.error-title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.error-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-search form {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.error-search input[type="search"] {
    width: 100%;
    /* Ensure full width */
    min-width: 300px;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.error-search input[type="search"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 149, 218, 0.1);
}

.btn-home {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-home:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================
   FORCE MOBILE HEADER LAYOUT
========================= */
@media (max-width: 768px) {

    .site-header .main-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    /* BARIS ATAS */
    .site-header .logo {
        flex: 1 1 auto !important;
        max-width: 70%;
    }

    .site-header .mobile-menu-toggle {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: block !important;
    }

    /* HEADER ACTIONS TURUN KE BARIS 2 */
    .site-header .header-actions {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px;
        margin-top: 15px;
    }

}

/*Footer*/
.footer-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.footer-logo img {
    max-height: 65px;
    width: auto;
    margin-bottom: 20px;
}

.footer-item {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1e2a78; /* biru brand */
}

.footer-item a {
    color: #f7941d; /* orange brand */
    text-decoration: none;
}

.footer-item a:hover {
    text-decoration: underline;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

.footer-links-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffff; /* biru brand */
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col li {
    margin-bottom: 8px;
}

.footer-links-col a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links-col a:hover {
    color: #f7941d; /* orange brand */
    padding-left: 5px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.error-search input[type="search"] {
    min-width: auto;
    width: 100%;
}

/* Page Template Styles */
.page-hero {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Prevent overlap with dropdown menus */
}

.page-hero.has-bg-image {
    color: #fff;
    border-bottom: none;
}

.header-overlay {
    display: none;
}

.page-hero.has-bg-image .header-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
}

.page-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin: 10px 0 0;
    font-weight: 800;
}

.page-hero.has-bg-image .page-title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero.has-bg-image .breadcrumb-container a,
.page-hero.has-bg-image .breadcrumb-container {
    color: rgba(255, 255, 255, 0.9);
}

.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }

    .page-title {
        font-size: 28px;
    }

    .page-content {
        padding: 20px;
    }
}

/* =====================================================
   HEADER ACTIONS (Search & Register Buttons)
===================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-search-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-register-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.header-register-btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

/* =====================================================
   SEARCH MODAL
===================================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.search-modal-close:hover {
    color: #333;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-field:focus {
    border-color: var(--primary-color);
}

.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.search-suggestions {
    text-align: center;
}

.search-hint {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* =====================================================
   RESPONSIVE HEADER ACTIONS
===================================================== */
@media (max-width: 768px) {
    .header-actions {
        margin-left: auto;
        gap: 10px;
    }

    .header-register-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .header-search-btn {
        width: 35px;
        height: 35px;
    }

    .search-modal-content {
        padding: 30px 20px;
    }
}

/* =====================================================
   SEARCH AUTOCOMPLETE
===================================================== */
.search-autocomplete {
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.autocomplete-results {
    padding: 10px 0;
}

.autocomplete-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #fff;
}

.autocomplete-item-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.autocomplete-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

.autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: var(--primary-color);
}

.autocomplete-loading i {
    margin-right: 8px;
}

/* =====================================================
   SEARCH RESULTS PAGE
===================================================== */
.search-results-section {
    padding: 60px 0;
    min-height: 50vh;
}

.search-results-count {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.search-result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.search-result-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-image {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.card-meta i {
    margin-right: 5px;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}

.card-read-more:hover {
    gap: 12px;
}

.card-read-more i {
    font-size: 12px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.search-pagination {
    margin-top: 40px;
}

.search-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.search-pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.search-pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-thumbnail {
        height: 180px;
    }

    .search-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.event-item:hover {
    background: #f8f9fa;
}

.event-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.event-short-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}