/* ===== GLOBAL STYLES ===== */
* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8fafd;
    overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0c1e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.preloader {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,107,107,0.3), rgba(72,219,251,0.3), rgba(150,206,180,0.3));
    filter: blur(30px);
    animation: pulseGlowCustom 2.2s infinite alternate;
}

.progress-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(20,30,50,0.3);
    box-shadow: inset 0 0 30px #00000055;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    left: 50%;
    animation: floatParticle 3s infinite ease-in-out;
}

@keyframes floatParticle {
    0% { transform: translate(0,0) scale(1); opacity: 0.8; }
    50% { transform: translate(10px, -15px) scale(1.5); opacity: 0.4; }
    100% { transform: translate(0,0) scale(1); opacity: 0.8; }
}

.ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-width: 4px;
    width: 160px;
    height: 160px;
    animation: spin 4s linear infinite;
}

.ring-1 {
    width: 170px;
    height: 170px;
    border-width: 5px;
    animation: spin 5s linear infinite;
}

.ring-2 {
    width: 140px;
    height: 140px;
    border-width: 3px;
    animation: spin-reverse 6s linear infinite;
}

.ring-3 {
    width: 110px;
    height: 110px;
    border-width: 4px;
    animation: spin 7s linear infinite;
}

.dotted-ring {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255,255,255,0.3);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseGlowCustom {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

.logo-container {
    position: relative;
    z-index: 20;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px #96ceb4;
}

.logo-container img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 50%;
}

.logo-fallback {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(145deg, #5f2b8c, #c7248a);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== BRANDING ===== */
.brand-logo-square {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 64px;
    height: 64px;
}

.brand-logo-square img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.hero-logo .brand-logo-square {
    width: 120px;
    height: 120px;
}

.hero-logo .brand-logo-square img {
    width: 96px;
    height: 96px;
}

/* ===== HEADER ===== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 0;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-toggler {
    border: 2px solid #5f2b8c;
    padding: 0.4rem 0.6rem;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #162b4d;
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #c7248a;
}

.header-login-btn {
    border-radius: 60px;
    background: transparent;
    border: 2px solid #5f2b8c;
    color: #5f2b8c;
    padding: 0.4rem 2rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
    text-decoration: none;
    display: inline-block;
}

.header-login-btn:hover {
    background: #5f2b8c;
    color: white;
}

/* ===== BUTTONS ===== */
.btn-violet {
    background: #5f2b8c;
    color: white;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 8px 18px -6px #5f2b8c66;
    text-decoration: none;
    display: inline-block;
}

.btn-violet:hover {
    background: #4a1f6e;
    transform: translateY(-2px);
    color: white;
}

.btn-fuchsia-outline {
    border: 2px solid #c7248a;
    color: #c7248a;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-fuchsia-outline:hover {
    background: #c7248a;
    color: white;
}

.btn-consult {
    background: #c7248a;
    color: white;
    border-radius: 40px;
    padding: 0.4rem 1.5rem;
    border: none;
    font-weight: 500;
    margin-top: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-consult:hover {
    background: #a01d6e;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: radial-gradient(ellipse at 30% 40%, #c7248a20, #5f2b8c30, #162b4dd9);
    min-height: 65vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding: 3rem 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #f8fafd, transparent);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: calc(1.8rem + 1.5vw);
}

/* ===== CARDS ===== */
.program-card,
.university-card,
.expert-card,
.dba-card,
.insight-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 20px 30px -10px rgba(95, 43, 140, 0.15);
    transition: 0.2s;
    height: 100%;
    border: 1px solid #f0f0ff;
}

.program-card:hover,
.university-card:hover,
.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 40px -15px #c7248a80;
}

.program-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.expert-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.insight-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20px;
}

.university-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    background: #f8f8ff;
    padding: 10px;
    margin-bottom: 1rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn-group .btn {
    border-radius: 60px;
    background: #eff2f7;
    padding: 0.5rem 1.8rem;
    font-weight: 500;
    border: none;
    margin: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn-group .btn.active {
    background: #5f2b8c;
    color: white;
    box-shadow: 0 10px 20px -5px #5f2b8c;
}

/* ===== SLIDERS ===== */
.owl-carousel .item {
    padding: 10px;
}

.logo-slider img {
    height: 70px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(0.4) opacity(0.7);
    transition: 0.3s;
}

.logo-slider img:hover {
    filter: none;
    transform: scale(1.05);
}

.zoom-img {
    overflow: hidden;
    border-radius: 28px;
}

.zoom-img img {
    transition: transform 0.4s;
    width: 100%;
    display: block;
}

.zoom-img:hover img {
    transform: scale(1.08);
}

/* ===== DBA SLIDE CARD ===== */
.dba-slide-card {
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    color: white;
    position: relative;
}

.dba-slide-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0a0c1e, #5f2b8c70, #162b4d90);
    border-radius: 28px;
}

.dba-slide-card .content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px black;
}

/* ===== FAQ ===== */
.accordion-item {
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 5px 20px #e9e0f0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #162b4d, #2b1e4a);
    color: white;
    border-radius: 60px;
    padding: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #0b1629;
    color: #ccd;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer a {
    color: #ccd;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* ===== STICKY ENQUIRY BUTTON ===== */
.sticky-enquiry {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(145deg, #c7248a, #5f2b8c);
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 1rem 0.6rem;
    border-radius: 20px 0 0 20px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    box-shadow: -5px 5px 15px rgba(95, 43, 140, 0.4);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.sticky-enquiry i {
    writing-mode: horizontal-tb;
    font-size: 1.4rem;
}

.sticky-enquiry:hover {
    background: linear-gradient(145deg, #5f2b8c, #c7248a);
    padding-right: 1rem;
    box-shadow: -8px 8px 20px rgba(199, 36, 138, 0.5);
    color: white;
}

/* ===== LIVE CHAT WIDGET ===== */
.chat-sticky-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-popup {
    width: 300px;
    max-width: 85vw;
    background: white;
    border-radius: 28px 28px 10px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chat-popup.show {
    display: flex;
}

.chat-header {
    background: linear-gradient(145deg, #5f2b8c, #c7248a);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    background: #f9f5ff;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.chat-agent img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    object-fit: cover;
}

.chat-message {
    background: white;
    border-radius: 18px 18px 18px 5px;
    padding: 0.8rem;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 0.5rem;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
}

.chat-input button {
    background: #c7248a;
    border: none;
    color: white;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    cursor: pointer;
}

.chat-button {
    background: #c7248a;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(199, 36, 138, 0.5);
    cursor: pointer;
    border: 3px solid white;
    transition: transform 0.2s;
}

.chat-button:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 20px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        margin-left: 0;
    }

    .header-login-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo .brand-logo-square {
        margin: 0 auto;
    }

    .sticky-enquiry {
        font-size: 0.9rem;
        padding: 0.8rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .brand-logo-square {
        width: 50px;
        height: 50px;
        padding: 5px;
    }

    .brand-logo-square img {
        width: 40px;
        height: 40px;
    }

    .hero-logo .brand-logo-square {
        width: 90px;
        height: 90px;
    }

    .hero-logo .brand-logo-square img {
        width: 70px;
        height: 70px;
    }

    .program-card {
        padding: 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .chat-sticky-container {
        right: 10px;
        bottom: 15px;
    }

    .chat-button {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .sticky-enquiry {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

.rounded-5 {
    border-radius: 28px !important;
}