/* --- ГЛОБАЛНА СВЕТЛА ЦВЕТОВА ГАМА --- */
:root {
    --white: #ffffff;
    --light-grey: #f8fafc;
    --light-blue-100: #f0f9ff;
    --light-blue-200: #e0f2fe;
    --light-blue-300: #bae6fd;
    --sky-blue-light: #38bdf8;
    --sky-blue: #0ea5e9;
    --sky-blue-dark: #0284c7;
    --text-slate: #475569;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(14, 165, 233, 0.05);
    --shadow-corporate: 0 8px 25px rgba(2, 132, 199, 0.12);
    --shadow-card-hover: 0 20px 35px rgba(14, 165, 233, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text-slate); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
a { text-decoration: none; }

/* NAVBAR & HEADER */
.main-header { position: sticky; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--sky-blue-dark); }
.nav-links { display: flex; list-style: none; gap: 6px; }
.nav-item { color: var(--sky-blue-dark); font-weight: 700; padding: 10px 22px; border-radius: 30px; transition: var(--transition-smooth); }
.nav-item:hover, .nav-item.active { color: var(--white); background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-light) 100%); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15); }

.hamburger-menu { display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1010; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--sky-blue-dark); border-radius: 2px; transition: var(--transition-smooth); }
.hamburger-menu.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-menu.open span:nth-child(2) { opacity: 0; }
.hamburger-menu.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* SIDEBAR */
.sidebar { position: fixed; top: 0; right: -310px; width: 310px; height: 100%; background-color: var(--white); box-shadow: -10px 0 35px rgba(14, 165, 233, 0.08); z-index: 1500; transition: var(--transition-smooth); padding: 35px 25px; display: flex; flex-direction: column; }
.sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--light-blue-100); }
.sidebar-title { font-size: 1.3rem; font-weight: 800; color: var(--sky-blue-dark); }
.close-sidebar-btn { background: transparent; border: none; font-size: 2rem; color: var(--sky-blue); cursor: pointer; line-height: 1; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a { color: var(--sky-blue-dark); font-weight: 700; font-size: 1.05rem; padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px; transition: var(--transition-smooth); }
.sidebar-links a:hover, .sidebar-links .active-link { background-color: var(--light-blue-100); color: var(--sky-blue); padding-left: 22px; }

/* ПОПРАВКА: Скриване на мобилните бутони на десктоп */
.mobile-only-link { display: none !important; }

.sidebar-dropdown { display: flex; flex-direction: column; }
.dropdown-toggle { justify-content: space-between !important; }
.arrow-icon { font-size: 0.75rem; transition: var(--transition-smooth); }
.sidebar-dropdown.open .arrow-icon { transform: rotate(180deg); }
.dropdown-menu { list-style: none; padding-left: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.35s ease-in-out; display: flex; flex-direction: column; gap: 4px; }
.sidebar-dropdown.open .dropdown-menu { max-height: 200px; opacity: 1; margin-top: 4px; }
.dropdown-menu a { font-size: 0.95rem; font-weight: 600; background-color: var(--light-grey); }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(2, 132, 199, 0.2); backdrop-filter: blur(4px); z-index: 1400; opacity: 0; visibility: hidden; transition: var(--transition-smooth); }
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* HERO SECTION */
.hero-section { position: relative; padding: 120px 0; background-image: url('./Uploads/Images/home-background.png'); background-size: cover; background-position: center; display: flex; align-items: center; min-height: 70vh; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(14, 165, 233, 0.6) 100%); z-index: 1; }
.hero-container { position: relative; z-index: 2; color: var(--white); }
.hero-motto-badge { display: inline-flex; align-items: center; gap: 8px; background-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); padding: 8px 16px; border-radius: 30px; font-weight: 700; margin-bottom: 20px; }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.hero-description { font-size: 1.25rem; max-width: 800px; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 15px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 30px; font-weight: 700; transition: var(--transition-smooth); }
.btn-hero-primary { background-color: var(--white); color: var(--sky-blue-dark); }
.btn-hero-primary:hover { background-color: var(--light-blue-100); transform: translateY(-2px); }
.btn-hero-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-hero-secondary:hover { background-color: var(--white); color: var(--sky-blue-dark); }

/* FEATURES SECTION */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.2rem; color: var(--sky-blue-dark); font-weight: 800; margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-slate); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background-color: var(--white); padding: 30px; border-radius: 20px; box-shadow: var(--shadow-soft); text-align: center; transition: var(--transition-smooth); border: 1px solid var(--light-blue-100); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.feature-icon-wrapper { width: 60px; height: 60px; background-color: var(--light-blue-100); color: var(--sky-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px auto; }
.feature-card-title { font-size: 1.25rem; color: var(--sky-blue-dark); margin-bottom: 12px; font-weight: 800; }

/* WELCOME SECTION */
.welcome-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.welcome-badge { display: inline-block; background-color: var(--light-blue-100); color: var(--sky-blue-dark); padding: 6px 14px; border-radius: 20px; font-weight: 700; margin-bottom: 15px; }
.welcome-title { font-size: 2.2rem; color: var(--sky-blue-dark); font-weight: 800; margin-bottom: 15px; }
.welcome-lead { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.welcome-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--sky-blue); }
.quote-card { background-color: var(--light-blue-100); padding: 40px; border-radius: 24px; position: relative; }
.quote-icon { font-size: 2.5rem; color: var(--light-blue-300); margin-bottom: 15px; }
.quote-text { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; }

/* NEWS GRID IN INDEX */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.news-card { background-color: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.news-image-wrapper { height: 200px; overflow: hidden; }
.news-img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.85rem; color: var(--sky-blue); margin-bottom: 10px; font-weight: 600; }
.news-excerpt { font-size: 0.95rem; margin-bottom: 15px; flex-grow: 1; }
.btn-read-more { color: var(--sky-blue-dark); font-weight: 700; }

/* FOOTER */
/* --- FOOTER --- */
.main-footer { background-color: var(--light-blue-100); border-top: 1px solid var(--light-blue-200); padding: 70px 0 25px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-logo { height: 44px; width: auto; }
.footer-school-name { font-size: 1.35rem; font-weight: 800; color: var(--sky-blue-dark); }
.footer-motto { font-style: italic; color: var(--text-slate); }
.footer-title { font-size: 1.1rem; color: var(--sky-blue-dark); font-weight: 800; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-slate); font-weight: 600; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--sky-blue); padding-left: 5px; }
.work-time { color: var(--text-slate); font-weight: 600; }
.work-time i { color: var(--sky-blue); margin-right: 5px; }
.social-title { margin-top: 20px; margin-bottom: 12px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; background-color: var(--white); border: 1px solid var(--light-blue-200); color: var(--sky-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.footer-socials a:hover { background-color: var(--sky-blue); color: var(--white); transform: translateY(-3px); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--light-blue-200); font-size: 0.9rem; color: var(--text-slate); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .welcome-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .nav-links { display: none; }
    
    /* ПОПРАВКА: Показване на мобилните бутони в менюто */
    .mobile-only-link { display: block !important; }
    
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px; }
}