/**
 * Tanzania Business Blog - Main Stylesheet
 * Colors: #000179 (Primary Blue), #9FCCEC (Secondary Blue), #FFFFFF (White)
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    /* Ensure body doesn't interfere with dropdowns */
    position: relative;
    /* Prevent scrolling away from header */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #000179;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #000179;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #9FCCEC;
}

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

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-spacing {
    padding: 3rem 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000179;
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Footer Styles */
.site-footer {
    background: #000179;
    color: white;
    margin-top: 4rem;
}

.footer-newsletter {
    background: rgba(159, 204, 236, 0.1);
    padding:0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-info h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.newsletter-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.newsletter-email-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
}

.newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-subscribe-btn {
    padding: 0.875rem 1.5rem;
    background: #9FCCEC;
    color: #000179;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-subscribe-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9FCCEC;
}

.footer-logo h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #9FCCEC;
    color: #9FCCEC;
    transform: translateY(-2px);
}

/* .social-link.facebook {
    background: #9FCCEC;
    border-color: #9FCCEC;
} */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-response {
    margin-top: 1rem;
}

.success-message,
.error-message {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Header Styles */
.site-header {
    background: #000179;
    /* background: red; */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 1, 121, 0.1);
    margin-bottom: 0;
}

/* Top Bar */
.top-bar {
    background: rgba(0, 1, 121, 0.95);
    border-bottom: 1px solid rgba(159, 204, 236, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-left .date {
    color: #9FCCEC;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    color: #9FCCEC;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    background: rgba(159, 204, 236, 0.2);
}

.search-toggle button {
    background: none;
    border: none;
    color: #9FCCEC;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-toggle button:hover {
    background: rgba(159, 204, 236, 0.2);
    color: white;
}

/* Main Header */
.main-header {
    background: #000179;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.tagline {
    font-size: 0.875rem;
    color: #9FCCEC;
    font-weight: 400;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 300px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #9FCCEC;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #000179;
}

.search-submit {
    background: #000179;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #9FCCEC;
}

/* Buttons and Form Elements */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #000179;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #9FCCEC;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 1, 121, 0.2);
}

.btn-secondary {
    background: #9FCCEC;
    color: #000179;
}

.btn-secondary:hover {
    background: #000179;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #000179;
    color: #000179;
}

.btn-outline:hover {
    background: #000179;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 1, 121, 0.8) 0%, rgba(159, 204, 236, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.category-tag {
    background: rgba(159, 204, 236, 0.9);
    color: #000179;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.reading-time {
    color: #9FCCEC;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-title a {
    color: white;
}

.hero-title a:hover {
    color: #9FCCEC;
}

.hero-excerpt {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publish-date {
    color: #9FCCEC;
    font-size: 0.875rem;
}

.read-more-btn {
    background: white;
    color: #000179;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #9FCCEC;
    color: white;
    transform: translateX(5px);
}

/* Hero Navigation */
.hero-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Content Layout */
.main-content-area {
    margin: 0;
    padding: 1rem 0;
    /* Debug: Ensure content is visible */
    background: #f5f5f5;
    min-height: 500px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.primary-content {
    min-width: 0; /* Prevents grid overflow */
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000179;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #000179, #9FCCEC);
    margin: 0 auto;
    border-radius: 2px;
}

/* Featured Articles Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-main {
    grid-row: span 2;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-image {
    position: relative;
    overflow: hidden;
}

.featured-main .card-image {
    height: 300px;
}

.featured-secondary .card-image {
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.category-badge {
    background: #000179;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    color: #000179;
}

.card-title a:hover {
    color: #9FCCEC;
}

.card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #000179;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #9FCCEC;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Categories Showcase */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-showcase-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(159, 204, 236, 0.2);
}

.category-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #9FCCEC;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000179, #9FCCEC);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-title {
    margin-bottom: 1rem;
}

.category-title a {
    color: #000179;
}

.category-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.category-topics {
    list-style: none;
    margin-bottom: 1.5rem;
}

.category-topics li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(159, 204, 236, 0.2);
}

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

.category-topics a {
    color: #666;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.category-topics a:hover {
    color: #000179;
}

.category-link {
    color: #000179;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #9FCCEC;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-card .card-image {
    height: 200px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #000179 0%, #9FCCEC 100%);
    border-radius: 16px;
    margin: 3rem 0;
}

.newsletter-container {
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    background: white;
    color: #000179;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.newsletter-message {
    margin-top: 1rem;
    font-weight: 500;
}

.success-message {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
}

.error-message {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    background: transparent;
    color: #000179;
    border: 2px solid #000179;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #000179;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 1, 121, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #000179;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #9FCCEC;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Advertisement Styles */
.header-ad-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.header-ad {
    text-align: center;
}

.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ad-content {
    padding: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Main Content Spacing Fixes */
/* .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
} */

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

.test-page .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce spacing for test page content */
.test-page .main-content .container > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Apply same tight spacing to homepage */
.homepage .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.homepage .header-ad-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.homepage .featured-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.homepage .latest-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Apply tight spacing to all pages */
.main-content .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce hero section spacing */
.hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce section spacing */
.section-spacing {
    padding: 1rem 0 !important;
}

/* Prevent any unwanted scrolling or positioning */
html, body {
    scroll-padding-top: 0 !important;
    scroll-margin-top: 0 !important;
}

/* Ensure content stays close to header */
.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

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

.breadcrumb-item:not(:last-child) {
    margin-right: 0.5rem;
}

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

.breadcrumb-item a:hover {
    color: #9FCCEC;
}

.breadcrumb-item.active span {
    color: #666;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #666;
    font-size: 0.75rem;
    margin: 0 0.5rem;
}

/* Breadcrumb Navigation - Additional styles for .breadcrumb-nav and .breadcrumb */
.breadcrumb-nav {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #ccc;
    font-weight: 300;
}

.breadcrumb-item a {
    color: #000179;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #9FCCEC;
}

.breadcrumb-item.active {
    color: #000179;
    font-weight: 600;
}

/* Subcategories List */
.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.subcategory-item:hover {
    background: #e9ecef;
    border-color: #000179;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 1, 121, 0.1);
}

.subcategory-icon {
    width: 40px;
    height: 40px;
    background: #000179;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.subcategory-icon i {
    color: white;
    font-size: 1.2rem;
}

.subcategory-content h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #000179;
}

.subcategory-content .article-count {
    font-size: 0.875rem;
    color: #666;
}

/* Category and Subcategory Page Styles */
.category-header-section,
.subcategory-header-section {
    margin-bottom: 2rem;
}

.category-hero,
.subcategory-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #000179 0%, #9FCCEC 100%);
    color: white;
    padding: 2rem;
}

.category-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    opacity: 0.1;
}

.category-hero-overlay,
.subcategory-hero-content {
    position: relative;
    z-index: 2;
}

.category-title,
.subcategory-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.category-description,
.subcategory-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: white !important;
}

.category-stats,
.subcategory-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.95;
    color: white !important;
}

.stat-item i {
    font-size: 1.1rem;
    color: white;
}

/* Featured Articles Grid */
.featured-articles-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-4px);
}

.featured-article-card.featured-main {
    grid-row: span 2;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-article-card.featured-main .article-image {
    height: 300px;
}

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

.article-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-tag,
.subcategory-tag {
    background: rgba(0, 1, 121, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.subcategory-tag {
    background: rgba(159, 204, 236, 0.9);
    color: #000179;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-article-card.featured-main .article-title {
    font-size: 1.5rem;
}

.article-title a {
    color: #000179;
    text-decoration: none;
}

.article-title a:hover {
    color: #9FCCEC;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
}

.meta-left,
.meta-right {
    display: flex;
    gap: 1rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card .article-image {
    height: 180px;
}

.article-card .article-content {
    padding: 1.25rem;
}

.article-card .article-title {
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000179;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #000179, #9FCCEC);
    margin: 0 auto;
    border-radius: 2px;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 3rem 1rem;
}

.no-articles-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-articles-content h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.no-articles-content p {
    color: #888;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    color: #000179;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #000179;
    color: white;
    border-color: #000179;
}

.page-item.active .page-link {
    background: #000179;
    color: white;
    border-color: #000179;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000179;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Newsletter Form */
.newsletter-form .input-group {
    display: flex;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid #dee2e6;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: #000179;
    border-color: #000179;
}

.newsletter-form .btn:hover {
    background: #9FCCEC;
    border-color: #9FCCEC;
}

/* Navigation Styles */
/* .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    /* -ms-overflow-style: none; /* IE/Edge */
    /* padding-bottom: 0.5rem;
    width: 100%;
    justify-content: flex-start; */
/* } */

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    justify-content: flex-start; /* Start from beginning */
}

.nav-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Ensure all nav items are visible */
.nav-item {
    flex-shrink: 0;
    position: relative;
    min-width: max-content;
}

/* Compact navigation for smaller screens */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 240px;
    }
}

@media (max-width: 992px) {
    .nav-center {
        display: none;
    }
    
    .mobile-navigation {
        display: block;
    }
    
    .nav-left {
        margin-right: 1rem;
    }
    
    .nav-right {
        margin-left: 1rem;
    }
}

/* Header and Navigation Container */
header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* .nav-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 1001;
} */

.site-header {
    background: #000179;
    position: sticky;
    top: 0;
    z-index: 10000; /* Higher z-index for header */
    box-shadow: 0 2px 10px rgba(0, 1, 121, 0.1);
    margin-bottom: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 1001;
}

/* Left Section - Logo, Search, and Social */
/* .nav-left {
    flex-shrink: 0;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
} */
.nav-left {
    display: none;
}

.nav-center {
    flex: 1;
    padding-left: 1rem; /* Small padding from left edge */
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
}

.search-container {
    position: relative;
}

.search-toggle {
    background: #000179;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: #9FCCEC;
    color: #000179;
}

/* .search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
} */

.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999; /* Ensure search overlay appears above content */
    margin-top: 0.5rem;
}

.search-container:hover .search-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #000179;
}

.search-close {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
}

/* Dropdown Menu Styles */
/* .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    border: 1px solid rgba(0, 1, 121, 0.1);
    margin-top: 0.5rem;
} */
 .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999; /* Increased z-index to appear above content */
    border: 1px solid rgba(0, 1, 121, 0.1);
    margin-top: 0.5rem;
}


/* .nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10000;
} */

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 99999; /* Ensure it stays on top */
}

.dropdown-content {
    padding: 1.5rem;
}

.dropdown-header h3 {
    margin: 0 0 1rem 0;
    color: #000179;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #9FCCEC;
    padding-bottom: 0.5rem;
}

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

.dropdown-item {
    margin-bottom: 0.5rem;
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: rgba(0, 1, 121, 0.05);
    color: #000179;
}

.dropdown-link.active {
    background: rgba(0, 1, 121, 0.1);
    color: #000179;
    font-weight: 500;
}

.dropdown-link span {
    flex: 1;
}

.article-count {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive navigation improvements */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 240px;
    }
}

/* @media (max-width: 992px) {
    .nav-center {
        display: none;
    }
    
    .mobile-navigation {
        display: block;
    }
    
    .nav-left {
        margin-right: 1rem;
    }
    
    .nav-right {
        margin-left: 1rem;
    }
} */

/* Mobile specific fixes */
@media (max-width: 992px) {
    .nav-center {
        display: none;
    }
    
    .nav-left {
        margin-right: 0;
    }
    
    /* Ensure mobile search doesn't push content */
    .search-overlay {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        width: auto;
        min-width: auto;
        z-index: 99999;
    }
}

/* Article Content Styles - For Rich Text Editor Output */
.article-content {
    padding: 1.5rem;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

/* Rich Text Content Styling */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000179;
}

.article-content h1 { 
    font-size: 2.5rem; 
    border-bottom: 3px solid #9FCCEC;
    padding-bottom: 0.5rem;
}

.article-content h2 { 
    font-size: 2rem; 
    border-bottom: 2px solid #9FCCEC;
    padding-bottom: 0.4rem;
}

.article-content h3 { 
    font-size: 1.75rem; 
    color: #000179;
}

.article-content h4 { 
    font-size: 1.5rem; 
    color: #000179;
}

.article-content h5 { 
    font-size: 1.25rem; 
    color: #000179;
}

.article-content h6 { 
    font-size: 1.1rem; 
    color: #000179;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #555;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content blockquote {
    border-left: 4px solid #000179;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #9FCCEC;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: #666;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
}

.article-content img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.article-content a {
    color: #000179;
    text-decoration: underline;
    text-decoration-color: #9FCCEC;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #9FCCEC;
    text-decoration-color: #000179;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #000179;
}

.article-content em,
.article-content i {
    font-style: italic;
    color: #666;
}

.article-content u {
    text-decoration: underline;
    text-decoration-color: #9FCCEC;
}

.article-content s,
.article-content strike {
    text-decoration: line-through;
    color: #999;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #333;
}

/* Text alignment */
.article-content .ql-align-center {
    text-align: center;
}

.article-content .ql-align-right {
    text-align: right;
}

.article-content .ql-align-justify {
    text-align: justify;
}

/* Indentation */
.article-content .ql-indent-1 { padding-left: 3rem; }
.article-content .ql-indent-2 { padding-left: 6rem; }
.article-content .ql-indent-3 { padding-left: 9rem; }

/* Text colors */
.article-content .ql-color-red { color: #dc3545; }
.article-content .ql-color-orange { color: #fd7e14; }
.article-content .ql-color-yellow { color: #ffc107; }
.article-content .ql-color-green { color: #28a745; }
.article-content .ql-color-blue { color: #007bff; }
.article-content .ql-color-purple { color: #6f42c1; }

/* Background colors */
.article-content .ql-bg-red { background-color: #f8d7da; }
.article-content .ql-bg-orange { background-color: #fff3cd; }
.article-content .ql-bg-yellow { background-color: #fff3cd; }
.article-content .ql-bg-green { background-color: #d4edda; }
.article-content .ql-bg-blue { background-color: #d1ecf1; }
.article-content .ql-bg-purple { background-color: #e2d9f3; }

/* Lists with custom styling */
.article-content ul li::marker {
    color: #9FCCEC;
}

.article-content ol li::marker {
    color: #000179;
    font-weight: 600;
}

/* Special content blocks */
.article-content .highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #9FCCEC;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.article-content .highlight-box::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .article-content h1 { font-size: 2rem; }
    .article-content h2 { font-size: 1.75rem; }
    .article-content h3 { font-size: 1.5rem; }
    
    .article-content .ql-indent-1 { padding-left: 1.5rem; }
    .article-content .ql-indent-2 { padding-left: 3rem; }
    .article-content .ql-indent-3 { padding-left: 4.5rem; }
}

/* Single Article Page Layout */
.single-article {
    background: white;
}

.article-header {
    background: linear-gradient(135deg, #000179 0%, #9FCCEC 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 0;
}

.article-header-content {
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.article-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    background: #ffc107;
    color: #000;
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-header .article-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-left,
.meta-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.meta-left span,
.meta-right span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    background: #f8f9fa;
    padding: 2rem 0;
}

.featured-image-wrapper {
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-main {
    padding: 3rem 0;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.article-content-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.article-excerpt {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #9FCCEC;
    margin-bottom: 2rem;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
}

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

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: #000179;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #000179;
    color: white;
    border-color: #000179;
}

.article-share-section h4 {
    margin-bottom: 1rem;
    color: #000179;
}

.share-buttons-extended {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-extended {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn-extended.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-extended.facebook {
    background: #4267b2;
    color: white;
}

.share-btn-extended.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn-extended.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-extended.copy-link-extended {
    background: #6c757d;
    color: white;
}

.share-btn-extended:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Article Navigation */
.article-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.article-navigation h4 {
    margin-bottom: 1rem;
    color: #000179;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-link {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    background: #000179;
    color: white;
    border-color: #000179;
    transform: translateY(-2px);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-link .nav-label {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.25rem;
}

.nav-link .nav-title {
    font-weight: 600;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-header .article-title {
        font-size: 2.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 2rem 0;
    }
    
    .article-header .article-title {
        font-size: 2rem;
    }
    
    .article-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .meta-left,
    .meta-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-buttons-extended {
        flex-direction: column;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SEARCH PAGE STYLES
   =================================== */

.search-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.search-page .main-content {
    padding: 2rem 0;
}

.search-main-content {
    margin-top: 120px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .search-main-content {
        margin-top: 100px;
        padding: 0 15px;
    }
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #000179 0%, #1a1a8f 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.results-count, .page-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Search Form Section */
.search-form-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .search-form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.main-search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .category-filter {
        flex: 1;
        min-width: auto;
    }
    
    .search-btn {
        flex-shrink: 0;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #000179;
    box-shadow: 0 0 0 3px rgba(0, 1, 121, 0.1);
}

.search-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.category-filter {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

.search-btn {
    background: #000179;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: #1a1a8f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 1, 121, 0.3);
}

.test-search-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.test-search-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Search Initial State */
.search-initial-state {
    text-align: center;
    padding: 3rem 0;
}

.search-icon-large {
    font-size: 4rem;
    color: #000179;
    margin-bottom: 2rem;
}

.search-initial-state h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.search-initial-state p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Popular Searches */
.popular-searches {
    margin-bottom: 3rem;
}

.popular-searches h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.search-tag {
    background: #f8f9fa;
    color: #000179;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.search-tag:hover {
    background: #000179;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 1, 121, 0.3);
}

/* Search Categories */
.search-categories {
    margin-bottom: 2rem;
}

.search-categories h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 1, 121, 0.2);
}

.category-card i {
    font-size: 2.5rem;
    color: #000179;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Search Results */
.search-results {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .result-card {
        border-radius: 15px;
    }
    
    .result-image-container {
        height: 150px;
    }
    
    .result-content {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .result-title {
        font-size: 1.1rem;
    }
    
    .result-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .result-meta, .result-footer {
        gap: 0.5rem;
    }
    
    .result-meta span, .result-footer span {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .result-category-badge {
        top: 10px;
        left: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    /* Mobile responsiveness for search initial state */
    .search-initial-state {
        padding: 2rem 0;
    }
    
    .search-initial-state h2 {
        font-size: 2rem;
    }
    
    .search-initial-state p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .search-icon-large {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .search-tags {
        gap: 0.8rem;
    }
    
    .search-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card i {
        font-size: 2rem;
    }
    
    .category-card h4 {
        font-size: 1.1rem;
    }
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 1, 121, 0.2);
}

/* Result Image Container */
.result-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.result-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000179 0%, #9FCCEC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Category Badge */
.result-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 1, 121, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Result Content */
.result-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.result-meta span:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.result-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

.result-title a {
    color: #000179;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-title a:hover {
    color: #1a1a8f;
}

.result-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    flex-wrap: wrap;
}

.result-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.result-footer span:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.subcategory {
    color: #9FCCEC;
    font-weight: 600;
}

.views {
    color: #666;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 2rem 0;
}

.btn-load-more {
    background: linear-gradient(135deg, #000179 0%, #1a1a8f 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(0, 1, 121, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 1, 121, 0.4);
    background: linear-gradient(135deg, #1a1a8f 0%, #000179 100%);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading dots in load more button */
.btn-load-more .loading-dots {
    margin: 0;
}

.btn-load-more .loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

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

.suggestion-item:hover {
    background: #f8f9fa;
    color: #000179;
}

.suggestion-item i {
    color: #9FCCEC;
    font-size: 0.9rem;
}

/* Search Form Enhancements */
.search-input-wrapper {
    position: relative;
}

.search-input:focus + .search-suggestions {
    display: block;
}

/* Search Results Container */
.search-results-container {
    min-height: 400px;
}

/* Initial State */
.search-initial-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.initial-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.search-icon-large {
    font-size: 4rem;
    color: #9FCCEC;
    margin-bottom: 1.5rem;
}

.search-initial-state h3 {
    color: #000179;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.search-initial-state p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Loading State */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000179;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.search-loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Results Header */


/* Mobile Responsiveness for New Elements */
@media (max-width: 768px) {
    .search-initial-state,
    .search-loading {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .search-icon-large {
        font-size: 3rem;
    }
    
    .search-initial-state h3 {
        font-size: 1.5rem;
    }
    
    .search-initial-state p {
        font-size: 1rem;
    }
    
    .results-header {
        padding: 1rem;
    }
    
    .results-header h3 {
        font-size: 1.3rem;
    }
}

.results-header {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.results-header h3 {
    margin: 0;
    color: #000179;
    font-size: 1.3rem;
}

.results-content {
    padding: 2rem;
}

.result-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

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

.result-item:hover {
    background: #f8f9fa;
    margin: 0 -2rem;
    padding: 1.5rem 2rem;
    border-radius: 10px;
}

.result-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-item:hover .result-thumbnail img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.result-title a {
    color: #000179;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #1a1a8f;
}

.result-excerpt {
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.result-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
}

.result-footer span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.subcategory {
    color: #9FCCEC;
    font-weight: 600;
}

/* Pagination */
.search-pagination {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    border-color: #000179;
    color: #000179;
    background: #f8f9fa;
}

.page-item.active .page-link {
    background: #000179;
    border-color: #000179;
    color: white;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
    font-size: 4rem;
    color: #9FCCEC;
    margin-bottom: 1rem;
}

.search-no-results h3 {
    color: #000179;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-no-results p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions h4 {
    color: #000179;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f1f3f4;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

/* Popular Searches */
.popular-searches {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.popular-searches h3 {
    color: #000179;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.search-tag {
    background: #f8f9fa;
    color: #000179;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-tag:hover {
    background: #000179;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 1, 121, 0.3);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-page .main-content {
        padding: 1rem 0;
    }
    
    .search-header {
        margin: 0 1rem 1rem 1rem;
        padding: 1.5rem 1rem;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form-section {
        margin: 0 1rem 1rem 1rem;
        padding: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .category-filter {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-results {
        margin: 0 1rem;
    }
    
    .results-content {
        padding: 1rem;
    }
    
    .result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .result-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-pagination,
    .popular-searches {
        margin: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 1.8rem;
    }
    
    .search-form-section {
        padding: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Logout Message Styles */
.logout-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

.logout-message .alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #28a745;
    font-weight: 500;
}

.logout-message .alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.logout-message .close-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.logout-message .close-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust main content when logout message is shown */
.logout-message + .main-content {
    margin-top: 4rem;
}

/* Popular Searches */
.popular-searches {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.popular-searches h3 {
    color: #000179;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.search-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #000179;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.search-tag:hover {
    background: linear-gradient(135deg, #000179 0%, #1a1a8f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 1, 121, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .popular-searches {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .search-tags {
        gap: 0.8rem;
    }
    
    .search-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}