/**
 * Farokhshahr Municipality Official Portal - Master Modern Design System
 * Version: 2.0
 * Architecture: Mobile-First, Clean & Fully Responsive
 */

/* ==========================================================================
   IRANSans Font-Face Declarations (Local /Fonts/ Directory)
   ========================================================================== */
@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/IRANSansWeb(FaNum).eot");
    src: url("../Fonts/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum).woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum).ttf") format("truetype");
    font-weight: 400;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/IRANSansWeb(FaNum)_Light.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Light.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.woff2") format("woff2"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/IRANSansWeb(FaNum)_Medium.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Medium.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.ttf") format("truetype");
    font-weight: 700;
    font-weight: 800;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans_Bold";
    src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans_Medium";
    src: url("../Fonts/IRANSansWeb(FaNum)_Medium.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Medium.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Medium.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans_Light";
    src: url("../Fonts/IRANSansWeb(FaNum)_Light.eot");
    src: url("../Fonts/IRANSansWeb(FaNum)_Light.eot?#iefix") format("embedded-opentype"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.woff2") format("woff2"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.woff") format("woff"),
         url("../Fonts/IRANSansWeb(FaNum)_Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --portal-navy: #091e36;
    --portal-navy-light: #102d4f;
    --portal-blue: #1b497d;
    --portal-blue-hover: #235c9e;
    --portal-gold: #f59e0b;
    --portal-gold-hover: #d97706;
    --portal-emerald: #059669;
    --portal-emerald-light: #ecfdf5;
    --portal-rose: #e11d48;
    
    /* Backgrounds & Surfaces */
    --portal-bg: #f8fafc;
    --portal-surface: #ffffff;
    --portal-surface-hover: #f1f5f9;
    --portal-border: #e2e8f0;
    --portal-border-subtle: #edf2f7;
    
    /* Typography Colors */
    --portal-text-primary: #0f172a;
    --portal-text-secondary: #334155;
    --portal-text-muted: #64748b;
    --portal-text-light: #94a3b8;
    
    /* Shadows */
    --portal-shadow-xs: 0 1px 2px rgba(9, 30, 54, 0.04);
    --portal-shadow-sm: 0 2px 8px rgba(9, 30, 54, 0.06);
    --portal-shadow-md: 0 8px 24px rgba(9, 30, 54, 0.08);
    --portal-shadow-lg: 0 16px 36px rgba(9, 30, 54, 0.12);
    --portal-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    
    /* Radii */
    --portal-radius-xs: 6px;
    --portal-radius-sm: 10px;
    --portal-radius-md: 16px;
    --portal-radius-lg: 24px;
    --portal-radius-full: 9999px;
    
    /* Transitions */
    --portal-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --portal-transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body, html, h1, h2, h3, h4, h5, h6, p, a, span, button, input, textarea, select {
    font-family: 'IRANSans', 'IRANSansWeb(FaNum)', Tahoma, sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    background-color: var(--portal-bg);
    color: var(--portal-text-primary);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--portal-blue);
    text-decoration: none;
    transition: var(--portal-transition);
}

a:hover {
    color: var(--portal-gold);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.portal-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--portal-border);
    padding: 8px 0;
    font-size: 0.85rem;
}

.portal-topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--portal-text-secondary);
    font-weight: 500;
}

.portal-topbar-date i {
    color: var(--portal-blue);
    font-size: 0.95rem;
}

.portal-topbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-hotline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    padding: 3px 12px;
    border-radius: var(--portal-radius-full);
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #fde68a;
    transition: var(--portal-transition);
}

.portal-hotline-badge:hover {
    background: #fde68a;
    color: #78350f;
    transform: translateY(-1px);
}

.portal-social-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    transition: var(--portal-transition);
}

.portal-social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

/* ==========================================================================
   Main Navbar & Header
   ========================================================================== */
.portal-header {
    background: linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-light) 100%);
    box-shadow: 0 4px 20px rgba(9, 30, 54, 0.2);
    border-bottom: 3px solid var(--portal-gold);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--portal-transition);
}

.portal-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.portal-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-logo-img {
    max-height: 65px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: var(--portal-transition);
}

.portal-logo-link:hover .portal-logo-img {
    transform: scale(1.03);
}

/* Desktop Navigation */
.portal-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-nav-item > a {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--portal-radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--portal-transition);
    position: relative;
}

.portal-nav-item > a:hover,
.portal-nav-item.active > a {
    color: var(--portal-gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Nav Actions (Search + Emergency Call) */
.portal-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-search-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--portal-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-search-btn:hover {
    background: var(--portal-gold);
    color: var(--portal-navy);
    border-color: var(--portal-gold);
    transform: translateY(-2px);
}

.portal-phone-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--portal-radius-md);
    color: #ffffff;
    transition: var(--portal-transition);
}

.portal-phone-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--portal-gold);
}

.portal-phone-box .phone-number {
    font-weight: bold;
    color: var(--portal-gold);
    font-size: 1rem;
    letter-spacing: 0.5px;
    direction: ltr !important;
    display: block;
    unicode-bidi: isolate;
    text-align: left;
}

.portal-phone-box .phone-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: block;
}

/* Mobile Hamburger Toggle */
.portal-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--portal-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-mobile-toggle:hover {
    background: var(--portal-gold);
    color: var(--portal-navy);
}

/* Mobile Off-canvas Drawer */
.portal-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--portal-navy);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.portal-drawer.is-open {
    right: 0;
}

.portal-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 54, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--portal-transition);
}

.portal-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.portal-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-drawer-header h5 {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0;
    font-weight: bold;
}

.portal-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

.portal-drawer-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.portal-drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    padding: 13px 22px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--portal-transition);
}

.portal-drawer-menu li a:hover {
    color: var(--portal-gold);
    background: rgba(255, 255, 255, 0.06);
    padding-right: 28px;
}

.portal-drawer-menu li a i {
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */
.portal-hero-section {
    padding: 20px 0 35px;
}

.portal-slider-card {
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    box-shadow: var(--portal-shadow-lg);
    background: #000000;
    position: relative;
}

.portal-slide-item {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.portal-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.portal-slide-item:hover img {
    transform: scale(1.05);
}

.portal-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(9, 30, 54, 0.96) 0%, rgba(9, 30, 54, 0.75) 50%, transparent 100%);
    padding: 40px 45px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.portal-slide-content {
    max-width: 850px;
}

.portal-slide-badge {
    display: inline-block;
    background: var(--portal-gold);
    color: var(--portal-navy);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--portal-radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.portal-slide-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.portal-slide-summary {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-slide-btn {
    background: #ffffff;
    color: var(--portal-navy) !important;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--portal-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: var(--portal-transition);
}

.portal-slide-btn:hover {
    background: var(--portal-gold);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Quick Access Municipal Services
   ========================================================================== */
.portal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}

.portal-service-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-md);
    padding: 22px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--portal-shadow-sm);
    transition: var(--portal-transition);
    color: var(--portal-text-primary);
}

.portal-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--portal-shadow-md);
    border-color: var(--portal-gold);
    color: var(--portal-blue);
}

.portal-service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--portal-radius-md);
    background: #f1f5f9;
    color: var(--portal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--portal-transition);
}

.portal-service-card:hover .portal-service-icon {
    background: linear-gradient(135deg, var(--portal-blue), var(--portal-navy));
    color: var(--portal-gold);
    transform: scale(1.1);
}

.portal-service-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.portal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--portal-border);
}

.portal-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 70px;
    height: 2px;
    background: var(--portal-gold);
}

.portal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--portal-navy);
    margin: 0;
}

.portal-section-title i {
    color: var(--portal-gold);
}

.portal-section-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--portal-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-section-link:hover {
    color: var(--portal-gold);
}

/* ==========================================================================
   News Feed Cards
   ========================================================================== */
.portal-news-container {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-card);
    padding: 28px;
    height: 100%;
}

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

.portal-news-item {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--portal-border-subtle);
}

.portal-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.portal-news-card {
    display: flex;
    gap: 20px;
    color: inherit;
    text-decoration: none;
    align-items: center;
}

.portal-news-card:hover {
    color: inherit;
}

.portal-news-thumb-wrap {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    border-radius: var(--portal-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--portal-shadow-xs);
}

.portal-news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portal-news-card:hover .portal-news-thumb-wrap img {
    transform: scale(1.06);
}

.portal-news-body {
    flex-grow: 1;
}

.portal-news-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--portal-navy);
    line-height: 1.6;
    margin: 0 0 8px;
    transition: var(--portal-transition);
}

.portal-news-card:hover .portal-news-headline {
    color: var(--portal-blue-hover);
}

.portal-news-excerpt {
    color: var(--portal-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--portal-text-light);
}

.portal-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Most Viewed Sidebar Card */
.portal-sidebar-container {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-card);
    padding: 24px;
    height: auto;
    position: sticky;
    top: 90px;
}

.portal-trending-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 10px;
    border-radius: var(--portal-radius-sm);
    color: inherit;
    text-decoration: none;
    transition: var(--portal-transition);
    border-bottom: 1px solid var(--portal-border-subtle);
}

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

.portal-trending-item:hover {
    background: var(--portal-surface-hover);
    transform: translateX(-4px);
    color: inherit;
}

.portal-trending-rank {
    width: 28px;
    height: 28px;
    border-radius: var(--portal-radius-xs);
    background: #f1f5f9;
    color: var(--portal-text-secondary);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-trending-item:nth-child(1) .portal-trending-rank {
    background: #fef3c7;
    color: #b45309;
}

.portal-trending-item:nth-child(2) .portal-trending-rank {
    background: #f3f4f6;
    color: #4b5563;
}

.portal-trending-item:nth-child(3) .portal-trending-rank {
    background: #ffedd5;
    color: #c2410c;
}

.portal-trending-thumb {
    width: 65px;
    height: 65px;
    border-radius: var(--portal-radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.portal-trending-info {
    flex-grow: 1;
}

.portal-trending-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--portal-navy);
    line-height: 1.5;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-trending-item:hover .portal-trending-title {
    color: var(--portal-blue);
}

.portal-trending-date {
    font-size: 0.78rem;
    color: var(--portal-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Mayor's Welcome Card
   ========================================================================== */
.portal-mayor-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-md);
    padding: 38px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.portal-mayor-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--portal-navy), var(--portal-gold));
}

.portal-mayor-quote-icon {
    position: absolute;
    left: 40px;
    bottom: 20px;
    font-size: 8rem;
    color: rgba(9, 30, 54, 0.03);
    pointer-events: none;
}

.portal-mayor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.portal-mayor-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--portal-navy);
    margin: 0;
}

.portal-mayor-body p {
    color: var(--portal-text-secondary);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 12px;
}

.portal-mayor-photo-wrap {
    text-align: center;
}

.portal-mayor-photo {
    max-width: 270px;
    width: 100%;
    border-radius: var(--portal-radius-md);
    box-shadow: var(--portal-shadow-lg);
    border: 4px solid #ffffff;
    margin: 0 auto;
}

.portal-mayor-badge {
    display: inline-block;
    margin-top: 14px;
    background: #f1f5f9;
    color: var(--portal-navy);
    padding: 6px 18px;
    border-radius: var(--portal-radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

/* ==========================================================================
   City Stats & Infographics
   ========================================================================== */
.portal-stats-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-card);
    padding: 35px;
    margin-bottom: 40px;
}

.portal-stat-box {
    background: #f8fafc;
    border: 1px solid var(--portal-border-subtle);
    border-radius: var(--portal-radius-md);
    padding: 22px;
    text-align: center;
    transition: var(--portal-transition);
}

.portal-stat-box:hover {
    background: #ffffff;
    border-color: var(--portal-gold);
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-md);
}

.portal-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--portal-navy);
    margin-bottom: 6px;
}

.portal-stat-label {
    font-size: 0.88rem;
    color: var(--portal-text-muted);
}

/* ==========================================================================
   Projects & Tenders Components
   ========================================================================== */
.portal-carousel-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-md);
    overflow: hidden;
    box-shadow: var(--portal-shadow-card);
    transition: var(--portal-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.portal-carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--portal-shadow-lg);
    border-color: var(--portal-blue);
}

.portal-carousel-thumb {
    height: 190px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.portal-carousel-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.portal-carousel-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--portal-navy);
    line-height: 1.6;
    margin: 0 0 12px 0;
    min-height: 3.2em; /* exactly 2 lines so 1-line and 2-line titles occupy the exact same space */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-carousel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--portal-border-subtle);
}

/* ==========================================================================
   Single News & Reading View
   ========================================================================== */
.portal-article-container {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-card);
    padding: 35px;
    margin-bottom: 30px;
}

.portal-breadcrumb-bar {
    background: #ffffff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-md);
    padding: 12px 20px;
    margin-bottom: 25px;
}

.portal-breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
}

.portal-breadcrumb-list li a {
    color: var(--portal-text-muted);
}

.portal-breadcrumb-list li.active {
    color: var(--portal-blue);
    font-weight: 700;
}

.portal-article-header {
    border-bottom: 1px solid var(--portal-border);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.portal-article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--portal-navy);
    line-height: 1.5;
    margin: 12px 0 16px;
}

.portal-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--portal-text-muted);
    font-size: 0.88rem;
}

.portal-article-body {
    font-size: 1.08rem;
    line-height: 2.2;
    color: #1e293b;
}

.portal-article-body img {
    border-radius: var(--portal-radius-md);
    box-shadow: var(--portal-shadow-md);
    margin: 24px auto;
}

/* Share Toolbar */
.portal-share-toolbar {
    background: #f8fafc;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 35px 0 20px;
}

.portal-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--portal-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: var(--portal-transition);
}

.portal-share-btn.btn-eitaa { background: #ea580c; }
.portal-share-btn.btn-telegram { background: #0284c7; }
.portal-share-btn.btn-whatsapp { background: #16a34a; }
.portal-share-btn.btn-copy { background: var(--portal-blue); }

.portal-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* ==========================================================================
   Archive Grid
   ========================================================================== */
.portal-category-sidebar {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-card);
    padding: 22px;
}

.portal-category-sidebar h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--portal-navy);
    border-bottom: 2px solid var(--portal-border);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.portal-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--portal-radius-sm);
    color: var(--portal-text-secondary);
    font-weight: 500;
    transition: var(--portal-transition);
    margin-bottom: 4px;
}

.portal-category-link:hover,
.portal-category-link.is-active {
    background: #eff6ff;
    color: var(--portal-blue);
    font-weight: 700;
    padding-right: 18px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.portal-footer {
    background-color: var(--portal-navy);
    background-image: url('../Img/Map.png');
    background-position: center center;
    background-size: cover;
    color: #f1f5f9;
    border-top: 4px solid var(--portal-gold);
    padding-top: 55px;
    margin-top: 60px;
}

.portal-footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.portal-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 2px;
    background: var(--portal-gold);
}

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

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

.portal-footer-links li a {
    color: #cbd5e1;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--portal-transition);
}

.portal-footer-links li a:hover {
    color: var(--portal-gold);
    padding-right: 6px;
}

.portal-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.portal-footer-contact-item i {
    color: var(--portal-gold);
    font-size: 1.1rem;
    margin-top: 4px;
}

.portal-footer-map-card {
    border-radius: var(--portal-radius-md);
    overflow: hidden;
    box-shadow: var(--portal-shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.portal-footer-bottom {
    background: rgba(4, 15, 27, 0.85);
    padding: 18px 0;
    margin-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    .portal-nav-menu,
    .portal-phone-box {
        display: none !important;
    }

    .portal-mobile-toggle {
        display: flex !important;
    }

    .portal-slide-item {
        height: 360px;
    }

    .portal-slide-caption {
        padding: 25px 25px 20px;
    }

    .portal-slide-title {
        font-size: 1.25rem;
    }

    .portal-slide-summary {
        display: none;
    }

    .portal-slide-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .portal-news-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-news-thumb-wrap {
        width: 100%;
        height: 180px;
    }

    .portal-mayor-card {
        padding: 26px 20px;
    }

    .portal-mayor-photo {
        max-width: 220px;
        margin-bottom: 20px;
    }

    .portal-article-container {
        padding: 22px;
    }

    .portal-article-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .portal-slide-item {
        height: 270px;
    }

    .portal-slide-caption {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .portal-slide-title {
        font-size: 1.05rem;
    }

    .portal-section-title {
        font-size: 1.15rem;
    }

    .portal-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portal-service-card {
        padding: 16px 10px;
    }

    .portal-service-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .portal-service-title {
        font-size: 0.85rem;
    }

    .portal-logo-img {
        max-height: 48px;
    }
}

/* ==========================================================================
   Back To Top Floating Button & UI Refinements
   ========================================================================== */
.portal-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--portal-radius-full);
    background: var(--portal-navy);
    border: 2px solid var(--portal-gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(9, 30, 54, 0.35);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--portal-transition);
}

.portal-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portal-back-to-top:hover {
    background: var(--portal-gold);
    color: var(--portal-navy);
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--portal-blue);
}

/* Owl Carousel Custom Dots */
.owl-dots {
    text-align: center;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    display: inline-block;
    border-radius: var(--portal-radius-full);
    transition: var(--portal-transition);
}

.owl-dots .owl-dot.active span {
    width: 26px;
    background: var(--portal-gold);
}

