/* ========================================
   УЧИЛИЩЕ "СВ. КЛИМЕНТ ОХРИДСКИ" - ГЛАВЕН CSS
   ======================================== */

/* Импорт на Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ========================================
   CSS ПРОМЕНЛИВИ И ОБЩИ НАСТРОЙКИ
   ======================================== */

:root {
    /* Основни цветове */
    --primary-green: #2d8659;
    --primary-green-dark: #1f5d3f;
    --primary-green-light: #3da770;
    
    /* Сиви нюанси */
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Акцентни цветове */
    --accent-blue: #3498db;
    --accent-orange: #e67e22;
    --accent-red: #e74c3c;
    
    /* Сенки */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Радиуси */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* Размери */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Шрифтове */
    --font-light: 300;
    --font-normal: 400;
    --font-semibold: 600;
    --font-bold: 700;
}

/* ========================================
   RESET И БАЗОВИ СТИЛОВЕ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: var(--font-normal);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   ТИПОГРАФИЯ
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-bold);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-weight: var(--font-light);
}

.lead {
    font-size: 1.2rem;
    font-weight: var(--font-normal);
}

/* ========================================
   HEADER И НАВИГАЦИЯ
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.3rem;
    font-weight: var(--font-bold);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--primary-green-light);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: var(--font-normal);
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Мобилно меню */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ========================================
   БУТОНИ
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-green);
    color: white;
    font-weight: var(--font-semibold);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   HERO СЕКЦИЯ
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.85) 0%, rgba(31, 93, 63, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: var(--font-light);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   СЕКЦИИ И КОНТЕЙНЕРИ
   ======================================== */

.section {
    padding: 5rem 2rem;
}

.section-light {
    background-color: var(--bg-light);
}

.section-white {
    background-color: var(--bg-white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: var(--font-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   GRID СИСТЕМИ (АДАПТИВНИ)
   ======================================== */

.grid {
    display: grid;
    gap: 2rem;
}

/* Мобилни устройства - 1 колона */
.grid-1 {
    grid-template-columns: 1fr;
}

/* Таблети - 2 колони */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктоп - 3 колони */
@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   КАРТИ (CARDS)
   ======================================== */

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-medium);
    font-weight: var(--font-light);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

/* ========================================
   СТАТИСТИКА
   ======================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: var(--font-normal);
}

/* ========================================
   ПРИЗИВ КЪМ ДЕЙСТВИЕ (CTA)
   ======================================== */

.cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    display: block;
    font-weight: var(--font-light);
}

.footer-section a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: var(--font-light);
}

/* ========================================
   ДИСКЛЕЙМЕР
   ======================================== */

.disclaimer {
    background-color: #dc3545;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: var(--font-normal);
    line-height: 1.6;
}

.disclaimer strong {
    font-weight: var(--font-semibold);
}

/* ========================================
   COOKIE БАНЕР
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.98);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: var(--font-light);
}

.cookie-text a {
    color: var(--primary-green-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    white-space: nowrap;
}

/* ========================================
   ФОРМУЛЯРИ
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-semibold);
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   GOOGLE КАРТА
   ======================================== */

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   ACCORDION (ЗА FAQ)
   ======================================== */

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-title {
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    font-weight: var(--font-light);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* ========================================
   БЛОГ КАРТИ
   ======================================== */

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: var(--font-light);
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: var(--font-light);
}

.blog-link {
    color: var(--primary-green);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link:hover {
    color: var(--primary-green-dark);
    gap: 0.75rem;
}

/* ========================================
   БЛОГ СТАТИЯ (ПЪЛНА)
   ======================================== */

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 1rem;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* ========================================
   УТИЛИТАРНИ КЛАСОВЕ
   ======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.hidden {
    display: none !important;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* ========================================
   МОБИЛНА НАВИГАЦИЯ
   ======================================== */

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--bg-light);
        width: 100%;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ========================================
   АДАПТИВНОСТ ЗА ТАБЛЕТИ
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta {
        margin: 1rem;
    }
}

/* ========================================
   АДАПТИВНОСТ ЗА МОБИЛНИ УСТРОЙСТВА
   ======================================== */

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 5rem 1rem 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .disclaimer {
        margin: 1rem;
        padding: 1rem;
    }
}

/* ========================================
   ПЕЧАТ
   ======================================== */

@media print {
    .header,
    .cookie-banner,
    .cta,
    .btn,
    .disclaimer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
