/* ==========================================================================
   Columbus Evolve - Custom Modern Styles & Layout Enhancements
   ========================================================================== */

:root {
    --primary-blue: #1076b5;
    --primary-dark: #0a4f7d;
    --accent-orange: #d97706;
    --accent-orange-hover: #b45309;
    --text-main: #334155;
    --text-heading: #0f172a;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Top bar styling */
.topbar-area {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    padding: 6px 0;
}

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

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #475569;
}

.topbar-info span i {
    color: var(--primary-blue);
    margin-right: 6px;
}

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

.topbar-btn {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.topbar-btn-inquiry {
    background: #d97706;
    color: #ffffff !important;
}

.topbar-btn-inquiry:hover {
    background: #b45309;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.topbar-btn-elt {
    background: #0284c7;
    color: #ffffff !important;
}

.topbar-btn-elt:hover {
    background: #0369a1;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.topbar-social a {
    color: #64748b;
    margin-left: 10px;
    transition: color 0.2s ease;
    font-size: 14px;
}

.topbar-social a:hover {
    color: var(--primary-blue);
}

/* Header & Navigation */
.header-area {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-logo img {
    height: 52px;
    width: auto;
    display: block;
}

/* Desktop Main Menu */
.navbar-nav-custom {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.navbar-nav-custom > li {
    position: relative;
}

.navbar-nav-custom > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 11px;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav-custom > li:hover > a,
.navbar-nav-custom > li.active > a {
    color: var(--primary-blue);
}

.navbar-nav-custom .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.navbar-nav-custom > li:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdowns */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #edf2f7;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.navbar-nav-custom > li:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    position: relative;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    font-size: 13.5px;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-dropdown li a:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
    padding-left: 24px;
}

/* Nested Dropdowns (Level 3) */
.nav-dropdown-sub {
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    min-width: 260px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    border: 1px solid #edf2f7;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.nav-dropdown li:hover > .nav-dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Level 4 Submenu if needed */
.nav-dropdown-sub-sub {
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    min-width: 270px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #edf2f7;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    z-index: 1002;
    list-style: none;
    margin: 0;
}

.nav-dropdown-sub li:hover > .nav-dropdown-sub-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1e293b;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 1199px) {
    .navbar-nav-custom {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
}

/* Off-canvas Mobile Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.mobile-drawer-header img {
    height: 40px;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

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

.mobile-nav-list li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.mobile-nav-list .mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mobile-nav-list .mobile-submenu li a {
    font-size: 14px;
    color: #475569;
    padding: 8px 10px;
}

/* Page Breadcrumb Header */
.page-breadcrumb-area {
    background: linear-gradient(rgba(16, 118, 181, 0.88), rgba(10, 79, 125, 0.92)), url('../img/banner/banner-2.jpg') center/cover no-repeat;
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
}

.page-breadcrumb-area h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb-trail {
    font-size: 14px;
    color: #e2e8f0;
}

.breadcrumb-trail a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    text-decoration: underline;
}

/* Page Layout */
.page-content-area {
    padding: 60px 0 80px;
    background-color: #fbfcfd;
}

.page-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
}

.page-card h1, .page-card h2, .page-card h3, .page-card h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-card h1 {
    font-size: 24px;
}

.page-card p {
    line-height: 1.8;
    color: #475569;
    font-size: 15.5px;
    margin-bottom: 18px;
}

.page-card ul, .page-card ol {
    margin-bottom: 20px;
    padding-left: 25px;
    color: #475569;
    line-height: 1.8;
}

.page-card li {
    margin-bottom: 8px;
}

.page-card ol ol, .page-card ul ol, .page-card ol ul, .page-card ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.page-card table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.page-card table th {
    background: #f1f5f9;
    padding: 12px 16px;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.page-card table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

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

.sidebar-links li {
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14.5px;
}

.sidebar-links li a:hover,
.sidebar-links li.active a {
    color: var(--primary-blue);
    padding-left: 6px;
}

/* Contact & Counselling Form Card */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-label-custom .req {
    color: #ef4444;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    font-size: 14.5px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 118, 181, 0.15);
}

.btn-submit-counselling {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #d97706;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit-counselling:hover {
    background: #b45309;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    transform: translateY(-1px);
}

/* Alerts */
.form-alert {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.form-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Country Grid Cards */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.country-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

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

.country-card-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.country-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.country-card-btn {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Universal Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.custom-modal-box {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.custom-modal-header {
    background: linear-gradient(135deg, #1076b5, #0a4d78);
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
}

.custom-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.custom-modal-body {
    padding: 25px;
    overflow-y: auto;
}

/* Footer modern look */
.footer-main-area {
    background: #000000;
    color: #cbd5e1;
    padding: 70px 0 40px;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
}

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

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

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 14.5px;
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom-bar {
    background: #0a0e17;
    padding: 20px 0;
    border-top: 1px solid #1e293b;
    font-size: 13.5px;
    color: #64748b;
}

.footer-bottom-bar a {
    color: #94a3b8;
    text-decoration: none;
}

/* Hero Carousel Banner Styles */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel-item {
    min-height: 600px;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
}

.hero-slide-content {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 75px;
}

.hero-carousel-item .badge {
    background: rgba(255, 255, 255, 0.18);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
}

.hero-carousel-item h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hero-carousel-item p.lead {
    font-size: 19px;
    font-weight: 400;
    color: #f1f5f9;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-btn-primary {
    background: #d97706;
    border: 2px solid #d97706;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    padding: 13px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.hero-btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.hero-btn-glass {
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    padding: 13px 28px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.hero-btn-glass:hover {
    background: #ffffff;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-carousel-control:hover {
    background: #d97706;
    border-color: #d97706;
    opacity: 1;
}

.hero-carousel-control-prev {
    left: 25px;
}

.hero-carousel-control-next {
    right: 25px;
}

.hero-carousel-indicators {
    bottom: 55px;
    z-index: 15;
    margin-bottom: 0;
}

.hero-carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
    opacity: 0.7;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-carousel-indicators .active {
    width: 32px;
    border-radius: 10px;
    background-color: #d97706;
    border-color: #d97706;
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-carousel-item {
        min-height: 500px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-carousel-item h1 {
        font-size: 30px;
    }
    .hero-carousel-item p.lead {
        font-size: 16px;
    }
    .hero-carousel-control {
        display: none;
    }
}

/* Page content immediate visibility guarantee */
.page-card,
.page-card *,
.sidebar-widget,
.sidebar-widget *,
.page-content-area,
.page-body-content,
.page-breadcrumb-area {
    opacity: 1 !important;
    visibility: visible !important;
}

.page-card,
.sidebar-widget,
.page-content-area,
.page-breadcrumb-area {
    transform: none !important;
    filter: none !important;
}
