/* Brochure v2 - full-width layout */
body {
    padding-top: 90px;
    color: var(--color-text);
    font-family: "Merriweather", serif;
}

/* Скролл к якорям: учитываем фиксированный navbar, на мобильном — больший отступ */
html {
    scroll-padding-top: 50px;
}

#onlineCourse,
#aboutCenter,
#aboutNHNE,
#videosSection,
#timetable,
#register,
#courses {
    scroll-margin-top: 50px;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
    #onlineCourse,
    #aboutCenter,
    #aboutNHNE,
    #videosSection,
    #timetable,
    #register,
    #courses {
        scroll-margin-top: 70px;
    }
}

:root {
    --color-soft: #E7E0CE;
    --color-neutral: #F7F4EE;
    --primary-blue: #00253D;
    --text-white: #ffffff;
    --color-text: #555555;
    --primary-button: #7DA68B;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.container__navigation {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 85vh;
    padding: 40px 20px 30px;
    background-image: url("/src/images/brochure/main_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 24px 12px 20px;
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 80, 0.35);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.hero__video-wrapper {
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
}

.hero__video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero__video-wrapper {
        margin-bottom: 16px;
        border-width: 2px;
        border-radius: 8px;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 768px) {
    .hero__content {
        flex-direction: row;
    }
}

.btn__hero,
.btn__registration {
    display: inline-block;
    min-width: 250px;
    font-size: 25px;
    padding: 12px 28px;
    color: var(--color-neutral) !important;
    background-color: var(--primary-button);
    margin: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(125, 166, 139, 0.35);
}
.btn__hero:hover,
.btn__registration:hover {
    background-color: #6a9078;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(125, 166, 139, 0.5);
}
.btn__hero:focus,
.btn__registration:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 166, 139, 0.4);
}
.btn__hero:active,
.btn__registration:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(125, 166, 139, 0.25);
}
/* Separate rules for btn__hero (can be <a> or <button>) */
.btn__hero {
    text-align: center;
}

/* Видео-кнопка — акцент на воспроизведении */
.btn__hero--video {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003a5c 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn__hero--video .glyphicon-play {
    margin-right: 8px;
    font-size: 0.9em;
    vertical-align: middle;
}

.btn__hero--video:hover,
.btn__hero--video:focus {
    background: linear-gradient(135deg, #003a5c 0%, #004d73 100%) !important;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn__registration {
    text-align: center;
}

.btn__close {
    background-color: var(--color-soft);
    border: none;
    padding: 8px;
}

@media (max-width: 767px) {
    .margin-top {
        margin-top: 20px;
    }

    /* Делаем только video-кнопку компактнее на мобильных */
    .btn__hero--video {
        min-width: 210px;
        font-size: 20px;
        padding: 10px 18px;
        margin: 8px 6px;
    }

    .btn__hero--video .glyphicon-play {
        margin-right: 6px;
        font-size: 0.85em;
    }
}

.image__bg {
    background-image: url("/src/images/brochure/features.png");
    background-size: cover;
    background-position: center center;
}

.blue__bg {
    background-color: var(--primary-blue);
}

.soft__bg {
    background-color: var(--color-soft);
}

.neutral__bg,
.neutral__bg__bg {
    background-color: var(--color-neutral);
}

.btn__register {
    display: inline-block;
    font-size: 25px;
    padding: 12px 28px;
    color: var(--primary-button);
    background-color: transparent;
    transition: all 0.25s ease;
    border-radius: 10px;
}

.btn__content {
    display: inline-block;
    font-size: 20px;
    padding: 6px 14px;
    transition: all 0.25s ease;
    border-radius: 10px;
}

.btn__container-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 30px;
    text-align: center;
}

footer {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
}

footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
}

footer img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.logo {
    height: 50px;
    width: auto;
}

.footer__container {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-white);
}

.copyright {
    font-size: 10px;
    color: var(--text-white);
    text-align: center;
    width: 100%;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.links a {
    color: var(--text-white);
    transition: opacity 0.2s ease;
}

.links a:hover {
    opacity: 0.9;
    text-decoration: underline !important;
}

/* Кнопки быстрого перехода в footer */
.footer-nav-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-btn {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text-white) !important;
    background: rgba(125, 166, 139, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: var(--primary-button);
    border-color: var(--primary-button);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-btn:active {
    transform: translateY(0);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.navbar-nav > li > a {
    padding-top: 23px;
    padding-bottom: 23px;
    line-height: 21px;
}

.navbar-default {
    display: flex;
    padding: 20px 0;
    align-items: center;
    background-color: var(--text-white);
    color: #000000;
    border-color: white !important;
    box-shadow: 0 -1px 3px rgba(0,0,0,.1);
}

.navbar-toggle {
    margin-top: 16px;
    border-color: var(--text-white);
}

.logo__text {
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    width: 150px;
}

.margin-top {
    margin-top: 30px;
}

@media (max-width: 767px) {
    .margin-top {
        margin-top: 20px;
    }
}

.content__banner p {
    font-size: 16px;
    margin-top: 20px;
}

.content__banner h2,
.content__banner h4 {
    margin-top: 20px;
}

.video-preview__ratio {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    border-radius: 12px;
}

.video-preview__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.video-card {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}

.video-card--hidden {
    display: none;
}

@media (min-width: 768px) {
    .video-card {
        flex: 0 0 420px;
        max-width: 420px;
    }
}

.video-card.video-card--hidden {
    display: none;
}

.video-card.video-card--hidden.show {
    display: flex;
    flex-direction: column;
}

#photoCarousel {
    max-width: 900px;
    margin: 0 auto 30px;
}

#photoCarousel .carousel-inner {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-control {
    border-radius: 12px;
}

#photoCarousel .item {
    height: 500px;
    overflow: hidden;
}

#photoCarousel .carousel-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 12px;
}

@media (max-width: 767px) {
    #photoCarousel .item {
        height: 300px;
    }
}

/* Modal windows - styled content */
.brochure-v2 .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.brochure-v2 .modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003a5c 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 18px 20px;
    border: none;
}
.brochure-v2 .modal-header .modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.brochure-v2 .modal-header .close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
}
.brochure-v2 .modal-header .close:hover {
    opacity: 1;
}
.brochure-v2 .modal-body {
    padding: 24px 24px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text);
}
.brochure-v2 .modal-body p {
    margin-bottom: 16px;
}
.brochure-v2 .modal-body p:last-child {
    margin-bottom: 0;
}
.brochure-v2 .modal-body .modal-highlight {
    font-weight: 600;
    color: var(--primary-blue);
}
.brochure-v2 .modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
}

/* Timetable modal */
.brochure-v2 .course-groups {
    margin-bottom: 20px;
}
.brochure-v2 .timetable-group {
    margin-bottom: 24px;
}
.brochure-v2 .timetable-group:last-of-type {
    margin-bottom: 0;
}
.brochure-v2 .timetable-group h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.timetable-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e5e2;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.timetable-group .schedule-header {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(120deg, #f0f7f4 0%, #e8f0ec 100%);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-blue);
    border-radius: 10px 10px 0 0;
}

.timetable-group ul li {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #eee;
}
.timetable-group ul li:nth-child(even) {
    background: #fafbfa;
}
.brochure-v2 .modal-body .modal-note {
    background: linear-gradient(120deg, #f8faf9 0%, #eef4f1 100%);
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-button);
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Contact list in modals */
.brochure-v2 .contact-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #eee;
}
.brochure-v2 .contact-list p {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}
.brochure-v2 .contact-list p:last-child {
    margin-bottom: 0;
}
.brochure-v2 .contact-list a {
    color: var(--primary-blue);
    font-weight: 600;
}
.brochure-v2 .contact-list a:hover {
    text-decoration: underline !important;
}

.modal-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Hero full videos modal — всегда скрыт до открытия */
#heroFullVideosModal.modal {
    display: none;
}

/* Центрирование только когда Bootstrap добавил .in */
#heroFullVideosModal.modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

#heroFullVideosModal .modal-dialog {
    max-width: 900px;
    width: 100%;
    margin: 8px auto 20px;
}

#heroFullVideosModal .modal-body {
    padding: 0;
    overflow: hidden;
}

.hero-modal__video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.hero-modal__video-wrap iframe,
.hero-modal__video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: none;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.hero-modal__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003a5c 100%);
    color: #fff;
}

.hero-modal__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.hero-modal__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.hero-modal__btn:hover,
.hero-modal__btn:focus {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    outline: none;
}

.hero-modal__btn:active {
    transform: scale(0.97);
}

.hero-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-modal__counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    #heroFullVideosModal.modal.in {
        align-items: flex-start;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 6px;
    }

    #heroFullVideosModal .modal-dialog {
        width: 100%;
        margin: 4px 0 10px;
        max-width: none;
    }

    .hero-modal__controls {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .hero-modal__title {
        font-size: 14px;
        text-align: center;
        order: 1;
    }

    .hero-modal__nav {
        justify-content: center;
        order: 2;
    }

    .hero-modal__btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Benefits section */
.features {
    background-color: #313f50;
    color: #F7F4EE;
}

.features__list {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature:first-child {
    margin-top: 20px;
}

.feature img {
    width: 48px;
    height: 48px;
}

.feature__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E7E0CE;
}

.first__icon {
    border-radius: 15px 15px 0 0;
}

.last__icon {
    border-radius: 0 0 15px 15px;
}

/* CTA / Registration banner */
.cta-block__bg {
    background-image: url("/src/images/brochure/feature_bg.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cta-block__content {
    color: var(--text-white);
    z-index: 2;
}

.cta-block__content h4 {
    font-size: clamp(20px, 4vw, 40px);
    margin-bottom: 10px;
}

.cta-block__content h5 {
    font-size: clamp(18px, 3vw, 28px);
    margin-bottom: 20px;
}

.cta-block__content .btn__registration {
    font-size: clamp(14px, 2vw, 18px);
    padding: 12px 30px;
}

@media (max-width: 767px) {
    .cta-block__bg {
        height: 350px;
        background-position: center;
    }
}

/* Online course intro block - styled content */
.online-course-block {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 0 30px;
}
.online-course-block .course-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
    text-align: center;
}
.course-intro-block {
    background: linear-gradient(135deg, #fafbfa 0%, #f5f7f6 100%);
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid #e8ebe9;
    margin-bottom: 24px;
}
.online-course-block .course-intro-text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 18px;
}
.online-course-block .course-intro-text:last-of-type {
    margin-bottom: 0;
}
.online-course-block .course-intro-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
}
.online-course-block .course-intro-cta {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 19px;
    text-align: center;
    margin: 24px 0 20px;
    padding: 14px 24px;
    background: rgba(125, 166, 139, 0.15);
    border-radius: 10px;
    border-left: 4px solid var(--primary-button);
}
.online-course-block .course-intro-text.course-cta {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 18px;
    text-align: center;
    margin: 20px 0;
}
.online-course-block .course-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.online-course-block .course-benefits-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 17px;
}
.online-course-block .course-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-button);
    font-weight: 700;
    font-size: 18px;
}
.online-course-block .course-quote {
    background: linear-gradient(120deg, #f0f7f4 0%, #e8f0ec 100%);
    padding: 22px 28px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-button);
    margin: 24px 0;
    font-style: italic;
    color: var(--primary-blue);
    font-size: 16px;
    line-height: 1.5;
}
.online-course-block .course-quote .verse-ref {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 14px;
    color: var(--color-text);
}
.online-course-block .course-dates-box {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 18px 32px;
    border-radius: 10px;
    margin: 24px 0;
    border: 1px solid #e0e5e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.online-course-block .course-dates-box p {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
}
.online-course-block .course-dates-wrapper {
    text-align: center;
}

/* Timetable block - styled content */
.timetable-block {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 0 35px;
}
.timetable-block .timetable-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
    text-align: center;
}
.timetable-block .timetable-duration {
    display: inline-block;
    background: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 1px solid #e0e5e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
}
.timetable-block .timetable-duration-wrapper {
    text-align: center;
}
.timetable-block .timetable-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 28px;
}
.timetable-block .timetable-text .timetable-highlight {
    font-weight: 600;
    color: var(--primary-blue);
}

/* About blocks - О центре Сион, О церкви NHNE */
#aboutCenter .about-block,
#aboutNHNE .about-block {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px 0 40px;
}
#aboutCenter .about-block .about-title,
#aboutNHNE .about-block .about-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}
#aboutCenter .about-block .about-text,
#aboutNHNE .about-block .about-text {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--color-text) !important;
}
#aboutCenter .about-block .about-text .about-highlight,
#aboutNHNE .about-block .about-text .about-highlight {
    font-weight: 600 !important;
    color: var(--primary-blue) !important;
}
#aboutCenter .about-block .about-intro,
#aboutNHNE .about-block .about-intro {
    background: linear-gradient(120deg, #f8faf9 0%, #eef4f1 100%) !important;
    padding: 24px 28px !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary-button) !important;
    margin-bottom: 24px !important;
}
