/* --- 1. PREMIUM DESIGN TOKENS --- */
:root {
    --primary-color: #0041a3;
    --primary-dark: #002d72;
    --primary-light: #eef4ff;
    --secondary-color: #d11d1d;
    --secondary-dark: #b11313;
    --text-dark: #121212;
    --text-light: #525252;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-light-blue: #f4f8fb;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 65, 163, 0.08);
    --gradient-premium: linear-gradient(135deg, #0041a3 0%, #002d72 100%);
    --shadow-premium: 0 20px 40px rgba(0, 65, 163, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

}

/* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: #fff;
    overflow-x: hidden;
}

.text-primary {
    --bs-text-opacity: 1;
    color: #d5060c !important;
}

.bg-soft {
    background-color: var(--bg-light);
}

.bg-light-blue {
    background-color: var(--bg-light-blue);
}

.text-blue {
    color: #0041a3 !important;
}

.bg-primary {
    background: linear-gradient(135deg, #0047b1, #0047b1) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

p {
    font-size: 1.05rem;
    color: var(--text-light);
}

.subtitle {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

/* --- 3. PREMIUM NAVIGATION --- */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 20px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: white;
}

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 700;
    color: var(--primary-dark) !important;
    padding: 10px 22px !important;
    font-size: 1.05rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-enquiry {
    background: var(--gradient-premium);
    color: white !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 65, 163, 0.2);
    transition: var(--transition);
}

.btn-enquiry:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 65, 163, 0.3);
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 180px 0 140px;
    background: url('../img/banner-bg.webp') no-repeat center center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 45, 114, 0.90) 0%, rgba(0, 65, 163, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard Cards (fmge, feature cards) */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.text-blue {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- 5. FOOTER & PREMIUM SECTIONS --- */
.bg-premium {
    background: var(--gradient-premium);
    color: white !important;
}

footer {
    background: var(--primary-dark);
    color: #b0b9ce;
    padding: 100px 0 0;
}

footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

footer .footer-link {
    color: #b0b9ce;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s;
}

footer .footer-link:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.social-circle {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    transition: all 0.3s;
}

.social-circle:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
}

.copyright-bar {
    background: #08162e;
    padding: 25px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.expert-section {
    position: relative;
    overflow: hidden;
}

.expert-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 1;
}

/* Tables */
.table-container {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-header-red {
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
}

.custom-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border: none;
}

.custom-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.custom-table tr:hover td {
    background-color: var(--primary-light);
}

/* Floating Icons from Reference */
.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    opacity: 0.8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

/* --- 6. SUPPORT SERVICES SECTION --- */
.support-services {
    padding: 100px 0;
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
}

.support-services .max-width-700 {
    max-width: 700px;
}

.support-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(0, 65, 163, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-premium);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.support-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 65, 163, 0.15);
    border-color: transparent;
}

.support-card:hover::before {
    opacity: 1;
}

.support-card:hover h5,
.support-card:hover p,
.support-card:hover .support-icon {
    color: #fff !important;
}

.support-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 65, 163, 0.05);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    background: rgba(255, 255, 255, 0.2);
}

.support-card h5 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.support-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* --- 7. JOURNEY LAYOUT STYLES --- */
.journey-section {
    background: #f6faff;
    position: relative;
}

.phase-row {
    display: flex;
    flex-wrap: wrap;
    /* margin-bottom: 80px; */
    position: relative;
}

.phase-info {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.social-icons a:hover {
    color: #0041a3;
    background-color: #fff !important;
}

@media (min-width: 1200px) {
    .phase-info {
        flex: 0 0 25%;
        max-width: 25%;
        text-align: left;
        padding-right: 40px;
        position: sticky;
        top: 120px;
        height: min-content;
    }

    .phase-grid {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

.phase-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.1;
    color: var(--primary-color);
    margin-bottom: -1.5rem;
}

.phase-label {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 10px;
    position: relative;
}

.phase-label::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

@media (min-width: 1200px) {
    .phase-label::after {
        margin: 15px 0 0;
    }
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 50px;
}

/* Redesigning Cards for Journey */
.journey-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.journey-card:hover {
    box-shadow: 0 15px 35px rgba(0, 65, 163, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.journey-icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.journey-card:hover .journey-icon-wrap {
    background: var(--primary-color);
    color: #fff;
}

.journey-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-icon-wrap svg {
    stroke: #fff;
    transform: scale(1.1);
}

.journey-card h6 {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.journey-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-light);
}

.comparison-table th {
    background: var(--secondary-color) !important;
    color: white;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-light-blue);
    width: 20%;
}

.comparison-table td {
    vertical-align: top;
    padding: 15px;
}

.list-premium li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    list-style: none;
}

.list-premium li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.subject-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light-blue);
    border: 1px solid rgba(0, 65, 163, 0.1);
    border-radius: 50px;
    margin: 0 5px 10px 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.subject-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.main-para p {
    text-align: justify;
}

/* --- 8. HOSTEL FACILITY STYLES --- */
.hostel-facility-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hostel-facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.facility-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.hostel-facility-card:hover .facility-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.hostel-facility-card h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
    line-height: 1.4;
}

.list-premium {
    padding-left: 0;
}

.list-premium li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    list-style: none;
    color: var(--text-light);
    font-weight: 500;
}

.list-premium li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #d5060c;
    /* Matches user's new primary */
    font-size: 1.15rem;
}

.bio-btn-wrapper {
    position: fixed;
    left: 40px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 999;
}

/* Your existing button */
.bio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #00327f;
    color: #fff;
    padding: 10px 12px 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #fff;
    transform: rotate(-90deg);
    /* better direction */
    transform-origin: left center;
}

.bio-btn .icon {
    width: 44px;
    height: 44px;
    background: #d5060c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Hover */
.bio-btn:hover {
    background: var(--primary-color);
}

.bio-btn:hover .icon {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* --- Request A Quote Modal (Enquiry Style) --- */
#myModal .form-group.has-feedback {
    margin-bottom: 7px;
}

#chatBtn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    z-index: 9999;
}



#myModal .modal-content {
    border-radius: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

#myModal .modal-header {
    background: #fff;
    padding: 20px 30px;
    border-bottom: 2px solid var(--primary-color);
}

#myModal .modal-title {
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

#myModal .btn-close {
    background: #ff0000;
    padding: 7px 12px 16px 12px;
    border-radius: 0;
    opacity: 1;
    color: #fff;
    font-weight: 800;

}

#myModal .modal-body {
    padding: 30px;
}

#myModal .form-control {
    border-radius: 0 !important;
    padding: 15px 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-size: 15px;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

#myModal .form-control:focus {
    background: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(255, 92, 0, 0.05) !important;
    outline: none;
}

#myModal .Submit-box {
    background: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
    width: 100%;
}

#myModal .Submit-box:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.1);
}

#myModal #captchaImg {
    background: #edf2f7 !important;
    border: 1px dashed #cbd5e1 !important;
    text-align: center;
    font-weight: 700;
    color: var(--navy-main);
    height: 52px;
    line-height: 52px;
}

#myModal a img {
    background: #f1f5f9;
    padding: 10px;
    transition: 0.3s;
    width: 54px;
    height: 54px;
}

#myModal a img:hover {
    background: #e2e8f0;
}

#myModal .modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

#myModal .moClose {
    border-radius: 0;
    padding: 10px 24px;
    background: #eee;
    border: none;
    font-weight: 600;
    color: var(--text-secondary);
    transition: 0.3s;
}

#myModal .moClose:hover {
    background: var(--secondary-dark);
    color: #fff;
}

img {
    width: 100%;
}

@media (max-width:1024px) {
    ul.navbar-nav.ms-auto.align-items-center {
        align-items: start !important;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 50px;
    }

    h2.text-white.mb-4 {
        font-size: 34px;
    }

    img.img-fluid.rounded-circle.border.border-5.border-white.border-opacity-30 {
        max-width: 100%;
    }

    h2 {
        font-size: 34px;
    }
}

@media (max-width:768px) {
    .rw-dir {
        flex-direction: column-reverse;
    }



}

@media (max-width:425px) {

    .g-5,
    .gx-5 {
        --bs-gutter-x: 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    .p-5.bg-premium.text-white.rounded-4.h-100.shadow-premium.border-1.border-white.border-opacity-10 {
        padding: 25px 20px !important;
    }

    .bio-btn {
        gap: 12px;
        padding: 4px 4px 4px 16px;
    }

    .navbar-brand img {
        height: 50px;
    }

    p.copyright-text {
        font-size: 15px;
    }

    .d-md-flex.justify-content-between.align-items-center.text-center.text-md-start p {
        font-size: 15px;
        padding-bottom: 8px;
    }

    .bio-btn-wrapper {
        left: 30px;
    }
}

@media (max-width:375px) {
    section.px-4 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .navbar-brand img {
        height: 40px;
    }

    h2.text-white.mb-4 {
        font-size: 28px;
    }
}

.custom-links li {
    position: relative;
    padding-left: 26px;
}

/* ICON */
.custom-links li::before {
    content: "🡲";
    position: absolute;
    left: 0;
    top: 22%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-size: contain;
    transition: 0.3s;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* LINK STYLE */
.custom-links li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

/* HOVER EFFECT */
.custom-links li:hover::before {
    transform: translateY(-50%) translateX(4px);
}

.custom-links li a:hover {
    color: #ffffff !important;
}

footer p,
footer a,
footer li {
    font-size: 16px !important;
}

.text-justify {
    text-align: justify !important;
}

/* Dropdown box */
.custom-dropdown {
    max-height: 450px;
    overflow-y: auto;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

/* Items */
.custom-dropdown .dropdown-item {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.3s;
}

/* Hover effect */
.custom-dropdown .dropdown-item:hover {
    /* background: linear-gradient(45deg, #002d72, #b11313); */
    background-color: #d11d1d;
    color: #fff;
    transform: translateX(5px);
}

/* ---------------- */
/* DESKTOP HOVER */
/* ---------------- */
@media (min-width: 992px) {

    .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ---------------- */
/* MOBILE FIX */
/* ---------------- */
@media (max-width: 991px) {

    .dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .custom-dropdown {
        max-height: 250px;
    }
}

@media (max-width:1340px) {
    a.nav-link {
        font-size: 16px !important;
        padding: 10px 15px !important;
    }
}