/* ================================================
   EFLA THEME - MAIN CSS
   Additional styles beyond style.css base
   ================================================ */

/* ---- LOGO STYLES ---- */
.efla-logo-text .logo-ef {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--efla-blue);
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

[data-theme="dark"] .efla-logo-text .logo-ef {
    color: var(--efla-blue-light);
}

.efla-logo-text .logo-tagline {
    font-size: 0.75rem;
    color: var(--efla-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.efla-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ---- PRELOADER ---- */
#efla-preloader {
    position: fixed;
    inset: 0;
    background: var(--efla-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--efla-blue);
    letter-spacing: -0.02em;
}

/* ---- NAVBAR ---- */
#efla-navbar .navbar-brand {
    text-decoration: none;
}

#efla-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

#efla-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--efla-amber);
    transition: var(--transition-fast);
    border-radius: 1px;
}

#efla-navbar .nav-link:hover::after,
#efla-navbar .nav-link.active::after {
    left: 0.75rem;
    right: 0.75rem;
}

#efla-navbar .nav-link:hover,
#efla-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

#efla-navbar.scrolled .nav-link {
    color: var(--efla-text);
}

#efla-navbar.scrolled .nav-link:hover,
#efla-navbar.scrolled .nav-link.active {
    color: var(--efla-blue);
    background: rgba(30,64,175,.08);
}

#efla-navbar .dropdown-menu {
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 200px;
}

#efla-navbar .dropdown-item {
    color: var(--efla-text);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

#efla-navbar .dropdown-item:hover {
    background: rgba(30,64,175,.08);
    color: var(--efla-blue);
}

/* Offcanvas menu */
.offcanvas {
    background: var(--efla-bg);
    border-left: 1px solid var(--efla-border);
}

.offcanvas .nav-link {
    color: var(--efla-text);
    padding: 0.6rem 0;
    font-weight: 500;
    border-bottom: 1px solid var(--efla-border-light);
}

.offcanvas .nav-link:hover {
    color: var(--efla-blue);
}

.offcanvas .dropdown-menu {
    background: var(--efla-bg-alt);
    border: none;
    border-left: 3px solid var(--efla-blue-light);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    margin-left: 0.5rem;
}

.offcanvas .dropdown-item {
    color: var(--efla-text-muted);
    font-size: 0.875rem;
    padding: 0.4rem 0;
}

/* Mobile nav search button */
.nav-search-btn {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
}

#efla-navbar.scrolled .nav-search-btn {
    color: var(--efla-text);
}

/* ---- HERO SECTION ---- */
.hero-badge .badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    font-family: var(--font-display);
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--efla-amber) 0%, #F97316 50%, var(--efla-amber) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    max-width: 550px;
}

.btn-lg-hero {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.hero-trust .trust-item {
    display: flex;
    align-items: center;
}

/* Hero blobs */
.hero-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--efla-blue-light);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--efla-purple);
    bottom: -100px;
    left: 10%;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--efla-amber);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes blob-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Hero visual (right side) */
.hero-visual {
    height: 500px;
}

.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    color: #fff;
    animation: float-card 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-top-right { top: 20px; right: 0; }
.card-bottom-left { bottom: 60px; left: 0; }
.card-center { top: 45%; left: 30%; }

.float-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.float-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.float-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Hero university logos */
.hero-logos-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl);
    padding: 1rem;
}

.logos-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.logos-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-uni-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: rgba(255,255,255,.9);
    padding: 3px;
}

.hero-uni-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 0.65rem;
    font-weight: 700;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- PARTNER LOGO TEXT ---- */
.partner-logo-text {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--efla-text-muted);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.partner-logo-text:hover {
    opacity: 1;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    color: var(--efla-blue);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--efla-blue);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

/* ---- SOCIAL LINKS ---- */
.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--efla-blue);
    border-color: var(--efla-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- FADE IN ANIMATION ---- */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease forwards;
    opacity: 0;
}

/* ---- PAGE HERO ---- */
.page-hero .page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
}

/* ---- UNIVERSITY SINGLE ---- */
.university-hero {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, var(--efla-blue-dark) 0%, var(--efla-purple) 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.university-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.university-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 100%);
}

.university-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem 0;
    width: 100%;
}

.university-logo-large {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255,255,255,.3);
    flex-shrink: 0;
}

.university-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.university-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* ---- APPLY FORM STYLES ---- */
.apply-page-hero {
    background: linear-gradient(135deg, var(--efla-blue-dark) 0%, var(--efla-purple) 100%);
    padding: 100px 0 50px;
    color: #fff;
}

.form-section {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--efla-border);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.upload-area {
    border: 2px dashed var(--efla-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--efla-blue);
    background: rgba(30,64,175,.05);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ---- ABOUT PAGE ---- */
.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--efla-border);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    border-color: var(--efla-blue);
    transform: scale(1.05);
}

/* ---- WHY US PAGE ---- */
.why-us-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--efla-blue) 0%, var(--efla-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

/* ---- CONTACT PAGE ---- */
.map-placeholder {
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    border-radius: var(--radius-xl);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--efla-text-muted);
    font-size: 1.1rem;
    overflow: hidden;
    position: relative;
}

.map-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-xl);
}

/* ---- STUDENT LOGIN PAGE ---- */
.login-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--efla-bg-alt);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--efla-border);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

/* ---- SIDEBAR ---- */
.efla-widget {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--efla-border);
    padding: 1.5rem;
}

.efla-widget .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--efla-border);
    color: var(--efla-text);
}

/* ---- 404 PAGE ---- */
.page-404-content {
    max-width: 500px;
    margin: 0 auto;
}

/* ---- SEARCH FORM ---- */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .efla-form-control {
    flex: 1;
}

/* ---- UTILITY HELPERS ---- */
.fw-black { font-weight: 900; }
.fw-600 { font-weight: 600; }

.text-blue { color: var(--efla-blue); }
.text-purple { color: var(--efla-purple); }
.text-amber { color: var(--efla-amber); }
.text-emerald { color: var(--efla-emerald); }

.bg-blue-soft { background: rgba(30,64,175,.08); }
.bg-purple-soft { background: rgba(124,58,237,.08); }
.bg-amber-soft { background: rgba(245,158,11,.08); }
.bg-emerald-soft { background: rgba(16,185,129,.08); }

/* ---- TABLE OF CONTENTS SECTION INDICATOR ---- */
.toc-nav {
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--efla-border);
    padding: 1.25rem;
    max-height: calc(100vh - var(--navbar-height) - 4rem);
    overflow-y: auto;
}

.toc-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--efla-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.toc-nav a:hover,
.toc-nav a.active {
    background: rgba(30,64,175,.08);
    color: var(--efla-blue);
}

/* ---- RESPONSIVE FIXES ---- */
@media (max-width: 991.98px) {
    .hero-visual { display: none; }
    .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
}

@media (max-width: 767.98px) {
    .university-hero { height: 280px; }
    .form-section { padding: 1.25rem; }
    .stats-section .row { row-gap: 0; }
    .stat-item { padding: 0.75rem 0.5rem; }
}
