:root {
    --primary-color: #116967;
    --secondary-color: #323a45;
    --primary-hover: #0e5655;
    --secondary-hover: #272e37;
    --primary-light: rgba(17, 105, 103, 0.1);
    --secondary-light: rgba(50, 58, 69, 0.1);
    --primary-rgb: 17, 105, 103;
    --secondary-rgb: 50, 58, 69;
    --primary-shadow: rgba(17, 105, 103, 0.3);
    --secondary-shadow: rgba(50, 58, 69, 0.3);
    --accent-color: #3498db;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Override Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

/* Override Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

/* Override Navs */
.nav-link.active,
.nav-pills .nav-link.active {
    /* background-color: var(--primary-color) !important; */
    color: white !important;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Override Checkboxes and Radios */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}



a {
    text-decoration: none;
}

/* Modern Top Bar Styles */
.modern-top-bar {
    background: var(--primary-color);
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    ) !important;
    /* background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important; */
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

/* Hide modern-top-bar on mobile devices */
@media (max-width: 767px) {
    .modern-top-bar {
        display: none;
    }
}

/* President Message Section Styles */
.president-message-section {
    background-color: #fff;
    position: relative;
}

.president-image img {
    max-width: 300px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.president-image:hover img {
    transform: scale(1.02);
}

.president-info {
    margin-top: 15px;
}

.president-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.president-title {
    color: #666;
    font-size: 0.9rem;
}

.president-message {
    /* background-color: #f9f9f9; */
    border-radius: 10px;
    padding: 25px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    position: relative;
}

.president-message::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.message-hidden p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.read-more-btn {
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 30px;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

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

@media (max-width: 991px) {
    .president-image {
        margin-bottom: 30px;
    }
    .president-message {
        margin-top: 20px;
    }
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link i {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.top-social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    width: 29px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-links span {
        display: none;
    }

    .contact-link {
        gap: 0;
    }

    .contact-link i {
        margin: 0;
    }
}

/* RTL specific adjustments */
.navbar-nav {
    padding-right: 0;
    padding-left: 0;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.nav-link::after {
    /* right: 0; */
    left: auto;
}

.nav-item:last-child .nav-link {
    /* margin-right: 15px;
    margin-left: 0; */
}

/* Modern Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-swiper {
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s ease;
}

.swiper-slide-active .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    );
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: #4a90e2;
    background: #126966;
    border: none;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-pagination {
    position: absolute;
    bottom: 30px !important;
    z-index: 3;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Statistics Section */
.stats {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.counter {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Programs Section */
.program-card {
    border: none;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

/* Programs Section Image Styles */
.program-card .card-img-top {
    height: 250px;
    /* ارتفاع ثابت لجميع الصور */
    object-fit: cover;
    /* لضمان تغطية كاملة للمساحة */
    width: 100%;
}

.program-card {
    height: 100%;
    /* لجعل جميع البطاقات بنفس الارتفاع */
    display: flex;
    flex-direction: column;
}

.program-card .card-body {
    flex: 1;
    /* لضمان محاذاة متناسقة للمحتوى */
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
}

/* Campus Map */
.campus-map {
    height: 400px;
    background: #eee;
}

/* Social Feed */
.social-feed {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Custom Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Navbar Styles */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    position: sticky;
    top: -1px;
    z-index: 1000;
    min-height: 55px;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    padding: 10px 0 !important;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

[dir="ltr"] .nav-link::before {
    right: auto;
    left: 0;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active::before {
    width: 100%;
}

.navbar-nav {
    align-items: center;
}

.nav-item:last-child .nav-link {
    /* padding: 8px 20px !important;
    background: var(--secondary-color);
    border-radius: 25px;
    margin-left: 15px; */
}

.nav-item:last-child .nav-link::after {
    /* display: none; */
}

.nav-item:last-child .nav-link:hover {
    /* background: var(--accent-color);
    transform: translateY(-2px); */
}

/* Social Media Links Styles */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links .facebook {
    background: #1877f2;
}

.social-links .twitter {
    background: #1da1f2;
}

.social-links .instagram {
    background: #e4405f;
}

.social-links .linkedin {
    background: #0077b5;
}

.social-links .youtube {
    background: #ff0000;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.university-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3;
}

/* Partner Universities Styles */
.partner-universities {
    padding: 60px 0;
    background: #f8f9fa;
}

.partner-slider {
    padding: 20px 0;
}

.partner-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* New Partner Universities Cards Section */
.partner-cards-section {
    padding: 80px 0;
    background: #fff;
}

.partner-card-link {
    display: block;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.partner-card-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.partner-card-link:hover .partner-card-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-card-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.partner-card-link:hover .partner-card-logo {
    transform: scale(1.1);
}

.partner-card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 991.98px) {
    .partner-card-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .partner-card-wrapper {
        padding: 20px;
    }
}

/* News Slideshow Styles */
.news-section {
    background-color: #f8f9fa;
}

.carousel-item {
    padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.news-section .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-rows: auto;
    gap: 15px;
    padding: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox styles */
.modal-content {
    /* background: transparent; */
    border: none;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 43%;
    border-radius: 10px;
}

/* Faculty Section Styles */
.faculty-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faculty-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faculty-image {
    position: relative;
    padding-top: 100%;
    /* تغيير من 125% إلى 100% لجعل الصورة مربعة */
    overflow: hidden;
}

.faculty-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-info {
    position: relative;
    padding: 15px;
    /* تقليل التباعد الداخلي */
    background: white;
    text-align: center;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.faculty-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.faculty-specs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    /* تقليل الهامش السفلي */
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.faculty-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

/* .section-title:after {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 88px;
    left: 0;
    margin-left: auto;
    margin-right: auto;
}

.section-title:before {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 0;
    left: 88px;
    margin-left: auto;
    margin-right: auto;
} */

/* Language Switcher Styles */
.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switch i {
    font-size: 0.8rem;
}

/* Faculty Swiper Styles */
.faculty-swiper {
    padding: 20px 0;
}

.faculty-swiper .swiper-slide {
    height: auto;
}

.faculty-navigation {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faculty-navigation:hover {
    background: var(--primary-color);
    color: white;
}

.faculty-navigation::after {
    font-size: 1.2rem;
}

.faculty-swiper .swiper-button-prev {
    left: -5px;
}

.faculty-swiper .swiper-button-next {
    right: -5px;
}

.faculty-pagination {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    bottom: 0;
}

.faculty-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    margin: 0 4px;
}

.faculty-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

.faculty-swiper {
    padding-bottom: 50px; /* Add space for pagination */
    position: relative;
}

/* Updated Faculty Swiper Styles */
.faculty-swiper-container {
    position: relative;
    padding: 20px 40px;
}

.faculty-swiper {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.faculty-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faculty-navigation.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.faculty-navigation:hover:not(.swiper-button-disabled) {
    background: var(--secondary-color);
}

.faculty-swiper .swiper-button-prev {
    left: 0;
}

.faculty-swiper .swiper-button-next {
    right: 0;
    left: 10px;
    right: auto;
}

.faculty-swiper .swiper-pagination {
    position: relative;
    bottom: 25px;
    width: 100%;
}

/* Add before existing styles */
.dropdown-menu {
    margin: 0;
    padding: 0;
    background: rgba(33, 37, 41, 0.98);
    border: none;
    border-radius: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
}

.dropdown-item {
    padding: 10px 20px;
    color: white !important;
    position: relative;
}

[dir="rtl"] .dropdown-item {
    padding-left: 35px;
}

[dir="ltr"] .dropdown-item {
    padding-right: 35px;
}

.dropdown-item:hover {
    background: var(--secondary-color);
}

.dropdown-toggle::after {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Make dropdown menus display on hover */
.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Add before existing styles */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu > .dropdown-menu {
    transform: translateX(20px);
}

.dropdown-submenu:hover > .dropdown-menu {
    transform: translateX(0);
}

/* Add animation for dropdown items */
.dropdown-item {
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: calc(var(--item-number) * 0.1s);
}

.dropdown:hover .dropdown-item,
.dropdown-submenu:hover > .dropdown-menu .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

/* Logo Section Styles */
.top-logo-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.main-logo:hover {
    background: rgba(0, 0, 0, 0.02);
}

.main-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.main-logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    /* border-right: 3px solid var(--secondary-color); */
    border-right: 3px dashed #0e6f6b69;
    padding-right: 20px;
}

[dir="ltr"] .logo-text {
    border-right: 0;
    padding-right: 0;
    border-left: 3px dashed #0e6f6b69;
    padding-left: 20px;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.logo-contact {
    display: flex;
    gap: 40px;
    padding: 10px 20px;
    padding: 20px 20px;
    background: white;
    border-radius: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    color: #0e6f6bc4;
    color: #0e6f6ba8;
    background: rgba(231, 76, 60, 0.1);
    background: rgb(14 111 107 / 4%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px dashed #0e6f6b2b;
}

.contact-item:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info-text {
    /* text-align: right; */
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1200px) {
    .logo-contact {
        gap: 20px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .logo-container {
        grid-template-columns: auto 1fr;
    }

    .logo-contact {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .main-logo img {
        height: 70px;
    }
}

.modern-breadcrumbs {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 30px;
}

.breadcrumbs-content {
    text-align: center;
    color: white;
}

/* Vision Mission Section Styles */
.vision-mission {
    padding: 5rem 0;
    background: #fff;
}

.vision-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vision-box:hover .vision-icon {
    background: #357abd;
    background: #0e6f6b1a;
    transform: scale(1.1);
}

.vision-icon i {
    font-size: 2rem;
    color: #fff;
    color: #0e6f6bd1;
}

.vision-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.vision-text {
    color: #666;
    line-height: 1.6;
}

.goals-list {
    margin-top: 3rem;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.goal-icon i {
    font-size: 1.5rem;
    color: #fff;
    color: #0e6f6bd1;
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.goal-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .quick-link-card,
    .vision-box {
        margin-bottom: 1.5rem;
    }

    .goal-item {
        flex-direction: column;
        text-align: center;
    }

    .goal-icon {
        margin: 0 auto 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.map-container {
    height: 400px;
    background: #eee;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

.map-container {
    height: 450px;
    width: 100%;
    margin: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(-5px);
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var (--secondary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ...existing styles... */

.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

[dir="rtl"] .read-more:hover {
    transform: translateX(-5px);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* ...Article Section Styles... */

.article-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.article-main {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-size: 27px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--secondary-color);
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-image {
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.article-image img {
    width: 100%;
    height: auto;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--secondary-color);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    width: 95px;
    min-width: 95px;
    max-width: 95px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h6 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.recent-post-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info a:hover {
    color: var(--secondary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #666;
}

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

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.category-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-item a:hover {
    color: var(--secondary-color);
}

.category-count {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--secondary-color);
    color: white;
}

/* ...Videos Section Styles... */

.videos-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 1.5rem;
}

.video-card:hover .play-button {
    background: #4a90e2;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #666;
}

.video-meta span {
    display: flex;
    align-items: center;
}

.video-meta span i {
    margin-left: 0.5rem;
    color: #4a90e2;
}

.video-modal .modal-content {
    background: #111;
    border: none;
}

.video-modal .modal-header {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
}

.video-modal .modal-title {
    color: #fff;
    font-size: 1.2rem;
}

.video-modal .btn-close {
    color: #fff;
    opacity: 0.8;
    filter: invert(1) brightness(100%);
}

.video-modal .modal-body {
    padding: 0;
}

/* Make sure videos are responsive */
.video-modal .modal-body iframe,
.video-modal .modal-body video {
    display: block;
    border: none;
}

.video-modal .modal-body iframe {
    width: 100%;
    height: 100%;
}

.video-modal .modal-body video {
    width: 100%;
    height: 100%;
}

/* Cookie Consent Styles */

.cookie-consent {
    position: fixed;
    bottom: -100%;
    right: 0;
    left: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 0.95rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--secondary-color);
    color: white;
}

.accept-cookies:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.reject-cookies {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.reject-cookies:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-settings {
    color: var(--secondary-color);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
}

.cookie-settings:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: -60px;
    /* Start position off-screen */
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    border: 0;
}

.scroll-to-top.active {
    bottom: 20px;
    /* Visible position */
    opacity: 1;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Add RTL-specific styles */
[dir="rtl"] .scroll-to-top {
    right: 20px;
    left: auto;
}

[dir="rtl"] .scroll-to-top i {
    /* transform: rotate(-90deg);  */
}

/* Add LTR-specific styles */
[dir="ltr"] .scroll-to-top {
    left: 20px;
    right: auto;
}

[dir="ltr"] .scroll-to-top i {
    /* transform: rotate(90deg);  */
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    color: white;
}

.share-button i {
    font-size: 1.1rem;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.copy-link {
    background: var(--primary-color);
}

.share-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .share-button span:not(.share-count) {
        display: none;
    }

    .share-button {
        padding: 8px 15px;
    }
}

.visit-number {
    font-weight: 600;
}

.related-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.related-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 15px;
}

.related-post-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(14, 111, 107, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
}

.related-post-date i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.nav-search {
    /* margin-right: 20px; */
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 15px;
}

.search-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.search-form {
    padding: 40px 20px;
}

.search-input-group {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.search-submit {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
    text-align: right;
}

.search-suggestions h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tags a {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-tags a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
        padding: 12px 50px 12px 15px;
    }

    .search-submit {
        width: 38px;
        height: 38px;
    }
}

.article-gallery {
    margin: 30px 0;
}

.gallery-attachment {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-attachment img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-attachment:hover .attachment-overlay {
    opacity: 1;
}

.gallery-attachment:hover img {
    transform: scale(1.1);
}

.attachment-actions {
    display: flex;
    gap: 15px;
}

.attachment-actions a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.gallery-attachment:hover .attachment-actions a {
    transform: translateY(0);
    opacity: 1;
}

.attachment-actions a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px) !important;
}

.attachment-actions .view-attachment {
    transition-delay: 0.1s;
}

.attachment-actions .download-attachment {
    transition-delay: 0.2s;
}

#imageModal .modal-content {
    background: transparent;
    border: none;
}

#imageModal .modal-body {
    position: relative;
}

#imageModal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 8px;
    z-index: 1;
}

#imageModal .btn-close:hover {
    opacity: 1;
}

#imageModal img {
    border-radius: 10px;
}

/* Enhanced Contact Section Styles */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-header {
    padding: 60px 0 30px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-wrapper {
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-links-wrapper {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links-wrapper h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-form-wrapper {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit i {
    font-size: 0.9rem;
}

.map-container {
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-info-item {
        margin-bottom: 20px;
    }

    .contact-header {
        padding: 40px 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

.student-activities {
    background: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-card.large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.activity-image {
    position: relative;
    padding-top: 60%;
}

.activity-card.large .activity-image {
    padding-top: 100%;
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.activity-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.activity-date .month {
    font-size: 0.9rem;
    display: block;
}

.activity-content {
    padding: 20px;
}

.activity-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.activity-card.large .activity-title {
    font-size: 1.5rem;
}

.activity-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.activity-stats i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.activity-link {
    color: var (--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.activity-link:hover {
    gap: 10px;
}

@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-card.large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .activity-card.large .activity-image {
        padding-top: 60%;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card.large {
        grid-column: span 1;
    }

    .activity-title {
        font-size: 1.1rem;
    }

    .activity-card.large .activity-title {
        font-size: 1.3rem;
    }
}

.ministry-news {
    background: #f8f9fa;
}

.ministry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.ministry-image {
    position: relative;
    height: 100%;
    min-height: 200px;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ministry-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
}

.ministry-date span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.ministry-date small {
    font-size: 0.8rem;
}

.ministry-content {
    padding: 20px;
}

.ministry-tags {
    margin-bottom: 10px;
}

.ministry-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.85rem;
}

.ministry-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.ministry-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.ministry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ministry-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.ministry-more:hover {
    gap: 10px;
}

.ministry-views {
    color: #666;
    font-size: 0.9rem;
}

.ministry-views i {
    color: var(--secondary-color);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .ministry-image {
        min-height: 150px;
    }

    .ministry-content {
        padding: 15px;
    }

    .ministry-title {
        font-size: 1rem;
    }
}

/* Conferences Section Styles */
.conferences-section {
    background: #f8f9fa;
}

.conference-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.conference-table thead {
    background: var(--primary-color);
    color: white;
}

.conference-table th {
    padding: 15px;
    font-weight: 500;
    /* text-align: right; */
}

.conference-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.conference-table tr:last-child td {
    border-bottom: none;
}

.conference-title h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--primary-color);
}

.conference-type {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
}

.conference-date,
.conference-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.conference-date i,
.conference-location i {
    color: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.upcoming {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.past {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.ongoing {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Hover effect */
.conference-table tbody tr {
    transition: all 0.3s ease;
}

.conference-table tbody tr:hover {
    background: rgba(14, 111, 107, 0.02);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .conference-title h6 {
        font-size: 0.9rem;
    }

    .conference-date,
    .conference-location {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .conference-table {
        font-size: 0.9rem;
    }

    .conference-table th,
    .conference-table td {
        padding: 12px 10px;
    }
}

/* Rankings Section Styles */
.rankings-section {
    background-color: #f8f9fa;
    position: relative;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ranking-header {
    position: relative;
    /* padding: 20px; */
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-color-light) 0%,
        var(--primary-color) 100%
    );
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.ranking-logo {
    line-height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto 10px;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #f5f5f5;
    /* padding-bottom: 20px; */
    padding: 20px;
    padding-top: 0;
    min-height: 191px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-image {
    width: 100%;
    height: 120px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ranking-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
}

.ranking-logo i {
    font-size: 2rem;
    color: #fff;
}

.ranking-year {
    font-size: 1.1rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
}

.ranking-body {
    padding: 20px;
}

.ranking-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.ranking-position {
    text-align: center;
    margin: 15px 0;
}

.position-label {
    margin-top: 5px;
    display: flex;
    justify-content: center;
}

.position-label .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .ranking-image {
        height: 100px;
    }

    .ranking-image img {
        max-height: 80px;
    }

    .ranking-body h4 {
        font-size: 1.1rem;
    }
}

.enhanced-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-brand {
    flex: 1;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.footer-subtitle {
    color: #b4cbca;
    font-size: 0.9rem;
    margin: 10px 0 0;
}

.footer-about {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
}

.footer-social .facebook:hover {
    background: var(--primary-color);
}
.footer-social .twitter:hover {
    background: var(--primary-color);
}
.footer-social .instagram:hover {
    background: var(--primary-color);
}
.footer-social .linkedin:hover {
    background: var(--primary-color);
}
.footer-social .youtube:hover {
    background: var(--primary-color);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

:root {
    --primary-color: #116967;
    --secondary-color: #323a45;
    --primary-hover: #0e5655;
    --secondary-hover: #272e37;
    --primary-light: rgba(17, 105, 103, 0.1);
    --secondary-light: rgba(50, 58, 69, 0.1);
    --primary-shadow: rgba(17, 105, 103, 0.3);
    --secondary-shadow: rgba(50, 58, 69, 0.3);
    --accent-color: #3498db;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Override Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

/* Override Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Override Checkboxes and Radios */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

body {
    font-family: "Vazirmatn", sans-serif;
    /* text-align: right; */
}

a {
    text-decoration: none;
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link i {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.top-social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    width: 29px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-links span {
        display: none;
    }

    .contact-link {
        gap: 0;
    }

    .contact-link i {
        margin: 0;
    }
}

/* RTL specific adjustments */
.navbar-nav {
    padding-right: 0;
    padding-left: 0;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.nav-link::after {
    /* right: 0; */
    left: auto;
}

.nav-item:last-child .nav-link {
    /* margin-right: 15px;
    margin-left: 0; */
}

/* Modern Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-swiper {
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s ease;
}

.swiper-slide-active .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    );
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: #4a90e2;
    background: #126966;
    border: none;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-pagination {
    position: absolute;
    bottom: 30px !important;
    z-index: 3;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Statistics Section */
.stats {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.counter {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Programs Section */
.program-card {
    border: none;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

/* Programs Section Image Styles */
.program-card .card-img-top {
    height: 250px;
    /* ارتفاع ثابت لجميع الصور */
    object-fit: cover;
    /* لضمان تغطية كاملة للمساحة */
    width: 100%;
}

.program-card {
    height: 100%;
    /* لجعل جميع البطاقات بنفس الارتفاع */
    display: flex;
    flex-direction: column;
}

.program-card .card-body {
    flex: 1;
    /* لضمان محاذاة متناسقة للمحتوى */
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
}

/* Campus Map */
.campus-map {
    height: 400px;
    background: #eee;
}

/* Social Feed */
.social-feed {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Custom Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Navbar Styles */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    position: sticky;
    top: -1px;
    z-index: 1000;
    min-height: 55px;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    padding: 10px 0 !important;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

[dir="ltr"] .nav-link::before {
    right: auto;
    left: 0;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active::before {
    width: 100%;
}

.navbar-nav {
    align-items: center;
}

.nav-item:last-child .nav-link {
    /* padding: 8px 20px !important;
    background: var(--secondary-color);
    border-radius: 25px;
    margin-left: 15px; */
}

.nav-item:last-child .nav-link::after {
    /* display: none; */
}

.nav-item:last-child .nav-link:hover {
    /* background: var(--accent-color);
    transform: translateY(-2px); */
}

/* Social Media Links Styles */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links .facebook {
    background: #1877f2;
}

.social-links .twitter {
    background: #1da1f2;
}

.social-links .instagram {
    background: #e4405f;
}

.social-links .linkedin {
    background: #0077b5;
}

.social-links .youtube {
    background: #ff0000;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.university-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3;
}

/* Partner Universities Styles */
.partner-universities {
    padding: 60px 0;
    background: #f8f9fa;
}

.partner-slider {
    padding: 20px 0;
}

.partner-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* New Partner Universities Cards Section */
.partner-cards-section {
    padding: 80px 0;
    background: #fff;
}

.partner-card-link {
    display: block;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.partner-card-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.partner-card-link:hover .partner-card-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-card-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.partner-card-link:hover .partner-card-logo {
    transform: scale(1.1);
}

.partner-card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 991.98px) {
    .partner-card-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .partner-card-wrapper {
        padding: 20px;
    }
}

/* News Slideshow Styles */
.news-section {
    background-color: #f8f9fa;
}

.carousel-item {
    padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.news-section .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-rows: auto;
    gap: 15px;
    padding: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox styles */
.modal-content {
    /* background: transparent; */
    border: none;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 43%;
    border-radius: 10px;
}

/* Faculty Section Styles */
.faculty-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faculty-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faculty-image {
    position: relative;
    padding-top: 100%;
    /* تغيير من 125% إلى 100% لجعل الصورة مربعة */
    overflow: hidden;
}

.faculty-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-info {
    position: relative;
    padding: 15px;
    /* تقليل التباعد الداخلي */
    background: white;
    text-align: center;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.faculty-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.faculty-specs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    /* تقليل الهامش السفلي */
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.faculty-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

/* .section-title:after {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 88px;
    left: 0;
    margin-left: auto;
    margin-right: auto;
}

.section-title:before {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 0;
    left: 88px;
    margin-left: auto;
    margin-right: auto;
} */

/* Language Switcher Styles */
.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switch i {
    font-size: 0.8rem;
}

/* Faculty Swiper Styles */
.faculty-swiper {
    padding: 20px 0;
}

.faculty-swiper .swiper-slide {
    height: auto;
}

.faculty-navigation {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faculty-navigation:hover {
    background: var(--primary-color);
    color: white;
}

.faculty-navigation::after {
    font-size: 1.2rem;
}

.faculty-swiper .swiper-button-prev {
    left: -5px;
}

.faculty-swiper .swiper-button-next {
    right: -5px;
}

.faculty-pagination {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    bottom: 0;
}

.faculty-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    margin: 0 4px;
}

.faculty-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

.faculty-swiper {
    padding-bottom: 50px; /* Add space for pagination */
    position: relative;
}

/* Updated Faculty Swiper Styles */
.faculty-swiper-container {
    position: relative;
    padding: 20px 40px;
}

.faculty-swiper {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.faculty-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faculty-navigation.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.faculty-navigation:hover:not(.swiper-button-disabled) {
    background: var(--secondary-color);
}

.faculty-swiper .swiper-button-prev {
    left: 0;
}

.faculty-swiper .swiper-button-next {
    right: 0;
    left: 10px;
    right: auto;
}

.faculty-swiper .swiper-pagination {
    position: relative;
    bottom: 25px;
    width: 100%;
}

/* Add before existing styles */
.dropdown-menu {
    margin: 0;
    padding: 0;
    background: rgba(33, 37, 41, 0.98);
    border: none;
    border-radius: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
}

.dropdown-item {
    padding: 10px 20px;
    color: white !important;
    position: relative;
}

[dir="rtl"] .dropdown-item {
    padding-left: 35px;
}

[dir="ltr"] .dropdown-item {
    padding-right: 35px;
}

.dropdown-item:hover {
    background: var(--secondary-color);
}

.dropdown-toggle::after {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Make dropdown menus display on hover */
.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Add before existing styles */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu > .dropdown-menu {
    transform: translateX(20px);
}

.dropdown-submenu:hover > .dropdown-menu {
    transform: translateX(0);
}

/* Add animation for dropdown items */
.dropdown-item {
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: calc(var(--item-number) * 0.1s);
}

.dropdown:hover .dropdown-item,
.dropdown-submenu:hover > .dropdown-menu .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

/* Logo Section Styles */
.top-logo-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.main-logo:hover {
    background: rgba(0, 0, 0, 0.02);
}

.main-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.main-logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    /* border-right: 3px solid var(--secondary-color); */
    border-right: 3px dashed #0e6f6b69;
    padding-right: 20px;
}

[dir="ltr"] .logo-text {
    border-right: 0;
    padding-right: 0;
    border-left: 3px dashed #0e6f6b69;
    padding-left: 20px;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.logo-contact {
    display: flex;
    gap: 40px;
    padding: 10px 20px;
    padding: 20px 20px;
    background: white;
    border-radius: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    color: #0e6f6bc4;
    color: #0e6f6ba8;
    background: rgba(231, 76, 60, 0.1);
    background: rgb(14 111 107 / 4%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px dashed #0e6f6b2b;
}

.contact-item:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info-text {
    /* text-align: right; */
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1200px) {
    .logo-contact {
        gap: 20px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .logo-container {
        grid-template-columns: auto 1fr;
    }

    .logo-contact {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .main-logo img {
        height: 70px;
    }
}

.modern-breadcrumbs {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 30px;
}

.breadcrumbs-content {
    text-align: center;
    color: white;
}

/* .breadcrumb {
    display: inline-flex
;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    margin: 0;
    backdrop-filter: blur(5px);
}

.breadcrumb-item {
    font-size: 1rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
} */

/* Vision Mission Section Styles */
.vision-mission {
    padding: 5rem 0;
    background: #fff;
}

.vision-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vision-box:hover .vision-icon {
    background: #357abd;
    background: #0e6f6b1a;
    transform: scale(1.1);
}

.vision-icon i {
    font-size: 2rem;
    color: #fff;
    color: #0e6f6bd1;
}

.vision-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.vision-text {
    color: #666;
    line-height: 1.6;
}

.goals-list {
    margin-top: 3rem;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.goal-icon i {
    font-size: 1.5rem;
    color: #fff;
    color: #0e6f6bd1;
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.goal-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .quick-link-card,
    .vision-box {
        margin-bottom: 1.5rem;
    }

    .goal-item {
        flex-direction: column;
        text-align: center;
    }

    .goal-icon {
        margin: 0 auto 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.map-container {
    height: 400px;
    background: #eee;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

.map-container {
    height: 450px;
    width: 100%;
    margin: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(-5px);
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var (--secondary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ...existing styles... */

.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

[dir="rtl"] .read-more:hover {
    transform: translateX(-5px);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* ...Article Section Styles... */

.article-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.article-main {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-size: 27px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--secondary-color);
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-image {
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.article-image img {
    width: 100%;
    height: auto;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--secondary-color);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    width: 95px;
    min-width: 95px;
    max-width: 95px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h6 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.recent-post-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info a:hover {
    color: var(--secondary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #666;
}

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

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.category-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-item a:hover {
    color: var(--secondary-color);
}

.category-count {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--secondary-color);
    color: white;
}

/* ...Videos Section Styles... */

.videos-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 1.5rem;
}

.video-card:hover .play-button {
    background: #4a90e2;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #666;
}

.video-meta span {
    display: flex;
    align-items: center;
}

.video-meta span i {
    margin-left: 0.5rem;
    color: #4a90e2;
}

.video-modal .modal-content {
    background: #111;
    border: none;
}

.video-modal .modal-header {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
}

.video-modal .modal-title {
    color: #fff;
    font-size: 1.2rem;
}

.video-modal .btn-close {
    color: #fff;
    opacity: 0.8;
    filter: invert(1) brightness(100%);
}

.video-modal .modal-body {
    padding: 0;
}

/* Make sure videos are responsive */
.video-modal .modal-body iframe,
.video-modal .modal-body video {
    display: block;
    border: none;
}

.video-modal .modal-body iframe {
    width: 100%;
    height: 100%;
}

.video-modal .modal-body video {
    width: 100%;
    height: 100%;
}

/* Cookie Consent Styles */

.cookie-consent {
    position: fixed;
    bottom: -100%;
    right: 0;
    left: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 0.95rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--secondary-color);
    color: white;
}

.accept-cookies:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.reject-cookies {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.reject-cookies:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-settings {
    color: var(--secondary-color);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
}

.cookie-settings:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: -60px;
    /* Start position off-screen */
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    border: 0;
}

.scroll-to-top.active {
    bottom: 20px;
    /* Visible position */
    opacity: 1;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Add RTL-specific styles */
[dir="rtl"] .scroll-to-top {
    right: 20px;
    left: auto;
}

[dir="rtl"] .scroll-to-top i {
    /* transform: rotate(-90deg);  */
}

/* Add LTR-specific styles */
[dir="ltr"] .scroll-to-top {
    left: 20px;
    right: auto;
}

[dir="ltr"] .scroll-to-top i {
    /* transform: rotate(90deg);  */
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    color: white;
}

.share-button i {
    font-size: 1.1rem;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.copy-link {
    background: var(--primary-color);
}

.share-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .share-button span:not(.share-count) {
        display: none;
    }

    .share-button {
        padding: 8px 15px;
    }
}

.visit-number {
    font-weight: 600;
}

.related-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.related-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 15px;
}

.related-post-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(14, 111, 107, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
}

.related-post-date i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.nav-search {
    /* margin-right: 20px; */
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 15px;
}

.search-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.search-form {
    padding: 40px 20px;
}

.search-input-group {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.search-submit {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
    text-align: right;
}

.search-suggestions h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tags a {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-tags a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
        padding: 12px 50px 12px 15px;
    }

    .search-submit {
        width: 38px;
        height: 38px;
    }
}

.article-gallery {
    margin: 30px 0;
}

.gallery-attachment {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-attachment img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-attachment:hover .attachment-overlay {
    opacity: 1;
}

.gallery-attachment:hover img {
    transform: scale(1.1);
}

.attachment-actions {
    display: flex;
    gap: 15px;
}

.attachment-actions a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.gallery-attachment:hover .attachment-actions a {
    transform: translateY(0);
    opacity: 1;
}

.attachment-actions a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px) !important;
}

.attachment-actions .view-attachment {
    transition-delay: 0.1s;
}

.attachment-actions .download-attachment {
    transition-delay: 0.2s;
}

#imageModal .modal-content {
    background: transparent;
    border: none;
}

#imageModal .modal-body {
    position: relative;
}

#imageModal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 8px;
    z-index: 1;
}

#imageModal .btn-close:hover {
    opacity: 1;
}

#imageModal img {
    border-radius: 10px;
}

/* Enhanced Contact Section Styles */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-header {
    padding: 60px 0 30px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-wrapper {
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-links-wrapper {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links-wrapper h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-form-wrapper {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit i {
    font-size: 0.9rem;
}

.map-container {
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-info-item {
        margin-bottom: 20px;
    }

    .contact-header {
        padding: 40px 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

.student-activities {
    background: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-card.large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.activity-image {
    position: relative;
    padding-top: 60%;
}

.activity-card.large .activity-image {
    padding-top: 100%;
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.activity-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.activity-date .month {
    font-size: 0.9rem;
    display: block;
}

.activity-content {
    padding: 20px;
}

.activity-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.activity-card.large .activity-title {
    font-size: 1.5rem;
}

.activity-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.activity-stats i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.activity-link {
    color: var (--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.activity-link:hover {
    gap: 10px;
}

@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-card.large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .activity-card.large .activity-image {
        padding-top: 60%;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card.large {
        grid-column: span 1;
    }

    .activity-title {
        font-size: 1.1rem;
    }

    .activity-card.large .activity-title {
        font-size: 1.3rem;
    }
}

.ministry-news {
    background: #f8f9fa;
}

.ministry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.ministry-image {
    position: relative;
    height: 100%;
    min-height: 200px;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ministry-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
}

.ministry-date span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.ministry-date small {
    font-size: 0.8rem;
}

.ministry-content {
    padding: 20px;
}

.ministry-tags {
    margin-bottom: 10px;
}

.ministry-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.85rem;
}

.ministry-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.ministry-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.ministry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ministry-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.ministry-more:hover {
    gap: 10px;
}

.ministry-views {
    color: #666;
    font-size: 0.9rem;
}

.ministry-views i {
    color: var(--secondary-color);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .ministry-image {
        min-height: 150px;
    }

    .ministry-content {
        padding: 15px;
    }

    .ministry-title {
        font-size: 1rem;
    }
}

/* Conferences Section Styles */
.conferences-section {
    background: #f8f9fa;
}

.conference-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.conference-table thead {
    background: var(--primary-color);
    color: white;
}

.conference-table th {
    padding: 15px;
    font-weight: 500;
    /* text-align: right; */
}

.conference-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.conference-table tr:last-child td {
    border-bottom: none;
}

.conference-title h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--primary-color);
}

.conference-type {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
}

.conference-date,
.conference-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.conference-date i,
.conference-location i {
    color: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.upcoming {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.past {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.ongoing {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Hover effect */
.conference-table tbody tr {
    transition: all 0.3s ease;
}

.conference-table tbody tr:hover {
    background: rgba(14, 111, 107, 0.02);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .conference-title h6 {
        font-size: 0.9rem;
    }

    .conference-date,
    .conference-location {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .conference-table {
        font-size: 0.9rem;
    }

    .conference-table th,
    .conference-table td {
        padding: 12px 10px;
    }
}

/* Rankings Section Styles */
.rankings-section {
    background-color: #f8f9fa;
    position: relative;
}

.ranking-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ranking-header {
    position: relative;
    /* padding: 20px; */
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-color-light) 0%,
        var(--primary-color) 100%
    );
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.ranking-image {
    width: 100%;
    height: 120px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ranking-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
}

.ranking-logo i {
    font-size: 2rem;
    color: #fff;
}

.ranking-year {
    font-size: 1.1rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
}

.ranking-body {
    padding: 20px;
}

.ranking-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.ranking-position {
    text-align: center;
    margin: 15px 0;
}

.position-label {
    margin-top: 5px;
    display: flex;
    justify-content: center;
}

.position-label .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .ranking-image {
        height: 100px;
    }

    .ranking-image img {
        max-height: 80px;
    }

    .ranking-body h4 {
        font-size: 1.1rem;
    }
}

.enhanced-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-brand {
    flex: 1;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.footer-subtitle {
    color: #b4cbca;
    font-size: 0.9rem;
    margin: 10px 0 0;
}

.footer-about {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
}

.footer-social .facebook:hover {
    background: var(--primary-color);
}
.footer-social .twitter:hover {
    background: var(--primary-color);
}
.footer-social .instagram:hover {
    background: var(--primary-color);
}
.footer-social .linkedin:hover {
    background: var(--primary-color);
}
.footer-social .youtube:hover {
    background: var(--primary-color);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

:root {
    --primary-color: #116967;
    --secondary-color: #323a45;
    --primary-hover: #0e5655;
    --secondary-hover: #272e37;
    --primary-light: rgba(17, 105, 103, 0.1);
    --secondary-light: rgba(50, 58, 69, 0.1);
    --primary-shadow: rgba(17, 105, 103, 0.3);
    --secondary-shadow: rgba(50, 58, 69, 0.3);
    --accent-color: #3498db;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Override Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

/* Override Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Override Checkboxes and Radios */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

body {
    font-family: "Vazirmatn", sans-serif;
    /* text-align: right; */
}

a {
    text-decoration: none;
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link i {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.top-social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    width: 29px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-links span {
        display: none;
    }

    .contact-link {
        gap: 0;
    }

    .contact-link i {
        margin: 0;
    }
}

/* RTL specific adjustments */
.navbar-nav {
    padding-right: 0;
    padding-left: 0;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.nav-link::after {
    /* right: 0; */
    left: auto;
}

.nav-item:last-child .nav-link {
    /* margin-right: 15px;
    margin-left: 0; */
}

/* Modern Hero Section */
.hero {
    position: relative;
    height: 65vh;
    overflow: hidden;
}

.hero-swiper {
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s ease;
}

.swiper-slide-active .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    );
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: #4a90e2;
    background: #126966;
    border: none;
    transition: all 0.3s ease;
    display: none;
}

.hero-button:hover {
    background: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-pagination {
    position: absolute;
    bottom: 30px !important;
    z-index: 3;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Statistics Section */
.stats {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.counter {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Programs Section */
.program-card {
    border: none;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

/* Programs Section Image Styles */
.program-card .card-img-top {
    height: 250px;
    /* ارتفاع ثابت لجميع الصور */
    object-fit: cover;
    /* لضمان تغطية كاملة للمساحة */
    width: 100%;
}

.program-card {
    height: 100%;
    /* لجعل جميع البطاقات بنفس الارتفاع */
    display: flex;
    flex-direction: column;
}

.program-card .card-body {
    flex: 1;
    /* لضمان محاذاة متناسقة للمحتوى */
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
}

/* Campus Map */
.campus-map {
    height: 400px;
    background: #eee;
}

/* Social Feed */
.social-feed {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Custom Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Navbar Styles */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    position: sticky;
    top: -1px;
    z-index: 1000;
    min-height: 55px;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    padding: 10px 0 !important;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 17px;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    background: #218a87;
    transition: width 0.3s ease;
}

[dir="ltr"] .nav-link::before {
    right: auto;
    left: 0;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active::before {
    width: 100%;
}

.navbar-nav {
    align-items: center;
}

.nav-item:last-child .nav-link {
    /* padding: 8px 20px !important;
    background: var(--secondary-color);
    border-radius: 25px;
    margin-left: 15px; */
}

.nav-item:last-child .nav-link::after {
    /* display: none; */
}

.nav-item:last-child .nav-link:hover {
    /* background: var(--accent-color);
    transform: translateY(-2px); */
}

/* Social Media Links Styles */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links .facebook {
    background: #1877f2;
}

.social-links .twitter {
    background: #1da1f2;
}

.social-links .instagram {
    background: #e4405f;
}

.social-links .linkedin {
    background: #0077b5;
}

.social-links .youtube {
    background: #ff0000;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.university-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3;
}

/* Partner Universities Styles */
.partner-universities {
    padding: 60px 0;
    background: #f8f9fa;
}

.partner-slider {
    padding: 20px 0;
}

.partner-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* New Partner Universities Cards Section */
.partner-cards-section {
    padding: 80px 0;
    background: #fff;
}

.partner-card-link {
    display: block;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.partner-card-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.partner-card-link:hover .partner-card-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-card-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.partner-card-link:hover .partner-card-logo {
    transform: scale(1.1);
}

.partner-card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 991.98px) {
    .partner-card-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .partner-card-wrapper {
        padding: 20px;
    }
}

/* News Slideshow Styles */
.news-section {
    background-color: #f8f9fa;
}

.carousel-item {
    padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.news-section .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-rows: auto;
    gap: 15px;
    padding: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox styles */
.modal-content {
    /* background: transparent; */
    border: none;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 43%;
    border-radius: 10px;
}

/* Faculty Section Styles */
.faculty-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faculty-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faculty-image {
    position: relative;
    padding-top: 100%;
    /* تغيير من 125% إلى 100% لجعل الصورة مربعة */
    overflow: hidden;
}

.faculty-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-info {
    position: relative;
    padding: 15px;
    /* تقليل التباعد الداخلي */
    background: white;
    text-align: center;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.faculty-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.faculty-specs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    /* تقليل الهامش السفلي */
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.faculty-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

/* .section-title:after {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 88px;
    left: 0;
    margin-left: auto;
    margin-right: auto;
}

.section-title:before {
    content: "";
    width: 30px;
    height: 90px;
    background-color: #1169670f;
    border-radius: 15px;
    position: absolute;
    transform: rotate(55deg);
    margin-top: -22px;
    margin-right: -55px;
    z-index: -1;
    animation-name: title-effect-animation;
    animation-delay: 1.2s;
    animation-duration: 1.2s;
    right: 0;
    left: 88px;
    margin-left: auto;
    margin-right: auto;
} */

/* Language Switcher Styles */
.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switch i {
    font-size: 0.8rem;
}

/* Faculty Swiper Styles */
.faculty-swiper {
    padding: 20px 0;
}

.faculty-swiper .swiper-slide {
    height: auto;
}

.faculty-navigation {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faculty-navigation:hover {
    background: var(--primary-color);
    color: white;
}

.faculty-navigation::after {
    font-size: 1.2rem;
}

.faculty-swiper .swiper-button-prev {
    left: -5px;
}

.faculty-swiper .swiper-button-next {
    right: -5px;
}

.faculty-pagination {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    bottom: 0;
}

.faculty-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
    margin: 0 4px;
}

.faculty-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

.faculty-swiper {
    padding-bottom: 50px; /* Add space for pagination */
    position: relative;
}

/* Updated Faculty Swiper Styles */
.faculty-swiper-container {
    position: relative;
    padding: 20px 40px;
}

.faculty-swiper {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.faculty-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faculty-navigation.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.faculty-navigation:hover:not(.swiper-button-disabled) {
    background: var(--secondary-color);
}

.faculty-swiper .swiper-button-prev {
    left: 0;
}

.faculty-swiper .swiper-button-next {
    right: 0;
    left: 10px;
    right: auto;
}

.faculty-swiper .swiper-pagination {
    position: relative;
    bottom: 25px;
    width: 100%;
}

/* Add before existing styles */
.dropdown-menu {
    margin: 0;
    padding: 0;
    background: rgba(33, 37, 41, 0.98);
    border: none;
    border-radius: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
}

.dropdown-item {
    padding: 10px 20px;
    color: white !important;
    position: relative;
}

[dir="rtl"] .dropdown-item {
    padding-left: 35px;
}

[dir="ltr"] .dropdown-item {
    padding-right: 35px;
}

.dropdown-item:hover {
    background: var(--secondary-color);
}

.dropdown-toggle::after {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Make dropdown menus display on hover */
.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Add before existing styles */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu > .dropdown-menu {
    transform: translateX(20px);
}

.dropdown-submenu:hover > .dropdown-menu {
    transform: translateX(0);
}

/* Add animation for dropdown items */
.dropdown-item {
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: calc(var(--item-number) * 0.1s);
}

.dropdown:hover .dropdown-item,
.dropdown-submenu:hover > .dropdown-menu .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

/* Logo Section Styles */
.top-logo-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.main-logo:hover {
    background: rgba(0, 0, 0, 0.02);
}

.main-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.main-logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    /* border-right: 3px solid var(--secondary-color); */
    border-right: 3px dashed #0e6f6b69;
    padding-right: 20px;
}

[dir="ltr"] .logo-text {
    border-right: 0;
    padding-right: 0;
    border-left: 3px dashed #0e6f6b69;
    padding-left: 20px;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.logo-contact {
    display: flex;
    gap: 40px;
    padding: 10px 20px;
    padding: 20px 20px;
    background: white;
    border-radius: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    display: none;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    color: #0e6f6bc4;
    color: #0e6f6ba8;
    background: rgba(231, 76, 60, 0.1);
    background: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px dashed #0e6f6b2b;
}

.contact-item:hover i {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info-text {
    /* text-align: right; */
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1200px) {
    .logo-contact {
        gap: 20px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .logo-container {
        grid-template-columns: auto 1fr;
    }

    .logo-contact {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .main-logo img {
        height: 70px;
    }
}

.modern-breadcrumbs {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 30px;
}

.breadcrumbs-content {
    text-align: center;
    color: white;
}

/* Vision Mission Section Styles */
.vision-mission {
    padding: 5rem 0;
    background: #fff;
}

.vision-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vision-box:hover .vision-icon {
    background: #357abd;
    background: #0e6f6b1a;
    transform: scale(1.1);
}

.vision-icon i {
    font-size: 2rem;
    color: #fff;
    color: #0e6f6bd1;
}

.vision-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.vision-text {
    color: #666;
    line-height: 1.6;
}

.goals-list {
    margin-top: 3rem;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.goal-icon i {
    font-size: 1.5rem;
    color: #fff;
    color: #0e6f6bd1;
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.goal-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .quick-link-card,
    .vision-box {
        margin-bottom: 1.5rem;
    }

    .goal-item {
        flex-direction: column;
        text-align: center;
    }

    .goal-icon {
        margin: 0 auto 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.map-container {
    height: 400px;
    background: #eee;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 0 0 80px 0;
    background: #fff;
}

.map-container {
    height: 450px;
    width: 100%;
    margin: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(-5px);
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var (--secondary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.contact-form button {
    /* background: var(--secondary-color); */
    background: var(--primary-color);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ...existing styles... */

.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

[dir="rtl"] .read-more:hover {
    transform: translateX(-5px);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* ...Article Section Styles... */

.article-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.article-main {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 15px;
}

.article-title {
    color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 2rem;
    font-size: 27px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 15px;
}

.article-meta i {
    color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 17px;
}

.article-content {
    line-height: 1.8;
    color: #444;
    font-size: 17px;
    text-align: justify;
}

.article-image {
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.article-image img {
    width: 100%;
    height: auto;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--secondary-color);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    width: 95px;
    min-width: 95px;
    max-width: 95px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h6 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.recent-post-info a {
    color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #666;
}

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

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.category-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-item a:hover {
    color: var(--secondary-color);
}

.category-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--secondary-color);
    color: white;
}

/* ...Videos Section Styles... */

.videos-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 1.5rem;
}

.video-card:hover .play-button {
    background: #4a90e2;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #666;
}

.video-meta span {
    display: flex;
    align-items: center;
}

.video-meta span i {
    margin-left: 0.5rem;
    color: #4a90e2;
}

.video-modal .modal-content {
    background: #111;
    border: none;
}

.video-modal .modal-header {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
}

.video-modal .modal-title {
    color: #fff;
    font-size: 1.2rem;
}

.video-modal .btn-close {
    color: #fff;
    opacity: 0.8;
    filter: invert(1) brightness(100%);
}

.video-modal .modal-body {
    padding: 0;
}

/* Make sure videos are responsive */
.video-modal .modal-body iframe,
.video-modal .modal-body video {
    display: block;
    border: none;
}

.video-modal .modal-body iframe {
    width: 100%;
    height: 100%;
}

.video-modal .modal-body video {
    width: 100%;
    height: 100%;
}

/* Cookie Consent Styles */

.cookie-consent {
    position: fixed;
    bottom: -100%;
    right: 0;
    left: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 0.95rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--secondary-color);
    color: white;
}

.accept-cookies:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.reject-cookies {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.reject-cookies:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-settings {
    color: var(--secondary-color);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
}

.cookie-settings:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: -60px;
    /* Start position off-screen */
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    border: 0;
}

.scroll-to-top.active {
    bottom: 20px;
    /* Visible position */
    opacity: 1;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Add RTL-specific styles */
[dir="rtl"] .scroll-to-top {
    right: 20px;
    left: auto;
}

[dir="rtl"] .scroll-to-top i {
    /* transform: rotate(-90deg);  */
}

/* Add LTR-specific styles */
[dir="ltr"] .scroll-to-top {
    left: 20px;
    right: auto;
}

[dir="ltr"] .scroll-to-top i {
    /* transform: rotate(90deg);  */
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    color: white;
}

.share-button i {
    font-size: 1.1rem;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.copy-link {
    background: var(--primary-color);
}

.share-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .share-button span:not(.share-count) {
        display: none;
    }

    .share-button {
        padding: 8px 15px;
    }
}

.visit-number {
    font-weight: 600;
}

.related-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.related-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 15px;
}

.related-post-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(14, 111, 107, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
}

.related-post-date i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.nav-search {
    /* margin-right: 20px; */
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 15px;
}

.search-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.search-form {
    padding: 40px 20px;
}

.search-input-group {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.search-submit {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
    text-align: right;
}

.search-suggestions h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tags a {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-tags a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
        padding: 12px 50px 12px 15px;
    }

    .search-submit {
        width: 38px;
        height: 38px;
    }
}

.article-gallery {
    margin: 30px 0;
}

.gallery-attachment {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-attachment img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-attachment:hover .attachment-overlay {
    opacity: 1;
}

.gallery-attachment:hover img {
    transform: scale(1.1);
}

.attachment-actions {
    display: flex;
    gap: 15px;
}

.attachment-actions a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.gallery-attachment:hover .attachment-actions a {
    transform: translateY(0);
    opacity: 1;
}

.attachment-actions a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px) !important;
}

.attachment-actions .view-attachment {
    transition-delay: 0.1s;
}

.attachment-actions .download-attachment {
    transition-delay: 0.2s;
}

#imageModal .modal-content {
    background: transparent;
    border: none;
}

#imageModal .modal-body {
    position: relative;
}

#imageModal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 8px;
    z-index: 1;
}

#imageModal .btn-close:hover {
    opacity: 1;
}

#imageModal img {
    border-radius: 10px;
}

/* Enhanced Contact Section Styles */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-header {
    padding: 60px 0 30px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-wrapper {
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-info-card {
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.contact-info-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-links-wrapper {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links-wrapper h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-form-wrapper {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit i {
    font-size: 0.9rem;
}

.map-container {
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-info-item {
        margin-bottom: 20px;
    }

    .contact-header {
        padding: 40px 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

.student-activities {
    background: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-card.large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.activity-image {
    position: relative;
    padding-top: 60%;
}

.activity-card.large .activity-image {
    padding-top: 100%;
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.activity-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.activity-date .month {
    font-size: 0.9rem;
    display: block;
}

.activity-content {
    padding: 20px;
}

.activity-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.activity-card.large .activity-title {
    font-size: 1.5rem;
}

.activity-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.activity-stats i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.activity-link {
    color: var (--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.activity-link:hover {
    gap: 10px;
}

@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-card.large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .activity-card.large .activity-image {
        padding-top: 60%;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card.large {
        grid-column: span 1;
    }

    .activity-title {
        font-size: 1.1rem;
    }

    .activity-card.large .activity-title {
        font-size: 1.3rem;
    }
}

.ministry-news {
    background: #f8f9fa;
}

.ministry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.ministry-image {
    position: relative;
    height: 100%;
    min-height: 200px;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ministry-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
}

.ministry-date span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.ministry-date small {
    font-size: 0.8rem;
}

.ministry-content {
    padding: 20px;
}

.ministry-tags {
    margin-bottom: 10px;
}

.ministry-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.85rem;
}

.ministry-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.ministry-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.ministry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ministry-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.ministry-more:hover {
    gap: 10px;
}

.ministry-views {
    color: #666;
    font-size: 0.9rem;
}

.ministry-views i {
    color: var(--secondary-color);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .ministry-image {
        min-height: 150px;
    }

    .ministry-content {
        padding: 15px;
    }

    .ministry-title {
        font-size: 1rem;
    }
}

/* Conferences Section Styles */
.conferences-section {
    background: #f8f9fa;
}

.conference-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.conference-table thead {
    background: var(--primary-color);
    color: white;
}

.conference-table th {
    padding: 15px;
    font-weight: 500;
    /* text-align: right; */
}

.conference-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;
}

.conference-table tr:last-child td {
    border-bottom: none;
}

.conference-title h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--primary-color);
}

.conference-type {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
}

.conference-date,
.conference-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.conference-date i,
.conference-location i {
    color: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.upcoming {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.past {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.ongoing {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Hover effect */
.conference-table tbody tr {
    transition: all 0.3s ease;
}

.conference-table tbody tr:hover {
    background: rgba(14, 111, 107, 0.02);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .conference-title h6 {
        font-size: 0.9rem;
    }

    .conference-date,
    .conference-location {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .conference-table {
        font-size: 0.9rem;
    }

    .conference-table th,
    .conference-table td {
        padding: 12px 10px;
    }
}

/* Rankings Section Styles */
.rankings-section {
    background: #f8f9fa;
}

.ranking-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ranking-header {
    /* padding: 20px; */
    /* background: var(--primary-color); */
    color: white;
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
}

.ranking-header .ranking-logo img {
    max-height: 170px;
}

.ranking-logo i {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.ranking-year {
    background: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.ranking-body {
    padding: 25px;
}

.ranking-position {
    text-align: center;
    margin-bottom: 20px;
}

.position-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: block;
}

.position-label {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.ranking-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    padding: 10px;
    background: rgba(14, 111, 107, 0.1);
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.ranking-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--secondary-color);
    transition: width 1s ease;
    position: relative;
    text-align: right;
    padding-right: 5px;
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .ranking-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.enhanced-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-brand {
    flex: 1;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.footer-subtitle {
    color: #b4cbca;
    font-size: 0.9rem;
    margin: 10px 0 0;
}

.footer-about {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
}

.footer-social .facebook:hover {
    background: var(--primary-color);
}
.footer-social .twitter:hover {
    background: var(--primary-color);
}
.footer-social .instagram:hover {
    background: var(--primary-color);
}
.footer-social .linkedin:hover {
    background: var(--primary-color);
}
.footer-social .youtube:hover {
    background: var(--primary-color);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px dashed #2c7b79;
}

.widget-title::after {
    /* content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color); */
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-links i {
    font-size: 0.8rem;
    color: var(--secondary-color);
    color: #a5a5a5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.footer-widget .contact-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 23px;
}

.contact-item:hover i {
    background: #1f7d7d;
    color: white;
    transform: translateY(-2px);
}

.contact-details h5 {
    color: white;
    font-size: 1rem;
    margin: 0 0 5px;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    position: relative;
}

.footer-newsletter h4 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.footer-newsletter p {
    margin: 5px 0 0;
    opacity: 0.8;
}

.newsletter-form .input-group {
    background: white;
    border-radius: 50px;
    padding: 5px;
}

.newsletter-form .form-control {
    border: none;
    padding: 10px 20px;
    background: transparent;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 10px 25px;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.newsletter-form .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    background-color: var(--secondary-hover);
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.footer-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-newsletter {
        text-align: center;
    }

    .footer-newsletter form {
        margin-top: 20px;
    }

    .footer-meta {
        justify-content: center;
        margin-top: 15px;
    }

    .copyright {
        text-align: center;
    }
}

.lang-switcher {
    position: relative;
    display: inline-block;
    overflow: visible !important;

    z-index: 10000;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 10px;
}

.lang-btn i {
    font-size: 14px;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 140px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
}

.lang-dropdown.show {
    display: block !important;
}

.lang-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 13px;
}

.lang-option:hover {
    background-color: #f0f0f0;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    margin: 0;
    padding: 0;
    background: rgba(33, 37, 41, 0.98);
    border: none;
    border-radius: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    /* Base position for LTR */
    right: 100%;
    /* Base position for RTL */
    margin-top: -1px;
}

[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    left: auto;
    right: 100%;
}

[dir="ltr"] .dropdown-submenu > .dropdown-menu {
    left: 100%;
    right: auto;
}

.dropdown-item {
    padding: 10px 20px;
    color: white !important;
    position: relative;
}

.dropdown-toggle::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

[dir="rtl"] .dropdown-toggle::after {
    left: -14px;
    right: auto;
}

[dir="ltr"] .dropdown-toggle::after {
    /* right: 10px; */
    right: -19px;
    left: auto;
}

.dropdown-toggle i {
    font-size: 13px;
}

/* Animation for dropdowns */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu arrow indicators */
.dropdown-submenu > .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0.3em solid;
    border-bottom: 0.3em solid transparent;
}

[dir="ltr"] .dropdown-submenu > .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
    right: 10px;
    left: auto;
}

[dir="rtl"] .dropdown-submenu > .dropdown-toggle::after {
    left: 10px;
    right: auto;
}

/* Hover effect */
.dropdown-item:hover {
    background: var(--secondary-color);
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        left: 0;
        right: 0;
        margin-left: 20px;
        margin-right: 20px;
    }

    [dir="ltr"] .dropdown-submenu > .dropdown-menu,
    [dir="rtl"] .dropdown-submenu > .dropdown-menu {
        left: 0;
        right: 0;
    }
}

.quick-links-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.quick-link-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #4a90e2;
    background: #0e6f6b1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-link-card:hover .icon-wrapper {
    /* background: #357abd; */
    transform: scale(1.1);
}

.icon-wrapper i {
    font-size: 2rem;
    color: #fff;
    color: #0e6f6bd1;
}

.quick-link-card h3 {
    font-size: 1.2rem;
    margin: 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
.offcanvas {
    background-color: var(--primary-color);
    color: white;
}

[dir="rtl"] .offcanvas.offcanvas-start {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

[dir="ltr"] .offcanvas.offcanvas-start {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: white;
}

.btn-close {
    background-color: white;
    opacity: 0.8;
}

.mobile-menu {
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link,
.mobile-accordion {
    display: block;
    width: 100%;
    padding: 15px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    text-align: right;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-accordion {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-accordion i {
    transition: transform 0.3s ease;
}

.mobile-accordion.active i {
    transform: rotate(180deg);
}

.mobile-link:hover,
.mobile-accordion:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.mobile-submenu {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding-right: 15px;
}

.mobile-submenu.active {
    display: block;
}

.offcanvas {
    z-index: 1050; /* Ensure it's above the navbar */
    width: 300px; /* Set a fixed width */
    background-color: var(--secondary-color);
    color: white;
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease; /* Add smooth transition */
}

.offcanvas.show {
    visibility: visible;
}

/* RTL Support */
[dir="rtl"] .offcanvas-start {
    right: 0;
    left: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease, visibility 0.35s ease;
}

[dir="rtl"] .offcanvas-start.show {
    transform: translateX(0);
}

/* LTR Support */
[dir="ltr"] .offcanvas-start {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    transition: transform 0.35s ease, visibility 0.35s ease;
}

[dir="ltr"] .offcanvas-start.show {
    transform: translateX(0);
}

/* Fix close button position */
[dir="rtl"] .offcanvas .btn-close {
    margin: 0;
    position: absolute;
    left: 1rem;
    right: auto;
}

[dir="ltr"] .offcanvas .btn-close {
    margin: 0;
    position: absolute;
    right: 1rem;
    left: auto;
}

/* Fix mobile menu appearance */
.mobile-menu {
    margin-top: 1rem;
}

.navbar-toggler {
    padding: 0.5rem;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* Enhanced Mobile Menu Styles */
.offcanvas {
    max-width: 320px;
    border: none;
}

.offcanvas-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-brand-text {
    line-height: 1.2;
}

.mobile-brand-text h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.mobile-brand-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

.mobile-search {
    display: none; /* Hide mobile search */
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link,
.mobile-accordion {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-accordion {
    justify-content: space-between;
}

.mobile-link-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-link i,
.mobile-link-content i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.mobile-submenu {
    background: rgba(0, 0, 0, 0.2);
    padding-right: 20px;
}

.offcanvas-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* RTL/LTR Support */
[dir="rtl"] .mobile-search-btn {
    left: 5px;
    right: auto;
}

[dir="ltr"] .mobile-search-btn {
    right: 5px;
    left: auto;
}

[dir="rtl"] .mobile-submenu {
    padding-right: 20px;
    padding-left: 0;
}

[dir="ltr"] .mobile-submenu {
    padding-left: 20px;
    padding-right: 0;
}
/* Mobile Language Switcher Styles */
.mobile-lang-switcher {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-lang-button.active {
    background: var(--secondary-color);
    color: white;
    border-color: transparent;
}

.mobile-lang-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.mobile-lang-button i {
    font-size: 0.9rem;
}

/* Academic Profile Styles */
.academic-profile {
    padding: 80px 0;
    background: #f8f9fa;
}

.profile-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f");
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-designation {
    font-size: 1.2rem;
    opacity: 0.9;
}

.profile-contact {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profile-contact a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.profile-contact a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.profile-tabs {
    margin-bottom: 30px;
}

.profile-tabs .nav-link {
    color: var(--primary-color);
    padding: 15px 25px;
    border: none;
    border-radius: 0;
    /* border-bottom: 3px solid transparent; */
}

.profile-tabs .nav-link.active {
    color: var(--secondary-color);
    background: none;
    border-bottom-color: var(--secondary-color);
}

.profile-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-section h3,
.education-section h3,
.research-section h3,
.teaching-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(14, 111, 107, 0.3);
}

.education-item,
.research-item,
.course-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.education-item:last-child,
.research-item:last-child,
.course-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-year,
.research-year {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.research-item .badge {
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    font-weight: 500;
    margin-right: 5px;
}

.research-metrics {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.research-metrics span i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.course-code {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.expertise-item {
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.faculty-section .container {
    position: relative;
    padding-bottom: 60px; /* Make room for pagination */
}

.faculty-swiper {
    overflow: hidden;
    position: relative;
}

.faculty-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.faculty-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    opacity: 0.5;
}

.faculty-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Laravel Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

[dir="rtl"] .pagination .fa-chevron-right {
    transform: rotate(180deg);
}

[dir="rtl"] .pagination .fa-chevron-left {
    transform: rotate(180deg);
}

/* Updated Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-category {
    padding: 8px 20px;
    border: none;
    background: #f0f0f0;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.gallery-category.active {
    background: var(--secondary-color);
    color: white;
}

.gallery-category:hover:not(.active) {
    background: #e0e0e0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.gallery-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* University Intro Video Section */
.university-intro {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    overflow: hidden;
}

.intro-video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.intro-video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 20px;
}

.intro-content {
    position: relative;
    z-index: 2;
}

.intro-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.intro-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(14, 111, 107, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.intro-feature:hover .feature-icon {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.feature-text h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.feature-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.intro-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.intro-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.intro-btn.primary {
    background: var(--secondary-color);
    color: white;
    border: none;
}

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

.intro-btn.outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.intro-btn.outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .university-intro {
        padding: 60px 0;
    }

    .intro-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .intro-cta {
        justify-content: center;
    }
}

/* Faculty Datatable Styles */
.faculty-datatable-section {
    background: #f8f9fa;
}

.faculty-datatable-section .card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

#facultyTable_wrapper {
    padding: 20px;
}

#facultyTable thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
}

#facultyTable tbody td {
    vertical-align: middle;
    padding: 12px;
}

.faculty-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.faculty-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.faculty-actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
}

.dataTables_filter,
.dataTables_length {
    margin-bottom: 20px;
}

[dir="rtl"] .dataTables_filter {
    float: left;
}

[dir="rtl"] .dataTables_length {
    float: right;
}

/* Gallery Categories Section Styles */
.gallery-categories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-decoration: none;
    display: block;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.category-count {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Page View Styles */
.page-view-section {
    padding: 80px 0;
    background: #fff;
}

.page-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.page-meta i {
    color: var(--secondary-color);
}

.page-body {
    line-height: 1.8;
    color: #444;
}

.page-body h2 {
    color: var(--primary-color);
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.page-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.page-attachments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attachment-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.attachment-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: #eee;
    transform: translateY(-2px);
}

.attachment-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.attachment-size {
    font-size: 0.8rem;
    color: #666;
}

/* Latest News Carousel Section */
.latest-news-section {
    background-color: #fff;
    padding: 5rem 0;
    position: relative;
}

.carousel-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0;
    color: #333;
    text-align: right;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.carousel-caption p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    color: #4a90e2;
    margin-left: 0.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.8);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
}

/* Default LTR layout */
.carousel-control-prev {
    left: 20px;
    right: auto;
}

.carousel-control-next {
    right: 20px;
    left: auto;
}

/* RTL layout override */
html[dir="rtl"] .carousel-control-prev {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .carousel-control-next {
    left: 20px;
    right: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(74, 144, 226, 1);
}

.carousel-indicators {
    position: relative;
    margin-top: 20px;
    margin-bottom: 0;
    bottom: auto;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    opacity: 0.5;
    margin: 0 5px;
    border: none;
}

.carousel-indicators .active {
    background-color: #4a90e2;
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-item {
        padding: 15px;
    }

    .carousel-item img {
        height: 250px;
        margin-bottom: 20px;
    }

    .carousel-caption {
        text-align: center;
    }

    .news-meta {
        justify-content: center;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px;
    filter: none;
}

/* Default LTR icons */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* RTL layout icon override - swap directions */
html[dir="rtl"] .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

html[dir="rtl"] .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* College Cards Styles */
.colleges-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.college-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
}

.college-card-link:hover {
    transform: translateY(-10px);
    text-decoration: none;
}

.college-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.college-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #5fb5ff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.college-card-link:hover .college-card::after {
    transform: scaleX(1);
    transform-origin: left;
}

.college-card-link:hover .college-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a90e2;
}

.college-card-icon {
    /* background-color: rgba(74, 144, 226, 0.1); */
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.college-card-link:hover .college-card-icon {
    background-color: #4a90e2;
    transform: scale(1.1);
}

.college-card-icon i {
    font-size: 40px;
    color: #4a90e2;
    transition: all 0.3s ease;
}

.college-card-link:hover .college-card-icon i {
    color: #fff;
}

.college-logo {
    /* width: 65px; */
    height: 90px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.college-card-link:hover .college-logo {
    transform: scale(1.1);
}

.college-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.college-card-link:hover .college-card-title {
    color: #4a90e2;
}

.college-card-description {
    color: #666;
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .college-card {
        padding: 25px 15px;
    }

    .college-card-icon {
        width: 75px;
        height: 75px;
    }

    .college-logo {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .college-card {
        padding: 20px 15px;
    }

    .college-card-icon {
        width: 60px;
        height: 60px;
    }

    .college-card-icon i {
        font-size: 30px;
    }

    .college-card-title {
        font-size: 18px;
    }

    .college-logo {
        width: 45px;
        height: 45px;
    }
}

/* Teachers Section Styles */
.teachers-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.teacher-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a90e2;
}

.teacher-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.teacher-title {
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 10px;
}

.teacher-specialization {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.teacher-college {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
}

.teacher-profile-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f7ff;
    color: #4a90e2;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.teacher-profile-link:hover {
    background-color: #4a90e2;
    color: #fff;
}

.teachers-swiper {
    padding-bottom: 50px;
}

.teachers-button-next,
.teachers-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(74, 144, 226, 0.8);
    border-radius: 50%;
    color: #fff;
}

.teachers-button-next:after,
.teachers-button-prev:after {
    font-size: 18px;
}

.teachers-button-next:hover,
.teachers-button-prev:hover {
    background-color: #4a90e2;
}

.teachers-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

.teachers-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.5;
}

.teachers-pagination .swiper-pagination-bullet-active {
    background-color: #4a90e2;
    opacity: 1;
}

@media (max-width: 992px) {
    .teacher-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .teacher-image {
        height: 180px;
    }

    .teacher-name {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .teacher-image {
        height: 240px;
    }
}

/* News Swiper Section */
.news-swiper {
    padding: 15px 0 50px;
}

.news-swiper .swiper-slide {
    height: auto;
}

.news-button-next,
.news-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.8);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
}

.news-button-next:after,
.news-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.news-button-prev {
    left: 10px;
    right: auto;
}

.news-button-next {
    right: 10px;
    left: auto;
}

html[dir="rtl"] .news-button-prev {
    right: 10px;
    left: auto;
}

html[dir="rtl"] .news-button-next {
    left: 10px;
    right: auto;
}

.news-pagination {
    position: relative;
    bottom: -30px !important;
}

.news-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    background: #ccc;
    margin: 0 5px;
}

.news-pagination .swiper-pagination-bullet-active {
    background: #4a90e2;
    opacity: 1;
}

/* Related Post Card styles for Swiper */
.related-post-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0;
}

.related-post-image {
    overflow: hidden;
    height: 200px;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 20px;
}

.related-post-category {
    display: inline-block;
    background: #4a90e2;
    background: #0e6f6bc4;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-post-date {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
}

.related-post-date i {
    margin-left: 5px;
    color: #4a90e2;
    color: #46908d;
}

@media (max-width: 768px) {
    .news-button-next,
    .news-button-prev {
        width: 35px;
        height: 35px;
    }

    .related-post-image {
        height: 150px;
    }

    .related-post-content {
        padding: 15px;
    }
}

/* Offcanvas backdrop styles */
.offcanvas-backdrop {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

/* Make offcanvas transitions smoother */
.offcanvas {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s ease;
}

/* Fix animation jank on mobile with proper hardware acceleration */
[dir="rtl"] .offcanvas-start,
[dir="ltr"] .offcanvas-start {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix close button position and style */
.offcanvas .btn-close {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.offcanvas .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

[dir="rtl"] .offcanvas .btn-close {
    margin: 0;
    position: absolute;
    left: 1rem;
    right: auto;
}

[dir="ltr"] .offcanvas .btn-close {
    margin: 0;
    position: absolute;
    right: 1rem;
    left: auto;
}

.mobile-submenu {
    display: none; /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
    max-height: 0;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

/* When active, display as block */
.mobile-submenu.active {
    display: block !important;
}

/* Nested submenus have darker background */
.mobile-submenu .mobile-submenu {
    background-color: rgba(0, 0, 0, 0.25);
    margin-left: 15px;
}

/* RTL adjustments */
[dir="rtl"] .mobile-submenu {
    padding-right: 15px;
    padding-left: 0;
    margin-right: 15px;
    margin-left: 0;
}

[dir="ltr"] .mobile-submenu {
    padding-left: 15px;
    padding-right: 0;
    margin-left: 15px;
    margin-right: 0;
}

/* Make sure all accordion buttons have proper icons */
.mobile-accordion {
    position: relative;
    justify-content: space-between;
}

.mobile-accordion i {
    transition: transform 0.3s ease;
}

.mobile-accordion.active i {
    transform: rotate(180deg);
}

/* Mobile menu styling fixes */
.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-link,
.mobile-accordion {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-accordion {
    justify-content: space-between;
}

/* تعريف موحد ونهائي لجميع عناصر القائمة المتنقلة */
.mobile-submenu {
    display: none;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 0;
    max-height: 0;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

.mobile-submenu.active {
    display: block;
    max-height: 1000px;
    padding: 10px 0;
}

.mobile-submenu .mobile-submenu {
    background-color: rgba(0, 0, 0, 0.1);
    margin-left: 15px;
}

.mobile-accordion {
    position: relative;
}

.mobile-accordion i {
    transition: transform 0.3s ease;
}

.mobile-accordion.active i {
    transform: rotate(180deg);
}

[dir="rtl"] .mobile-submenu {
    padding-right: 0;
    margin-right: 15px;
    margin-left: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-link,
.mobile-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    /* text-align: left; */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hide top-logo-section on mobile devices */
@media (max-width: 767px) {
    .top-logo-section {
        display: none;
    }
}

/* Position navbar-toggler based on language direction */
[dir="rtl"] .navbar-toggler {
    position: absolute;
    left: 15px;
    right: auto;
}

[dir="ltr"] .navbar-toggler {
    position: absolute;
    right: 15px;
    left: auto;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* Gallery Swiper Styles */
.gallery-swiper {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.gallery-swiper .swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    position: relative;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.1);
}

.gallery-swiper .swiper-slide .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    padding: 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-swiper .swiper-slide:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-button-next,
.gallery-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
}

.gallery-button-next:after,
.gallery-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.gallery-button-prev {
    left: 10px;
    right: auto;
}

.gallery-button-next {
    right: 10px;
    left: auto;
}

[dir="rtl"] .gallery-button-prev {
    right: 10px;
    left: auto;
}

[dir="rtl"] .gallery-button-next {
    left: 10px;
    right: auto;
}

.gallery-pagination {
    position: relative;
    bottom: 0 !important;
}

.gallery-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    background: #ccc;
    margin: 0 5px;
}

.gallery-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-swiper .swiper-slide {
        height: 250px;
    }

    .gallery-button-next,
    .gallery-button-prev {
        width: 35px;
        height: 35px;
    }
}

/* Mobile App Section Styles */
.mobile-app-section {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.mobile-app-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-light);
    z-index: 0;
}

.mobile-app-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-light);
    z-index: 0;
}

.section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.app-title {
    font-size: 38px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.app-description {
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-basis: calc(50% - 10px);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 600;
    font-size: 14px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-download-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-shadow);
    color: white;
}

.app-download-btn i {
    font-size: 24px;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text small {
    font-size: 10px;
    opacity: 0.8;
}

.btn-text span {
    font-size: 16px;
    font-weight: 600;
}

.app-qr-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #212529;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.app-qr-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #212529;
}

.app-qr-btn i {
    font-size: 20px;
    color: var(--primary-color);
}

.app-image {
    position: relative;
    padding: 20px;
    text-align: center;
}

.app-image img {
    max-width: 60%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.app-floating-icon {
    position: absolute;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.app-floating-icon i {
    color: var(--primary-color);
    font-size: 20px;
}

.app-icon-1 {
    top: 20%;
    left: 10%;
    animation: floatIcon 5s ease-in-out infinite;
}

.app-icon-2 {
    top: 40%;
    right: 10%;
    animation: floatIcon 7s ease-in-out infinite;
}

.app-icon-3 {
    bottom: 25%;
    left: 25%;
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5px, 10px);
    }
    50% {
        transform: translate(0, 5px);
    }
    75% {
        transform: translate(-5px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* RTL Specific Styles */
[dir="rtl"] .app-floating-icon.app-icon-1 {
    left: auto;
    right: 10%;
}

[dir="rtl"] .app-floating-icon.app-icon-2 {
    right: auto;
    left: 10%;
}

[dir="rtl"] .app-floating-icon.app-icon-3 {
    left: auto;
    right: 25%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .app-image {
        margin-top: 30px;
    }

    .app-image img {
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .app-title {
        font-size: 32px;
    }

    .feature-item {
        flex-basis: 100%;
    }

    .download-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-download-btn,
    .app-qr-btn {
        width: 100%;
    }

    .app-image img {
        max-width: 70%;
    }

    .app-floating-icon {
        width: 40px;
        height: 40px;
    }

    .app-floating-icon i {
        font-size: 16px;
    }
}

/* App Section Animation Enhancements */
.mobile-app-section .app-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.mobile-app-section.in-viewport .app-content {
    opacity: 1;
    transform: translateY(0);
}

.mobile-app-section .app-image img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.mobile-app-section.in-viewport .app-image img {
    opacity: 1;
    transform: translateY(0);
}

.mobile-app-section .app-floating-icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.mobile-app-section.in-viewport .app-floating-icon {
    opacity: 1;
}

.mobile-app-section .app-floating-icon.app-icon-1 {
    transition-delay: 0.6s;
}

.mobile-app-section .app-floating-icon.app-icon-2 {
    transition-delay: 0.8s;
}

.mobile-app-section .app-floating-icon.app-icon-3 {
    transition-delay: 1s;
}

.app-floating-icon.animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Interactive Footer Section (Replacing Newsletter) */
.footer-interactive-section {
    background-color: var(--primary-light);
    padding: 40px 0;
    margin-top: 20px;
}

.interactive-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Achievements Showcase */
.achievements-showcase {
    display: flex;
    align-items: center;
    gap: 20px;
}

.achievement-badge {
    min-width: 65px;
    height: 65px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    position: relative;
    box-shadow: 0 5px 15px var(--primary-shadow);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.achievements-content {
    flex: 1;
}

.achievements-content h4 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.achievements-slider {
    position: relative;
    height: 32px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 0 5px;
}

.achievements-track {
    animation: scroll 20s linear infinite;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.achievement-item {
    display: inline-block;
    margin-right: 40px;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.achievement-item::after {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 6px;
    margin: 0 15px;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}

/* Quick Contact Section */
.quick-contact-section {
    text-align: center;
}

.quick-contact-section h4 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.quick-contact-section p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.quick-contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.contact-option-btn {
    flex: 1;
    min-width: 110px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-option-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-option-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
}

.contact-option-btn:hover i {
    transform: scale(1.2);
}

.phone-btn:hover i {
    color: #4caf50;
}
.whatsapp-btn:hover i {
    color: #25d366;
}
.email-btn:hover i {
    color: #d44638;
}
.location-btn:hover i {
    color: #ff5722;
}

/* RTL Specific Styles */
[dir="rtl"] .achievements-track {
    animation: scroll-rtl 20s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

[dir="rtl"] .achievement-item::after {
    right: auto;
    left: -30px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .achievements-showcase {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .interactive-container {
        padding: 20px;
    }

    .achievements-showcase {
        flex-direction: column;
        text-align: center;
    }

    .achievement-badge {
        margin: 0 auto 15px;
    }

    .quick-contact-options {
        gap: 10px;
    }

    .contact-option-btn {
        padding: 10px 15px;
        min-width: 90px;
    }
}

/* App Section Animation Enhancements */
.mobile-app-section .app-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.mobile-app-section.in-viewport .app-content {
    opacity: 1;
    transform: translateY(0);
}

.mobile-app-section .app-image img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.mobile-app-section.in-viewport .app-image img {
    opacity: 1;
    transform: translateY(0);
}

.mobile-app-section .app-floating-icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.mobile-app-section.in-viewport .app-floating-icon {
    opacity: 1;
}

.mobile-app-section .app-floating-icon.app-icon-1 {
    transition-delay: 0.6s;
}

.mobile-app-section .app-floating-icon.app-icon-2 {
    transition-delay: 0.8s;
}

.mobile-app-section .app-floating-icon.app-icon-3 {
    transition-delay: 1s;
}

.app-floating-icon.animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Simple Contact Bar Styles */
.footer-contact-bar {
    background-color: var(--primary-color);
    padding: 20px 0;
    margin-top: 20px;
}

.contact-bar-wrapper {
    padding: 10px 0;
}

.contact-title h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-title p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 14px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.contact-btn i {
    font-size: 16px;
}

/* Responsive Styles for Contact Bar */
@media (max-width: 991.98px) {
    .contact-buttons {
        justify-content: flex-start;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .contact-btn {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }

    .contact-title {
        text-align: center;
        margin-bottom: 15px;
    }

    .contact-buttons {
        justify-content: center;
    }
}

.contact-btn.pulse-effect {
    transform: scale(1.05);
}

/* Responsive Styles for Contact Bar */

/* News Cards (Static Layout) */
/* .latest-news-section .related-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.latest-news-section .related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.latest-news-section .related-post-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.latest-news-section .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-news-section .related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.latest-news-section .related-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-news-section .related-post-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.latest-news-section .related-post-title {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.latest-news-section .related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

.latest-news-section .related-post-date {
    margin-top: auto;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
}

.latest-news-section .related-post-date i {
    margin-left: 5px;
    margin-right: 5px;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .latest-news-section .related-post-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .latest-news-section .related-post-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .latest-news-section .related-post-image {
        height: 180px;
    }
} */

/* Gallery Cards (Static Layout) */
.gallery-section .gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    background-color: #fff;
}

.gallery-section .gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-section .gallery-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.gallery-section .gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-section .gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-section .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-section .gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section .gallery-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.gallery-section .gallery-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.gallery-section .gallery-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.gallery-section .gallery-date i {
    margin-left: 5px;
    margin-right: 5px;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .gallery-section .gallery-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-section .gallery-card-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .gallery-section .gallery-card-image {
        height: 200px;
    }
}

/* Enhanced Colleges Section */
.enhanced-colleges-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.enhanced-colleges-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-header {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    color: #4e4e4e;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 20px;
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 15px;
}

.enhanced-college-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.enhanced-college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.enhanced-college-header {
    padding: 30px 20px;
    padding-bottom: 0px;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    background: #fff;
    position: relative;
    overflow: hidden;
}

.enhanced-college-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.enhanced-college-logo {
    width: auto;
    height: 108px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
    transition: all 0.3s ease;
}

.enhanced-college-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 32px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.enhanced-college-card:hover .enhanced-college-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.enhanced-college-body {
    padding: 25px;
    flex-grow: 1;
}

.enhanced-college-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 2px dashed #e9e9e9;
}

.enhanced-college-title::after {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.enhanced-college-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

.enhanced-college-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.college-stat {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.college-stat i {
    color: var(--primary-color);
    margin-left: 8px;
    font-size: 16px;
}

.enhanced-college-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.enhanced-college-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.enhanced-college-link i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

[dir="rtl"] .enhanced-college-link i {
    margin-right: 0;
    margin-left: 5px;
}

.enhanced-college-link:hover {
    color: var(--secondary-color);
}

.enhanced-college-link:hover i {
    transform: translateX(-5px);
}

[dir="rtl"] .enhanced-college-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 991.98px) {
    .enhanced-college-card {
        margin-bottom: 30px;
    }

    .enhanced-college-header {
        padding: 25px 15px;
    }

    .enhanced-college-logo {
        height: 80px;
    }

    .enhanced-college-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 28px;
    }

    .enhanced-college-logo {
        height: 70px;
    }

    .enhanced-college-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 24px;
    }

    .enhanced-college-title {
        font-size: 18px;
    }

    .enhanced-college-description {
        font-size: 13px;
    }
}

/* Mobile University Name Styles */
.university-name-mobile {
    font-family: var(--heading-font);
}

.university-name-mobile h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Remove the direction-specific margin settings, as we're now using flexbox in the HTML */
[dir="rtl"] .university-name-mobile {
    text-align: right;
}

[dir="ltr"] .university-name-mobile {
    text-align: left;
}

@media (max-width: 576px) {
    .university-name-mobile h6 {
        font-size: 18px;
    }
}

/* Video Gallery Card Styles */
.video-gallery-card .video-icon-wrapper {
    /* Disable these styles as they're replaced by new ones */
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

.video-gallery-card .video-icon-wrapper i {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

.video-gallery-card:hover .video-icon-wrapper {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

.gallery-card.video-gallery-card .gallery-overlay {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

/* Video Play Icon in Gallery Cards */
.video-play-icon {
    /* Disable these styles as they're replaced by new ones */
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

.video-play-icon i {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

.gallery-card:hover .video-play-icon {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

.gallery-card:hover .video-play-icon i {
    /* Disable these styles as they're replaced by new ones */
    visibility: hidden;
}

/* Video Gallery Styles to match Photo Gallery */
.videos-section .gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0; /* Changed from 20px to fix extra space */
    height: 100%;
    cursor: pointer;
}

.videos-section .gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.videos-section .gallery-card-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    width: 100%; /* Ensure width is 100% */
}

.videos-section .gallery-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    margin: 0; /* Remove any default margins */
}

.videos-section .gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.videos-section .gallery-overlay {
    position: absolute;
    top: -27px;
    left: 0;
    right: 0;
    bottom: 6px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 1; /* Added z-index to ensure overlay appears above the image */
}

.videos-section .gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Make the overlay visible by default but with lower opacity */
.gallery-card .gallery-overlay {
    opacity: 0.4 !important;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1 !important;
}

.videos-section .gallery-category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 2; /* Ensure it's above the overlay */
}

.videos-section .gallery-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.videos-section .gallery-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.videos-section .gallery-date i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* Video Play Button Style */
.play-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Increased z-index to be above the overlay */
    transition: all 0.3s ease;
}

.play-video-btn i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.gallery-card:hover .play-video-btn {
    transform: translate(-50%, -50%) scale(1.2);
}

.gallery-card:hover .play-video-btn i {
    color: var(--primary-color);
    color: #c4c4c4;
}

@media (max-width: 992px) {
    .play-video-btn i {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .play-video-btn i {
        font-size: 3rem;
    }

    .videos-section .gallery-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .play-video-btn i {
        font-size: 2.5rem;
    }

    .videos-section .gallery-title {
        font-size: 0.9rem;
    }
}

.line {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    top: 34px;
}

.line::before {
    position: absolute;
    content: "";
    max-width: 100%;
    width: 50%;
    height: 2px;
    background: #c5c5c5;
    background-color: #ededed;
    bottom: 45px;
    right: 0;
    left: 0;
    margin: 0 auto;
}

/* .line::after {
    position: absolute;
    content: "";
    max-width: 250px;
    height: 2px;
    background: #c5c5c5;
    background-color: #ededed;
    bottom: 45px;
    right: -298px;
    left: 0;
    margin: 0 auto;
  } */

.line i {
    margin: 0 auto;
    position: absolute;
    top: -58px;
    font-size: 22px;
    color: #116967ab;
    width: 53px;
    left: 0;
    right: 0;
    z-index: 111;
}

/* Add rankings-section styles to end of file */

.rankings-section {
    background-color: #f8f9fa;
    position: relative;
}

.ranking-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* padding: 1rem; */
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* .ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
} */

.ranking-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

.ranking-body {
    padding-top: 0.5rem;
}

.ranking-position {
    text-align: center;
    margin-bottom: 1.5rem;
}

.position-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.position-label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.ranking-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
}

.ranking-progress {
    margin-top: 1rem;
}

.progress-item label {
    display: block;
    font-size: 0.875rem;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.progress {
    height: 0.75rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    background-color: var(--primary-color);
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    border-radius: 10px;
    animation: progress-bar-stripes 1s linear infinite;
}

@media (max-width: 768px) {
    .ranking-stats {
        flex-direction: column;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .ranking-position {
        margin-bottom: 1.2rem;
    }
}

marquee a:hover {
    text-decoration: underline !important;
}
