/* -----------------------------
   BASE
------------------------------ */
* {
    box-sizing: border-box;
}

:root {
    --blue: #23447A;
    --green: #99B6AC;
    --dark: #172033;
    --text: #1f2937;
    --muted: #667085;
    --light: #f7f9fb;
    --white: #ffffff;
    --border: #e5e7eb;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--light);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 34px 18px;
}

.script-font,
h1,
h2,
h3,
.nav-title {
    font-family: "Bagfullest", Georgia, serif;
}

/* -----------------------------
   NAVBAR
------------------------------ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: rgba(35, 68, 122, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 52px;
    width: auto;
    display: block;
    background: white;
    border-radius: 10px;
    padding: 4px;
}

.nav-title {
    color: white;
    font-size: 1.45rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a,
.dropbtn {
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 10px;
    border-radius: 10px;
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    background: rgba(255,255,255,0.12);
    color: white;
}

.dropdown {
    position: relative;
}

.dropbtn {
    display: inline-block;
    cursor: default;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 245px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 200;
}

.dropdown-content a {
    display: block;
    color: var(--text);
    padding: 12px 14px;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: rgba(153,182,172,0.18);
    color: var(--blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* -----------------------------
   HERO
------------------------------ */
.hero {
    min-height: 760px;
    height: 78vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background:
        linear-gradient(rgba(35,68,122,0.48), rgba(35,68,122,0.62)),
        url("/static/images/general travel images/jbg.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    width: min(950px, 92%);
    padding: 30px 12px;
}

.hero-logo {
    max-width: 330px;
    width: 70%;
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: 0.95;
}

.hero p {
    margin: 0 auto 24px;
    max-width: 780px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

/* -----------------------------
   BUTTONS
------------------------------ */
.btn-primary,
.btn-secondary,
button {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    padding: 13px 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--green);
    color: white;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.btn-secondary {
    background: white;
    color: var(--blue);
}

.btn-primary:hover,
.btn-secondary:hover,
button:hover {
    transform: translateY(-2px);
}

/* -----------------------------
   SECTIONS
------------------------------ */
.section {
    padding: 38px 0;
}

.section-header-big {
    text-align: center;
    padding: 42px 0 22px;
}

.section-header-big h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    color: var(--blue);
    line-height: 1.05;
}

.section-header-big p {
    max-width: 850px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.section-subtitle {
    font-size: 2rem;
    color: var(--blue);
    margin: 0 0 8px;
}

.muted {
    color: var(--muted);
}

/* -----------------------------
   CARDS / GRIDS
------------------------------ */
.card-grid,
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.card,
.directory-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(17,24,39,0.07);
    overflow: hidden;
}

.card h3,
.directory-card h3 {
    color: var(--blue);
    margin-top: 0;
    font-size: 1.6rem;
}

.card p,
.directory-card p {
    line-height: 1.65;
    color: #475467;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.featured-wide {
    grid-column: 1 / -1;
    padding: 38px;
}

/* -----------------------------
   IMAGE PLACEHOLDERS / MEDIA
------------------------------ */
.image-card {
    min-height: 320px;
    border-radius: 26px;
    background:
        linear-gradient(rgba(35,68,122,0.16), rgba(153,182,172,0.35)),
        url("/static/images/travel-placeholder.jpg");
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 14px 35px rgba(17,24,39,0.07);
}

.main-media {
    height: 330px;
    border-radius: 22px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid var(--border);
}

.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------
   SLIDERS
------------------------------ */
.side-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border);
    padding: 14px;
}

.side-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.side-slider-track::-webkit-scrollbar {
    display: none;
}

.cert-card,
.review-card {
    flex: 0 0 310px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(17,24,39,0.06);
}

.cert-card img {
    width: 100%;
    height: 165px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid var(--border);
}

.cert-card-title {
    margin-top: 12px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.35;
}

.pdf-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
}

.pdf-icon {
    font-size: 2rem;
}

.review-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 900;
    color: var(--blue);
}

.review-message {
    color: #475467;
    line-height: 1.6;
}

/* -----------------------------
   FORMS
------------------------------ */
.contact-card {
    max-width: 780px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.contact-form-grid input,
.contact-form-grid textarea,
.contact-form-grid select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #d0d5dd;
    font-size: 1rem;
    background: white;
    color: var(--text);
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus,
.contact-form-grid select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(153,182,172,0.2);
}

/* -----------------------------
   FLASH MESSAGES
------------------------------ */
.flash-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.flash {
    padding: 13px 15px;
    border-radius: 14px;
    margin: 10px auto;
    border: 1px solid;
    font-weight: 800;
}

.flash-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.flash-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

/* -----------------------------
   STAR RATING
------------------------------ */
.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rating-label {
    font-weight: 900;
    color: var(--blue);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
    font-size: 30px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #d0d5dd;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* -----------------------------
   FOOTER
------------------------------ */
.footer {
    padding: 32px 18px;
    text-align: center;
    color: var(--muted);
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 980px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .dropdown-content {
        left: 0;
        right: auto;
    }

    .card-grid,
    .directory-grid,
    .two-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 650px;
    }
}

@media (max-width: 620px) {
    .nav-title {
        display: none;
    }

    .nav-logo {
        height: 44px;
    }

    .hero-logo {
        width: 88%;
    }

    .card,
    .directory-card,
    .featured-wide {
        padding: 20px;
    }

    .cert-card,
    .review-card {
        flex-basis: 270px;
    }
}

.slider-img {
    height: 310px;
    width: 420px;
    object-fit: cover;
    border-radius: 18px;
    flex: 0 0 auto;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
}

/* --- CARD HOVER EFFECT --- */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

/* --- IMAGE ZOOM ON HOVER --- */
.card-img {
    transition: transform 0.35s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

/* --- CLEAN CERT LOGOS (HOME PAGE) --- */
.logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 140px;
}

.logo-only img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    border: none;
    background: none;
}

.logo-only:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

/* --- HOME CERTIFICATION LOGO ROW --- */
.cert-logo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 950px;
    margin: 28px auto 0 auto;
}

.cert-logo-tile {
    height: 150px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(17,24,39,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-logo-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(17,24,39,0.12);
}

.cert-logo-tile img {
    max-width: 150px;
    max-height: 95px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 850px) {
    .cert-logo-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cert-logo-row {
        grid-template-columns: 1fr;
    }
}

.cert-full-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: center;
    max-width: 1150px;
    margin: 30px auto 0 auto;
}

.cert-full-grid img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(17,24,39,0.06);
    transition: all 0.25s ease;
}

.cert-full-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(17,24,39,0.12);
}

/* --- REVIEW PAGE PHOTOS --- */
.review-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review-display-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(17,24,39,0.07);
}

.review-location {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 4px;
    margin-bottom: 8px;
}

.review-photo-slider {
    width: 100%;
    overflow: hidden;
    margin: 14px 0;
    border-radius: 18px;
}

.review-photo-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.review-photo-track::-webkit-scrollbar {
    display: none;
}

.review-photo-track img {
    height: 210px;
    width: 280px;
    object-fit: cover;
    border-radius: 16px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
}

/* --- REVIEW ADMIN --- */
.admin-review-list {
    display: grid;
    gap: 24px;
}

.admin-review-card {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.btn-danger {
    background: #b42318;
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #8f1d14;
}

@media (max-width: 850px) {
    .review-page-grid {
        grid-template-columns: 1fr;
    }

    .review-photo-track img {
        width: 240px;
        height: 180px;
    }
}

/* --- CUSTOM FILE UPLOAD --- */
.custom-file-upload {
    display: inline-block;
    padding: 14px 22px;
    background: var(--green);
    color: white;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.custom-file-upload:hover {
    background: #7fa79e;
    transform: translateY(-2px);
}

.custom-file-upload input[type="file"] {
    display: none;
}

.file-name-display {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.destination-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.destination-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(17,24,39,0.08);
}

.destination-text-card {
    max-width: 1050px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .destination-gallery {
        grid-template-columns: 1fr;
    }

    .destination-gallery img {
        height: 230px;
    }
}