/*
Theme Name: Uniturkey
Description: Custom Theme for StudyInTurkey
Version: 1.1
Author: Antigravity
*/

/* --- Global Responsive & Modern Resets --- */
html {
    scroll-behavior: smooth;
}

body {
    padding-bottom: env(safe-area-inset-bottom);
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

iframe {
    width: 100%;
}

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


:root {
    --primary-color: #E30A17;
    /* Turkish Flag Red */
    --primary-hover: #b90812;
    --secondary-color: #111827;
    /* Dark Gray/Black */
    --text-color: #374151;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(229, 231, 235, 1);
    --shadow-md: 0 4px 6px -1px rgba(227, 10, 23, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Jost', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header.glass-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu a {
    font-weight: 500;
    color: var(--secondary-color);
}

.main-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Modern Hero */
.modern-hero {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: #ffe4e6;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {

    .browse-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 2rem;
    }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.hero-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e2e8f0;
}

/* Marquee Section */
.marquee-container {
    overflow: hidden;
    padding: 2rem 0;
}

.marquee-row {
    display: flex;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 40s linear infinite;
}

.scroll-right .marquee-track {
    animation-direction: reverse;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-card {
    min-width: 250px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.m-card-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-card-info h4 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

/* Category List Card Styles (New) */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* =========================================
   1. RED ANIMATED HERO
   ========================================= */
.hero-red-animated {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c1c 100%);
    color: white;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-text h1 span {
    color: #fbbf24;
    /* Amber-400 */
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 300;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Search Box */
.hero-search-box {
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-bottom: 3rem;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 1.2rem;
    padding: 0 1rem;
    color: #94a3b8;
}

.search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--secondary-color);
}

.search-select {
    border: none;
    background: #f8fafc;
    color: #64748b;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #991b1b;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 2rem;
}

.hb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hb-icon {
    font-size: 1.2rem;
}

.hb-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


/* =========================================
   2. POPULAR PROGRAMS (Refined & Visible)
   ========================================= */
.cat-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card-modern:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 10, 23, 0.1);
    /* Primary color shadow */
    border-color: rgba(227, 10, 23, 0.2);
    z-index: 1;
}

.ccm-icon-box {
    width: 50px;
    height: 50px;
    background: #fff1f2;
    /* Light red bg */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.ccm-info {
    flex: 1;
}

.ccm-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.ccm-count {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.ccm-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s;
}

.cat-card-modern:hover .ccm-arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(4px);
}


/* =========================================
   3. UNIVERSITY MARQUEE (Dual Row Sliding)
   ========================================= */
.section-featured-unis {
    overflow: hidden;
    /* Hide scrollbars */
}

.uni-marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.uni-marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    will-change: transform;
}

/* Scroll Left Animation */
.scroll-left .marquee-track {
    animation: scrollLeft 40s linear infinite;
}

/* Scroll Right Animation */
.scroll-right .marquee-track {
    animation: scrollRight 40s linear infinite;
}

/* Hover Pause */
.uni-marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

.uni-card-minimal {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.uni-card-minimal:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ucm-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.uni-card-minimal:hover .ucm-logo {
    filter: grayscale(0);
    opacity: 1;
}

.ucm-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: normal;
    /* Allow text wrap */
    line-height: 1.3;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* =========================================
   4. PREMIUM NEWS (Blog)
   ========================================= */
.section-news-premium {
    background: #fff;
    padding: 5rem 0;
}

.news-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

/* Main Featured Card */
.news-feat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* group property removed */
}

.news-feat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.news-feat-card:hover img {
    transform: scale(1.05);
}

.nfc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: white;
}

.nfc-meta {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.nfc-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.nfc-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nfc-excerpt {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
    max-width: 90%;
    line-height: 1.6;
}

/* Side List */
.news-side-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-side-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    text-decoration: none;
    padding: 1rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.news-side-card:hover {
    border-color: #cbd5e1;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.nsc-thumb {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.nsc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nsc-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
}

.nsc-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 991px) {
    .news-layout-grid {
        grid-template-columns: 1fr;
    }

    .news-feat-card {
        min-height: 300px;
    }
}


/* =========================================
   4. NAVIGATION DROPDOWN & HOVER
   ========================================= */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-menu ul li {
    position: relative;
}

.main-menu>ul>li>a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.main-menu>ul>li>a:hover {
    color: var(--primary-color);
}

/* Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    z-index: 100;
    display: block !important;
    /* Force grid layout is managed by visibility */
    flex-direction: column;
    gap: 0 !important;
}

.main-menu ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sub-menu li a:hover {
    background: var(--primary-color);
    color: white !important;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .cat-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-search-box {
        margin: 0 auto 3rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   1. RED ANIMATED HERO FIXES & Z-INDEX
   ========================================= */
.hero-red-animated {
    /* overflow: hidden;  <-- REMOVE THIS to let dropdown show */
    overflow: visible;
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    /* Higher than BG */
}

/* Fix AJAX Results Dropdown Z-index (Increased) */
.ajax-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    /* Ensure it's above everything */
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
}

.hero-badges {
    position: relative;
    z-index: 1;
    /* Lower than dropdown */
}

/* Map Color Theme Override (Red/White) */
#turkey-map-container svg path {
    fill: #f1f5f9;
    stroke: white;
    stroke-width: 1.5;
    transition: all 0.3s;
}

#turkey-map-container svg path:hover {
    fill: var(--primary-color);
    cursor: pointer;
}


.ajax-results-container.active {
    display: block;
}

/* Result Items */
.ajax-result-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    text-decoration: none;
}

.ajax-result-item:hover {
    background: #f8fafc;
}

.ajax-result-item:last-child {
    border-bottom: none;
}

.ari-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e2e8f0;
    object-fit: cover;
}

.ari-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.ari-info span {
    font-size: 0.8rem;
    color: #94a3b8;
}


/* =========================================
   MOBILE APK STYLE (BOTTOM NAV)
   ========================================= */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 0.5rem 1rem;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.75rem;
    gap: 4px;
    transition: color 0.3s;
}

.mbn-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mbn-item.active,
.mbn-item:hover {
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .site-footer {
        padding-bottom: 5rem;
    }

    /* Space for bottom nav */

    /* Hide desktop header parts if needed or simplify */
    /* .glass-header { position: sticky; top: 0; background: rgba(255,255,255,0.95); } */

    .hero-red-animated {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    /* Map Container Mobile */
    #turkey-map-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #turkey-map-svg {
        min-width: 600px;
    }

    /* Ensure map is scrollable, not squished */
}

@media (max-width: 640px) {
    .cat-grid-modern {
        grid-template-columns: 1fr;
    }

    .news-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

.category-list {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.category-list::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.4s ease;
    z-index: 1;
}

.category-list:hover::before {
    width: 100%;
}

.category-list_icon,
.category-list_content {
    position: relative;
    z-index: 2;
}

.category-list_icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f9;
    border-radius: 50%;
    color: var(--primary-color);
    transition: 0.4s;
}

.category-list_icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: 0.4s;
}

.category-list:hover .category-list_icon {
    background: white;
}

.category-list_content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-list_title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.category-list_text {
    font-size: 14px;
    color: #666;
    transition: 0.4s;
}

.category-list:hover .category-list_title,
.category-list:hover .category-list_text,
.category-list:hover .category-list_icon i {
    color: white !important;
}

.category-list .icon-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    visibility: hidden;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-list:hover .icon-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}


/* News Section (Red Theme) */
.section-news {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-news .section-header h2,
.section-news .section-header p,
.section-news .view-all {
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

/* Hover Effects */
.news-card:hover {
    transform: translateY(-5px);
}

/* Unified Red Hover for Cards */
/* Already handled elsewhere, removing empty block to fix lint */

/* Button Animations */
.btn-primary,
.search-btn,
.view-all,
.slider-btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease;
}

.btn-primary::before,
.search-btn::before,
.view-all::before,
.slider-btn::before {
    content: "";
    position: absolute;
    height: 0%;
    left: 50%;
    top: 50%;
    width: 600%;
    background-color: var(--secondary-color);
    transform: translateX(-50%) translateY(-50%) rotate(60deg);
    z-index: -1;
    transition: all 0.7s ease;
}

.view-all::before {
    background-color: white;
}

.view-all:hover {
    color: var(--primary-color) !important;
}

.btn-primary:hover::before,
.search-btn:hover::before,
.slider-btn:hover::before {
    height: 560%;
}

@media (max-width: 768px) {

    .browse-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .layout-side-right,
    .layout-side-left {
        grid-template-columns: 1fr !important;
    }
}

/* GLOBAL LAYOUTS & WIDGETS (Fix for Sidebar Issues) */
.layout-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.layout-side-right {
    grid-template-columns: 2fr 1fr;
}

.layout-side-left {
    grid-template-columns: 1fr 2fr;
}

.sidebar-wrapper {
    position: sticky;
    top: 2rem;
}

.widget {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Global Pagination Styles (Matches User Design) */
.pagination,
.navigation.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(227, 10, 23, 0.25);
}

.pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
    min-width: auto;
}

/* =========================================
   5. UNIFIED PAGE HEADER (Modern Standard)
   ========================================= */
.page-header-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(227, 10, 23, 0.15), transparent 60%);
    pointer-events: none;
}

.ph-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ph-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.ph-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* =========================================
   6. UNIFIED CARD LIST STYLES
   ========================================= */
/* Common List Container */
.modern-list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Unified Card */
.std-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.std-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.std-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.std-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.std-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.std-meta-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.std-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.std-title a {
    color: inherit;
    text-decoration: none;
}

.std-title a:hover {
    color: var(--primary-color);
}

.std-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.std-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    border-left: 1px solid #f1f5f9;
    padding-left: 1.5rem;
    min-width: 160px;
}

.btn-std {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-std.primary {
    background: var(--primary-color);
    color: white;
}

.btn-std.primary:hover {
    background: #b91c1c;
}

.btn-std.secondary {
    background: white;
    color: var(--secondary-color);
    border: 1px solid #cbd5e1;
}

.btn-std.secondary:hover {
    border-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .std-card {
        flex-direction: column;
    }

    .std-thumb {
        width: 100%;
        height: 180px;
    }

    .std-actions {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        border-top: 1px solid #f1f5f9;
        padding-top: 1rem;
    }

    .btn-std {
        flex: 1;
    }
}

/* =========================================
   7. UNIFIED SIDEBAR (Modern Widget)
   ========================================= */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget-box {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.widget-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.widget-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.widget-content {
    padding: 1.5rem;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 0.75rem;
}

.widget-list li:last-child {
    margin-bottom: 0;
}

.widget-list a {
    display: block;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.widget-list a span.count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =========================================
   8. HEADER SEARCH (New)
   ========================================= */
.header-search-box {
    margin-right: 2rem;
    flex: 1;
    max-width: 400px;
}

.search-container-wrap {
    position: relative;
    width: 100%;
}

.search-container-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
}

.ajax-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.ajax-search-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.1);
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-height: 400px;
}

.ajax-results-inner {
    max-height: 400px;
    overflow-y: auto;
}

.search-section-title {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
    letter-spacing: 0.5px;
    background: #f8fafc;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.search-item:hover {
    background: #f8fafc;
}

.item-media {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.item-icon {
    font-size: 1.2rem;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.item-action {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.view-all-results {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-top: 1px solid #e2e8f0;
}

.highlight {
    background: rgba(251, 191, 36, 0.3);
    color: #b45309;
    padding: 0 2px;
    border-radius: 2px;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .header-search-box {
        display: none;
    }
}

/* =========================================
   9. MODERN COMMENT SYSTEM (Glassmorphism & Clean UI)
   ========================================= */
.ut-comments-area {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ut-comments-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-left: 1rem;
}

.ut-comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

/* Comment List */
.ut-comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 4rem !important;
}

.ut-comment-item {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.ut-comment-body {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ut-comment-body:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.08);
}

.ut-comment-author-avatar {
    flex-shrink: 0;
}

.ut-comment-author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ut-comment-meta {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ut-author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.ut-comment-date {
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 20px;
}

.ut-comment-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.ut-comment-actions {
    margin-top: 1rem;
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff1f2;
    padding: 6px 16px;
    border-radius: 8px;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Comment Form - Modern Glass Style */
.ut-comment-form-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* Decorative Background element */
.ut-comment-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(227, 10, 23, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ut-comment-form-wrapper .form-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.ut-comment-form-wrapper .form-note {
    color: #64748b;
    margin-bottom: 2rem;
    display: block;
}

.ut-form {
    position: relative;
    z-index: 1;
}

.ut-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ut-form input,
.ut-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ut-form input:focus,
.ut-form textarea:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ut-submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c1c 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(227, 10, 23, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ut-submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 10, 23, 0.4);
}

.ut-submit-btn:active {
    transform: translateY(-1px);
}

/* Security Checkbox */
.ut-security-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ut-comment-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .ut-form .form-grid {
        grid-template-columns: 1fr;
    }

    .ut-comment-body {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .ut-comment-author-avatar img {
        width: 48px;
        height: 48px;
    }

    .ut-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   10. MOBILE RESPONSIVE FIXES (CRITICAL)
   ========================================= */
@media (max-width: 900px) {

    /* Main Layout Fixes */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .container,
    .site-main,
    main,
    .content-area,
    .page-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* Fix Fixed Width Containers */
    .info-card,
    .sidebar-wrapper,
    article,
    .university-header,
    .university-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Hero Section Fixes */
    .hero-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-logo {
        margin: 0 auto;
    }

    .uni-title {
        font-size: 1.5rem !important;
        /* Scale down title */
        word-wrap: break-word;
        line-height: 1.3;
    }

    /* Stats Grid Fixes */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 columns on mobile */
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .stat-item {
        width: 100% !important;
        min-width: 0;
        padding: 0.75rem !important;
    }

    .stat-value {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sidebar Fixes */
    .page-layout-grid {
        display: flex;
        flex-direction: column;
    }

    aside.sidebar {
        width: 100% !important;
        margin-top: 2rem;
    }

    /* Tabs Fixes */
    .program-tabs-nav {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        width: 100%;
        scrollbar-width: none;
        /* Firefox */
    }

    .program-tabs-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .program-tabs-nav li {
        flex: 0 0 auto;
        /* Don't shrink */
        width: auto !important;
    }

    .program-tabs-nav a {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Faculties & Departments Lists */
    .faculty-list,
    .department-list {
        display: flex;
        /* Or grid */
        flex-direction: column !important;
        width: 100% !important;
    }

    .faculty-item,
    .department-item {
        width: 100% !important;
    }

    /* Comments Section Fix */
    .ut-comments-area {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .ut-comment-form-wrapper {
        padding: 1.5rem !important;
    }
} 
 / *   - - -   M o d e r n   C i t y   C a r d   S t y l e s   ( F o r   C i t y   A r c h i v e )   - - -   * /  
 . c i t y - g r i d   {  
         d i s p l a y :   g r i d ;  
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 2 8 0 p x ,   1 f r ) ) ;  
         g a p :   2 r e m ;  
         m a r g i n - t o p :   3 r e m ;   / *   F o r c e   v e r t i c a l   g a p   f r o m   s e a r c h   b a r   * /  
 }  
  
 . m o d e r n - c i t y - c a r d   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         h e i g h t :   1 0 0 % ;  
         b o r d e r - r a d i u s :   2 0 p x ;  
         o v e r f l o w :   h i d d e n ;  
         t e x t - d e c o r a t i o n :   n o n e ;  
         b a c k g r o u n d :   w h i t e ;  
         b o x - s h a d o w :   0   4 p x   2 0 p x   r g b a ( 0 , 0 , 0 , 0 . 0 4 ) ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ,   b o x - s h a d o w   0 . 3 s   e a s e ;  
         b o r d e r :   1 p x   s o l i d   # f 1 f 5 f 9 ;  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . m o d e r n - c i t y - c a r d : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 8 p x ) ;  
         b o x - s h a d o w :   0   2 0 p x   4 0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;  
 }  
  
 . m c c - t h u m b   {  
         h e i g h t :   2 2 0 p x ;  
         p o s i t i o n :   r e l a t i v e ;  
         o v e r f l o w :   h i d d e n ;  
 }  
  
 . m c c - t h u m b   i m g   {  
         w i d t h :   1 0 0 % ;  
         h e i g h t :   1 0 0 % ;  
         o b j e c t - f i t :   c o v e r ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 6 s   e a s e ;  
 }  
  
 . m o d e r n - c i t y - c a r d : h o v e r   . m c c - t h u m b   i m g   {  
         t r a n s f o r m :   s c a l e ( 1 . 0 8 ) ;  
 }  
  
 . m c c - o v e r l a y   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ;  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( t o   b o t t o m ,   t r a n s p a r e n t   5 0 % ,   r g b a ( 0 , 0 , 0 , 0 . 2 ) ) ;  
         o p a c i t y :   0 . 6 ;  
 }  
  
 . p l a t e - b a d g e   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   1 r e m ;  
         r i g h t :   1 r e m ;  
         b a c k g r o u n d :   # 0 0 7 b f f ;   / *   B l u e   * /  
         c o l o r :   w h i t e ;  
         w i d t h :   4 0 p x ;    
         h e i g h t :   4 0 p x ;  
         b o r d e r - r a d i u s :   5 0 % ;   / *   M a k e   i t   c i r c u l a r   * /  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         f o n t - w e i g h t :   8 0 0 ;  
         f o n t - s i z e :   1 r e m ;  
         z - i n d e x :   5 ;  
         b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ;  
         b o r d e r :   2 p x   s o l i d   w h i t e ;  
 }  
  
 . m c c - b o d y   {  
         p a d d i n g :   1 . 5 r e m ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         f l e x :   1 ;  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . m c c - t i t l e   {  
         m a r g i n :   0   0   1 r e m ;  
         f o n t - s i z e :   1 . 5 r e m ;  
         f o n t - w e i g h t :   8 0 0 ;  
         c o l o r :   # 1 e 2 9 3 b ;  
         l e t t e r - s p a c i n g :   - 0 . 5 p x ;  
 }  
  
 . m c c - s t a t s - r o w   {  
         d i s p l a y :   f l e x ;  
         f l e x - w r a p :   w r a p ;  
         g a p :   0 . 8 r e m ;  
         m a r g i n - b o t t o m :   0 . 5 r e m ;   / *   S p a c e   f o r   a r r o w   u s u a l l y ,   b u t   a r r o w   i s   a b s o l u t e   * /  
 }  
  
 . s t a t - p i l l   {  
         d i s p l a y :   i n l i n e - f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
         p a d d i n g :   0 . 5 r e m   0 . 8 r e m ;  
         b o r d e r - r a d i u s :   1 2 p x ;  
         f o n t - s i z e :   0 . 8 5 r e m ;  
         f o n t - w e i g h t :   5 0 0 ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;  
 }  
  
 . m o d e r n - c i t y - c a r d : h o v e r   . s t a t - p i l l   {  
         t r a n s f o r m :   s c a l e ( 1 . 0 3 ) ;  
 }  
  
 . u n i - p i l l   {  
         b a c k g r o u n d :   # e f f 6 f f ;  
         c o l o r :   # 2 5 6 3 e b ;  
 }  
  
 . d o r m - p i l l   {  
         b a c k g r o u n d :   # f d f 2 f 8 ;  
         c o l o r :   # d b 2 7 7 7 ;  
 }  
  
 . p o p - p i l l   {  
         b a c k g r o u n d :   # f d f 4 f f ;  
         c o l o r :   # 9 3 3 3 e a ;   / *   P u r p l e   t o n   * /  
 }  
  
 . s t a t - p i l l   i   {  
         f o n t - s i z e :   1 r e m ;  
 }  
  
 . m c c - a r r o w   {  
         p o s i t i o n :   a b s o l u t e ;  
         b o t t o m :   1 . 5 r e m ;  
         r i g h t :   1 . 5 r e m ;  
         w i d t h :   3 2 p x ;  
         h e i g h t :   3 2 p x ;  
         b a c k g r o u n d :   # 1 e 2 9 3 b ;  
         c o l o r :   w h i t e ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         o p a c i t y :   0 ;  
         t r a n s f o r m :   t r a n s l a t e X ( - 1 0 p x ) ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
 }  
  
 . m o d e r n - c i t y - c a r d : h o v e r   . m c c - a r r o w   {  
         o p a c i t y :   1 ;  
         t r a n s f o r m :   t r a n s l a t e X ( 0 ) ;  
 }  
 /* --- Modern City Card Styles (For City Archive) --- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.modern-city-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    display: block;
    text-decoration: none;
    color: inherit;
}

.modern-city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.mcc-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mcc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-city-card:hover .mcc-thumb img {
    transform: scale(1.1);
}

.mcc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.plate-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid #fbbf24;
}

.mcc-body {
    padding: 1.5rem;
}

.mcc-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.mcc-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mcc-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.mcc-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mcc-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcc-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.mcc-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mcc-info-item strong {
    color: #334155;
    min-width: 80px;
}

.mcc-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.modern-city-card:hover .mcc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .mcc-thumb {
        height: 160px;
    }

    .mcc-title {
        font-size: 1.2rem;
    }
}