.hero-text-block2-label4 {
    color: #ffcb10;
}

.Owner-self-study-program-vernagir-h3-4 {
    color: #03114a;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
}

.Owner-self-study-program-vernagir-h3-2-4 {
    color: #03114a;
    font-size: 20px;
    font-weight: bolder;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;

}

body {

    background-color: #f0f0f0;
    /* Светлый фон страницы для контраста */
    margin: 0;
    padding: 20px;
}


.Educational-program-content-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;

    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.Educational-program-content-vernagir-h3 {
    color: #03114a;
    font-size: 25px;
    font-weight: bolder;
    margin-bottom: 30px;
    margin-top: 20px;
    text-align: center;
}

.Educational-program-content-div {
    background-color: #05134b;
    display: flex;
    flex-direction: column;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    border-radius: 0;
    position: relative;
}

/* Arrow indicator on image */
.Educational-program-content-div-img-wrap {
    position: relative;
    display: block;
}

.Educational-program-content-div-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 14px;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305134b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.35s ease, background-color 0.35s ease;
    pointer-events: none;
}

.Educational-program-content-div:hover .Educational-program-content-div-img-wrap::after {
    transform: rotate(180deg);
    background-color: #05134b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.Educational-program-content-div-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Title always visible */
.Educational-program-content-div-div {
    padding: 16px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Educational-program-content-div-div-img-div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.Educational-program-content-div-div-img-div-img {
    border-radius: 999px;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.p-Educational-program-content,
.h4-Educational-program-content,
.h3-Educational-program-content {
    color: #ffffff;
    transition: color 0.35s ease;
    margin: 0;
}

.p-Educational-program-content {
    font-size: 12px;
    font-weight: bolder;
}

.h4-Educational-program-content {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    padding-bottom: 14px;
}

/* Detail text hidden by default */
.h3-Educational-program-content {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding-bottom 0.35s ease;
    padding-bottom: 0;
}

/* On hover: show detail text */
.Educational-program-content-div:hover {
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(5, 19, 75, 0.18);
}

.Educational-program-content-div:hover .p-Educational-program-content,
.Educational-program-content-div:hover .h4-Educational-program-content,
.Educational-program-content-div:hover .h3-Educational-program-content {
    color: #05134b;
}

.Educational-program-content-div:hover .h3-Educational-program-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 16px;
}

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

@media (max-width: 600px) {
    .Educational-program-content-block {
        grid-template-columns: 1fr;
    }
}

.rezerv-div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.rezerv-div-h3 {
    font-size: 25px;

}

.guarantee__header-mini {
    margin-top: 10px;
    width: 100%;
}

.guarantee__title-mini {}

.guarantee__title-mini {
    color: #05134b;
    font-size: 20px;
    flex-wrap: wrap;
    font-weight: bold;
    text-align: center;
}


.signup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    width: 100%;
    padding-bottom: 100px;
    background-color: #05134b;
}

.signup__header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.signup__title {
    color: white;
    font-size: 30px;
    flex-wrap: wrap;
    font-weight: bold;
    text-align: center;
}

.signup__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.signup__submit {
    background-color: #ffcb14;
    padding: 15px 19px;
    font-size: 15px;
    border: none;
    outline: none;
    transition: 0.25s ease;
    font-weight: bolder;
    color: #05134b;
    border-radius: 20px;
}

.signup__form {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    padding-top: 10px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}


.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.info-sigup {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.info-sigup__title {
    color: white;
    font-size: 10px;
    flex-wrap: wrap;
    font-weight: bold;
    text-align: center;

}

.form-field input,
.form-field select {
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid rgba(5, 19, 75, .2);
    outline: none;
    transition: 0.25s ease;
    background-color: white;
    font-family: inherit;
    color: inherit;
}

.form-field select {
    width: 100%;
    height: 50px;
}


.demo-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    background: #03114a;
    border-bottom: 1px solid #d9e1ea;
}

.demo-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: #ffffff;
}

.demo-header__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.demo-header__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    max-width: 280px;
}

.demo-header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.demo-header__link {
    font-weight: normal;
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
}

.demo-header__link--active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.demo-lang {
    position: relative;
    flex-shrink: 0;
}

.demo-lang>summary {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #c7c7c7;
}

.demo-lang>summary::-webkit-details-marker {
    display: none;
}

.demo-lang__icon {
    width: 19px;
    height: 19px;
    fill: #0f172a;
}

.demo-lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 145px;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: grid;
    gap: 6px;
}

.demo-lang__item {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #e6ecf2;
    background: #f8fafc;
    text-align: left;
}

@media (max-width: 1024px) {
    .demo-header {
        padding: 10px 12px;
        gap: 10px;
    }

    .demo-header__title {
        font-size: 13px;
        max-width: 140px;
    }

    .demo-header__logo {
        width: 34px;
        height: 34px;
    }
}

/* Keep card open after click */
.Educational-program-content-div.clicked-open {
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(5, 19, 75, 0.18);
}

.Educational-program-content-div.clicked-open .p-Educational-program-content,
.Educational-program-content-div.clicked-open .h4-Educational-program-content,
.Educational-program-content-div.clicked-open .h3-Educational-program-content {
    color: #05134b;
}

.Educational-program-content-div.clicked-open .h3-Educational-program-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 16px;
}

.Educational-program-content-div.clicked-open .Educational-program-content-div-img-wrap::after {
    transform: rotate(180deg);
    background-color: #05134b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}