@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ===========================
   Героева секція (Hero Section)
   =========================== */

.hero {
    height: 75vh;
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Фоновое изображение */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/endodontics-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 1;
}

/* Полупрозрачный оверлей */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.7) 0%, rgba(0, 102, 204, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 900px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0;
    font-size: 1.05rem;
    padding: 14px 35px;
    animation: slideUp 1.2s ease-out;
}

/* Анімація */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стрілка прокрутки вниз - Single Chevron (одинарная V) */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow span {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    border-bottom: 4px solid rgba(255,255,255,0.9);
    border-right: 4px solid rgba(255,255,255,0.9);
    transform: rotate(45deg);
    animation: chevronV1 2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.scroll-arrow:hover span {
    border-color: #fff;
}

@keyframes chevronV1 {
    0% { 
        opacity: 0.4; 
        transform: translateY(-6px) rotate(45deg);
    }
    50% { 
        opacity: 1; 
        transform: translateY(6px) rotate(45deg);
    }
    100% { 
        opacity: 0.4; 
        transform: translateY(-6px) rotate(45deg);
    }
}

/* ===========================
   Чому вступити до УЕА
   =========================== */

.why-join {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

.why-join h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.reason-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #0066cc, #ff8c00) 1;
}

.reason-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #f5faff 0%, #f0f4ff 100%);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.2);
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.reason-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.join-cta {
    text-align: center;
    background: linear-gradient(135deg, #0066cc 0%, #003d82 50%, #001a4d 100%);
    padding: 3rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.3);
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.join-cta p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* ===========================
   CTA для приєднання до спільноти
   =========================== */

.community-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0066cc 0%, #003d82 50%, #001a4d 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.community-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.community-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.community-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.community-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.community-cta .btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   Анімації
   =========================== */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .gallery-film h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .film-frame {
        width: 100px;
        height: 100px;
        border: 3px solid #1a1a1a;
    }

    .film-container {
        padding: 1.5rem 0;
    }

    .film-container::before,
    .film-container::after {
        width: 30px;
    }

    .film-strip {
        gap: 1rem;
        padding: 0 1rem;
        animation: scrollFilm 45s linear infinite;
    }

    .gallery-courses h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .gallery-carousel {
        gap: 1rem;
        padding: 0 1rem;
    }

    .gallery-item {
        width: 110px;
        height: 110px;
    }
}

    .hero-content .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===========================
   Секція Балів БПР
   =========================== */

.bpr-banner {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 50%, #ff8c00 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.bpr-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.bpr-banner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
}

/* Круги с числами БПР */
.bpr-circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
    background: rgba(255, 140, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 140, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bpr-circle-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 5%;
    animation: float 3s ease-in-out infinite;
}

.bpr-circle-2 {
    width: 140px;
    height: 140px;
    bottom: 15%;
    right: 8%;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.bpr-circle-3 {
    width: 110px;
    height: 110px;
    top: 35%;
    right: 10%;
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Пустые декоративные круги */
.bpr-circle-empty {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.bpr-circle-empty-1 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 15%;
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.bpr-circle-empty-2 {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 12%;
    animation: float 3.8s ease-in-out infinite;
    animation-delay: 0.8s;
}

.bpr-circle-empty-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation: float 4.2s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.bpr-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.bpr-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bpr-banner h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.bpr-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.bpr-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.bpr-banner .btn {
    background-color: white;
    color: white;
    font-weight: 700;
    padding: 14px 35px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bpr-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .bpr-banner {
        padding: 3rem 0;
    }

    .bpr-banner h2 {
        font-size: 2rem;
    }

    .bpr-subtitle {
        font-size: 1.1rem;
    }

    .bpr-description {
        font-size: 0.95rem;
    }

    .bpr-icon {
        font-size: 3rem;
    }

    .bpr-circle-1 {
        width: 120px;
        height: 120px;
        font-size: 1.3rem;
        top: 5%;
        left: 2%;
    }

    .bpr-circle-2 {
        width: 100px;
        height: 100px;
        font-size: 1.1rem;
        bottom: 10%;
        right: 3%;
    }

    .bpr-circle-3 {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
        top: 30%;
        right: 5%;
    }

    .bpr-circle-empty-1 {
        width: 80px;
        height: 80px;
        top: 45%;
        left: 8%;
    }

    .bpr-circle-empty-2 {
        width: 60px;
        height: 60px;
        bottom: 20%;
        left: 8%;
    }

    .bpr-circle-empty-3 {
        width: 70px;
        height: 70px;
        top: 15%;
        right: 12%;
    }
}

/* ===========================
   Галерея Курсів
   =========================== */

.gallery-courses {
    padding: 0;
    background: white;
    overflow: hidden;
    position: relative;
}

.gallery-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.7;
    pointer-events: none;
}

.gallery-grid {
    display: flex;
    height: 400px;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: flex;
    height: 280px;
    position: relative;
    z-index: 1;
    gap: 2px;
}

.gallery-block {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    transition: all 0.3s ease;
}

.gallery-block:hover {
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.25);
    transform: translateY(-4px);
}

.gallery-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-block:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}
