@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Biennele Custom';
    src: url('Biennale.otf') format('opentype');
    font-weight: 700;
}

:root {
    --primary-dark: #1e1645;
    --primary-light: #3a2d7a;
    --action-start: #FF7E5F;
    --action-end: #FEB47B;
    --accent-lavender: #7c78e6;
    --highlight-gold: #ffcc70;
    --text-heading: #0f0f1e;
    --text-body: #4a4a68;
    --bg-light: #f4f5f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 12px 40px 0 rgba(30, 22, 69, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Biennele Custom', 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6, .btn, .nav-links a {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block; padding: 14px 32px; border-radius: 50px;
    font-weight: 700; cursor: pointer; text-align: center;
    transition: all 0.3s ease; border: none; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px;
}

.btn-primary { background: linear-gradient(90deg, var(--action-start), var(--action-end)); color: white !important; box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 126, 95, 0.6); opacity: 0.95; }
.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.8); color: white; }
.btn-outline:hover { background: white; color: var(--primary-dark); border-color: white; }
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; position: relative; display: inline-block; }
.section-sub { font-size: 1.125rem; color: var(--text-body); max-width: 700px; margin: 0 auto 3rem auto; }

header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px 0; background: transparent; }
header.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); padding: 10px 0; }
body.page-dark-header header:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.95); }
body.page-dark-header header:not(.scrolled) .mobile-toggle { color: white; }
body.page-dark-header header:not(.scrolled) .logo-white { opacity: 1; transform: scale(1); }
body.page-dark-header header:not(.scrolled) .logo-gradient { opacity: 0; transform: scale(0.95); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { position: relative; padding: 8px 15px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; background: transparent; min-width: 120px; min-height: 50px; }
.logo-img { height: 45px; width: auto; object-fit: contain; display: block; transition: all 0.4s ease; }
.logo-white { position: absolute; opacity: 1; transform: scale(1); }
.logo-gradient { position: absolute; opacity: 0; transform: scale(0.95); }
header.scrolled .logo-white { opacity: 0; transform: scale(1.05); }
header.scrolled .logo-gradient { opacity: 1; transform: scale(1); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.95); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
header.scrolled .nav-links a { color: var(--text-heading); }
.nav-links a:hover, .nav-links a.active { color: var(--action-start); }
.mobile-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }
header.scrolled .mobile-toggle { color: var(--primary-dark); }

footer { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: white; padding: 80px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { opacity: 0.8; color: white; }
.footer-links a:hover { opacity: 1; color: var(--highlight-gold); transform: translateX(5px); display: inline-block; }
footer h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
footer p { color: rgba(255, 255, 255, 0.8); }
.social-links { display: flex; gap: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; color: white; }
.social-links a:hover { background: var(--action-start); }
.copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; font-size: 0.9rem; opacity: 0.6; color: white; }

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 70px; right: -100%; background: white; flex-direction: column; width: 100%; padding: 40px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: 0.3s; align-items: flex-start; height: calc(100vh - 70px); overflow-y: auto; }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--text-heading); width: 100%; border-bottom: 1px solid #eee; padding: 15px 0; font-size: 1.1rem; }
    .mobile-toggle { display: block; }
}

.hero { position: relative; background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); min-height: 100vh; display: flex; align-items: center; color: white; padding-top: 80px; overflow: hidden; border-bottom-right-radius: 120px; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; }
.blob-1 { width: 500px; height: 500px; background: var(--accent-lavender); top: -200px; right: -100px; opacity: 0.3; }
.blob-2 { width: 350px; height: 350px; background: var(--action-start); bottom: -50px; left: -50px; opacity: 0.2; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { color: white; font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; }
.hero-text p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 35px; max-width: 540px; color: white; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 50px; }
.trust-badge { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.1); padding: 16px 24px; border-radius: 16px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); }
.hero-img { width: 100%; max-width: 550px; height: auto; object-fit: cover; border-radius: 20px; mask-image: linear-gradient(to bottom, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%); }

.stats-section { background: white; padding: 40px 0; margin-top: -60px; position: relative; z-index: 2; width: 90%; margin-left: auto; margin-right: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 5px; }
.stat-label { font-size: 1rem; color: var(--text-body); font-weight: 600; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { padding: 40px 30px; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; background: white; background: var(--glass-bg); border: 1px solid white; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(44, 34, 85, 0.1); }
.service-icon { width: 70px; height: 70px; background: rgba(143, 139, 243, 0.15); color: var(--accent-lavender); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 1.8rem; }
.service-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.service-card p { font-size: 1rem; color: var(--text-body); }
.accent-line { width: 40px; height: 4px; background: var(--action-start); margin-top: 20px; border-radius: 2px; }

.why-us { background: white; position: relative; }
.features-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 40px; }
.feature-item { position: relative; padding-left: 20px; }
.big-number { font-size: 5rem; font-weight: 900; color: rgba(143, 139, 243, 0.1); position: absolute; top: -35px; left: -20px; z-index: 0; line-height: 1; }
.feature-content { position: relative; z-index: 1; }
.feature-content h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text-heading); }
.feature-content p { color: var(--text-body); }

.process-box { padding: 60px; background: white; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid rgba(255,255,255,0.5); }
.testimonial-card { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); position: relative; border: 1px solid rgba(0,0,0,0.03); }
.quote-icon { font-size: 3rem; color: var(--highlight-gold); opacity: 0.5; margin-bottom: 20px; }
.testimonial-text { font-style: italic; margin-bottom: 25px; font-size: 1.05rem; color: var(--text-heading); font-weight: 500; }
.student-name { font-weight: 700; color: var(--primary-dark); }
.student-dest { font-size: 0.9rem; color: var(--accent-lavender); font-weight: 600; }

.faq-item { background: white; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); overflow: hidden; border: 1px solid #eee; }
.faq-question { padding: 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-heading); }
.faq-question:hover { background: #fafafa; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--text-body); }
.faq-item.active .faq-answer { padding-bottom: 25px; max-height: 200px; overflow-y: auto; }
.toggle-icon { transition: 0.3s; color: var(--accent-lavender); }
.faq-item.active .toggle-icon { transform: rotate(180deg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: white; padding: 50px; border-radius: 24px; box-shadow: 0 20px 40px rgba(44, 34, 85, 0.2); }
.contact-info-box h2, .contact-info-box p { color: white; }
.contact-item { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 20px; }
.contact-item i { color: var(--highlight-gold); font-size: 1.3rem; margin-top: 4px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: white; font-size: 1rem; color: var(--text-heading); transition: 0.3s; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-lavender); box-shadow: 0 0 0 3px rgba(143, 139, 243, 0.2); }
.contact-form textarea { resize: vertical; min-height: 140px; }

.blog-hero { position: relative; background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); padding-top: 180px; padding-bottom: 100px; color: white; overflow: hidden; border-bottom-right-radius: 100px; text-align: center; }
.blog-listing { padding: 90px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }
.blog-card { background: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(44, 34, 85, 0.1); }
.blog-card-image { width: 100%; height: 220px; object-fit: cover; }
.blog-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.85rem; color: var(--accent-lavender); font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }
.blog-card p { font-size: 1rem; color: var(--text-body); margin-bottom: 25px; flex-grow: 1; }
.read-more { display: inline-block; font-weight: 700; color: var(--action-start); transition: 0.2s; }
.read-more:hover { color: var(--primary-dark); transform: translateX(5px); }

.policy-hero { position: relative; background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); padding-top: 180px; padding-bottom: 100px; color: white; overflow: hidden; border-bottom-right-radius: 100px; text-align: center; }
.policy-content { padding: 80px 60px; background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; box-shadow: var(--glass-shadow); margin: -60px auto 60px auto; max-width: 1000px; position: relative; z-index: 5; border: 1px solid var(--glass-border); }
.policy-content h2 { font-size: 2.2rem; margin-top: 50px; margin-bottom: 25px; color: var(--primary-dark); border-bottom: 2px solid rgba(143, 139, 243, 0.2); padding-bottom: 15px; }
.policy-content h3 { font-size: 1.4rem; margin-top: 35px; margin-bottom: 15px; color: var(--primary-light); }
.policy-content p { margin-bottom: 20px; color: var(--text-body); line-height: 1.8; }
.policy-content ul { margin: 10px 0 20px 20px; list-style: disc; }
.policy-content ul li { margin-bottom: 10px; padding-left: 10px; }

.admin-section { padding: 120px 0; min-height: 100vh; background: var(--bg-light); }
.admin-card { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-lavender); box-shadow: 0 0 0 3px rgba(124, 120, 230, 0.1); }
.form-group textarea { min-height: 200px; resize: vertical; }
.image-preview { width: 100%; height: 200px; background: #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-top: 10px; overflow: hidden; border: 2px dashed #ccc; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.back-link { color: var(--accent-lavender); font-weight: 600; }

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-img { margin: 0 auto; }
    .trust-badge { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .features-container { grid-template-columns: 1fr; gap: 50px; }
    .section-title { font-size: 2rem; }
    .big-number { font-size: 4rem; }
    .stats-section { width: 100%; border-radius: 0; margin-top: 0; box-shadow: none; border-bottom: 1px solid #eee; }
    .policy-content { margin: -40px 15px 40px 15px; padding: 30px 20px; }
}

.auth-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(30, 22, 69, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-box {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.auth-box h3 { margin-bottom: 10px; color: var(--primary-dark); }
.auth-box p { margin-bottom: 25px; font-size: 0.95rem; }

.auth-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
}

.login-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
}