:root {
    --primary-blue: #1773b0;
    --secondary-blue: #007bb4;
    --secondary-teal: #1773b0;
    --light-gray: #f8f9fa;
    --dark-text: #333333;
}
@font-face {
    font-family: "DINNextArabicBold";
    src: url("../../fonts//DINNextLTArabic-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: block;
}

@font-face {
    font-family: "DINNextArabicRegular";
    src: url("../../fonts//DINNextLTArabic-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}
/* Title */
@font-face {
    font-family: "Thuluth";
    src: url("../../fonts/A.Thuluth.ttf") format("truetype");
    font-style: normal;
    font-weight: bold;
    font-display: block;
}
@font-face {
    font-family: "Thulth";
    src: url("../../fonts/ThulthBold.ttf") format("truetype");
    font-style: normal;
    font-weight: bold;
    font-display: block;
}
body {
    /* font-family: "Tajawal", sans-serif; */
    background-color: #fff;
    color: var(--dark-text);
    overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DINNextArabicBold", sans-serif;
}

p,
a,
button,
span,
li,
input,
textarea,
select,
label {
    font-family: "DINNextArabicRegular", sans-serif;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 80px;
    transition: height 0.3s ease;
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.757);
    /* color: var(--primary-blue); */
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Side Accessibility Bar - White Background */
.accessibility-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.acc-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-toggle {
    display: none;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: #fff;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.acc-btn {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: var(--secondary-blue);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.acc-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 600px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.hero-caption {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    z-index: 5;
}

.hero-caption h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
}

/* Updated News Ticker Style */
/* .news-ticker-container {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.ticker-wrapper {
    display: flex;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ticker-label {
    background: var(--secondary-teal);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    white-space: nowrap;
    flex: 0 0 100px;
    text-align: center;
}

.ticker-content {
    flex: 1 1 auto;
    padding: 15px;
    overflow: hidden;
    white-space: nowrap;
    --marquee-duration: 10s;
    --marquee-distance: 100%;
    animation: marquee var(--marquee-duration) linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-inline-end: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.ticker-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--marquee-distance))); }
}

@keyframes marquee-rtl {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(calc(var(--marquee-distance))); }
} */

/* apply correct animation depending on document direction */
html:not([dir="rtl"]) .ticker-content {
    animation-name: marquee;
}
html[dir="rtl"] .ticker-content {
    animation-name: marquee-rtl;
}

/* Vision & Mission */
.vm-section {
    padding: 60px 0;
    background: white;
    border-bottom: 2px solid #eee;
}

.vm-btn {
    background-color: var(--secondary-blue);
    color: white;
    padding: 15px 50px;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    border: none;
    transition: 0.3s;
    min-width: 250px;
    text-decoration: none;
    text-align: center;
}

.vm-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    background: var(--light-gray);
}

.service-icon {
    font-size: 4rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.service-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* News Slider Section */
.news-section-wrapper {
    padding: 100px 0;
    background: var(--light-gray);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

.section-header h2 {
    font-weight: 800;
    color: var(--secondary-blue);
    font-size: 2.5rem;
    margin: 0;
}

.view-all {
    color: var(--secondary-blue);
    font-weight: 700;
    text-decoration: none;
}

.news-slider-container {
    position: relative;
    padding: 0 60px;
}

.news-track-wrapper {
    overflow: hidden;
    padding: 20px 0 40px;
}

.news-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-item {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
    background: white;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.news-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.news-item-body {
    padding: 30px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-item-date {
    color: var(--secondary-blue);
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.news-item-title {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 25px;
    height: 3.2em;
    overflow: hidden;
}

.btn-news-more {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
}

.btn-news-more i {
    transform: rotate(180deg);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    color: var(--secondary-blue);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.slider-arrow:hover {
    background: var(--secondary-blue);
    color: white;
}

.arrow-left {
    left: 0;
}

.arrow-right {
    right: 0;
}

/* Mayor Section */
.mayor-section {
    padding: 100px 0;
    background: white;
}

.app-mockup {
    width: 260px;
    height: 520px;
    border: 10px solid #333;
    border-radius: 40px;
    margin: 0 auto;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.mayor-badge {
    background: var(--secondary-blue);
    color: white;
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    background: var(--light-gray);
    padding: 80px 0 30px;
    border-top: 1px solid #ddd;
}

.footer-title {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--secondary-blue);
    margin-left: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--primary-blue);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-caption h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 450px;
    }

    .news-slider-container {
        padding: 0 50px;
    }

    .news-item {
        flex-basis: 100%;
        min-width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .ticker-label {
        padding: 15px 15px;
        font-size: 0.9rem;
    }

    .accessibility-sidebar.animate__fadeInRight {
        position: fixed;
        top: auto;
        bottom: 16px;
        right: 0;
        left: auto;
        margin: 0;
        transform: none;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 1300;
    }

    .accessibility-sidebar .acc-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        margin-right: 8px;
    }

    .accessibility-sidebar .acc-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        transform: translateX(120%);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .accessibility-sidebar.is-open .acc-actions {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .accessibility-sidebar .acc-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .animate__fadeInLeft {
        margin-right: 0;
    }
}
