/* ============================================================
   Global
   ============================================================ */
:root {
    --footer-bg-color: #1a7b94;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-image: url('../background.png');
    background-repeat: repeat;
    background-size: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background-image: url('../backgroundheader.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.header-overlay {
    background: linear-gradient(110deg, rgba(195, 80, 10, 0.58) 0%, rgba(10, 130, 160, 0.58) 100%);
}

/* --- Top nav bar --- */
.top-nav-bar {
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 0;
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.top-nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.top-nav-links a:hover {
    color: #fff;
}

.top-nav-social {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.top-social-icon:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
    position: absolute;
    right: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 4px 7px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.mobile-nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.mobile-nav-links a:hover {
    color: #fff;
}

/* --- Site logo --- */
.site-logo {
    padding: 1.8rem 0 1.2rem;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    color: white;
    display: inline-block;
}

.logo-link:hover {
    color: white;
}

.logo-image {
    width: min(640px, 95vw);
    height: auto;
}

/* --- Header page title + tabs --- */
.header-page-content {
    text-align: center;
    padding: 1.8rem 1rem 2.2rem;
}

.header-page-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.4rem;
}

.header-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.header-tab-btn {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 25px;
    padding: 0.35rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    background: transparent;
}

.header-tab-btn:hover,
.header-tab-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    color: #fff;
}

/* --- Hero card (home page) --- */
.hero-card-wrapper {
    padding: 0.5rem 1rem 2.2rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.92rem;
    color: #222;
    text-align: center;
}

.hero-card p {
    margin-bottom: 0.6rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.btn-hero {
    display: inline-block;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    padding: 0.32rem 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

/* ============================================================
   CARDS / GENERAL
   ============================================================ */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
}

.btn {
    border-radius: 30px;
    padding: 0.5rem 1.4rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.35);
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--footer-bg-color);
    color: white;
    margin-top: 0;
}

.footer-wave {
    line-height: 0;
    overflow: hidden;
    background: white;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

.footer-wave-image {
    display: block;
    width: 100%;
    height: auto;
}

.footer-body {
    padding: 2rem 0 1.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.footer-org-link a {
    color: #7ee8fc;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-org-link a:hover {
    color: #fff;
}

.footer-small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.footer-bottom-icon {
    text-align: center;
    padding: 0.5rem 0 1.8rem;
    opacity: 0.65;
}

.footer-bottom-icon svg {
    width: 72px;
    height: 86px;
}

.footer-logo-image {
    width: 72px;
    height: auto;
}

/* ============================================================
   ABOUT PAGE DOCUMENTS
   ============================================================ */
.about-divider {
    margin: 2rem 0 1.5rem;
}

.about-divider img {
    width: 100%;
    height: auto;
    display: block;
}

.about-documents-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.about-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-doc-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #dbe7f2;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2a35;
    background: #fff;
    transition: box-shadow 0.2s;
}

.about-doc-card:hover {
    color: #1f2a35;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-doc-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
}

.about-doc-card span {
    font-size: 0.85rem;
    line-height: 1.35;
}

.about-documents-list {
    margin: 0;
    padding-left: 1.2rem;
}

.about-documents-list li + li {
    margin-top: 0.5rem;
}

/* ============================================================
   COURSE BLOCKS (homepage)
   ============================================================ */
.course-block {
    display: flex;
    background: #f0f6fb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
}

.course-block-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.course-block-zone1 {
    margin-bottom: 0.5rem;
}

.course-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1f2a35;
}

.course-block-zone2 {
    margin-bottom: 0.75rem;
}

.course-block-hours {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

.course-block-zone3 {
    flex: 1;
    margin-bottom: 0.75rem;
}

.course-block-desc {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.course-block-zone5 {
    margin-top: auto;
}

.course-block-teacher-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.course-block-photo {
    width: 180px;
    min-width: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem;
}

.course-block-photo img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .course-block {
        flex-direction: column;
    }

    .course-block-photo {
        width: 100%;
        min-width: auto;
        justify-content: center;
        padding: 1rem;
    }

    .course-block-photo img {
        max-height: 180px;
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .top-nav-social {
        display: none;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }

    .header-page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .top-nav-links {
        gap: 0.7rem;
    }

    .top-nav-links a {
        font-size: 0.7rem;
    }

    .about-doc-card img {
        height: 200px;
    }
}
