/* ================= GLOBAL ================= */
:root {
    --primary-color: #1f3f6d;
    /* Official Blue */
    --secondary-color: #f68d2e;
    /* Saffron/Orange */
    --accent-color: #138808;
    /* India Green */
    --text-color: #333;
    --bg-color: #f7f9fc;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    /* Increased base size */
    -webkit-font-smoothing: antialiased;
    /* Crisp text */
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    /* Consistent Premium Headings */
    font-weight: 700;
    margin-top: 0;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

main {
    padding: 20px 0;
    min-height: 60vh;
}

/* Page Transition Animation */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-no-padding {
    padding-top: 0 !important;
}

/* ================= GOV STRIP ================= */
.gov-strip {
    background: #f1f1f1;
    text-align: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-weight: 500;
}

/* ================= LOGO BAR ================= */
.logo-bar {
    background: var(--white);
    border-bottom: 1px solid #ececec;
    padding: 15px 0;
}

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

.logo-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-left img {
    height: 65px;
}

.logo-text {
    line-height: 1.2;
}

.logo-text strong {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-text small {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.logo-right img {
    height: 50px;
    margin-left: 15px;
}

/* ================= NAV BAR ================= */
.main-nav {
    background: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    /* Default for Kannada */
    font-weight: 700;
    transition: opacity 0.2s;
    white-space: nowrap;
    line-height: 1.5;
    display: inline-block;
    padding: 0 2px;
}

.lang-en .nav-links a {
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    opacity: 0.9;
    text-decoration: none;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ================= SEARCH BAR (Animated) ================= */
.nav-search-container {
    width: 40px;
    /* Reduced from 60px */
    height: 40px;
    /* Reduced from 60px */
    background-color: var(--secondary-color);
    border-radius: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
    transition: width 0.3s ease;
    border: none;
    padding: 0;
}

.nav-search-container:hover,
.nav-search-container:focus-within {
    width: 220px;
    /* Reduced expanded width */
}

.nav-search-icon {
    min-width: 40px;
    /* Match container height */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: white;
    cursor: pointer;
}

.nav-search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    /* Reduced font size */
    color: white;
    width: 100%;
    padding-right: 15px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.nav-search-container:hover .nav-search-input,
.nav-search-container:focus-within .nav-search-input {
    opacity: 1;
    pointer-events: auto;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    /* Default for Kannada */
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.user-greet-span {
    color: white;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 5px;
}

.lang-en .user-greet-span {
    font-size: 15px;
    font-weight: 600;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--secondary-color);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-btn:hover {
    transform: scale(1.05);
    /* Reduced scale */
    box-shadow: 0 4px 15px rgba(246, 141, 46, 0.4);
    background: #e07d1e;
}

/* Tooltip for Profile */
.profile-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50px;
    /* Adjusted position */
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #2d3436;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    /* Faster, simpler transition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    pointer-events: none;
}

.profile-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.profile-btn svg {
    width: 22px;
    height: 22px;
}

.logout-btn {
    background: #e07d1e !important;
}

.official-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
}

.admin-logo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    margin-left: 0px;
    /* Push to far right */
    position: relative;
}

.admin-logo-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
    /* Removed rotation, reduced scale */
    box-shadow: 0 4px 15px rgba(246, 141, 46, 0.3);
}

/* Custom Tooltip */
.admin-logo-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #2d3436;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    /* Simple transition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* Tooltip Arrow */
.admin-logo-btn::after {
    content: '';
    position: absolute;
    top: 43px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 7px solid transparent;
    border-bottom-color: #2d3436;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10002;
}

.admin-logo-btn:hover::before,
.admin-logo-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.admin-logo-btn svg {
    width: 20px;
    height: 20px;
}

.lang-en .official-btn {
    font-size: 12px !important;
}

.register-outline-btn {
    background: transparent !important;
    border: 1px solid white !important;
}

.lang-en .login-btn {
    font-size: 14px;
}

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

/* ================= FOOTER ================= */
.gov-footer {
    background: #0f2444;
    color: #d0d0d0;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 20px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

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

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

.footer-col ul li a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
}

.sub-footer {
    background: #08162b;
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= TOAST NOTIFICATIONS ================= */
/* ================= MODAL POPUP NOTIFICATIONS ================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.popup-card {
    background: #fff;
    width: 90%;
    max-width: 320px;
    border-radius: 8px;
    /* Standard pop-up look */
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 20px;
    /* Space for icon overlap */
}

.popup-overlay.active .popup-card {
    transform: scale(1);
    opacity: 1;
}

.popup-card.closing {
    transform: scale(0.9);
    opacity: 0;
}

/* Floating Icon Wrapper */
.popup-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Specific styling for the SVG inside to be white */
.popup-icon-wrapper svg {
    color: white;
    stroke: white;
}

/* Popup Variants - Backgrounds */
.popup-icon-wrapper.popup-success {
    background-color: #7ac142;
}

.popup-icon-wrapper.popup-error {
    background-color: #e53935;
}

.popup-icon-wrapper.popup-warning {
    background-color: #fb8c00;
}

.popup-icon-wrapper.popup-info {
    background-color: #1e88e5;
}

/* Colors for Button Backgrounds (Moved logic here for clarity if needed, or just let btn handles it) */

/* Text Colors */
.popup-success .popup-title {
    color: #333;
    /* Reset title color */
}

.popup-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: var(--font-main);
    font-weight: 300;
    /* Thin look from image */
    font-size: 28px;
    color: #444;
}

.popup-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    /* Matches square-ish button */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popup-btn:hover {
    opacity: 0.9;
}

.popup-btn.popup-success {
    background: #7ac142;
    /* Override text color for bg */
    color: white;
}

.popup-btn.popup-error {
    background: #e53935;
    color: white;
}

.popup-btn.popup-warning {
    background: #fb8c00;
    color: white;
}

.popup-btn.popup-info {
    background: #1e88e5;
    color: white;
}

/* Remove previous toast styles if present below... */
.toast-container {
    display: none;
}

/* Quick fix just in case */

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }

    .toast {
        width: 100%;
        margin-left: 0;
        transform: translateY(100%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* ================= BUTTONS & FLUSH ================= */
.primary-btn:hover {
    background-color: #1a365d;
}

/* ================= PREMIUM UTILITIES ================= */

/* Hero Slider Container */
.hero-slider-wrapper {
    position: relative;
    height: 550px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed, though usually not for hero */
}

/* Justified Title Utility */
.justified-title {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    text-align: justify;
    text-align-last: center;
    /* Center the last line or single line */
}

.justified-title h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Micro-animations */
.hover-float {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-float:hover {
    transform: translateY(-8px);
}

/* Section Spacing */
.section-padding {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
/* =================RESPONSIVE & BURGER MENU================= */

/* Container for nav content (Links + Actions) */
.nav-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.user-profile-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Burger Button (Hidden on Desktop) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* Mobile Menu Header (Hidden on Desktop) */
.mobile-menu-header {
    display: none;
}

.nav-overlay {
    display: none;
}

/* ================= MEDIA QUERIES ================= */

@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }

    .burger-btn {
        display: flex;
    }

    .justified-title {
        padding: 15px;
        /* Reduce padding on mobile */
    }

    .justified-title h1 {
        font-size: clamp(1.1rem, 5vw, 2rem);
        letter-spacing: 0.02em;
        /* Tighten spacing */
        line-height: 1.3;
    }

    /* Overlay Backdrop */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }

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

    /* Side Drawer */
    .nav-content-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        z-index: 10002;
        /* Ensure it covers language widget (z-index 9999) */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    .nav-content-wrapper.active {
        transform: translateX(0);
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px;
        background: var(--primary-color);
        color: var(--white);
        box-sizing: border-box;
    }

    .mobile-menu-title {
        font-weight: 700;
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .close-menu-btn {
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 30px;
        cursor: pointer;
        line-height: 1;
    }

    /* Nav Links in Drawer */
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        color: #444;
        /* Dark text on white drawer */
        padding: 15px 20px;
        display: block;
        font-size: 16px;
    }

    .nav-links a:hover {
        background: #f8f9fa;
        color: var(--primary-color);
        border-bottom: 1px solid #f0f0f0;
        /* Reset hover border */
        padding-bottom: 15px;
        /* Reset hover padding */
        padding-left: 25px;
        /* Indent on hover */
    }

    /* Actions in Drawer */
    .nav-actions {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 15px;
        box-sizing: border-box;
        border-top: 1px solid #eee;
        background: #fdfdfd;
        margin-top: auto;
        /* Push to bottom if space permits, or just after links */
    }

    .search-box {
        width: 100%;
        border: 1px solid #ddd;
        background: #fff;
    }

    .search-box:focus {
        width: 100%;
    }

    .login-btn,
    .nav-actions a.login-btn {
        /* Specificity override */
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        display: block;
    }

    .user-profile-group {
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .user-greet-span {
        color: #333 !important;
        padding: 0;
    }

    .user-profile-group a.profile-btn {
        color: white !important;
        /* Keep profile icon white */
    }

    /* Admin logo button in drawer */
    .admin-logo-btn {
        background: rgba(31, 63, 109, 0.1) !important;
        border-color: rgba(31, 63, 109, 0.3) !important;
        color: var(--primary-color) !important;
    }

    .admin-logo-btn svg {
        stroke: var(--primary-color) !important;
    }

    /* Register outline button in drawer */
    .register-outline-btn {
        border-color: var(--secondary-color) !important;
        color: var(--secondary-color) !important;
        background: transparent !important;
    }

    .nav-actions .login-btn[href*="logout"] {
        margin-left: 0 !important;
    }

    /* Logo Adjustments */
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Content Adjustments */
    .about-card {
        flex-direction: column;
    }

    .about-content {
        padding: 30px;
    }

    .banner-slider {
        height: 300px;
    }

    .hero-slider-wrapper {
        height: 350px;
    }

    .justified-title h1 {
        font-size: 2rem;
        /* Easier reading on mobile */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================= FLOATING LANGUAGE SELECTOR ================= */
.language-selector-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: #2c4a8f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.lang-toggle-btn svg:first-child {
    flex-shrink: 0;
}

.lang-toggle-btn svg:last-child {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lang-toggle-btn:hover svg:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.lang-option.active:hover {
    background: #2c4a8f;
}

/* Mobile responsiveness for language selector */
@media (max-width: 768px) {
    .language-selector-widget {
        bottom: 20px;
        left: 20px;
    }

    .lang-toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .lang-dropdown {
        min-width: 180px;
    }
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* ================= FORCE MOBILE BANNER FIX ================= */
@media (max-width: 600px) {

    .justified-title h1,
    .hero-slider-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0.05em !important;
        word-wrap: break-word;
        /* Ensure long words break if absolutely necessary */
        word-break: break-word;
    }

    .justified-title {
        padding: 10px !important;
    }

    /* Also ensure container doesn't have excess padding */
    .hero-slider-content {
        padding: 0 10px;
    }
}

/* ================= FANCY BACK BUTTON ================= */
.back-btn-container {
    margin: 10px 0 20px 20px;
    display: inline-flex;
    vertical-align: middle;
}

.back-btn-fancy {
    background-color: #ffffff;
    width: 180px;
    border-radius: 1rem;
    height: 52px;
    position: relative;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    font-family: var(--font-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.back-btn-fancy .icon-box {
    background-color: var(--primary-color);
    border-radius: 0.75rem;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 4px;
    top: 3px;
    z-index: 10;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn-fancy:hover .icon-box {
    width: 172px;
}

.back-btn-fancy p {
    margin: 0;
    transform: translateX(18px);
    transition: opacity 0.3s ease;
}

.back-btn-fancy:hover p {
    opacity: 0;
}

.back-btn-fancy svg {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .back-btn-fancy {
        width: 150px;
        height: 48px;
        font-size: 0.9rem;
    }

    .back-btn-fancy .icon-box {
        height: 40px;
        width: 40px;
    }

    .back-btn-fancy:hover .icon-box {
        width: 142px;
    }
}

/* ================= MODAL STYLING (GLOBAL) ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

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

.modal-content {
    background: white;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    margin: auto;
    /* Ensure centering */
}

.modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #fff;
    color: #c53030;
}

.modal-body {
    padding: 0;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #f0f0f0;
    display: block;
}

.modal-text {
    padding: 40px;
}

@media (max-width: 768px) {
    .modal-text {
        padding: 25px;
    }
}

.modal-title {
    color: var(--primary-color);
    font-size: 32px;
    margin: 0 0 15px;
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 24px;
    }
}

.modal-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.modal-desc {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-wrap;
}