/* Стилове за index.php. Изнесени от inline <style>, за да се кешират. */

        .view-all:hover {
            background: var(--primary-blue) !important;
            color: white !important;
            transform: translateY(-2px);
        }

        /* Mobile/Desktop news title visibility */
        .news-title-mobile {
            display: none;
        }

        .news-title-desktop {
            display: inline;
        }

        @media (max-width: 768px) {
            .news-title-mobile {
                display: inline;
            }

            .news-title-desktop {
                display: none;
            }

            /* Hide events subtitle on mobile */
            .events-subtitle {
                display: none;
            }







/* Mobile-specific learn more button styling - applies to ALL news */
            .learn-more-btn,
            .featured .learn-more-btn,
            .news-card.featured .learn-more-btn {
                opacity: 1 !important;
                transform: none !important;
                visibility: visible !important;
                display: inline-block !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
                position: static !important;
                margin-top: 10px !important;
                padding: 8px 16px !important;
                background: #4CAF50 !important;
                color: white !important;
                text-decoration: none !important;
                border-radius: 20px !important;
                font-size: 0.85rem !important;
                font-weight: 600 !important;
                z-index: 100 !important;
                min-width: 120px !important;
                max-width: 200px !important;
                height: 36px !important;
                line-height: 20px !important;
                box-sizing: border-box !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
                overflow: hidden !important;
                left: auto !important;
                right: auto !important;
                bottom: auto !important;
            }
        }

        /* Touch device specific styles - COMPLETELY disable ALL interactive effects */
        @media (hover: none) and (pointer: coarse) {
            /* Force stable date badge appearance FIRST - highest priority */
            .news-date-badge,
            .news-card .news-date-badge,
            .news-card.featured .news-date-badge,
            .news-card:hover .news-date-badge,
            .news-card.featured:hover .news-date-badge,
            .news-card:active .news-date-badge,
            .news-card:focus .news-date-badge,
            .news-card.featured:active .news-date-badge,
            .news-card.featured:focus .news-date-badge {
                opacity: 1 !important;
                transform: none !important;
                visibility: visible !important;
                display: flex !important;
                position: absolute !important;
                top: 15px !important;
                right: 15px !important;
                background: #4CAF50 !important;
                color: white !important;
                border-radius: 50% !important;
                padding: 10px !important;
                width: 50px !important;
                height: 50px !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                font-weight: 600 !important;
                box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
                z-index: 15 !important;
                transition: none !important;
                animation: none !important;
                font-size: 0.65rem !important;
                line-height: 1.1 !important;
                text-align: center !important;
                font-family: inherit !important;
                border: none !important;
                outline: none !important;
                pointer-events: none !important;
            }

            /* Force stable button appearance */
            .learn-more-btn,
            .news-card .learn-more-btn,
            .news-card.featured .learn-more-btn,
            .news-card:hover .learn-more-btn,
            .news-card.featured:hover .learn-more-btn,
            .news-card:active .learn-more-btn,
            .news-card:focus .learn-more-btn,
            .news-card.featured:active .learn-more-btn,
            .news-card.featured:focus .learn-more-btn {
                opacity: 1 !important;
                transform: none !important;
                visibility: visible !important;
                display: inline-block !important;
                touch-action: manipulation !important;
                background: #4CAF50 !important;
                color: white !important;
                position: static !important;
                padding: 8px 16px !important;
                border-radius: 20px !important;
                text-decoration: none !important;
                font-size: 0.85rem !important;
                font-weight: 600 !important;
                margin-top: 10px !important;
                border: none !important;
                outline: none !important;
                z-index: 10 !important;
                transition: none !important;
                animation: none !important;
                min-width: 120px !important;
                max-width: 200px !important;
                height: 36px !important;
                line-height: 20px !important;
                box-sizing: border-box !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
                overflow: hidden !important;
            }

            /* Disable ALL interactive states completely on mobile */
            .news-card:hover,
            .news-card:focus,
            .news-card:active,
            .news-card.featured:hover,
            .news-card.featured:focus,
            .news-card.featured:active {
                transform: none !important;
                transition: none !important;
                animation: none !important;
                box-shadow: none !important;
                filter: none !important;
                scale: 1 !important;
                translate: none !important;
                rotate: none !important;
                padding: inherit !important;
                margin: inherit !important;
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
            }

            /* COMPLETELY disable any potential overflow issues */
            .news-card,
            .news-card.featured {
                overflow: visible !important;
                position: relative !important;
                transform: none !important;
                transition: none !important;
                animation: none !important;
            }

            /* Specifically preserve everything inside news cards except general background/transform */
            .news-card:hover .news-content,
            .news-card:hover .news-image-overlay,
            .news-card.featured:hover .news-content,
            .news-card.featured:hover .news-image-overlay,
            .news-card:active .news-content,
            .news-card:active .news-image-overlay,
            .news-card.featured:active .news-content,
            .news-card.featured:active .news-image-overlay,
            .news-card:focus .news-content,
            .news-card:focus .news-image-overlay,
            .news-card.featured:focus .news-content,
            .news-card.featured:focus .news-image-overlay {
                transform: none !important;
                opacity: 1 !important;
                transition: none !important;
                animation: none !important;
                position: static !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                bottom: auto !important;
                width: 100% !important;
                max-width: none !important;
                padding: inherit !important;
                margin: inherit !important;
                text-align: left !important;
            }

            /* Force stable date badge content specifically */
            .news-date-badge .day,
            .news-date-badge .month,
            .news-card .news-date-badge .day,
            .news-card .news-date-badge .month,
            .news-card.featured .news-date-badge .day,
            .news-card.featured .news-date-badge .month,
            .news-card:hover .news-date-badge .day,
            .news-card:hover .news-date-badge .month,
            .news-card.featured:hover .news-date-badge .day,
            .news-card.featured:hover .news-date-badge .month,
            .news-card:active .news-date-badge .day,
            .news-card:active .news-date-badge .month,
            .news-card:focus .news-date-badge .day,
            .news-card:focus .news-date-badge .month,
            .news-card.featured:active .news-date-badge .day,
            .news-card.featured:active .news-date-badge .month,
            .news-card.featured:focus .news-date-badge .day,
            .news-card.featured:focus .news-date-badge .month {
                color: white !important;
                font-weight: 600 !important;
                background: transparent !important;
                text-decoration: none !important;
                display: block !important;
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
                animation: none !important;
                font-family: inherit !important;
                line-height: inherit !important;
            }

            /* Force stable text content inside cards */
            .news-card:hover .news-content h3,
            .news-card:hover .news-content h4,
            .news-card:hover .news-content p,
            .news-card:active .news-content h3,
            .news-card:active .news-content h4,
            .news-card:active .news-content p,
            .news-card:focus .news-content h3,
            .news-card:focus .news-content h4,
            .news-card:focus .news-content p,
            .news-card.featured:hover .news-content h3,
            .news-card.featured:hover .news-content h4,
            .news-card.featured:hover .news-content p,
            .news-card.featured:active .news-content h3,
            .news-card.featured:active .news-content h4,
            .news-card.featured:active .news-content p,
            .news-card.featured:focus .news-content h3,
            .news-card.featured:focus .news-content h4,
            .news-card.featured:focus .news-content p {
                transform: none !important;
                transition: none !important;
                animation: none !important;
                position: static !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                bottom: auto !important;
                width: 100% !important;
                margin: inherit !important;
                padding: inherit !important;
                text-align: left !important;
                opacity: 1 !important;
            }

            /* Keep pointer events but prevent hover states */
            .news-card {
                pointer-events: auto !important;
            }

            /* FORCE buttons to always be visible and accessible */
            .news-card .learn-more-btn,
            .news-card.featured .learn-more-btn {
                pointer-events: auto !important;
                cursor: pointer !important;
                z-index: 999 !important;
                display: inline-block !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: static !important;
                transform: none !important;
                overflow: visible !important;
                clip: unset !important;
                clip-path: unset !important;
                max-height: none !important;
                height: 36px !important;
                width: auto !important;
                min-width: 120px !important;
                max-width: 200px !important;
                background: #4CAF50 !important;
                color: white !important;
                text-decoration: none !important;
                border-radius: 20px !important;
                padding: 8px 16px !important;
                font-size: 0.85rem !important;
                font-weight: 600 !important;
                margin-top: 10px !important;
                box-sizing: border-box !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
                border: none !important;
                outline: none !important;
                transition: none !important;
                animation: none !important;
            }
        }

        /* Desktop hover effects - keep original beautiful hover */
        @media (hover: hover) and (pointer: fine) {
            .learn-more-btn {
                background: #4CAF50 !important;
            }
        }

        /* Hero buttons - match the thickness of btn-sm */
        .hero-buttons .btn {
            min-height: 36px;
            padding: 10px 20px;
            font-size: 0.9rem;
            min-width: 180px;
            flex: 1;
        }

        /* Achievement button - same width */
        .hero-achievements .btn-sm {
            min-width: 180px;
            width: 100%;
        }

        /* Hero School Image Styles */
        /* Контейнерът обвива точно снимката. Беше flex с height: 100% и
           излизаше по-висок от нея - тъмният преход отдолу щеше да се
           показва под снимката. container-type позволява размерът на
           надписа да следва ширината на снимката (cqw), а не на екрана. */
        .hero-school-image {
            width: 100%;
            display: block;
            margin-top: -40px;
            position: relative;
            container-type: inline-size;
        }

        .hero-school-image picture,
        .hero-school-image .school-image {
            display: block;
        }

        /* Тъмен преход отдолу нагоре - гарантиран контраст за белия текст,
           каквото и да има на снимката. Преди надписът стоеше направо върху
           игрището и белите линии минаваха през буквите. */
        .hero-school-image::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 16px;
            pointer-events: none;
            background: linear-gradient(to top,
                rgba(10, 28, 56, 0.82) 0%,
                rgba(10, 28, 56, 0.50) 26%,
                rgba(10, 28, 56, 0.00) 58%);
            z-index: 5;
        }

        /* Ръкописен, както в банера към Facebook долу - надписът е един и
           същ на двете места. Размерът следва ширината на снимката, затова
           при мащаб 125-150% и на телефон стои в същата пропорция и не
           излиза извън нея; ако не се побира, минава на два реда. */
        .banner-text {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 0 6cqw 4.5cqw;
            text-align: center;
            text-wrap: balance;
            font-family: 'Bad Script', cursive;
            font-weight: 400;
            line-height: 1.15;
            font-size: clamp(1.55rem, 8.2cqw, 3.4rem);
            color: #fff;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
            z-index: 10;
        }

        .school-image {
            width: 100%;
            height: auto;
            max-height: 350px;
            object-fit: cover;
            object-position: center;
            border: 2.5px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
        }

        /* Hero description text alignment */
        .hero-content .hero-description {
            text-align: justify;
            text-justify: inter-word;
            line-height: 1.6;
            margin-top: 20px;
            margin-bottom: 25px;
        }

        /* Align achievements card with hero image */
        .hero-achievements {
            margin-top: -40px;
            min-height: 550px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding-bottom: 30px;
        }

        /* Also align stats with hero image */
        .hero-stats {
            margin-top: -40px;
        }

        /* NZMS button pulse animation */
        @keyframes nzmsPulse {
            0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); transform: scale(1); }
            70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); transform: scale(1.03); }
            100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
        }
        .nzms-pulse-btn {
            animation: nzmsPulse 1.8s ease-in-out infinite;
        }

        /* NZMS wrapper styles (shared) */
        .nzms-wrapper {
            border: 2px solid white;
            border-radius: 16px;
            padding: 12px 14px 14px;
            text-align: center;
        }
        .nzms-label {
            display: block;
            color: white;
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 10px;
            letter-spacing: 0.3px;
        }
        /* Desktop wrapper: inside hero-stats, hidden on mobile */
        .nzms-desktop-wrapper {
            display: block;
            margin-top: 1.5rem;
        }
        /* Mobile wrapper: inside hero-buttons, hidden on desktop */
        .nzms-mobile-wrapper {
            display: none;
            width: 100%;
            margin-bottom: 15px;
        }
        @media (max-width: 768px) {
            .nzms-desktop-wrapper { display: none; }
            .nzms-mobile-wrapper  { display: block; }
        }

        @media (max-width: 768px) {
            .hero-school-image {
                margin-top: -15px;
                margin-bottom: 25px;
            }

            .hero-school-image::after {
                border-radius: 12px;
            }

            .hero-achievements {
                margin-top: 20px;
                margin-bottom: 20px;
            }

            .hero-stats {
                margin-top: 20px;
                margin-bottom: 25px;
            }

            /* Add spacing between hero elements on mobile */
            .hero-content .hero-description {
                margin-top: 20px;
                margin-bottom: 20px;
            }

            .hero-buttons .btn-primary:not(.nzms-pulse-btn),
            .hero-buttons .btn-outline {
                display: none;
            }

            .hero-buttons {
                margin-top: 20px;
                margin-bottom: 25px;
            }

            .school-image {
                max-height: 250px;
                border: 1.5px solid rgba(255, 255, 255, 0.3);
                border-radius: 12px;
                box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
            }

            .hero-content .hero-description {
                text-align: justify;
                padding: 0 10px;
                font-size: 0.95rem;
                line-height: 1.5;
            }
        }


/* Стабилизиране на новинарските карти на устройства с докосване.
   Изключва transform, animation и transition при focus, за да не
   подскача картата при тап. Беше inline блок с подвеждащото име
   mobile-emergency-fix - "emergency" се е отнасяло за начина на
   доставка (inline, за да заобиколи кеша), не за съдържанието.
   Правилата са функционални и не се дублират от блока по-горе.
   Стои последен, защото такъв беше редът и в head. */
@media (hover: none) and (pointer: coarse) {
        /* COMPLETE mobile card stability - ALL states */
        .news-card,
        .news-card:hover,
        .news-card:active,
        .news-card:focus,
        .news-card.featured,
        .news-card.featured:hover,
        .news-card.featured:active,
        .news-card.featured:focus {
            transform: none !important;
            transition: none !important;
            animation: none !important;
            scale: 1 !important;
            translate: none !important;
            rotate: none !important;
            position: relative !important;
            overflow: visible !important;
            padding: 20px !important;
            margin: inherit !important;
            width: 100% !important;
            max-width: none !important;
            box-sizing: border-box !important;
            border: 2px solid #e5f4f1 !important;
            border-radius: 16px !important;
            background: white !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
        }

        /* ALL inner elements must stay stable */
        .news-card .news-content,
        .news-card:hover .news-content,
        .news-card:active .news-content,
        .news-card:focus .news-content,
        .news-card.featured .news-content,
        .news-card.featured:hover .news-content,
        .news-card.featured:active .news-content,
        .news-card.featured:focus .news-content {
            transform: none !important;
            transition: none !important;
            animation: none !important;
            position: static !important;
            padding: 0 !important;
            margin: 0 !important;
            width: 100% !important;
            text-align: left !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            bottom: auto !important;
        }

        /* Button MUST remain stable */
        .learn-more-btn,
        .news-card .learn-more-btn,
        .news-card.featured .learn-more-btn,
        .news-card:hover .learn-more-btn,
        .news-card:active .learn-more-btn,
        .news-card:focus .learn-more-btn,
        .news-card.featured:hover .learn-more-btn,
        .news-card.featured:active .learn-more-btn,
        .news-card.featured:focus .learn-more-btn {
            display: inline-block !important;
            visibility: visible !important;
            opacity: 1 !important;
            background: #4CAF50 !important;
            color: white !important;
            padding: 8px 16px !important;
            border-radius: 20px !important;
            text-decoration: none !important;
            font-size: 0.85rem !important;
            font-weight: 600 !important;
            margin-top: 10px !important;
            white-space: nowrap !important;
            min-width: 120px !important;
            max-width: 200px !important;
            height: 36px !important;
            box-sizing: border-box !important;
            position: static !important;
            transform: none !important;
            transition: none !important;
            animation: none !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            bottom: auto !important;
        }

        /* Text elements must not shift */
        .news-card h3,
        .news-card h4,
        .news-card p,
        .news-card:hover h3,
        .news-card:hover h4,
        .news-card:hover p,
        .news-card:active h3,
        .news-card:active h4,
        .news-card:active p,
        .news-card:focus h3,
        .news-card:focus h4,
        .news-card:focus p,
        .news-card.featured h3,
        .news-card.featured h4,
        .news-card.featured p,
        .news-card.featured:hover h3,
        .news-card.featured:hover h4,
        .news-card.featured:hover p,
        .news-card.featured:active h3,
        .news-card.featured:active h4,
        .news-card.featured:active p,
        .news-card.featured:focus h3,
        .news-card.featured:focus h4,
        .news-card.featured:focus p {
            transform: none !important;
            transition: none !important;
            animation: none !important;
            position: static !important;
            text-align: left !important;
            width: 100% !important;
            margin: inherit !important;
            padding: inherit !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            bottom: auto !important;
        }
    }


/* ===========================================================
   БАНЕР КЪМ FACEBOOK - „Още от нашия училищен живот"
   Над футъра. Четири колони на компютър: текст, панорама с
   наклонен ляв ръб, колаж от три полароида, ръкописен надпис.
   Под 900px всичко минава едно под друго.
   =========================================================== */
.fb-banner-section {
    padding: 10px 0 50px;
    background: var(--light-gray);
}

.fb-banner {
    position: relative;
    display: grid;
    /* min-content: колоната с текста никога не е по-тясна от бутона - иначе
       той влиза в панорамата */
    grid-template-columns: minmax(min-content, 1.45fr) 1.2fr 1.05fr 200px;
    align-items: stretch;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF6FF 0%, #DDEBFB 100%);
    border: 1px solid #D3E4F7;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.10);
}

/* Мазки с четка - едва видими, само за да не е фонът плосък */
.fb-banner::before,
.fb-banner::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(8px);
}

.fb-banner::before {
    width: 360px;
    height: 120px;
    left: -80px;
    bottom: -50px;
    background: rgba(24, 119, 242, 0.10);
    transform: rotate(-12deg);
}

.fb-banner::after {
    width: 260px;
    height: 90px;
    right: -60px;
    bottom: 10px;
    background: rgba(76, 175, 80, 0.16);
    transform: rotate(-18deg);
}

/* --- текстът --- */
.fb-banner-text {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 34px 26px 34px 38px;
}

.fb-banner-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.fb-banner-logo {
    flex: 0 0 auto;
}

.fb-banner-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 1.9vw, 1.95rem);
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
    color: #173A6B;
}

.fb-banner-text p {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #24466F;
}

.fb-accent {
    color: #1877F2;
    font-weight: 600;
}

.fb-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 13px 22px;
    border-radius: 10px;
    background: #1877F2;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.30);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-banner-btn:hover {
    background: #0F63D6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(24, 119, 242, 0.38);
}

.fb-banner-btn:focus-visible {
    outline: 3px solid #173A6B;
    outline-offset: 3px;
}

.fb-banner-btn svg {
    flex: 0 0 auto;
}

.fb-banner-arrow {
    transition: transform 0.2s ease;
}

.fb-banner-btn:hover .fb-banner-arrow {
    transform: translateX(4px);
}

/* --- панорамата --- */
.fb-banner-panorama {
    position: relative;
    z-index: 1;
    /* Наклоненият ляв ръб от прототипа */
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.fb-banner-panorama img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* --- колажът --- */
.fb-banner-collage {
    position: relative;
    z-index: 2;
    min-height: 300px;
}

.fb-photo {
    position: absolute;
    margin: 0;
    padding: 6px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.24);
}

.fb-photo img {
    display: block;
    width: 100%;
    /* Без това атрибутът height на <img> бие aspect-ratio и снимката
       става висока и изрязана */
    height: auto;
    object-fit: cover;
}

.fb-photo-yambol {
    top: 26px;
    left: 2%;
    width: 55%;
    transform: rotate(-3deg);
}

.fb-photo-yambol img {
    aspect-ratio: 4 / 3;
}

.fb-photo-classroom {
    bottom: 24px;
    left: 0;
    width: 58%;
    transform: rotate(2deg);
    z-index: 1;
}

.fb-photo-classroom img {
    aspect-ratio: 16 / 10;
}

/* Момичето е вляво на широката снимка - изрязва се около нея */
.fb-photo-girl {
    top: 50%;
    right: 3%;
    width: 43%;
    margin-top: -120px;
    transform: rotate(4deg);
    z-index: 2;
}

.fb-photo-girl img {
    aspect-ratio: 3 / 4;
    object-position: 28% center;
}

/* --- ръкописният надпис --- */
.fb-banner-slogan {
    position: relative;
    z-index: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 18px 0 6px;
    color: #1A4F9C;
    text-align: center;
}

.fb-banner-slogan span {
    font-family: 'Bad Script', cursive;
    font-size: 1.45rem;
    white-space: nowrap;
    line-height: 1.3;
    transform: rotate(-8deg);
}

/* --- по-тесен компютър: надписът отпада --- */
@media (max-width: 1300px) {
    .fb-banner {
        grid-template-columns: minmax(min-content, 1.3fr) 1fr 0.95fr;
    }

    .fb-banner-slogan {
        display: none;
    }
}

/* --- таблет и телефон: едно под друго ---
   Под 1024px колажът до текста става твърде дребен, затова оттук надолу
   всичко минава едно под друго */
@media (max-width: 1024px) {
    .fb-banner {
        /* minmax(0, …), а не 1fr - иначе бутонът с nowrap държи колоната
           по-широка от телефона */
        grid-template-columns: minmax(0, 1fr);
    }

    .fb-banner-text {
        padding: 28px 22px 22px;
    }

    .fb-banner-panorama {
        clip-path: none;
        height: 240px;
    }

    .fb-banner-collage {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 20px 18px 24px;
    }

    .fb-photo {
        position: static;
        width: auto;
        margin-top: 0;
    }

    .fb-photo-yambol    { transform: rotate(-2deg); }
    .fb-photo-classroom { transform: rotate(1.5deg); }
    .fb-photo-girl      { transform: rotate(2deg); }

    .fb-photo img,
    .fb-photo-girl img {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    .fb-banner-section {
        padding-bottom: 30px;
    }

    .fb-banner-head {
        gap: 12px;
    }

    .fb-banner-logo {
        width: 46px;
        height: 46px;
    }

    .fb-banner-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 13px 14px;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }

    .fb-banner-head h2 {
        font-size: 1.25rem;
    }

    .fb-banner-panorama {
        height: 190px;
    }

    /* На телефон колажът е твърде дребен, за да се чете - остава панорамата */
    .fb-banner-collage {
        display: none;
    }
}
