/* ==========================================================================
   SHRI IHARI EDUCATION CONSULTANCY - EXACT MATCH OF REFERENCE DESIGN IMAGE
   ========================================================================== */

:root {
    /* Color Palette matching Reference Image */
    --navy-bg: #08162F;
    --navy-card: #0A1F3E;
    --navy-dark: #050E1F;
    
    --gold-primary: #F59E0B;
    --gold-dark: #D97706;
    --gold-bright: #FFB84C;
    --gold-light: #FFF9ED;
    
    --green-primary: #00C853;
    --green-dark: #009624;
    
    --blue-primary: #1D4ED8;
    --blue-dark: #1E40AF;
    
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-light: #E5E7EB;
    --border-subtle: rgba(255, 255, 255, 0.15);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.25);
    --shadow-button: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy-bg);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary); }
.text-bright-gold { color: var(--gold-bright); }
.text-green { color: var(--green-primary); }
.mt-2 { margin-top: 0.5rem; }

/* Gradient Text for MBBS Abroad 2026 */
.gradient-text {
    color: var(--gold-bright);
    background: linear-gradient(135deg, #FFD580 0%, var(--gold-bright) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-button);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-submit-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
    color: var(--white);
    height: 54px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-block { width: 100%; }

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 1. HEADER (SCROLLABLE HEADER WITH ORANGE CALL BUTTON) */
.main-header {
    background: var(--white);
    height: 64px;
    position: relative; /* Scrollable header */
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--gold-primary);
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.btn-header-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}

.btn-header-call:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* 2. HERO SECTION WITH VIVID TEXT-FREE BACKGROUND IMAGE */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(8, 22, 47, 0.20) 0%, rgba(5, 14, 31, 0.40) 100%), url('hero_bg.png') no-repeat center top / cover;
    padding: 1rem 0 2.5rem 0; /* Minimal top gap */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 184, 76, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hero-headline {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero-subheading {
    font-size: 1.1rem;
    color: #F1F5F9;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* 3D Realistic Cap & Globe Graphic on Right */
.hero-right-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cap-globe-orb {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.35) 0%, rgba(8, 22, 47, 0.8) 100%);
    border: 1.5px solid rgba(255, 184, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(29, 78, 216, 0.4);
}

.globe-art {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.25);
}

.cap-art {
    position: absolute;
    top: -20px;
    font-size: 4.5rem;
    color: var(--gold-bright);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    transform: rotate(10deg);
}

/* 3. SCHOLARSHIP WHITE CARD MATCHING REFERENCE IMAGE */
.scholarship-white-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--gold-bright);
}

.sh-trophy-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 2px dashed var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.sh-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--navy-bg);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.sh-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 4. EVENT DETAILS CARD (3 COLUMNS WITH DIVIDERS) */
.event-details-card {
    background: var(--navy-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.event-col {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
}

.event-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.event-info small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.event-info strong {
    font-size: 1.05rem;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.event-info .sub-info {
    font-size: 0.78rem;
    color: var(--text-light);
    display: block;
}

.event-divider {
    width: 1px;
    height: 44px;
    background: var(--border-subtle);
    margin: 0 1rem;
}

/* 5. THREE HERO CTA BUTTONS MATCHING REFERENCE IMAGE */
.hero-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow-button);
    transition: all 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn-wa {
    background: linear-gradient(135deg, #00C853 0%, #009624 100%);
}

.cta-btn-call {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.cta-btn-reg {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.cta-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cta-title {
    display: block;
    font-size: 0.92rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.cta-sub {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 6. SCHOLARSHIP REGISTRATION FORM CARD (GLASSMORPHISM TRANSLUCENT) */
.hero-form-card {
    background: rgba(255, 255, 255, 0.55); /* High transparency allows hero background artwork to shine right through */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    padding: 2.25rem 2rem;
    border: 3px solid var(--gold-primary);
}

.form-header-line {
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-cap-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.35rem;
}

.form-title-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.form-title-with-lines .line {
    height: 2px;
    width: 40px;
    background: var(--gold-bright);
}

.form-title-with-lines h2 {
    font-size: 1.5rem;
    color: var(--navy-bg);
    font-weight: 900;
}

.form-header-line p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.quick-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-bg);
}

.req { color: #EF4444; }
.opt { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }

.label-with-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-inline {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

.input-icon-wrap i {
    position: absolute;
    left: 1rem;
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
}

.input-icon-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: rgba(248, 250, 252, 0.85);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.input-icon-wrap input:focus {
    border-color: var(--gold-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-trust-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* 7. FOOTER MATCHING REFERENCE IMAGE */
.main-footer {
    background: var(--navy-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid-3 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 48px;
    margin-bottom: 0.75rem;
    background: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.footer-brand .tagline {
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.footer-brand .desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.admin-login-link-wrap {
    margin-top: 1rem;
}

.admin-login-link {
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-login-link:hover {
    text-decoration: underline;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--gold-bright);
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-contact i {
    color: var(--gold-bright);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: var(--gold-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: #64748B;
}

/* 8. STICKY BOTTOM MOBILE BAR MATCHING REFERENCE IMAGE */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    z-index: 9999;
    grid-template-columns: 1fr 1fr 1.3fr;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.m-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-heading);
}

.m-call { background: var(--blue-primary); }
.m-wa { background: var(--green-primary); }
.m-reg { background: var(--gold-primary); }

/* THANK YOU MODAL */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 22, 47, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-backdrop.active { display: flex; }

.modal-box {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-card);
    border: 3.5px solid var(--gold-primary);
}

.modal-close {
    position: absolute;
    top: 0.85rem; right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-icon { font-size: 3.2rem; margin-bottom: 0.85rem; }
.modal-box h3 { font-size: 1.5rem; margin-bottom: 0.4rem; color: var(--navy-bg); }
.modal-message { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.15rem; }

.modal-details-box {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.88rem;
    text-align: left;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.modal-details-box p { margin-bottom: 0.35rem; }

.btn-wa { background: var(--green-primary); color: var(--white); }
.btn-wa:hover { background: var(--green-dark); }

.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text-dark);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-right-graphic { display: none; }
    .footer-grid-3 { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px) {
    .main-header { height: 60px; position: relative; }
    .brand-logo { height: 48px; }
    .btn-header-call { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
    
    .hero-section {
        background: linear-gradient(180deg, rgba(8, 22, 47, 0.15) 0%, rgba(5, 14, 31, 0.35) 100%), url('hero_mobile_bg.png') no-repeat center top / cover;
        padding: 1.75rem 0 2.5rem 0;
    }
    
    .hero-headline { font-size: 2rem; }
    .hero-subheading { font-size: 0.95rem; }
    
    .scholarship-white-card {
        padding: 1rem;
        gap: 0.85rem;
    }
    .sh-trophy-circle { width: 50px; height: 50px; font-size: 1.4rem; }
    .sh-title { font-size: 1.15rem; }

    .event-details-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    .event-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .hero-cta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-row-2 { grid-template-columns: 1fr; gap: 1rem; }
    .hero-form-card { padding: 1.5rem 1.15rem; }

    .mobile-sticky-bar { display: grid; }
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 1.75rem; }
    .badge { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
    .input-icon-wrap input { font-size: 16px; /* Prevents mobile input focus zoom */ }
}
