:root {
    --primary-color: #1e4fb8;
    --secondary-color: #2c5aa0;
    --accent-color: #ff6b35;
    --dark-blue: #0d47a1;
    --light-gray: #f8f9fa;
    --text-dark: #333;
    --header-height: 70px;
    --nav-height: 60px;
}

body {
    background-color: #f5f5f5;
    color: var(--text-dark);
    padding-top: calc(var(--header-height) + var(--nav-height));
}

/* Top Header */
.top-header {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 8px 0;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.top-header.hidden {
    transform: translateY(-100%);
}

.top-header .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header .contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-header i {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    body {
        padding-top: calc(var(--header-height) + var(--nav-height));
    }
}

/* Main Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    .main-header {
        top: 32px;
    }
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (min-width: 769px) {
    .header-left,
    .header-right {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .header-center {
        display: flex;
        justify-content: center;
    }

    .header-right {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center;
    }

    .navbar-brand img {
        height: 40px;
    }

    .header-left,
    .header-right {
        display: none !important;
    }
}

.search-icon-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.profile-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff5722);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Navigation Menu */
.main-nav {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .main-nav {
        top: calc(32px + var(--header-height));
    }
}

.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.desktop-nav .nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav .nav-link {
    color: white !important;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

.desktop-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-icons button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-icons button:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
        width: 100%;
    }
}

/* Search Modal */
/* Search Modal - Animated from Top */
.search-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-modal.show .modal-dialog {
    transform: translateY(0);
}

.search-modal .modal-content {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border: none;
    border-radius: 0 0 30px 30px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-modal .close-search {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal .close-search:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.search-modal .search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-modal .search-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.search-modal .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-modal .search-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-modal .search-box input:focus {
    outline: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.search-modal .search-box button {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.search-modal .search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.search-modal .popular-searches {
    text-align: center;
    color: white;
}

.search-modal .popular-searches h6 {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.search-modal .search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-modal .search-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-modal .search-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar-header h5 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar-menu .nav {
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-menu .nav-item {
    width: 100%;
}

.sidebar-menu .nav-link {
    color: white !important;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 35px;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-slider .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* News Section - New Design */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

/* News Container with Sidebar */
.news-container {
    display: flex;
    gap: 30px;
}

.news-main-content {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.news-main-content .news-card {
    display: flex;
}
.news-main-content .news-card img {
    width: 150px;
}

.news-sidebar {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .news-container {
        flex-direction: column;
    }

    .news-main-content,
    .news-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.news-sidebar {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .news-container {
        flex-direction: column;
    }

    .news-main-content,
    .news-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-submenu {
    padding-right: 10px;
}
.sidebar-widget h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

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

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

.sidebar-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-news-info {
    flex: 1;
}

.sidebar-news-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-news-info span {
    font-size: 12px;
    color: #999;
}
/* Special Large Card */
.news-card.large {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .news-card.large {
        grid-column: span 1;
    }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(30, 79, 184, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 79, 184, 0.4);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.cta-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-card i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-widget h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.hero-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 600px;
}

/* Featured Posts Slider Styles */
.featured-posts-slider {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-posts-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.featured-posts-slider .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.featured-slide-content {
    color: white;
    z-index: 2;
    position: relative;
    padding: 30px;
    width: 100%;
}

.featured-slide-content .post-category {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.featured-slide-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.featured-slide-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.featured-slide-content .post-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.featured-slide-content .post-meta i {
    margin-left: 5px;
}

.featured-slide-content .read-more {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    transition: border-color 0.3s ease;
}

.featured-slide-content .read-more:hover {
    color: white;
    border-color: white;
}

/* Custom Swiper Navigation */
.featured-posts-slider .swiper-button-next,
.featured-posts-slider .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -20px;
}

.featured-posts-slider .swiper-button-next:after,
.featured-posts-slider .swiper-button-prev:after {
    font-size: 16px;
}

.featured-posts-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.featured-posts-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

/* Latest News Styles */
.latest-news-container {
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.latest-news-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    color: white;
    padding: 20px;
    text-align: center;
}

.latest-news-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.news-scroll-area {
    height: calc(500px - 80px);
    overflow-y: auto;
    padding: 0;
}

.news-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.news-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    border-radius: 3px;
}

.news-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-item:hover {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
}

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

.news-item-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
}

.news-item-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-item-date {
    display: flex;
    align-items: center;
}

.news-item-date i {
    margin-left: 5px;
}

.news-item-category {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* CTA Section Styles */
.cta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cta-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.cta-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .row {
        flex-direction: column;
    }

    .featured-posts-slider,
    .latest-news-container {
        height: 400px;
        margin-bottom: 30px;
    }

    .news-scroll-area {
        height: calc(400px - 80px);
    }

    .featured-slide-content h2 {
        font-size: 1.4rem;
    }

    .featured-slide-content p {
        font-size: 0.9rem;
    }
}

.search-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 0;
}

.search-results-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><filter id="noiseFilter"><feTurbulence type="turbulence" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.search-results-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

/* RTL Breadcrumb Styles */
.search-results-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    display: inline-flex;
    position: relative;
    z-index: 2;
}

.search-results-header .breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 500;
}

.search-results-header .breadcrumb-item + .breadcrumb-item::before {
    content: "←";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.75rem;
    font-weight: bold;
}

.search-results-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.search-results-header .breadcrumb-item a:hover {
    color: white !important;
    transform: translateY(-1px);
}

.search-results-header .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

/* Modern Search Header */
.search-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out;
}

.search-header h1 .text-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 0.5rem;
}

.search-header h1 .text-primary::before {
    content: '"';
    position: absolute;
    right: 100%;
    top: -0.2em;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
}

.search-header h1 .text-primary::after {
    content: '"';
    position: absolute;
    left: 100%;
    bottom: -0.2em;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
}

/* Search Meta Information */
.search-meta {
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.meta-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    margin: 0 0.5rem 0.5rem 0.5rem;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    opacity: 0.8;
    margin-left: 0.5rem;
}

/* Modern Search Form */
.new-search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out 0.6s both;
}

.new-search-form .input-group {
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 60px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.new-search-form .input-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.new-search-form .input-group:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.new-search-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    border-radius: 0;
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
}

.new-search-form .form-control:focus {
    background: white;
    box-shadow: none;
    border-color: transparent;
}
.search-input-wrapper{
    flex: 1;
}
.search-input-wrapper #searchInput{
    width: 100%;
}
.new-search-form .form-control::placeholder {
    color: rgba(51, 51, 51, 0.6);
    font-weight: 400;
}
.breadcrumb-item+.breadcrumb-item::before {
    float: right;
}
.new-search-form .btn {
    background: linear-gradient(45deg, #2440c1, #273de7);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.new-search-form .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.new-search-form .btn:hover::before {
    left: 100%;
}

.new-search-form .btn:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.new-search-form .btn:active {
    transform: scale(0.98);
}

.new-search-form .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.new-search-form .btn:hover i {
    transform: scale(1.1);
}

/* Floating Search Particles */
.search-results-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 40%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        );
    animation: float 8s ease-in-out infinite;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* RTL Support */
[dir="rtl"] .search-results-header .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    margin: 0 0.75rem;
}

[dir="rtl"] .new-search-form .form-control {
    text-align: right;
    padding-right: 2rem;
    padding-left: 1rem;
}

[dir="rtl"] .meta-item i {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .new-search-form .btn i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-results-header {
        padding: 3rem 0 2.5rem;
    }

    .search-header h1 {
        font-size: 2rem;
    }

    .new-search-form .form-control,
    .new-search-form .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .search-results-header {
        padding: 2.5rem 0 2rem;
    }

    .search-header h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .search-meta {
        flex-direction: column;
        align-items: center !important;
        gap: 0.5rem;
    }

    .meta-item {
        margin: 0 0 0.5rem 0;
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    .new-search-form .input-group {
        flex-direction: column;
        border-radius: 25px;
    }

    .new-search-form .form-control {
        border-radius: 25px;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .new-search-form .btn {
        border-radius: 25px;
        width: 100%;
    }

    .search-results-header .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .search-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .new-search-form .form-control,
    .new-search-form .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .search-results-header {
        padding: 2rem 0 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .search-results-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .new-search-form .form-control {
        background: rgba(0, 0, 0, 0.7);
        color: white;
    }

    .new-search-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .search-results-header {
        background: #000080;
        color: white;
    }

    .search-results-header .breadcrumb {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
    }

    .meta-item {
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid white;
    }

    .new-search-form .input-group {
        border: 3px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .search-header h1,
    .search-meta,
    .new-search-form {
        animation: none;
    }

    .search-results-header::after {
        animation: none;
    }

    .search-results-header::before {
        animation: none;
    }

    .new-search-form .btn,
    .meta-item,
    .breadcrumb-item a {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .search-results-header {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }

    .search-results-header::before,
    .search-results-header::after {
        display: none;
    }

    .new-search-form,
    .search-meta .meta-item:last-child {
        display: none;
    }

    .search-header h1 {
        text-shadow: none;
        color: black !important;
    }

    .search-header h1 .text-primary {
        -webkit-text-fill-color: black;
        color: black !important;
    }
}

.search-results-header {
    background: linear-gradient(135deg, #418fdd 0%, #144474 100%);
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.search-header .input-group {
    max-width: 600px;
}

.search-meta .meta-item {
    font-size: 0.9rem;
}

.results-section {
    animation: fadeInUp 0.5s ease-out;
}

.section-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    color: #495057;
}

.result-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-color: #007bff !important;
}

.result-title a {
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #007bff !important;
}

.result-excerpt {
    line-height: 1.6;
    text-align: justify;
}

.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.search-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.popular-searches-list a {
    transition: all 0.3s ease;
}

.popular-searches-list a:hover {
    color: #007bff !important;
    padding-right: 1rem;
}

.no-results-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .search-results-header {
        padding: 2rem 0;
    }

    .search-header h1 {
        font-size: 1.5rem;
    }

    .search-meta {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .result-item {
        margin-bottom: 1rem !important;
    }

    .search-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.nav .dropdown-item{
    text-align: right;
}