.republic-text {
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.slide {
    justify-content: flex-start;
    padding: 0 3rem;
}
@media (max-width: 768px) {
    .slide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.first-section-container {
    display: flex;
    flex-wrap: wrap;
}
.about-minister {
    width: 100%;
    flex: 0 0 100%;
}
.about-minister.full-width {
    width: 100%;
}
.about-minister .container {
    max-width: 100%;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}
.about-minister.full-width .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}
.image-frame {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    background: var(--white);
}
.image-frame:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red) 50%, var(--primary-green));
    z-index: -1;
    border-radius: var(--border-radius-lg);
}
.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.discussion-space-section {
    width: 100%;
    flex: 0 0 100%;
}
.discussion-space-section {
    padding: 1rem 0;
    position: relative;
}
@media (max-width: 768px) {
    .about-minister .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .first-section-container {
        flex-direction: column;
    }
    .about-minister {
        width: 100%;
        margin-bottom: 2rem;
    }
    .about-minister.full-width {
        margin-bottom: 0;
    }
    .discussion-space-section {
        width: 100%;
    }
}
.minister-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    padding: 2rem;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--gray-200);
}

@media (max-width: 1024px) {
    .minister-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}
.minister-hero, .minister-text {
    display: flex;
    flex-direction: column;
}
.minister-hero {
    gap: 2rem;
}

.minister-image-container, .minister-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.minister-text {
    gap: 1.5rem;
}
.ministry-section {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
    align-items: start;
    width: 100%;
    padding-top: 1.5rem;
}
.ministry-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--gray-200);
    transform: translateX(-0.5px);
}
.ministry-left,
.ministry-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}
.ministry-left {
    display: grid;
    grid-template-columns: minmax(220px, 170px) 1fr;
    column-gap: 1rem;
    row-gap: 0.75rem;
    align-items: start;
}
.ministry-left .minister-image-container {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
}
.ministry-left .ministry-left-content {
    grid-column: 2;
    grid-row: 1;
}
.ministry-left .ministry-left-content,
.ministry-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}
.ministry-left-content .ministry-badge {
    margin-bottom: 0.4rem;
}
.ministry-right {
    padding-left: 1.75rem;
    border-left: 0;
}
.ministry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.25);
}
.ministry-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}
.ministry-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-red);
}
.ministry-description p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}
.ministry-description .expandable-text {
    margin: 0;
}
.ministry-description.is-collapsed .expandable-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}
.description-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.description-toggle.is-visible {
    display: inline-flex;
}
.description-toggle .toggle-label-less {
    display: none;
}
.ministry-description.is-expanded .description-toggle .toggle-label-more {
    display: none;
}
.ministry-description.is-expanded .description-toggle .toggle-label-less {
    display: inline;
}
.description-toggle .toggle-arrow {
    transition: transform 0.25s ease;
}
.ministry-description.is-expanded .description-toggle .toggle-arrow {
    transform: rotate(180deg);
}
.minister-badge {
    display: inline-flex
;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.3);
    width: fit-content;
}
.minister-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.3);
}
.btn-primary a {
    color: var(--white);
}

.minister-actions .btn-primary a {
    color: var(--white);
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
}
.minister-actions .btn-primary:hover {
    background-color: var(--primary-color) !important;    
    color: var(--white);
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.featured-blog-container {
    width: 100%;
    margin: 0 auto;
}
.featured-blog-card {
    background: linear-gradient(135deg, #dc2626, #991b1b 50%, #7f1d1d);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.4);
    position: relative;
}
.decorative-circle-bottom, .decorative-circle-top {
    position: absolute;
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 50%;
}
.decorative-circle-top {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}
.decorative-circle-bottom {
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
}
.decorative-circle-bottom, .decorative-circle-top {
    position: absolute;
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 50%;
}
.featured-blog-content {
    padding: 6.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}
.btn-featured-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: hsla(0, 0%, 100%, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid hsla(0, 0%, 100%, 0.3);
}
.btn-featured-secondary:hover {
    background: hsla(0, 0%, 100%, 0.3);
    border-color: hsla(0, 0%, 100%, 0.5);
    color: white;
}
.featured-blog-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .featured-blog-content {
        padding: 2rem;
    }
    .featured-blog-title {
        font-size: 1.5rem;
    }
    .featured-blog-description {
        font-size: 1rem;
    }
    .featured-blog-stats {
        gap: 1rem;
    }
    .featured-blog-stats .stat-item span {
        font-size: 0.875rem;
    }
    .btn-featured-primary,
    .btn-featured-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
.featured-badge {
    display: inline-block;
    background: hsla(0, 0%, 100%, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.featured-blog-actions {
    gap: 1rem;
    flex-wrap: wrap;
}
.featured-badge .badge-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.minister-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0;
    font-weight: 600;
}
.title-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-red);
    line-height: 1.4;
}
.title-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 1024px) {
    .nav-list {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem;
        white-space: normal;
        line-height: 1.3;
    }
    .activities-list {
        grid-template-columns: 1fr;
    }
    .latest-activities-section .activity-image {
        width: 250px;
    }
    .slide-content h2 {
        font-size: 1.6rem;
    }
    .slide-content p {
        font-size: 0.95rem;
    }
    .minister-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .minister-visual {
        order: -1;
    }
    .minister-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    .ministry-title {
        font-size: 1.9rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    .footer-about {
        grid-column: 1/-1;
    }
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    .ministry-subtitle {
        font-size: 0.95rem;
    }
    .minister-actions {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .logo-row-content {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }
    .flag-image {
        display: none;
    }
    .logo-img {
        height: 80px;
    }
    .logo-text {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.75rem;
        padding: 0.5rem 0;
    }
    .animated-text {
        font-size: 1rem;
        text-align: left;
        white-space: normal;
        line-height: 1.5;
        word-wrap: break-word;
        font-weight: 600;
        padding: 0;
        letter-spacing: 0.8px;
        /* Keep animation from base styles */
    }
    [dir="rtl"] .animated-text {
        text-align: right;
        font-size: 1rem;
        white-space: normal;
        line-height: 1.5;
        word-wrap: break-word;
        font-weight: 600;
        padding: 0;
        letter-spacing: 0.8px;
    }
    .logo-text {
        align-items: flex-start;
        height: 100%;
    }
    .minister-description p,
    .ministry-description p {
        font-size: 0.95rem;
    }
}
.title-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.title-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-red);
    line-height: 1.4;
}
@media (max-width: 768px) {
    .about-minister.full-width .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .minister-content {
        padding: 1.25rem;
    }
    .ministry-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ministry-section::after {
        display: none;
    }
    .ministry-left {
        display: flex;
        flex-direction: column;
        gap: 0.95rem;
    }
    .ministry-right {
        border-left: 0;
        border-top: 1px solid var(--gray-200);
        padding-left: 0;
        padding-top: 1.25rem;
    }
    .ministry-title {
        font-size: 1.6rem;
    }
}
.minister-title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}
.shortcuts {
    background-size: cover !important;
    background-position: 50% !important;
    background-repeat: no-repeat !important;
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
}
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}
.shortcut-card {
    background-size: cover !important;
    background-position: 50% !important;
    background-repeat: no-repeat !important;
}
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
.shortcut-card {
    background: var(--white);
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.activity-card, .news-card, .shortcut-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}
.shortcut-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
    transition: left 0.5s;
}
.card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shortcut-card p {
    margin-bottom: 2rem;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}
.shortcut-card:hover:before {
    left: 100%;
}
.card-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
    transition: left 0.5s;
}
.card-link {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.3);
    position: relative;
    overflow: hidden;
}
.card-link:hover:before {
    left: 100%;
}
.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 50, 0.4);
    color: #fff;
}
.card-link svg {
    transition: transform 0.3s ease;
}
.card-link:hover svg {
    transform: translateX(5px);
}
.latest-news-section {
    padding: 2rem 0;
    position: relative;
}
.news-carousel {
    position: relative;
}
.news-carousel.owl-loaded {
    display: block;
}
.news-carousel .owl-stage-outer {
    overflow: visible !important;
    padding-bottom: 20px;
}
.news-carousel .owl-item {
    padding: 0 10px;
}
.news-carousel .owl-item .news-card {
    height: 100%;
    margin: 0;
}
.news-carousel .news-card {
    display: block;
    visibility: visible;
    opacity: 1;
}
.news-carousel:not(.owl-loaded) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-carousel:not(.owl-loaded) .news-card {
    width: 100%;
    margin: 0;
}
.news-carousel .owl-nav {
    display: none !important;
}
.news-carousel .owl-nav button {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.3) !important;
}
.news-carousel .owl-nav button:hover {
    background: var(--secondary-red) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.4) !important;
}
.news-carousel .owl-nav button span {
    font-size: 28px;
    line-height: 1;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.news-filter-wrap {
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: flex-start;
}
.news-category-filter {
    min-width: 220px;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-900);
    font-size: 0.95rem;
    line-height: 1.4;
}
.news-category-filter:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 50, 0.15);
}
.news-list .news-item {
    position: relative;
}
.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 11;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}
[dir="rtl"] .news-badge {
    right: auto;
    left: 12px;
}
.news-slider-container {
    position: relative;
    padding: 0 1rem 20px;
}
.news-slider {
    overflow: hidden;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 20px;
}
.news-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    align-items: stretch;
}
/* [dir="rtl"] .news-slider-track {
  direction: ltr;
} */
.news-slider .news-card {
    width: calc((100% - 4.5rem) / 4);
    flex-shrink: 0;
    flex-basis: calc((100% - 4.5rem) / 4);
    margin: 0;
}
.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}
.news-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.news-slider-dot:hover {
    background: var(--gray-500);
    transform: scale(1.2);
}
.news-slider-dot.active {
    background: var(--primary-red);
    width: 14px;
    height: 14px;
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(196, 30, 50, 0.6);
}
.news-slider-container .news-date {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--primary-red);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
[dir="rtl"] .news-slider-container .news-date {
    right: 12px;
    left: unset;
}
.news-slider-container .news-date:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.news-slider-container .news-slider .news-card {
    width: calc((100% - 4.5rem) / 4);
    flex-shrink: 0;
    flex-basis: calc((100% - 4.5rem) / 4);
    margin: 0;
}
@media (max-width: 576px) {
    .news-slider-container .news-slider .news-card {
        width: 100%;
        flex-basis: 94%;
    }
}
/* .news-slider-container .news-card {
    height: 335px;
    background: var(--white);
    overflow: visible;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
} */
 .activity-card,
.news-card {
    background: var(--white);
    overflow: visible;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}
.news-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}
.read-more-link {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    order: 4;
    align-self: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
}
.activities-slider {
    width: 100%;
    margin-top: 2rem;
}
.latest-activities-section {
    padding: 3rem 0 !important;
    background-size: cover !important;
    background-position: 50% !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}
.latest-activities-section .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.latest-activities-section .view-all-btn {
    color: var(--primary-red);
    border: 1px solid;
}
.latest-activities-section .view-all-btn:hover {
    background: var(--white);
    color: var(--primary-red);
}
.activities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.activities-slider-container {
    position: relative;
    padding: 0 1rem 20px;
}
.activities-slider {
    overflow: hidden;
    width: 85%;
    padding-bottom: 20px;
    margin: 0 auto;
}
.activities-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    align-items: stretch;
}
.activities-slider .activity-card {
    width: calc((100% - 1.5rem) / 2);
    flex-shrink: 0;
    flex-basis: calc((99% - 1.5rem) / 2);
    margin: 0;
}
.activities-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}
.activities-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.activities-slider-dot:hover {
    background: var(--gray-500);
    transform: scale(1.2);
}
.activities-slider-dot.active {
    background: var(--primary-red);
    width: 14px;
    height: 14px;
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(196, 30, 50, 0.6);
}
@media (max-width: 768px) {
    .activities-slider .activity-card {
        width: 100%;
        flex-basis: 93%;
    }
}
.latest-activities-section .activity-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 225px;
    align-items: stretch;
}
.latest-activities-section .activity-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}
.latest-activities-section .activity-image {
    flex-shrink: 0;
    width: 300px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.latest-activities-section .activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.latest-activities-section .activity-card:hover .activity-image img {
    transform: scale(1.05);
}
.latest-activities-section .activity-content {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    justify-content: space-between;
    overflow: hidden;
    max-height: 230px;
}
.latest-activities-section .activity-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
/* .latest-activities-section .activity-date {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    flex-shrink: 0;
    width: 95%;
} */
.latest-activities-section .activity-date:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.latest-activities-section .activity-date {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 2;
    flex-shrink: 0;
    background-color: var(--primary-red);
    border-radius: 6px;
    padding: 3px 4px;
    width: 95%;
    justify-content: flex-start;
}
@media (min-width: 1700px) {
    .latest-activities-section .activity-date {
    width: 60%;
}
}

.latest-activities-section .activity-content p {
    color: var(--gray-700);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2em;
    max-height: 4.2em;
}
.latest-activities-section .read-more-link {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
}

.latest-activities-section .activity-image {
    flex-shrink: 0;
    width: 300px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .latest-activities-section .activity-image {
        height: 165px;
    }
    .activity-card.fade-in {
        flex-direction: column;
        height: 400px;
    }
}
.federations-section {
    padding: 3rem 0;
}
.federation-subsection {
    margin-bottom: 3rem;
}
.federations-section {
    background: linear-gradient(rgba(196, 30, 50, 0.07), rgba(196, 30, 50, 0.07));
}
.federation-subsection {
    margin-bottom: 2rem;
}
.federation-subsection:last-child {
    margin-bottom: 0;
}
.federations-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(196, 30, 50, 0.03), rgba(31, 137, 65, 0.03));
    position: relative;
    overflow: hidden;
}
.federations-section:before {
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 50, 0.08) 0, transparent 70%);
}
.federations-section:after,
.federations-section:before {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.federations-section:after {
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(31, 137, 65, 0.08) 0, transparent 70%);
}
.federations-section .federations-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.federations-header-content {
    flex: 1;
    max-width: 700px;
}
.federations-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.25);
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%,
    to {
        box-shadow: 0 4px 15px rgba(196, 30, 50, 0.25);
    }
    50% {
        box-shadow: 0 4px 25px rgba(196, 30, 50, 0.45);
    }
}
.federations-badge svg {
    width: 16px;
    height: 16px;
}
.federations-main-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--gray-900), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.federations-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0;
}
.federations-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}
/* Owl Carousel Base Styles */
.owl-carousel {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
}

.owl-carousel .owl-stage {
    position: relative;
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}

.owl-carousel.owl-loaded {
    display: block;
}

.owl-carousel.owl-loading {
    opacity: 0;
    display: block;
}

.owl-carousel.owl-hidden {
    opacity: 0;
}

.owl-carousel.owl-refresh .owl-item {
    visibility: hidden;
}

.owl-carousel.owl-drag .owl-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.owl-carousel.owl-grab {
    cursor: move;
    cursor: grab;
}

.owl-carousel.owl-rtl {
    direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
    float: right;
}

/* Owl Carousel - Animated */
.owl-carousel .animated {
    animation-duration: 1000ms;
    animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
    z-index: 0;
}

.owl-carousel .owl-animated-out {
    z-index: 1;
}

.owl-carousel .fadeOut {
    animation-name: fadeOut;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Federations Carousel Container */
.federations-carousel-container {
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Owl Carousel for Federations */
.federations-modern-carousel {
    position: relative;
}

.federations-modern-carousel .owl-stage-outer {
    padding: 20px 0;
    margin: -20px 0;
}

/* Owl Carousel Navigation Arrows */
.federations-modern-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.federations-modern-carousel .owl-nav button.owl-prev,
.federations-modern-carousel .owl-nav button.owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white) !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    border: 2px solid transparent;
    color: var(--primary-red) !important;
    font-size: 28px !important;
    line-height: 1;
}

.federations-modern-carousel .owl-nav button.owl-prev {
    left: -25px;
}

.federations-modern-carousel .owl-nav button.owl-next {
    right: -25px;
}

.federations-modern-carousel .owl-nav button.owl-prev:hover,
.federations-modern-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red);
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.3);
    transform: scale(1.1);
}

.federations-modern-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Owl Carousel Dots */
.federations-modern-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.federations-modern-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 6px;
}

.federations-modern-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: #d9d9d9;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.federations-modern-carousel .owl-dots .owl-dot.active span,
.federations-modern-carousel .owl-dots .owl-dot:hover span {
    background: var(--primary-red);
    width: 12px;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* No additional padding needed */
}

@media (max-width: 768px) {
    /* No additional padding needed */
}

@media (max-width: 480px) {
    /* No additional padding needed */
}
.federation-modern-card {
    position: relative;
    perspective: 1000px;
    height: 100%;
}
.federation-card-inner {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.federation-card-inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 50, 0.05), rgba(31, 137, 65, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.federation-modern-card:hover .federation-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}
.federation-modern-card:hover .federation-card-inner:before {
    opacity: 1;
}
.federation-card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s ease;
    z-index: 0;
}
.federation-modern-card:hover .federation-card-decoration {
    transform: scale(1.3);
    opacity: 0.15;
}
.federation-modern-logo {
    position: relative;
    margin-bottom: 1.75rem;
    z-index: 1;
}
.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    transition: all 0.4s ease;
    border: 4px solid transparent;
}
.federation-modern-card:hover .logo-circle {
    border-color: var(--primary-red);
    box-shadow: 0 12px 32px rgba(196, 30, 50, 0.2);
    transform: scale(1.05);
}
.logo-circle:before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.federation-modern-card:hover .logo-circle {
    border-color: var(--primary-red);
    box-shadow: 0 12px 32px rgba(196, 30, 50, 0.2);
    transform: scale(1.05);
}
.logo-circle:before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.federation-modern-card:hover .logo-circle:before {
    opacity: 1;
}
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.federation-modern-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.federation-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.federation-modern-card:hover .federation-name {
    color: var(--primary-red);
}
.federation-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}
.federation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}
.federation-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}
.federation-link:hover:after {
    width: 100%;
}
.federation-link svg {
    transition: transform 0.3s ease;
}
.federation-link:hover svg {
    transform: translateX(4px);
}
.federations-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}
.btn-view-all-federations {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(196, 30, 50, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-view-all-federations:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.2);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s ease,
        height 0.6s ease;
}
.btn-view-all-federations:hover:before {
    width: 300px;
    height: 300px;
}
.btn-view-all-federations:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196, 30, 50, 0.4);
}
.btn-view-all-federations svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}
.btn-view-all-federations:hover svg {
    transform: translateX(4px);
}
.btn-view-all-federations span {
    position: relative;
    z-index: 1;
}
.federations-header .section-title:after{
    left: 0;
    transform: translateX(0%);
}
[dir="rtl"] .federations-header .section-title:after{
    right: 0;
    transform: translateX(0%);
}

/* Responsive federations header */
@media (max-width: 768px) {
    .federations-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .federations-footer {
        align-self: left;
    }
    [dir ="rtl"] .federations-footer {
        align-self: right;
    }
}
.associations-grid,
.federations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.associations-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.associations-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.associations-info .section-title {
    text-align: left;
    margin-bottom: 0;
}
.associations-info .section-title:after {
    left: 0;
    transform: translateX(0);
}
[dir="rtl"] .associations-info .section-title {
    text-align: right;
}
[dir="rtl"] .associations-info .section-title:after {
    left: auto;
    right: 0;
    transform: translateX(0);
}
/* Associations Slider Container */
.associations-slider-container {
    position: relative;
    padding: 10px 1rem 20px;
    overflow: hidden;
}

.associations-slider {
    overflow: hidden;
    padding: 10px 0 20px;
}

.associations-slider-track {
    display: flex;
    margin: 10px 0;
    transition: transform 0.5s ease;
}

.associations-slider-slide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
}

.associations-slider .federation-card {
    width: 100%;
    flex: 0 0 auto;
}

/* Slider Dots */
.associations-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.associations-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.associations-slider-dot:hover {
    background: var(--gray-500);
    transform: scale(1.2);
}

.associations-slider-dot.active {
    background: var(--primary-red);
    width: 14px;
    height: 14px;
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(196, 30, 50, 0.6);
}

.associations-grid .federation-card {
    width: 100%;
    margin: 0;
    /* Preserve exact federation-card design */
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--primary-red);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 120px;
}

[dir="rtl"] .associations-grid .federation-card {
    text-align: right;
}

.associations-grid .federation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.associations-grid .federation-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.associations-grid .federation-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.associations-grid .federation-content {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[dir="rtl"] .associations-grid .federation-content {
    text-align: right;
}

.associations-grid .federation-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.3;
}

/* Responsive styles for associations slider */
@media (max-width: 1024px) {
    .associations-slider-slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .associations-slider-slide {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    
    /* Hide cards beyond the first 3 on mobile */
    .associations-slider-slide .federation-card:nth-child(n+4) {
        display: none;
    }
    
    .associations-slider-dots {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .associations-slider-container {
        padding: 0 0.5rem 20px;
    }
    .associations-slider-dot {
        width: 10px;
        height: 10px;
    }
    .associations-slider-dot.active {
        width: 12px;
        height: 12px;
    }
}


@media (max-width: 992px) {
    .associations-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .associations-info .section-title {
        text-align: center;
    }
}
@media (max-width: 576px) {
    .associations-grid {
        grid-template-columns: 1fr;
    }
    .associations-info .section-title {
        font-size: 2rem;
    }
}

/* =========================
   HERO SLIDER SECTION
========================= */

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    min-height: 500px;
    max-width: 100%;
}
.hero-slider .owl-carousel {
    height: 100%;
}
.hero-slider .container {
    max-width: 100%;
}
.hero-slider .owl-item,
.hero-slider .owl-stage,
.hero-slider .owl-stage-outer {
    height: 100%;
}

/* SLIDER STRUCTURE */
.simple-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.simple-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding-left: 3rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.simple-slider .slide.active {
    display: flex !important;
    opacity: 1 !important;
    transform: translateX(0);
}
[dir="rtl"] .simple-slider .slide {
    transform: translateX(-100%);
}
[dir="rtl"] .simple-slider .slide.active {
    transform: translateX(0);
}

/* INDIVIDUAL SLIDE */
.slide {
    width: 100%;
    height: 500px;
    display: flex;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    min-height: 500px;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* VIDEO ELEMENTS */
.slide-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.slide-video-embed iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-video-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* CONTENT */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    color: var(--white);
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    margin: 0;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: fit-content;
}
.slide-content h2 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}
.slide-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: hsla(0, 0%, 100%, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

/* CTA BUTTON */
.cta-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.cta-btn:hover {
    background: var(--secondary-red);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.cta-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
    transition: left 0.5s;
}
.cta-btn:hover:before {
    left: 100%;
}

/* NAVIGATION */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: hsla(0, 0%, 100%, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    opacity: 0.8;
}
.slider-nav:hover {
    background: hsla(0, 0%, 100%, 0.3);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 1;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* DOTS */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 11;
    background: rgb(0 0 0 / 75%);
    width: fit-content;
    padding: 0.45rem;
    border-radius: 12px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(0deg 0% 100% / 58%);
    cursor: pointer;
    transition: background 0.3s ease;
}
.dot.active,
.dot:hover {
    background: var(--primary-red);
}

/* ANIMATIONS */
@keyframes slideContentFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideTextSlideIn {
    0% { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideButtonBounceIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================
   RESPONSIVE STYLES
========================= */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .hero-slider { height: 400px; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.95rem; }
}

/* Mobile Landscape (≤768px) */
@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .slide,
    .slide-content {
        flex-direction: column;
        text-align: left;
        justify-content: center;
        align-items: flex-start;
    }
    .slide-content {
        padding: 1.5rem 2rem;
        max-width: 90%;
        background: rgba(0, 0, 0, 0.65);
        border-radius: 10px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    .slide-content h2 { font-size: 1.3rem; }
    .slide-content p { font-size: 0.85rem; }
    .slider-nav { display: none !important; }
}

/* Mobile Portrait (≤480px) */
@media (max-width: 480px) {
    .hero-slider { height: 350px; }
    .slide-content {
        padding: 1.25rem 1.75rem;
        margin: auto;
        max-width: 92%;
        gap: 0.3rem;
        text-align: left;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    }
    .slide-content h2 {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }
    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}
.card-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(196, 30, 50, 0.05) 0);
    border-radius: 20px 0 20px 0;
    transition: all 0.4s ease;
}
.shortcut-card:hover .card-decoration {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(196, 30, 50, 0.1) 0);
}
.shortcut-card.featured {
    border: 2px solid var(--primary-red);
    box-shadow: 0 15px 40px rgba(196, 30, 50, 0.25);
    transform: scale(1.05);
}
.shortcut-card.featured:hover {
    transform: translateY(-12px) scale(1.07);
    box-shadow: 0 25px 60px rgba(196, 30, 50, 0.35);
}
.featured-gradient {
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b, var(--primary-red));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}
.featured-icon {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    box-shadow: 0 10px 30px rgba(196, 30, 50, 0.3);
}
.featured-icon svg {
    stroke: var(--white);
}
.shortcut-card.featured:hover .featured-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(196, 30, 50, 0.5);
}
.featured-link {
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.4);
}
.featured-link:hover {
    box-shadow: 0 10px 30px rgba(196, 30, 50, 0.5);
}
.featured-decoration {
    background: linear-gradient(135deg, transparent 50%, hsla(0, 100%, 71%, 0.1) 0);
}
.shortcut-card.featured:hover .featured-decoration {
    background: linear-gradient(135deg, transparent 50%, hsla(0, 100%, 71%, 0.2) 0);
}
.card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shortcut-card:hover .card-gradient-bg {
    transform: scaleX(1);
}
.activity-card,
.news-card,
.shortcut-card {
    margin: 0 0.5rem;
}
.news-card {
    height: 335px;
}
@media (max-width: 768px) {
    .shortcuts,
    section {
        padding: 2rem 0;
    }
    .shortcuts-header {
        margin-bottom: 3rem;
    }
    .shortcuts-main-title {
        font-size: 1.75rem;
    }
    .shortcuts-subtitle {
        font-size: 1rem;
    }
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .shortcut-card {
        padding: 2rem 1.5rem;
    }
    .shortcut-card.featured {
        transform: scale(1);
    }
    .shortcut-card.featured:hover,
    .shortcut-card:hover {
        transform: translateY(-8px);
    }
    .news-card {
        height: auto;
        min-height: 350px;
    }
}
@media (max-width: 992px) {
    .shortcuts-main-title {
        font-size: 2rem;
    }
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    .shortcut-card.featured {
        transform: scale(1);
    }
}
.activity-content p,
.card-text,
.news-content p {
    font-family: var(--font-arabic);
    line-height: 1.6;
    font-weight: 400;
}
.activity-content h4,
.news-content h4 {
    font-size: 1.1rem;
}
.news-content {
    padding: 1.25rem 1.25rem 1.5rem;
    background: unset !important;
}
.activity-content h3,
.news-content h3 {
    color: var(--dark-gray);
    margin-top: 0.5rem;
    margin-bottom: 0.125rem;
    font-size: 1.1rem;
}
.activity-content p,
.news-content p {
    margin-bottom: 0.25rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}
.activity-content h4,
.news-content h4 {
    color: var(--dark-gray);
    margin-top: 0;
    /* margin-bottom: 0.35rem; */
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 1;
}
.latest-activities-section .activity-content > p,
.latest-news-section .news-content > p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 3;
}
.view-all-btn {
    background: var(--white);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.view-all-btn:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.3);
}

.federations-header .section-title{
    text-align: left;
}
[dir="rtl"] .federations-header .section-title{
    text-align: right;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: #c41e32;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.2);
}
.federation-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--primary-red);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 120px;
}
[dir="rtl"] .federation-card {
    text-align: right;
}
.federation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.federation-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 0;
}
.federation-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}
.footer-main {
    padding: 2rem 0 1.5rem;
    position: relative;
    z-index: 2;
}
.footer {
    background: #333;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 0;
}
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-99%);
    overflow: hidden;
    z-index: 1;
}
.footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #333;
}
.footer-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}
.footer-decoration-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-red) 0, transparent 70%);
    top: -100px;
    right: -100px;
}
.footer-decoration-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4f46e5 0, transparent 70%);
    bottom: -100px;
    left: -100px;
}
.footer-main {
    padding: 2rem 0 1.5rem;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-col {
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.footer-about {
    padding-right: 1.5rem;
}
.footer-logo-wrapper {
    margin-bottom: 1rem;
}
.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.footer-description {
    color: hsla(0, 0%, 100%, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.footer-newsletter {
    margin-top: 2rem;
}
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-heading:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    border-radius: 2px;
}
[dir="rtl"] .footer-heading:after {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, var(--primary-red), transparent);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: hsla(0, 0%, 100%, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}
.footer-links a svg {
    width: 14px;
    height: 14px;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}
.footer-links a:hover svg {
    opacity: 1;
    transform: translateX(0);
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 0rem;
    display: flex;
    gap: 0.75rem;
}
.footer-contact li a{
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.75rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}
.footer-contact li:hover .contact-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}
.contact-icon svg {
    width: 16px;
    height: 16px;
}
.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.contact-label {
    font-size: 0.8rem;
    color: hsla(0, 0%, 100%, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.contact-value {
    font-size: 0.95rem;
    color: hsla(0, 0%, 100%, 0.9);
    font-weight: 500;
}
.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-copyright p {
    color: hsla(0, 0%, 100%, 0.6);
    margin: 0;
    font-size: 0.9rem;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.social-label {
    font-size: 0.9rem;
    color: hsla(0, 0%, 100%, 0.7);
    font-weight: 600;
    margin-right: 0.5rem;
}
.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: hsla(0, 0%, 100%, 0.08);
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    color: hsla(0, 0%, 100%, 0.8);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.social-link:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.3s ease;
}
.social-link:hover:before {
    opacity: 1;
}
.social-link svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.social-link:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}
.social-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.legal-link {
    color: hsla(0, 0%, 100%, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.legal-link:hover {
    color: var(--white);
}
.separator {
    color: hsla(0, 0%, 100%, 0.3);
}
@media (max-width: 768px) {
       .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-about {
        grid-column: 1/-1;
        padding-right: 0;
    }
    .footer-about,
    .footer-brand-name {
        text-align: center;
    }
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    .footer-heading:after {
        right: 50%;
        transform: translateX(1%);
    }
    [dir="rtl"] .footer-heading:after {
        left: 50%;
        transform: translateX(0%);
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: flex-start;
    }
    .footer-social {
        flex-direction: row;
        gap: 0.5rem;
    }
    .social-label {
        margin-right: 0;
    }
    .footer-legal {
        justify-content: center;
    }
    .section-header .section-title{
        text-align: left;
    }
    [dir="rtl"] .section-header .section-title{
        text-align: right;
    }
    .section-header .section-title::after{
        left: 12%;
    }
    [dir="rtl"] .section-header .section-title::after{
        right: -30px;
        left: 0;
    }
    .associations-info .section-title {
        text-align: left;
    }
    [dir="rtl"] .associations-info .section-title {
        text-align: right;
    }
}
@media (max-width: 480px) {
        .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0px 20px;
    }
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    .footer-about {
        text-align: center;
    }
    .footer-brand-name {
        font-size: 1.2rem;
        text-align: left;
    }
    [dir ="rtl"] .footer-brand-name {
        font-size: 1.2rem;
         text-align: right;
    }
    .footer-description {
        font-size: 0.85rem;
        text-align: left;
    }
    [dir ="rtl"] .footer-description {
        text-align: right;
    }
    .footer-heading {
        font-size: 0.95rem;
    }
    .footer-heading,
    .footer-links {
        text-align: left;
    }
    [dir ="rtl"] .footer-heading,
    [dir ="rtl"] .footer-links {
        text-align: right;
    }
    .footer-links a {
        justify-content: left;
    }
    [dir ="rtl"] .footer-links a {
        justify-content: right;
    }
    .footer-contact li {
        flex-direction: row;
    }
    .footer-contact li a{
        flex-direction: row;
    }
    .contact-text,
    .footer-contact li {
        text-align: left;
        align-items: flex-start;
    }
    [dir ="rtl"]  .contact-text,
    [dir ="rtl"] .footer-contact li {
        text-align: right;
        align-items: flex-start;
    }
    .contact-text,
    .footer-contact li a {
        text-align: left;
        align-items: flex-start;
    }
    [dir ="rtl"]  .contact-text,
    [dir ="rtl"] .footer-contact li a {
        text-align: right;
        align-items: flex-start;
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-wave {
        height: 50px;
    }
    .footer-bottom {
        padding: 1rem 20px;
    }
    .footer-legal {
        flex-wrap: wrap;
    }
    .footer-copyright p{
        text-align: left;
    }
    [dir="rtl"] .footer-copyright p{
        text-align: right;
    }
}
@media (max-width: 480px) {
    .republic-text-mobile {
        font-size: 0.8rem;
        color: var(--gray-600);
        font-weight: 500;
    }
    [dir="rtl"] .republic-text-mobile {
        font-size: 0.8rem;
        color: var(--gray-600);
        font-weight: 500;
        text-align: right;
    }
}
/* [dir="rtl"] .activities-slider {
    direction: ltr;
} */
 [dir="rtl"] .federation-name {
    font-style: normal;
}
a.btn-view-all:hover {
    color: white;
}

/* =========================
   MEDIA GALLERY VIDEO STYLES
========================= */

/* Video wrapper and play button overlay */
.media-video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.media-video-wrapper:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    transition: transform 0.3s ease;
}

.media-video-wrapper:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    transition: background-color 0.3s ease;
}

.media-video-wrapper:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    transition: transform 0.3s ease;
}

.media-video-wrapper:hover .play-button {
    transform: scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-overlay {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-content {
    position: relative;
    width: 100%;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-info {
    padding: 20px;
    background: var(--white);
}

.video-modal-info h3 {
    margin: 0 0 10px 0;
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.video-permalink {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.video-permalink:hover {
    color: var(--secondary-red);
}

/* Responsive video modal */
@media (max-width: 768px) {
    .video-modal-overlay {
        width: 95%;
        max-height: 85vh;
    }
    
    .video-modal-info {
        padding: 15px;
    }
    
    .video-modal-info h3 {
        font-size: 1.1rem;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .video-modal-overlay {
        width: 98%;
        max-height: 80vh;
    }
    
    .video-container {
        padding-bottom: 60%; /* Slightly taller for mobile */
    }
}

/* =========================
   LIGHTBOX STYLES
========================= */

/* Enhanced Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: grab;
}

.lightbox-content img:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #C41E32;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
}

/* Gallery video styles */
.gallery-video {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-video .video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-video:hover .video-play-overlay {
    background: rgba(196, 30, 50, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.news-taxonomy-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.news-taxonomy-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: rgba(196, 30, 50, 0.08);
    color: #9f172a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.news-taxonomy-badge-item:hover {
    background-color: rgba(196, 30, 50, 0.14);
    color: #881337;
}

.news-taxonomy-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #C41E32;
}

.news-taxonomy-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.news-taxonomy-text {
    display: inline-block;
}

.single-news-meta .news-taxonomy-badge--inline {
    margin-bottom: 0;
    gap: 10px;
    display: inline-flex;
    align-items: center;
}

.single-news-meta .news-taxonomy-badge--inline .news-taxonomy-badge-item {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.single-news-meta .news-taxonomy-badge--inline .news-taxonomy-badge-item:hover {
    background: transparent;
    color: inherit;
    text-decoration: underline;
}