/* =====================================================
   ROOT VARIABLES & GENERAL STYLES
   ===================================================== */

:root {
    /* Primary Colors - WCAG AA Compliant */
    --primary-color: #0d4f8b;
    --secondary-color: #d32f2f;
    --accent-color: #1565c0;

    /* Background Colors */
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #212121;

    /* Text Colors - WCAG AAA Compliant */
    --text-dark: #212121;
    --text-light: #424242;
    --text-muted: #616161;
    --text-white: #ffffff;

    /* Border & Shadow */
    --border-light: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Tooltip Colors */
    --tooltip-bg: #2c3e50;
    --tooltip-text: #ffffff;
    --tooltip-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    margin-top: 0;
}

/* Accessibility - Screen Reader Only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

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

/* =====================================================
   NAVIGATION BAR
   ===================================================== */

.navbar-custom {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: var(--transition);
    border-bottom: 2px solid var(--primary-color);
}

.navbar-custom.navbar-scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

/* LEFT LOGO */
.navbar-left-logo {
    display: flex;
    align-items: center;
}

.navbar-left-logo .navbar-brand {
    font-size: 2.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-left-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* CENTER MENU */
.navbar-center {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

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

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* RIGHT LOGO */
.navbar-right-logo {
    display: flex;
    align-items: center;
}

.navbar-right-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.navbar-right-logo .navbar-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MOBILE TOGGLE */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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='%231a5f9e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
    line-height: 1;
}

/* SMART RESPONSIVE - Keep menu visible as long as possible */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.9rem;
    }
}

/* Only collapse to hamburger on very small screens */
@media (max-width: 768px) {

    /* Make top bar a main row: left logo, menu button, right image */
    .navbar.navbar-custom>.container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        /* allow second row for the menu */
    }

    /* Ensure logical ordering in the row */
    .navbar-left-logo {
        order: 1;
    }

    .navbar-toggler {
        order: 2;
    }

    .navbar-right-logo {
        order: 3;
        display: flex;
        align-items: center;
    }

    /* Stack menu BELOW the fixed top row */
    .navbar-collapse {
        order: 4;
        /* comes after the logos & toggler */
        flex-basis: 100%;
    }

    .navbar-center {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 1rem !important;
        border-bottom: 1px solid var(--border-light);
        text-align: left;
        font-size: 1rem;
    }

    .navbar-nav .nav-link:hover::after {
        width: 0;
    }
}

@media (max-width: 576px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }

    .navbar-left-logo .navbar-brand {
        font-size: 2rem;
    }

    .navbar-left-logo i {
        font-size: 2rem;
    }

    .navbar-right-logo i {
        font-size: 2rem;
    }

    .navbar-right-logo .navbar-text {
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
    }
}

/* =====================================================
   NEWS TICKER (Between Menu and Slider)
   ===================================================== */

.news-ticker-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    height: 40px;
    position: relative;
    z-index: 10;
}

.news-ticker-label {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 50%, #b71c1c 100%);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

/* Diagonal animated stripes background */
.news-ticker-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
    animation: stripe-slide 20s linear infinite;
    z-index: 0;
}

@keyframes stripe-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.news-ticker-label i,
.news-ticker-label span {
    position: relative;
    z-index: 1;
}

.news-ticker-label i {
    font-size: 1.1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

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

    50% {
        transform: scale(1.1);
    }
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    background-color: var(--bg-white);
    position: relative;
}

.news-ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-ticker-text:hover {
    animation-play-state: paused;
}

/* =====================================================
   CHECK eVISA STATUS SECTION
   ===================================================== */

.check-status-section {
    background: transparent;
    padding: 0;
    position: relative;
    overflow: visible;
    margin-top: -120px;
    /* Overlap slider by ~20% (assuming 600px slider height) */
    z-index: 100;
}

.status-check-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.status-check-header {
    text-align: center;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.status-check-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-check-form {
    margin-top: 1.5rem;
}

.form-row-status {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.form-group-status {
    flex: 1;
}

.form-group-status:last-child {
    flex: 0 0 auto;
}

.form-control-status {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-status:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 79, 139, 0.15);
}

.form-control-status::placeholder {
    color: #757575;
}

.btn-check-status {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(13, 79, 139, 0.3);
}

.btn-check-status:hover,
.btn-check-status:focus,
.btn-check-status:active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0d47a1 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 79, 139, 0.4);
}

.btn-check-status i {
    font-size: 1.1rem;
}

/* Responsive for Check Status */
@media (max-width: 768px) {
    .check-status-section {
        margin-top: -100px;
        /* Slightly less overlap on mobile */
    }

    .status-check-wrapper {
        padding: 1rem 0.75rem;
        border-radius: 10px;
        max-width: 85%;
        margin: 0 auto;
        width: 100%;
    }

    .check-status-section .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .status-check-header {
        margin-bottom: 0.75rem;
    }

    .status-check-header h2 {
        font-size: 1.2rem;
    }

    .status-icon {
        font-size: 1.1rem;
    }

    .status-check-form {
        margin-top: 1rem;
    }

    .form-row-status {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-control-status {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .btn-check-status {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   HOW TO APPLY SECTION
   ===================================================== */

.how-to-apply-section {
    /*  padding: 0 0 1rem 0;*/
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    margin-top: 0;
}

.section-header-apply {
    text-align: center;
    margin-bottom: 2.5rem;
}

.apply-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.apply-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.step-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.step-item:nth-child(3) {
    animation-delay: 0.2s;
}

.step-item:nth-child(5) {
    animation-delay: 0.3s;
}

.step-item:nth-child(7) {
    animation-delay: 0.4s;
}

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

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

.step-number-wrapper {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
}

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ef6c00, #e65100);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 35px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(239, 108, 0, 0.4);
}

.step-icon-wrapper {
    margin-bottom: 1rem;
    position: relative;
}

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 6px 20px rgba(13, 79, 139, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.step-item:hover .step-icon::before {
    left: 100%;
}

.step-item:hover .step-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(13, 79, 139, 0.4);
}

.step-icon i,
.step-icon svg,
.step-icon .icon {
    font-size: 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    color: #ffffff;
    fill: #ffffff;
    z-index: 1;
    position: relative;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.step-connector {
    flex: 0 0 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    align-self: center;
    margin-top: 45px;
    position: relative;
    display: flex;
    align-items: center;
}


.apply-cta-wrapper {
    text-align: center;
    margin-top: 2.5rem;
}

/* Hexagon Button Style - Green Theme with File Icon */
.btn-hex-start {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 60px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.btn-hex-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    background: #1b5e20;
    color: #ffffff;
    font-size: 1.5rem;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
    border: 2px solid #1b5e20;
}

.btn-hex-text {
    display: flex;
    align-items: center;
    padding: 0 2.5rem 0 1.5rem;
    height: 60px;
    background: #2d2d2d;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%, 5% 50%);
    margin-left: -10px;
    border-top: 2px solid #1b5e20;
    border-right: 2px solid #1b5e20;
    border-bottom: 2px solid #1b5e20;
    border-left: none;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-hex-start:hover .btn-hex-icon {
    background: #2e7d32;
    border-color: #2e7d32;
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.btn-hex-start:hover .btn-hex-text {
    background: #1a1a1a;
    border-top-color: #2e7d32;
    border-right-color: #2e7d32;
    border-bottom-color: #2e7d32;
    transform: translateX(5px);
    color: #ffffff;
}

/* Old button style kept as fallback */
.btn-start-application {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #b71c1c);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-start-application:hover::before {
    left: 100%;
}

.btn-start-application:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.5);
    color: #ffffff;
}

.btn-start-application i {
    transition: transform 0.3s ease;
}

.btn-start-application:hover i {
    transform: translateX(5px);
}

/* Responsive for How to Apply */
@media (max-width: 992px) {
    .how-to-apply-section {
        padding: 0 0 1rem 0;
    }

    .apply-title {
        font-size: 1.6rem;
    }

    .section-header-apply {
        margin-bottom: 1.5rem;
    }

    .steps-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .step-item {
        flex: 0 0 100%;
        margin-bottom: 0;
        padding: 0.5rem;
    }

    .step-connector {
        display: none;
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }

    .step-icon i,
    .step-icon svg,
    .step-icon .icon {
        font-size: 1.6rem;
        width: 1.6rem;
        height: 1.6rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9rem;
    }

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

    .step-description {
        font-size: 0.8rem;
    }

    .apply-cta-wrapper {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .how-to-apply-section {
        padding: 0 0 0.75rem 0;
        margin-top: 0;
    }

    .section-header-apply {
        margin-bottom: 1rem;
    }

    .apply-title {
        font-size: 1.3rem;
    }

    .apply-subtitle {
        font-size: 0.85rem;
    }

    .steps-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .step-item {
        flex: 0 0 100%;
        padding: 0.5rem;
        margin-bottom: 0;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-icon i,
    .step-icon svg,
    .step-icon .icon {
        font-size: 1.4rem;
        width: 1.4rem;
        height: 1.4rem;
    }

    .step-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .step-description {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .step-number {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.8rem;
        top: -10px;
        right: 10px;
    }

    .step-icon-wrapper {
        margin-bottom: 0.5rem;
    }

    .btn-start-application {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

    .apply-cta-wrapper {
        margin-top: 1rem;
    }

    .btn-hex-start {
        height: 50px;
    }

    .btn-hex-icon {
        width: 60px;
        height: 50px;
        font-size: 1.2rem;
    }

    .btn-hex-text {
        height: 50px;
        padding: 0 1.5rem 0 1rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (320px-400px) */
@media (max-width: 400px) {
    .hero-slide {
        min-height: 350px;
    }

    .slide-text-box {
        padding: 0.6rem 0.8rem;
        margin: 0 0.3rem 0.3rem 0.3rem;
    }

    .slide-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .slide-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .slide-description {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .slide-btn {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.75rem !important;
    }

    .steps-container {
        gap: 0.8rem;
    }

    .step-item {
        padding: 0.3rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon i,
    .step-icon svg,
    .step-icon .icon {
        font-size: 1.2rem;
        width: 1.2rem;
        height: 1.2rem;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .step-description {
        font-size: 0.65rem;
    }

    .step-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.7rem;
    }

    .btn-hex-start {
        height: 45px;
    }

    .btn-hex-icon {
        width: 55px;
        height: 45px;
        font-size: 1rem;
    }

    .btn-hex-text {
        height: 45px;
        padding: 0 1.2rem 0 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Mobile news ticker */
@media (max-width: 768px) {
    .news-ticker-wrapper {
        height: 35px;
    }

    .news-ticker-label {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .news-ticker-text {
        font-size: 0.85rem;
        animation: scroll-left 20s linear infinite;
    }
}

/* =====================================================
   HERO SLIDER SECTION
   ===================================================== */

.hero-slider-section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
}

/* Picture background for slider */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-background img,
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.5;
    filter: brightness(0.7);
}

/* Dark overlay for black cooling glass effect */
.slide-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 4rem 0;
}

.slide-text-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
    color: var(--text-white);
    animation: slideInUp 0.8s ease;
    max-width: 100%;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0;
    color: #ffffff;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.laos-flag-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin: 0;
    vertical-align: middle;
    display: block;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.4;
}

.slide-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.slide-btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 1rem;
}

.slide-btn.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
}

.slide-btn.btn-primary:hover,
.slide-btn.btn-primary:focus,
.slide-btn.btn-primary:active {
    background-color: #004494 !important;
    border-color: #004494 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
}

.slide-btn.btn-outline-light {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}

.slide-btn.btn-outline-light:hover,
.slide-btn.btn-outline-light:focus,
.slide-btn.btn-outline-light:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Mobile responsiveness for slider */
@media (max-width: 992px) {
    .slide-content {
        padding: 3rem 0;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .laos-flag-icon {
        width: 40px;
        height: 27px;
    }
    
    .slide-subtitle {
        font-size: 1.25rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 500px;
    }

    .slide-content {
        padding: 2rem 0;
        align-items: flex-end;
        justify-content: center;
    }

    .slide-text-box {
        text-align: center;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .laos-flag-icon {
        width: 32px;
        height: 21px;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .slide-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .slide-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 450px;
    }
    
    .slide-content {
        padding: 1.5rem 0;
    }

    .slide-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .laos-flag-icon {
        width: 28px;
        height: 19px;
    }

    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .slide-btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* =====================================================
   SECTION STYLES
   ===================================================== */

section {
    padding: 1rem 0;
}

section:first-of-type {
    padding-top: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Compact row margins for new sections */
.evisa-updates-section .row,
.eligibility-section .row,
.visa-types-section .row,
.visa-exempt-section .row {
    margin-bottom: 1rem !important;
}

.evisa-updates-section .row.mb-4,
.evisa-updates-section .row.mb-5,
.visa-types-section .row.mb-4,
.visa-types-section .row.mb-5,
.visa-exempt-section .row.mb-4,
.visa-exempt-section .row.mb-5 {
    margin-bottom: 1rem !important;
}

/* Compact buttons in new sections */
.evisa-updates-section .btn,
.eligibility-section .btn,
.visa-types-section .btn,
.visa-exempt-section .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

/* Important Information Section */
.important-info-section {
    background-color: var(--bg-white);
    position: relative;
}

.important-info-section .row.mb-5 {
    margin-bottom: 1.5rem !important;
}

.important-info-section .row.g-4 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    border: 2px solid #e3f2fd;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.15);
    transform: translateY(-8px);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }

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

.info-icon {
    font-size: 2.2rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.info-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.info-list li {
    padding: 0.65rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: #4caf50;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.info-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.25);
    letter-spacing: 0.3px;
    margin-top: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.info-btn span {
    white-space: nowrap;
    display: inline-block;
}

.info-btn svg {
    flex-shrink: 0;
}

.info-btn:hover,
.info-btn:focus,
.info-btn:active {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.35);
    transform: translateX(3px);
    text-decoration: none !important;
}

.info-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.info-btn:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments for Important Info */
@media (max-width: 992px) {
    .info-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {

    .info-icon {
        font-size: 1.8rem;
    }

    .info-title {
        font-size: 1.2rem;
    }

    .info-list li {
        font-size: 0.9rem;
        padding: 0.55rem 0;
    }
}

@media (max-width: 576px) {
    .info-card {
        padding: 1.5rem 1.25rem;
    }

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

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

    .info-list li {
        font-size: 0.85rem;
    }

    .info-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   LAOS eVISA POLICY UPDATES SECTION - COMPACT
   ===================================================== */

.evisa-updates-section {
    background-color: var(--bg-light);
    padding: 2.5rem 0 !important;
}

.evisa-update-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.update-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    padding: 0.70rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.update-header i {
    font-size: 1.8rem;
}

.update-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
}

.update-content {
    padding: 1.5rem;
}

.update-content>p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.policy-updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.policy-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.policy-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.policy-date i {
    font-size: 0.85rem;
}

/* h3 styled as former h4 for policy items - maintains visual hierarchy */
.policy-item h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.policy-item h3 i,
.policy-item h3 .icon {
    color: var(--primary-color);
    font-size: 1rem;
}

.policy-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* =====================================================
   ELIGIBILITY SECTION - COMPACT
   ===================================================== */

.cta-box .btn {
    margin-bottom: 0.3rem;
    font-size: 0.9rem !important;
    padding: 0.6rem 1.25rem !important;
}

/* =====================================================
   VISA TYPES SECTION - COMPACT
   ===================================================== */

.visa-type-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e3f2fd;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visa-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.visa-type-card:hover::before {
    transform: scaleX(1);
}

.visa-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(13, 79, 139, 0.15);
    transform: translateY(-5px);
}

.visa-type-card h3 {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.visa-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.visa-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.visa-features li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.visa-features li:last-child {
    border-bottom: none;
}

.visa-features li i {
    color: #4caf50;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.visa-features strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* =====================================================
   VISA-EXEMPT COUNTRIES SECTION - COMPACT
   ===================================================== */

.visa-exempt-section {
    background-color: #ffffff;
    padding: 2.5rem 0 !important;
}

.visa-exempt-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.exempt-header {
    background: #f44336;
    color: #ffffff;
    padding: 0.70rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.exempt-header i {
    font-size: 1.8rem;
    color: #c62828;
}

.exempt-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
}

.exempt-content {
    padding: 1.5rem;
}

.exempt-content>p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* h3 styled as former h5 for subheadings - maintains visual hierarchy */
.entry-points-heading {
    font-size: 0.875rem !important;
    font-weight: 600;
    color: var(--text-dark);
}

.exempt-note {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 3px solid #ffa000;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.exempt-note i {
    color: #f57c00;
    font-size: 1.2rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.exempt-note p {
    margin: 0;
    font-size: 0.85rem;
    color: #424242;
    line-height: 1.5;
}

/* Responsive Adjustments - Compact */
@media (max-width: 992px) {
    .policy-updates-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {

    .evisa-updates-section,
    .visa-exempt-section {
        padding: 2rem 0 !important;
    }

    .update-header,
    .exempt-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .update-header i,
    .exempt-header i {
        font-size: 1.5rem;
    }

    .update-header h2,
    .exempt-header h2 {
        font-size: 1.2rem;
    }

    .policy-updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    .evisa-updates-section,
    .visa-exempt-section {
        padding: 1.5rem 0 !important;
    }

    .update-content,
    .exempt-content {
        padding: 1rem;
    }

    .policy-item {
        padding: 0.85rem;
    }

    .visa-type-card {
        padding: 1rem;
    }
}

/* =====================================================
   REQUIREMENTS SECTION
   ===================================================== */

.requirement-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.requirement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.requirement-card i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.faq-section {
    background-color: var(--bg-light);
}

.accordion-item {
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.2rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 79, 139, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--bg-white);
    color: var(--text-light);
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-buttons .btn {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons .btn-primary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

.cta-buttons .btn-primary:hover,
.cta-buttons .btn-primary:focus,
.cta-buttons .btn-primary:active {
    background-color: #b71c1c !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

.cta-buttons .btn-outline-primary {
    color: var(--text-white);
    border-color: var(--text-white);
}

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

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-dark);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
}

.contact-form .form-control {
    border: 1px solid var(--border-light);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 79, 139, 0.25);
}

.contact-form .btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem;
    transition: var(--transition);
}

.contact-form .btn:hover,
.contact-form .btn:focus,
.contact-form .btn:active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
}

.footer h5 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer .input-group {
    margin-top: 1rem;
}

.footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.footer .btn-primary:hover,
.footer .btn-primary:focus,
.footer .btn-primary:active {
    background-color: #b71c1c !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
}

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

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

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    section {
        padding: 2.5rem 0;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 2rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

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

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .slide-text-box {
        padding: 1.5rem 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

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

    .footer {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.5rem 0;
    }

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

    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }

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

    .navbar-brand {
        font-size: 1.2rem;
    }

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

/* =====================================================
   BUTTON STYLES - WCAG AA/AAA COMPLIANT
   ===================================================== */

/* All Primary Buttons - Blue Background with White Text */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
}

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

/* Secondary Buttons - Red Background with White Text */
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #b71c1c !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

/* Outline Primary - White Background with Blue Text */
.btn-outline-primary,
.btn-outline-primary:link,
.btn-outline-primary:visited {
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    font-weight: 600;
}

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

/* Ensure all buttons have proper text color */
.btn,
button,
a.btn {
    transition: all 0.3s ease;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

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

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

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

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

/* Smooth scroll for internal links */

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


/* ================================================== */
/* APPLICATION FORM SPECIFIC STYLES                  */
/* ================================================== */
/* Application Form Specific Styles */
.application-form-section {
    background: #f8f9fa;
    padding: 80px 0 60px;
    min-height: calc(100vh - 200px);
}

.form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-bottom: 30px;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-body {
    padding: 30px 25px;
}

/* Form Group with Icon */
.form-group-icon {
    position: relative;
    margin-bottom: 0px;
}

.form-group-icon label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group-icon label .required {
    color: #d32f2f;
    margin-left: 3px;
}

.form-group-icon label .help-icon {
    width: 14px;
    height: 14px;
    fill: #757575;
    margin-left: 5px;
    cursor: help;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    pointer-events: none;
    z-index: 2;
}

.form-group-icon input[type="text"],
.form-group-icon input[type="email"],
.form-group-icon input[type="tel"],
.form-group-icon input[type="date"],
.form-group-icon select,
.form-group-icon textarea {
    width: 100%;
    padding: 8px 15px 8px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group-icon select,
.form-group-icon input[type="date"] {
    cursor: pointer;
}

.form-group-icon input:focus,
.form-group-icon select:focus,
.form-group-icon textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 79, 139, 0.1);
}

.form-group-icon input::placeholder,
.form-group-icon textarea::placeholder {
    color: #9e9e9e;
}

.form-group-icon textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-icon .helper-text {
    display: block;
    font-size: 0.8rem;
    color: #757575;
    margin-top: 5px;
    font-style: italic;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-preview {
    width: 150px;
    height: 180px;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}


.upload-previews {
    width: 357px;
    height: 196px;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.upload-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.upload-previews {
    width: 280px;
    height: 180px;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.upload-previews img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.crop-preview-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.upload-placeholder {
    text-align: center;
    color: #9e9e9e;
}

.upload-placeholder svg {
    width: 60px;
    height: 60px;
    fill: #bdbdbd;
    margin-bottom: 10px;
}

.upload-btn {
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 79, 139, 0.3);
}

.upload-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.upload-note {
    font-size: 0.85rem;
    color: #757575;
    text-align: center;
    margin-top: 10px;
}

/* Travel Ports Info */
.travel-ports-info {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.travel-ports-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.travel-ports-info ol {
    margin: 0;
    padding-left: 20px;
}

.travel-ports-info li {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;

}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #ffffff !important;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .application-form-section {
        padding: 70px 0 40px;
    }

    .section-header {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .section-body {
        padding: 20px 15px;
    }

    .upload-section {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .form-group-icon input,
    .form-group-icon select,
    .form-group-icon textarea {
        padding: 10px 12px 10px 40px;
        font-size: 0.9rem;
    }

    .input-icon {
        width: 16px;
        height: 16px;
        left: 12px;
    }
}


/* ================================================== */
/* MODAL UPLOAD POPUP STYLES                         */
/* ================================================== */
/* Modal Styles */
.upload-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content-upload {
    background-color: #ffffff;
    margin: 3% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.modal-header-upload {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-upload h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.modal-body-upload {
    padding: 30px;
}

.guidelines-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.guidelines-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.guidelines-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid #e0e0e0;
}

.guidelines-list li:last-child {
    border-bottom: none;
}

.guideline-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #757575;
    font-style: italic;
}

.photo-examples {
    margin: 25px 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.example-item {
    position: relative;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid;
}

.example-item.valid {
    border-color: #4caf50;
}

.example-item.invalid {
    border-color: #f44336;
}

.example-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
}

.example-item.valid .example-badge {
    background: #4caf50;
    color: #ffffff;
}

.example-item.invalid .example-badge {
    background: #f44336;
    color: #ffffff;
}

.example-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 8px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.modal-actions-upload {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-modal-browse {
    background: #ffffff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-browse:hover {
    background: var(--primary-color);
    color: #ffffff !important;
}

.btn-modal-browse svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-modal-upload {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-upload:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-modal-upload:not(:disabled):hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.btn-modal-upload svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Responsive Modal */
/* Tablet and Mobile Responsive Styles for Upload Modal */
@media (max-width: 1024px) {
    .modal-content-upload {
        width: 92%;
        max-width: 800px;
        margin: 4% auto;
    }

    .modal-body-upload {
        padding: 25px 20px;
    }

    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .example-item {
        padding: 8px;
    }

    .example-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .upload-modal {
        padding: 10px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .modal-content-upload {
        width: 98%;
        max-width: none;
        margin: 2% auto;
        border-radius: 10px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-header-upload {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    }

    .modal-header-upload h5 {
        font-size: 1rem;
        font-weight: 600;
    }

    .modal-close {
        font-size: 20px;
        padding: 4px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-body-upload {
        padding: 16px;
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }

    .guidelines-section {
        margin-bottom: 16px;
    }

    .guidelines-list {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .example-item {
        padding: 6px;
        border-radius: 6px;
    }

    .example-label {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .editor-preview-container {
        height: 200px;
        border-radius: 8px;
    }

    .editor-preview-container canvas {
        max-width: 100%;
        height: auto;
    }

    .rotation-slider-container {
        margin: 12px 0;
    }

    .rotation-slider-container label {
        font-size: 0.9rem;
        margin-bottom: 6px;
        display: block;
    }

    .rotation-slider {
        width: 100%;
        height: 6px;
    }

    .editor-controls-compact {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 12px;
    }

    .button-with-label-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .editor-btn-mini {
        width: 36px;
        height: 36px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .button-label-inline {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.2;
    }

    .modal-actions-upload {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .btn-modal-browse,
    .btn-modal-upload {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-modal-browse svg,
    .btn-modal-upload svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .upload-modal {
        padding: 5px;
    }

    .modal-content-upload {
        width: 100%;
        margin: 1% auto;
        border-radius: 8px;
        max-height: 98vh;
    }

    .modal-header-upload {
        padding: 10px 14px;
    }

    .modal-header-upload h5 {
        font-size: 0.95rem;
    }

    .modal-body-upload {
        padding: 12px;
        max-height: calc(98vh - 100px);
    }

    .editor-preview-container {
        height: 160px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .editor-controls-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .editor-btn-mini {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .modal-actions-upload {
        gap: 8px;
        margin-top: 16px;
        padding-top: 12px;
    }

    .btn-modal-browse,
    .btn-modal-upload {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content-upload {
        width: 100%;
        margin: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body-upload {
        max-height: calc(100vh - 80px);
        padding: 10px;
    }

    .editor-preview-container {
        height: 140px;
    }

    .examples-grid {
        display: none; /* Hide examples on very small screens to save space */
    }

    .editor-controls-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }

    .editor-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .button-label-inline {
        font-size: 0.7rem;
    }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .editor-btn-mini {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-modal-browse,
    .btn-modal-upload {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* File loaded message styling */
.file-loaded-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-weight: 500;
}

.file-loaded-message svg {
    flex-shrink: 0;
}


/* Mobile Field Order for Application Form */
.personal-info-fields {
    display: flex;
    flex-wrap: wrap;
}

/* Desktop: Normal 2-column layout */
@media (min-width: 769px) {
    .personal-info-fields>[class*='col-'] {
        order: 0;
    }
}

/* Mobile: Specific order */
@media (max-width: 768px) {
    .personal-info-fields {
        display: flex;
        flex-direction: column;
    }

    .field-order-1 {
        order: 1;
    }

    /* Surname */
    .field-order-2 {
        order: 2;
    }

    /* Given Name */
    .field-order-3 {
        order: 3;
    }

    /* DOB */
    .field-order-4 {
        order: 4;
    }

    /* Gender */
    .field-order-5 {
        order: 5;
    }

    /* Nationality */
    .field-order-6 {
        order: 6;
    }

    /* Country of Birth */
    .field-order-7 {
        order: 7;
    }

    /* Occupation */
    .field-order-8 {
        order: 8;
    }

    /* Telephone */
    .field-order-9 {
        order: 9;
    }

    /* Residential Address */
    .field-order-10 {
        order: 10;
    }

    /* State */
}


/* =====================================================
   BEAUTIFUL BUBBLE TOOLTIPS
   ===================================================== */

/* Tooltip wrapper positioning */
.input-icon-wrapper {
    position: relative;
    display: block;
}

/* Ensure form controls are properly positioned for tooltips */
.form-group-icon input,
.form-group-icon select,
.form-group-icon textarea {
    position: relative;
    transition: all 0.3s ease;
}

/* Disable browser default validation tooltips */
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none !important;
}

/* Highlight fields with tooltips on hover */

/* Tooltip bubble - shown on wrapper hover */
.input-icon-wrapper:hover::before {
    content: attr(data-tooltip-text);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 320px;
    min-width: 200px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.22);
    z-index: 99999;
    pointer-events: none;
    opacity: 1;
    animation: tooltipSlideIn 0.3s ease forwards;
    border: 2px solid rgba(255, 255, 255, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

/* Tooltip arrow - pointing down */
.input-icon-wrapper:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1e3a5f;
    z-index: 99999;
    pointer-events: none;
    opacity: 1;
    animation: tooltipSlideIn 0.3s ease forwards;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
}

/* Tooltip animation */
@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile responsive tooltips */
@media (max-width: 768px) {
    .input-icon-wrapper:hover::before {
        max-width: 280px;
        min-width: 180px;
        font-size: 12px;
        padding: 10px 14px;
        bottom: calc(100% + 12px);
    }

    .input-icon-wrapper:hover::after {
        bottom: calc(100% + 2px);
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 8px;
    }
}


/* =====================================================
   INLINE IMAGE EDITOR STYLES
   ===================================================== */

.image-editor-section {
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.editor-preview-container {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px dashed #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#photoEditCanvas {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: white;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

/* Rotation Slider */
.rotation-slider-container {
    margin: 6px 0 8px;
    padding: 6px 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.rotation-slider-container label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    text-align: center;
}

.rotation-slider-container label span {
    color: #ff6f00;
    font-size: 13px;
    margin-left: 3px;
}

.rotation-slider-wrapper {
    position: relative;
    padding: 8px 0 16px;
    cursor: grab;
}

.rotation-slider-wrapper:active {
    cursor: grabbing;
}

.rotation-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    width: 52px;
    height: 26px;
    border-radius: 13px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.rotation-slider-thumb span {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.rotation-slider {
    width: 100%;
    height: 5px;
    border-radius: 2.5px;
    background: linear-gradient(to right, #e9ecef 0%, var(--primary-color) 50%, #e9ecef 100%);
    outline: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    cursor: grab;
}

.rotation-slider:active {
    cursor: grabbing;
}

/* Large thumb hit area (52x30) so grab cursor shows over entire "Rotate" button */
.rotation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 52px;
    height: 30px;
    border-radius: 15px;
    background: transparent;
    cursor: grab;
    position: relative;
    z-index: 3;
}

.rotation-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.rotation-slider::-webkit-slider-thumb:hover {
    background: rgba(13, 79, 139, 0.15);
}

.rotation-slider::-moz-range-thumb {
    width: 52px;
    height: 30px;
    border-radius: 15px;
    background: transparent;
    cursor: grab;
    border: none;
    position: relative;
    z-index: 3;
}

.rotation-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.rotation-slider::-moz-range-thumb:hover {
    background: rgba(13, 79, 139, 0.15);
}

/* Compact Edit Controls */
.editor-controls-compact {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: thin;
}

.editor-controls-compact::-webkit-scrollbar {
    height: 4px;
}

.editor-controls-compact::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

.editor-btn-mini {
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.editor-btn-mini:hover {
    background: var(--primary-color);
    transform: translateY(-1px) scale(1.08);
    box-shadow: 0 2px 5px rgba(13, 79, 139, 0.25);
    border-width: 1.5px;
}

.editor-btn-mini:hover svg {
    fill: white;
}

.editor-btn-mini:active {
    transform: translateY(0) scale(1);
}

.editor-btn-mini svg {
    width: 12px;
    height: 12px;
    fill: var(--primary-color);
    transition: fill 0.2s ease;
}

.editor-btn-mini.editor-btn-reset {
    border-color: #ff9800;
    background: #fff3e0;
}

.editor-btn-mini.editor-btn-reset svg {
    fill: #ff6f00;
}

.editor-btn-mini.editor-btn-reset:hover {
    background: #ff9800;
    border-color: #ff9800;
}

.editor-btn-mini.editor-btn-reset:hover svg {
    fill: white;
}

.editor-btn-mini.editor-btn-crop {
    border-color: #28a745;
}

.editor-btn-mini.editor-btn-crop svg {
    fill: #28a745;
}

.editor-btn-mini.editor-btn-crop:hover {
    background: #28a745;
    border-color: #28a745;
}

.editor-btn-mini.editor-btn-crop:hover svg {
    fill: white;
}

.editor-btn-mini.editor-btn-crop.active {
    background: #28a745;
    border-color: #28a745;
}

.editor-btn-mini.editor-btn-crop.active svg {
    fill: white;
}

/* Crop Overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.crop-area {
    position: absolute;
    border: 3px dashed #28a745;
    background: rgba(40, 167, 69, 0.05);
    cursor: move;
    min-width: 50px;
    min-height: 50px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(40, 167, 69, 0.3);
    pointer-events: auto;
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: -4px;
}

.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #28a745;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 11;
}

.crop-handle.crop-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.crop-handle.crop-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.crop-handle.crop-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.crop-handle.crop-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* Mobile responsive inline editor */
@media (max-width: 768px) {
    .image-editor-section {
        padding: 12px;
        margin: 12px 0;
    }

    .editor-preview-container {
        padding: 10px;
        min-height: 180px;
    }

    .editor-controls-compact {
        gap: 2px;
    }

    .editor-btn-mini {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .editor-btn-mini svg {
        width: 11px;
        height: 11px;
    }

    .rotation-slider-container {
        padding: 5px 8px;
        margin: 5px 0 6px;
    }

    .rotation-slider-container label {
        font-size: 11px;
    }

    .rotation-slider-container label span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .image-editor-section {
        padding: 10px;
        margin: 10px 0;
    }

    .editor-preview-container {
        padding: 8px;
        min-height: 150px;
    }

    .editor-controls-compact {
        gap: 2px;
        padding: 1px 0;
    }

    .editor-btn-mini {
        width: 20px;
        height: 20px;
        min-width: 20px;
        border-width: 1px;
    }

    .editor-btn-mini svg {
        width: 10px;
        height: 10px;
    }

    .rotation-slider-container {
        padding: 4px 6px;
        margin: 4px 0 5px;
    }

    .rotation-slider-container label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .rotation-slider-container label span {
        font-size: 11px;
    }

    .rotation-slider {
        height: 4px;
    }

    .rotation-slider-thumb {
        width: 44px;
        height: 22px;
        border-radius: 11px;
    }

    .rotation-slider-thumb span {
        font-size: 9px;
    }

    /* Match thumb hit area to visible button size */
    .rotation-slider::-webkit-slider-thumb {
        width: 44px;
        height: 26px;
        border-radius: 13px;
    }

    .rotation-slider::-moz-range-thumb {
        width: 44px;
        height: 26px;
        border-radius: 13px;
    }

    .crop-handle {
        width: 16px;
        height: 16px;
    }

    .crop-handle.crop-nw {
        top: -8px;
        left: -8px;
    }

    .crop-handle.crop-ne {
        top: -8px;
        right: -8px;
    }

    .crop-handle.crop-sw {
        bottom: -8px;
        left: -8px;
    }

    .crop-handle.crop-se {
        bottom: -8px;
        right: -8px;
    }
}

@media (max-width: 360px) {
    .editor-btn-mini {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .editor-btn-mini svg {
        width: 9px;
        height: 9px;
    }

    .editor-controls-compact {
        gap: 1px;
    }
}

/* =====================================================
   FORM VALIDATION STYLES
   ===================================================== */

/* Error message styling */
.mandatory {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Field status icon container */
.field-status {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}

/* jQuery UI Datepicker custom styling */

/* Validation state inputs */

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Animation for slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Date input fields with datepicker */
input[readonly] {
    background-color: white !important;
    cursor: pointer !important;
}

input[readonly]:hover {
    background-color: #f8f9fa !important;
}

/* Make calendar icon in date fields more visible */
.input-icon-wrapper input[readonly]~.input-icon {
    pointer-events: none;
}

/* Additional datepicker styles */

/* Make sure readonly date inputs are fully interactive */
input[type="text"][readonly] {
    background-color: #ffffff !important;
    cursor: pointer !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input[type="text"][readonly]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure datepicker appears above modals */

/* Fix calendar icon alignment in date input fields */
.input-icon-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    z-index: 2;
}

/* Make sure date input fields have proper padding */
.input-icon-wrapper input[readonly] {
    padding-left: 40px !important;
    cursor: pointer !important;
}

/* Hide any jQuery UI datepicker trigger buttons */

/* ===================================================
   Captcha Modal Styles
   =================================================== */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-display {
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    color: #333;
    min-width: 100px;
    text-align: center;
    user-select: none;
    pointer-events: auto;
    z-index: 1061;
    position: relative;
}

.btn-refresh-captcha {
    background: #0d4f8b;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    color:#000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
    z-index: 1061;
    position: relative;
}

.btn-refresh-captcha:hover {
    background: #1565c0;
}

.btn-refresh-captcha svg {
    width: 20px;
    height: 20px;
    display: block;
    fill:#000;
    stroke: none;
}

.captcha-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    pointer-events: auto;
    z-index: 1061;
    position: relative;
}

.captcha-input:focus {
    outline: none;
    border-color: #0d4f8b;
    box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}

#captchaModal .modal-content {
    pointer-events: auto;
    z-index: 1060;
}

#captchaModal .modal-body,
#captchaModal .modal-footer,
#captchaModal .modal-header {
    pointer-events: auto;
    z-index: 1061;
}

#captchaModal .modal-body *,
#captchaModal .modal-footer *,
#captchaModal .modal-header * {
    pointer-events: auto;
}

/* Remove backdrop for captcha modal */
#captchaModal.show~.modal-backdrop,
#captchaModal.show+.modal-backdrop,
body:has(#captchaModal.show) .modal-backdrop.show {
    display: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Alternative: Hide backdrop when captcha modal is open */
.modal-backdrop.show {
    display: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* ===================================================
   jQuery UI Datepicker Navigation Button Fixes
   =================================================== */

/* Fix Prev/Next buttons - make them visible */

/* Style the prev/next icons */

/* Add arrows using CSS instead of black icons */

/* Hide the default text */

/* Fix title alignment */

/* Selected date display below input */
.date-display-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 500;
    font-style: italic;
    min-height: 20px;
    float: right;
    text-align: right;
}

/* Improve datepicker calendar styling */

/* =====================================================
   FOOTER INFORMATION SECTION (Reusable)
   ===================================================== */

.footer-info-section {
    background: var(--bg-light);
    padding: 40px 0 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 30px;
}

/* Information Links Grid */
.footer-info-section .row {
    margin: 0;
}

.footer-info-section .myhomediv .col-md-3,
.footer-info-section .myhomediv .col-sm-6 {
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Footer Actions Wrapper */
.footer-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 15px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Social Share Section */
.footer-social-share {
    flex: 1;
    min-width: 200px;
}

.footer-social-share .a2a_dd {
    display: inline-block;
}

/* Navigation Buttons Section */
.footer-navigation-buttons {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.footer-navigation-buttons .form_submit {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-navigation-buttons .form_submit a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.footer-navigation-buttons .form_submit a.btn-info {
    background: var(--primary-color);
    color: var(--text-white);
}

.footer-navigation-buttons .form_submit a.btn-info:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.footer-navigation-buttons .form_submit a.btn-success {
    background: var(--secondary-color);
    color: var(--text-white);
}

.footer-navigation-buttons .form_submit a.btn-success:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.footer-navigation-buttons .form_submit a i {
    font-size: 16px;
}

/* Remove old styling from footerbutton.php */
.footer-info-section hr {
    display: none;
}

.footer-info-section .form_submit {
    margin: 0;
    padding: 0;
}

.footer-info-section .form_submit br {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-info-section .myhomediv .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .footer-info-section {
        padding: 30px 0 20px;
    }

    .footer-info-section .myhomediv .col-md-3,
    .footer-info-section .myhomediv .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .footer-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-social-share {
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-navigation-buttons {
        text-align: center;
    }

    .footer-navigation-buttons .form_submit {
        justify-content: center;
        flex-direction: column;
    }

    .footer-navigation-buttons .form_submit a {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-info-section {
        padding: 25px 0 15px;
    }

    .footer-navigation-buttons .form_submit a {
        font-size: 13px;
        padding: 8px 16px;
    }
}


/* Mobile navbar: keep left and right logo in top row with the toggler */
@media (max-width: 768px) {
    .navbar.navbar-custom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-left-logo {
        order: 1;
    }

    .navbar-toggler {
        order: 2;
    }

    .navbar-right-logo {
        order: 3;
    }

    /* Menu takes full width *below* the logos, they stay visible */
    .navbar-collapse {
        flex-basis: 100%;
    }
}