/* =========================================================
   PEMA EDUCATION CENTER
   MASTER WEBSITE STYLESHEET
   ========================================================= */

/* ---------- BRAND COLORS ---------- */

:root {
    --pema-blue: #0066cc;
    --pema-dark-blue: #003399;
    --pema-red: #f00000;
    --pema-cyan: #00b0f0;

    --white: #ffffff;
    --black: #111111;
    --text: #333333;
    --muted: #666666;
    --light: #f5f8fc;
    --border: #e1e7ef;

    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ---------- GENERAL ---------- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}

.section-light {
    background: var(--light);
}

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

.section-title h2 {
    color: var(--pema-dark-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}


/* ---------- TOP BAR ---------- */

.top-bar {
    background: var(--pema-dark-blue);
    color: var(--white);
    font-size: 14px;
}

.top-bar .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-contact a:hover {
    color: var(--pema-cyan);
}


/* ---------- HEADER ---------- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text h1 {
    color: var(--pema-dark-blue);
    font-size: 1.25rem;
    line-height: 1.2;
}

.logo-text span {
    color: var(--pema-red);
    font-size: 0.8rem;
    font-weight: bold;
}


/* ---------- NAVIGATION ---------- */

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--pema-dark-blue);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--pema-blue);
    color: var(--white);
}


/* ---------- DROPDOWN ---------- */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--pema-blue);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 9px 16px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--pema-blue);
}


/* ---------- MOBILE MENU BUTTON ---------- */

.menu-toggle {
    display: none;
    border: none;
    background: var(--pema-blue);
    color: var(--white);
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
}


/* ---------- HERO ---------- */

.hero {
    min-height: 560px;
    background:
        linear-gradient(
            rgba(0, 51, 153, 0.78),
            rgba(0, 102, 204, 0.70)
        ),
        url("../images/IMG-SCHTOUR.png") center/cover no-repeat;

    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 650px;
}


/* ---------- BUTTONS ---------- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--pema-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #c90000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--pema-dark-blue);
}

.btn-secondary:hover {
    background: var(--pema-cyan);
    color: var(--white);
}


/* ---------- CARDS ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--pema-dark-blue);
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
}


/* ---------- PAGE BANNER ---------- */

.page-banner {
    background:
        linear-gradient(
            rgba(0, 51, 153, 0.85),
            rgba(0, 102, 204, 0.80)
        );
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.page-banner p {
    opacity: 0.9;
}


/* ---------- GALLERY ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    color: var(--white);
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.75)
    );
}


/* ---------- GALLERY CATEGORY ---------- */

.gallery-category {
    margin-bottom: 60px;
}

.gallery-category h2 {
    color: var(--pema-dark-blue);
    border-left: 5px solid var(--pema-red);
    padding-left: 12px;
    margin-bottom: 25px;
}


/* ---------- PROFILE ---------- */

.profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.profile-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile h2 {
    color: var(--pema-dark-blue);
    margin-bottom: 15px;
}


/* ---------- CONTACT ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--pema-blue);
}

.contact-card h3 {
    color: var(--pema-dark-blue);
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 18px;
}

.contact-item strong {
    display: block;
    color: var(--pema-dark-blue);
}


/* ---------- FORMS ---------- */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pema-blue);
}


/* ---------- FOOTER ---------- */

.site-footer {
    background: var(--pema-dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.site-footer h3 {
    margin-bottom: 15px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: var(--pema-cyan);
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 14px;
}


/* ---------- NOTICE / ALERT ---------- */

.notice {
    background: #fff8e6;
    border-left: 5px solid #f0ad00;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.notice strong {
    color: #8a6500;
}


/* ---------- TABLE ---------- */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--pema-dark-blue);
    color: var(--white);
}


/* ---------- MAP ---------- */

.map-container {
    width: 100%;
    min-height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}


/* ---------- BACK TO TOP ---------- */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: var(--pema-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow);
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav > ul {
        gap: 0;
    }

    .main-nav a {
        padding: 9px 8px;
        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 800px) {

    .top-bar .container {
        justify-content: center;
    }

    .top-contact {
        justify-content: center;
        text-align: center;
    }

    .header-inner {
        min-height: 72px;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav > ul {
        display: block;
        padding: 10px;
    }

    .main-nav a {
        padding: 12px 15px;
    }

    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .hero {
        min-height: 460px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .page-banner {
        padding: 50px 0;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================
   FLOATING WHATSAPP BUTTON
   ========================= */

.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    right: 20px;
    bottom: 20px;

    background: #25D366;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 28px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    z-index: 9999;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float span {
    line-height: 1;
}