/* ============================================
   VEC Competitive Improvements CSS v1.0
   ============================================ */

/* ---- News Ticker Bar ---- */
.news-ticker {
    background: linear-gradient(90deg, #1a365d 0%, #2C5AA0 100%);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.85rem;
}

.news-ticker__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-ticker__label {
    background: #dc3545;
    color: white;
    padding: 3px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.news-ticker__track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
}

.news-ticker__items {
    display: flex;
    gap: 60px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
}

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

.news-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.news-ticker__item a {
    color: white;
    opacity: 0.95;
}

.news-ticker__item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.news-ticker__dot {
    width: 6px;
    height: 6px;
    background: #ffc107;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Admission Open Badge (Header) ---- */
.admission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.admission-badge__dot {
    width: 8px;
    height: 8px;
    background: #ffc107;
    border-radius: 50%;
    animation: dotBlink 1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Mega Menu ---- */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 24px;
    min-width: 520px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mega-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.mega-menu__item:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.mega-menu__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mega-menu__icon--medical { background: #fee2e2; }
.mega-menu__icon--engineering { background: #dbeafe; }
.mega-menu__icon--nursing { background: #fce7f3; }
.mega-menu__icon--management { background: #fef3c7; }
.mega-menu__icon--law { background: #e0e7ff; }
.mega-menu__icon--commerce { background: #d1fae5; }
.mega-menu__icon--paramedical { background: #ede9fe; }
.mega-menu__icon--all { background: #f3f4f6; }

.mega-menu__text {
    display: flex;
    flex-direction: column;
}

.mega-menu__title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.mega-menu__desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ---- Enquiry Popup Modal ---- */
.enquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.enquiry-modal__box {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.enquiry-modal.active .enquiry-modal__box {
    transform: scale(1) translateY(0);
}

.enquiry-modal__header {
    background: var(--bg-gradient);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.enquiry-modal__header h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: white;
}

.enquiry-modal__header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.enquiry-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.enquiry-modal__close:hover {
    background: rgba(255,255,255,0.4);
}

.enquiry-modal__body {
    padding: 24px;
}

.enquiry-modal__body .form-group {
    margin-bottom: 16px;
}

.enquiry-modal__body .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.enquiry-modal__body .form-control {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.enquiry-modal__body .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.enquiry-modal__submit {
    width: 100%;
    padding: 14px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-accent);
}

.enquiry-modal__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.enquiry-modal__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: var(--text-light);
}

.enquiry-modal__trust span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Floating Enquiry Button ---- */
.enquiry-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-accent);
}

.enquiry-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.enquiry-float svg {
    flex-shrink: 0;
}

/* ---- Enhanced WhatsApp Float ---- */
.whatsapp-float {
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---- Mobile Bottom CTA Bar ---- */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-cta-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mobile-cta-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    min-height: 44px;
}

.mobile-cta-bar__btn svg {
    flex-shrink: 0;
}

.mobile-cta-bar__btn--call {
    color: var(--primary-blue);
}

.mobile-cta-bar__btn--whatsapp {
    color: #25D366;
}

.mobile-cta-bar__btn--enquiry {
    background: var(--bg-gradient);
    color: white;
    border-radius: 8px;
}

.mobile-cta-bar__btn--menu {
    color: var(--text-light);
}

/* ---- Admission Process Timeline ---- */
.process-section {
    padding: 80px 0;
    background: white;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step__number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.process-step__icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.process-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.process-step__desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 10px 0 10px 20px;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .mega-dropdown.active .mega-menu {
        display: block;
    }

    .mega-menu__grid {
        grid-template-columns: 1fr;
    }

    .enquiry-float {
        display: none;
    }

    .news-ticker {
        font-size: 0.78rem;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .process-timeline::before {
        display: none;
    }

    .admission-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }

    .whatsapp-float {
        bottom: 80px;
    }

    .back-to-top {
        bottom: 140px !important;
    }

    .enquiry-float {
        display: none;
    }

    .main-footer {
        padding-bottom: 70px;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .process-step__number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .enquiry-modal__box {
        width: 95%;
        max-height: 85vh;
    }

    .news-ticker__label {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

@media (max-width: 576px) {
    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .process-step__number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .process-step__title {
        font-size: 0.85rem;
    }

    .process-step__desc {
        font-size: 0.75rem;
    }
}

/* ---- Form Success State ---- */
.form-success {
    text-align: center;
    padding: 30px 20px;
}

.form-success__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.form-success__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-success__text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- Study Abroad Dropdown ---- */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
    white-space: nowrap;
}

.has-dropdown .dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.has-dropdown .dropdown-menu li:last-child a {
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ---- Stagger Animation ---- */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-animation > *:nth-child(8) { animation-delay: 0.4s; }

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

/* ---- Card hover enhancement ---- */
a.course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ---- Details/Summary FAQ styling ---- */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary svg {
    transform: rotate(180deg);
}

details summary svg {
    transition: transform 0.3s ease;
}

/* ---- Print: hide new elements ---- */
@media print {
    .news-ticker,
    .mobile-cta-bar,
    .enquiry-float,
    .enquiry-modal,
    .admission-badge {
        display: none !important;
    }
}

/* ---- Mobile dropdown ---- */
@media (max-width: 768px) {
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.03);
        border-radius: 0;
        min-width: auto;
        display: none;
    }
    
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .has-dropdown .dropdown-menu li a {
        padding: 8px 30px;
        font-size: 0.85rem;
    }
}
