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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 90%;
}

p {
    font-size: 1.05rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    text-align: center;
    color: #2e71ba;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

h3 {
    font-size: 1.4rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #2e71ba;
}

ul {
    list-style-type: none;
}

section {
    padding: 60px 0;
}

/* Header Styles */
.main-header {
    background: linear-gradient(to right, #2e71ba, #283594);
    color: white;
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.header-description {
    max-width: 1000px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    width: 80%;
}

.cta-button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e55c00;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text h3 {
    color: #2e71ba;
    margin-bottom: 20px;
    font-size: 18pt;
    text-align: justify;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 15pt;
    text-align: justify;
}

/* Key Advantages Section */
.key-advantages {
    background-color: #edf2f7;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 20px;
}

@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.advantage-card h3 {
    color: #2e71ba;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Curriculum Section */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.year-block {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.year-block h3 {
    color: #2e71ba;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.year-block ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 1.05rem;
}

.year-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6a4feb;
}

/* Career Prospects Section */
.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 20px;
}

@media (max-width: 1100px) {
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .career-grid {
        grid-template-columns: 1fr;
    }
}

.career-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.career-card h3 {
    color: #2e71ba;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.career-card p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    flex-grow: 1;
}

.salary {
    color: #4caf50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: auto;
}

/* Footer */
footer {
    background-color: #f5f7fa;
    padding: 50px 0;
    text-align: center;
}

.home-button {
    display: inline-block;
    background: linear-gradient(to right, #2e71ba, #283594);
    color: white;
    text-decoration: none;
    padding: 15px 60px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #2e71ba;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease, transform 0.3s ease;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#scrollToTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollToTopBtn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Адаптивне зображення */
#scrollToTopBtn svg#arrow-image {
    width: 60%;
    height: 60%;
}


/* Стилі для секції footer (перенесеної з footer у body) */
.footer-section {
    background-color: #f5f7fa;
    padding: 50px 0;
    text-align: center;
}