/* ===== CSS Variables ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ef4444;
    --success-color: #10b981;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Enhanced Language Switcher Styles */
.navbar .nav-item.dropdown .nav-link {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .nav-item.dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar .nav-item.dropdown .dropdown-menu {
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .nav-item.dropdown .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 0;
}

.navbar .nav-item.dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.navbar .nav-item.dropdown .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
    color: white !important;
}

.navbar .nav-item.dropdown .dropdown-item.active:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color)) !important;
    transform: translateX(0);
}

/* Hide PHP errors and warnings in production */
.error-notice,
.php-error,
div[style*="background"],
div[style*="border: 1px"] {
    display: none !important;
}

/* Hide error messages that might appear as overlays */
body>div:first-child {
    position: relative;
}

body>div:first-child:not(.container):not([class*="hero"]):not([class*="navbar"]):not([class*="footer"]) {
    display: none !important;
}

/* Mobile responsiveness for language switcher */
@media (max-width: 991.98px) {
    .navbar .nav-item.dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin: 8px 0;
    }

    .navbar .nav-item.dropdown .dropdown-item {
        color: white;
        padding: 12px 20px;
    }

    .navbar .nav-item.dropdown .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: none;
    }

    /* Better mobile navbar */
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    /* Language switcher styling for mobile */
    .navbar .nav-item.dropdown .nav-link {
        justify-content: center;
        margin: 10px auto;
        max-width: 200px;
    }

    /* Forum mobile improvements */
    /* Stack sidebar below main content on mobile */
    .col-lg-3,
    .col-lg-9 {
        order: 2;
    }

    .col-lg-3 {
        order: 1;
        margin-bottom: 2rem;
    }

    .col-lg-9 {
        order: 2;
    }

    /* Horizontal scrolling for filter buttons */
    .btn-group {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .btn-group .btn {
        flex: 0 0 auto;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 768px) {

    /* Hide any floating error divs */
    body>div:not([class]) {
        display: none !important;
    }

    /* Ensure proper spacing on mobile */
    .hero-section {
        padding-top: 100px;
    }

    /* Improve text readability on mobile */
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    /* Forum mobile specific improvements */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Quick actions card mobile styling */
    .card .card-body .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    /* Categories sidebar mobile */
    .list-group-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Statistics section mobile */
    .stat-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }

    /* Filter bar mobile */
    .card-body .row .col-md-6 h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

/* RTL Styles Removed */

/* ===== Navigation ===== */
/* Force navbar to always be blue - no color change on scroll */
.navbar.navbar-expand-lg.navbar-dark.fixed-top {
    background-color: var(--primary-color) !important;
    transition: box-shadow 0.3s ease !important;
}

.navbar.navbar-expand-lg.navbar-dark.fixed-top.scrolled {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Basic navbar styling - removed conflicting box-shadow */

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--warning-color) !important;
}

/* ===== Hero Section ===== */
/* ===== Enhanced Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 50%, #1e3a8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(30, 58, 138, 0.03) 25%, transparent 25%),
        linear-gradient(-135deg, rgba(30, 58, 138, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(30, 58, 138, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(30, 58, 138, 0.02) 75%);
    background-size: 500px 500px, 700px 700px, 400px 400px, 80px 80px, 80px 80px, 80px 80px, 80px 80px;
    background-position: 0 0, 100% 100%, 50% 50%, 0 0, 0 40px, 40px -40px, -40px 0px;
    animation: backgroundMove 25s ease-in-out infinite;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, transparent 60%),
        linear-gradient(-45deg, rgba(30, 58, 138, 0.05) 0%, transparent 80%);
    z-index: 2;
}

.hero-particles {
    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"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1" fill="white" opacity="0.2"><animate attributeName="opacity" values="0.2;0.6;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="white" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    background-size: 100px 100px;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    animation: slideInFromLeft 1s ease-out;
}

.hero-badge {
    animation: bounceIn 1s ease-out 0.5s both;
}

.hero-badge .badge {
    font-size: 0.9rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: pulse 2s infinite;
}

.hero-title {
    animation: slideInFromLeft 1s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.hero-description {
    animation: slideInFromLeft 1s ease-out 0.4s both;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-features {
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.hero-features .fas.fa-check-circle {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-buttons {
    animation: slideInFromLeft 1s ease-out 0.8s both;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

/* Enhanced outline button styling */
.hero-buttons .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-warning:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.hero-stats {
    animation: slideInFromLeft 1s ease-out 1s both;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-image-container {
    position: relative;
    z-index: 4;
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.08), rgba(59, 130, 246, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-image {
        transform: perspective(800px) rotateY(-3deg) rotateX(1deg) scale(1);
        max-width: 100%;
        border-radius: 15px;
        border-width: 2px;
    }

    .hero-image:hover {
        transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
    }

    .hero-image-wrapper {
        padding: 10px;
    }
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

/* Professional Hero Image Styling */
.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    background: transparent;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25)) drop-shadow(0 10px 20px rgba(30, 58, 138, 0.15)) brightness(1.05) contrast(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: perspective(1200px) rotateY(-8deg) rotateX(5deg) scale(1);
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(30, 58, 138, 0.2);
}

.hero-image:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3)) drop-shadow(0 15px 30px rgba(30, 58, 138, 0.2)) brightness(1.1) contrast(1.15);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 12px 24px rgba(251, 191, 36, 0.2);
}

.floating-element i {
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-element:hover i {
    transform: scale(1.1);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Ensure Font Awesome icons are loaded */
.floating-element i:before {
    font-weight: 900;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
}

.image-overlay-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-element {
    position: absolute;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.9));
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: float-element 8s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    z-index: 10;
}

.floating-element:hover {
    transform: scale(1.2) translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.4), 0 12px 25px rgba(251, 191, 36, 0.2);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.9));
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Individual floating element styling for better visibility */
.element-1 {
    /* Helicopter */
    top: 12%;
    right: 15%;
    animation-delay: 0s;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.95));
}

.element-2 {
    /* Radar */
    top: 35%;
    left: -5%;
    animation-delay: -1.6s;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.95));
}

.element-3 {
    /* Parachute */
    bottom: 30%;
    right: 12%;
    animation-delay: -3.2s;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.9), rgba(147, 51, 234, 0.95));
}

.element-4 {
    /* Route */
    bottom: 15%;
    left: 8%;
    animation-delay: -4.8s;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.95));
}

.element-5 {
    /* Compass */
    top: 60%;
    right: -8%;
    animation-delay: -6.4s;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.9), rgba(2, 132, 199, 0.95));
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.9;
    }

    25% {
        transform: translateY(-25px) rotate(3deg) scale(1.05);
        opacity: 1;
    }

    50% {
        transform: translateY(-40px) rotate(0deg) scale(1);
        opacity: 0.95;
    }

    75% {
        transform: translateY(-18px) rotate(-3deg) scale(1.02);
        opacity: 1;
    }
}

.hero-card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    animation: slideInFromBottom 1s ease-out 1.2s both;
    z-index: 3;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 1.6rem;
}

.card-content h6 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes backgroundMove {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-20px) translateY(-10px);
    }

    50% {
        transform: translateX(15px) translateY(10px);
    }

    75% {
        transform: translateX(-10px) translateY(5px);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== Statistics Section ===== */
.stat-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ===== Quick Links ===== */
.quick-link-card {
    transition: transform 0.3s ease;
    height: 100%;
}

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

.quick-link-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.quick-link-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.quick-link-card .card-text {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Case Cards Equal Height */
.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card .grid-view-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card .card-text {
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
    /* 3 lines of text */
}

.case-card .card-title {
    min-height: 2.4rem;
    /* 2 lines of title */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card .case-meta {
    margin-top: auto;
    padding-top: 1rem;
}

.case-card .card-footer {
    margin-top: auto;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Forms ===== */
.form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
}

/* ===== Progress Bars ===== */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e5e7eb;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* ===== Forum Styles ===== */
.forum-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.forum-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.forum-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.forum-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.answer-count {
    text-align: center;
}

/* Mobile responsive forum cards */
@media (max-width: 768px) {
    .forum-card {
        padding: 1rem;
    }

    .forum-card .row {
        flex-direction: column;
    }

    .forum-card .col-md-8,
    .forum-card .col-md-4 {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .forum-card .answer-count {
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .forum-card .answer-count .h4 {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .forum-stats {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .forum-stats span {
        font-size: 0.8rem;
        padding: 2px 0;
    }

    /* Better spacing for mobile */
    .forum-card h5 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .forum-card .text-muted {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* ===== Case Study Styles ===== */
.case-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.case-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.case-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Case Meta Items */
.case-meta .meta-item {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.case-meta .meta-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* ===== Footer ===== */
footer {
    background: var(--text-color) !important;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--warning-color) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
        min-height: 100vh;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

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

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-features {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 280px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        align-self: center;
    }

    /* Make outline button more visible on mobile */
    .hero-buttons .btn-outline-light {
        background-color: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.8);
        color: white;
        backdrop-filter: blur(10px);
    }

    .hero-buttons .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: white;
        color: white;
        transform: translateY(-3px);
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .hero-image-container {
        margin-top: 2rem;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .floating-element:hover {
        transform: scale(1.1) translateY(-5px);
    }

    .element-1 {
        top: 5%;
        right: 5%;
    }

    .element-2 {
        top: 25%;
        left: -5%;
    }

    .element-3 {
        bottom: 20%;
        right: 5%;
    }

    .element-4 {
        bottom: 5%;
        left: 8%;
    }

    .element-5 {
        top: 50%;
        right: -8%;
    }

    .achievement-card {
        padding: 10px 15px;
        bottom: 10px;
        left: 10px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 90%;
        padding: 12px 25px;
        font-size: 1rem;
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin: 0;
        align-self: center;
    }

    /* Enhanced mobile button styling */
    .hero-buttons .btn-outline-light {
        background-color: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.9);
        color: white;
        font-weight: 600;
    }

    .hero-buttons .btn-warning {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    }

    .hero-badge .badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .floating-element {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .element-1 {
        top: 3%;
        right: 3%;
    }

    .element-2 {
        top: 22%;
        left: -3%;
    }

    .element-3 {
        bottom: 18%;
        right: 3%;
    }

    .element-4 {
        bottom: 3%;
        left: 5%;
    }

    .element-5 {
        top: 48%;
        right: -5%;
    }

    .element-3 {
        bottom: 35%;
        right: 8%;
    }

    .element-4 {
        bottom: 15%;
        left: 12%;
    }

    .element-5 {
        top: 65%;
        left: -3%;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Alert Styles ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* ===== Badge Styles ===== */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-color);
}

.badge-danger {
    background-color: var(--secondary-color);
}

/* ===== Table Styles ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* ===== Modal Styles ===== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ===== Pagination ===== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: none;
    color: var(--primary-color);
}

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

/* ===== Search Box ===== */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 50px;
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ===== Mobile Navigation Fixes ===== */
/* Fix mobile navbar collapse visibility */
@media (max-width: 991.98px) {
    .navbar-collapse:not(.navbar.scrolled .navbar-collapse) {
        background-color: var(--primary-color) !important;
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 9999;
    }

    .navbar-collapse.show:not(.navbar.scrolled .navbar-collapse) {
        background-color: var(--primary-color) !important;
    }

    .navbar:not(.scrolled) .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 3px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .navbar:not(.scrolled) .navbar-nav .nav-link:hover {
        color: var(--warning-color) !important;
        background-color: rgba(255, 255, 255, 0.1);
        padding-right: 15px !important;
        border-radius: 5px;
    }

    .navbar:not(.scrolled) .navbar-nav .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Dropdown menu in mobile - non-scrolled */
    .navbar:not(.scrolled) .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }

    .navbar:not(.scrolled) .navbar-nav .dropdown-item {
        color: var(--text-color) !important;
        padding: 10px 20px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .navbar:not(.scrolled) .navbar-nav .dropdown-item:hover {
        background-color: var(--primary-color) !important;
        color: white !important;
    }

    /* Ensure hamburger button is visible - non-scrolled */
    .navbar:not(.scrolled) .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px;
        padding: 8px 12px;
        transition: all 0.3s ease;
    }

    .navbar:not(.scrolled) .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    .navbar:not(.scrolled) .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 20px;
        height: 20px;
    }
}

/* Ensure proper z-index for navigation */
/* z-index moved to main navbar scroll section */

/* Additional mobile improvements */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-collapse {
        margin-top: 8px;
        padding: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 6px 0 !important;
    }
}

/* ===== Navbar Scroll Effect Fixes ===== */
.navbar {
    transition: all 0.3s ease !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
}

/* Default navbar styles (non-scrolled state) - Higher specificity */
.navbar.navbar-expand-lg:not(.scrolled) {
    background-color: #1e3a8a !important;
    box-shadow: none !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-brand {
    color: white !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-nav .nav-link:hover {
    color: #f59e0b !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-nav .nav-link.active {
    color: white !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar.navbar-expand-lg:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Scrolled state - Higher specificity */
.navbar.navbar-expand-lg.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-brand {
    color: #1e3a8a !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-nav .nav-link {
    color: #1e3a8a !important;
    font-weight: 500 !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-nav .nav-link:hover {
    color: #3b82f6 !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-nav .nav-link.active {
    color: #f59e0b !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-toggler {
    border-color: #1e3a8a !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.25) !important;
}

.navbar.navbar-expand-lg.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3a8a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown menu styling for scrolled navbar */
.navbar.scrolled .dropdown-menu {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.navbar.scrolled .dropdown-item {
    color: #1e3a8a !important;
}

.navbar.scrolled .dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: #3b82f6 !important;
}

.navbar.scrolled .nav-item.dropdown .dropdown-toggle::after {
    border-top-color: #1e3a8a !important;
}

.navbar.scrolled .nav-item.dropdown .dropdown-toggle {
    color: #1e3a8a !important;
}

.navbar.scrolled .nav-item.dropdown .dropdown-toggle:hover {
    color: #3b82f6 !important;
}

/* Mobile menu improvements for scrolled navbar */
@media (max-width: 991.98px) {
    .navbar.scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid #e5e7eb;
    }

    .navbar.scrolled .navbar-nav .nav-link {
        color: #1e3a8a !important;
        padding: 8px 15px !important;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 3px;
        border-radius: 5px;
    }

    .navbar.scrolled .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar.scrolled .navbar-nav .nav-link:hover {
        background-color: #f8fafc !important;
        color: #3b82f6 !important;
    }

    .navbar.scrolled .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }
}

/* ===== Blog Styles ===== */
.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.featured-post {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mobile-specific styles for blog posts */
@media (max-width: 768px) {
    .h2-md {
        font-size: 1.5rem !important;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .post-content h1,
    .post-content h2,
    .post-content h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .post-content p {
        margin-bottom: 1rem;
        text-align: justify;
    }

    .post-content img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    .post-share .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .breadcrumb {
        font-size: 0.875rem;
    }

    /* Better spacing for mobile metadata */
    .text-light.small>div {
        font-size: 0.8rem;
    }

    /* Ensure tables are scrollable on mobile */
    .post-content table {
        font-size: 0.875rem;
    }

    .post-content .table-responsive {
        margin: 1rem 0;
    }
}

@media (min-width: 769px) {
    .h2-md {
        font-size: 2rem !important;
    }
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content .alert {
    margin: 2rem 0;
    border-radius: 8px;
    border: none;
}

.post-content .alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.post-content .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.post-content .table {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content .table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.post-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

.post-share .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.related-post {
    transition: background-color 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.related-post:hover {
    background-color: #f8fafc;
}

.related-post:last-child {
    border-bottom: none !important;
}

/* ===== Category Cards ===== */
.category-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1;
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 2.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card .text-muted {
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-card .btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    margin-top: auto;
}

.category-card:hover .btn {
    transform: scale(1.05);
}

/* ===== Bilingual Support ===== */
/* Language Switcher */
.navbar .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.navbar .dropdown-item.active:hover {
    background-color: var(--primary-color);
    color: white;
}

/* LTR Layout Adjustments */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .text-md-end {
    text-align: right !important;
}

[dir="ltr"] .me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="ltr"] .me-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="ltr"] .ms-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="ltr"] .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="ltr"] .navbar-nav.me-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Font adjustments for English */
[dir="ltr"] body {
    font-family: 'Montserrat', 'Inter', sans-serif;
}

[dir="ltr"] .navbar-brand,
[dir="ltr"] .nav-link,
[dir="ltr"] .btn,
[dir="ltr"] .card-title,
[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6 {
    font-family: 'Montserrat', sans-serif;
}

/* RTL specific adjustments */
/* Broken RTL leftovers removed */

/* Bootstrap RTL/LTR fixes */
[dir="ltr"] .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


/* Language switcher icon */
.navbar .fa-globe {
    margin-right: 0.25rem;
}

[dir="ltr"] .navbar .fa-globe {
    margin-right: 0.25rem;
    margin-left: 0;
}

[dir="rtl"] .navbar .fa-globe {
    margin-left: 0.25rem;
    margin-right: 0;
}