body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.navbar {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1050;
}

.navbar-brand {
    font-weight: bold;
    color: #1e4566 !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 55px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar-brand:hover img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.nav-link {
    position: relative;
    color: #1e4566 !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 12px;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f39c12;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #4da1d8 !important;
}

.btn-apply {
    background-color: #1e4566;
    color: #fff;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(30, 69, 102, 0.2);
    border: 2px solid #1e4566;
}

.btn-apply:hover {
    background-color: transparent;
    color: #1e4566;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 69, 102, 0.15);
}

/* Home Specific Styles */
.hero-section {
    padding: 60px 0;
    background-color: #fff;
}

.hero-title {
    font-weight: 800;
    color: #1e4566;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.hero-img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 500px;
}

a:has(.image-card) {
    text-decoration: none;
    display: block;
    height: 100%;
}

.image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 240px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: block;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.08);
}

.image-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 69, 102, 0.95) 0%, rgba(30, 69, 102, 0.4) 60%, transparent 100%);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.wavy-divider {
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%234da1d8' stroke-width='2' stroke-dasharray='10,10' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,144C672,139,768,181,864,186.7C960,192,1056,160,1152,149.3C1248,139,1344,149,1392,154.7L1440,160'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    margin: 40px 0;
}

.section-title {
    text-align: center;
    color: #1e4566;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-section {
    background-color: #a8c5d6;
    padding: 60px 0;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Custom Accordion */
.custom-accordion .accordion-item {
    background: #fff;
    border: none;
    margin-bottom: 15px;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.custom-accordion .accordion-button {
    background: #fff !important;
    color: #1e4566 !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px 25px;
    border-left: 5px solid #1e4566;
    box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #f8fbfe !important;
    color: #1e4566 !important;
}

.custom-accordion .accordion-button::after {
    background-size: 1.25rem;
}

.custom-accordion .accordion-body {
    padding: 25px;
    line-height: 1.7;
    color: #5a6c7d;
}

.custom-accordion .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.stats-section {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: lowercase;
}

.stat-desc {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

.main-footer {
    background-color: #2a5a7b;
    color: white;
    padding: 40px 0 20px;
    border-top: none;
}

.footer-links a {
    position: relative;
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #f39c12;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin: 0 8px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    background: white;
    color: #2a5a7b;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.transition-hover {
    transition: transform 0.3s ease;
    display: inline-block;
}

.transition-hover:hover {
    transform: scale(1.05);
}

/* Default page styles */
.page-wrapper {
    padding: 40px 0;
    min-height: 60vh;
}

/* 📱 Мобільна адаптація */
@media (max-width: 991.98px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        margin-top: 15px;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(30, 69, 102, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link {
        margin: 12px 0;
        text-align: center;
        font-size: 1.1rem;
    }

    .navbar-nav .nav-item.ms-3 {
        margin-left: 0 !important;
        margin-top: 15px;
        text-align: center;
    }

    .btn-apply {
        width: 100%;
        display: block;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .hero-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-img {
        height: 300px;
        margin-top: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .image-card {
        height: 200px;
        margin-bottom: 15px;
    }

    .page-wrapper {
        padding: 25px 0;
    }

    .custom-accordion .accordion-button {
        padding: 15px 15px;
        font-size: 0.95rem;
    }

    .custom-accordion .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }

    .main-footer {
        text-align: center;
        padding: 35px 0;
    }

    .footer-links a {
        display: block;
        margin: 12px 0;
        font-size: 0.95rem;
    }

    .social-icons {
        margin-top: 20px;
    }

    .display-4 {
        font-size: 2.4rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-img {
        height: 240px;
    }

    .navbar-brand img {
        height: 42px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .glass {
        padding: 20px 15px !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Запобігаємо виїзду заголовків з інлайновими стилями */
    h1[style*="font-size"],
    .font-weight-bold[style*="font-size"] {
        font-size: 3rem !important;
    }
}

/* 🗓️ Календар - адаптація таймлайну */
@media (max-width: 575.98px) {
    .stat-card-hover .d-flex {
        flex-direction: column !important;
    }

    .stat-card-hover .me-4 {
        margin-right: 0 !important;
        margin-bottom: 10px;
        text-align: left !important;
    }

    .stat-card-hover div[style*="border-left"] {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #f8fbfe;
        padding-top: 10px;
    }
}