﻿/* ==============================
   Vars & Base
   ============================== */
:root {
    --gold: #d4af37;
    --dark: #1b1b1b;
    --light: #ffffff;
    --muted: #f6f6f6;
    --ink: #333;
    --teal: #00c8c8;
    --shadow: 0 10px 30px rgba(0,0,0,.12);
    --radius: 18px;
    --transition: .25s ease;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0
}

body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
    background: #fff;
    color: var(--ink);
}

/* Utility */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: filter var(--transition),transform var(--transition)
}

    .btn-gold:hover {
        filter: brightness(1.05);
        transform: translateY(-1px)
    }

.page-section {
    position: relative;
    padding: 2.5rem 0
}

.no-bg::before {
    display: none
}

/* ==============================
   Hero
   ============================== */
.hero {
    position: relative;
    min-height: 56vh;
    display: grid;
    place-items: center;
    background: #111 center/cover no-repeat;
    color: #fff;
    text-align: center;
}

    .hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.55)
    }

    .hero .container {
        position: relative;
        z-index: 1
    }

    .hero h1 {
        font-size: clamp(2rem,4vw,3rem);
        margin: .25rem 0 .5rem
    }

    .hero p {
        opacity: .95;
        margin: 0 0 1rem
    }

/* ==============================
   Section title
   ============================== */
.title-with-sub {
    text-align: center;
    color: #111;
    font-weight: 800;
    letter-spacing: .3px;
    margin: 2.25rem 0 1rem;
}

    .title-with-sub::after {
        content: "";
        display: block;
        width: 120px;
        height: 6px;
        margin: .75rem auto 0;
        border-radius: 6px;
        background: linear-gradient(to right,transparent,var(--gold),transparent);
        opacity: .7;
    }

/* ==============================
   Why cards
   ============================== */
.why-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.why-item {
    flex: 1 1 260px;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: transform var(--transition),box-shadow var(--transition);
}

    .why-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 24px rgba(0,0,0,.12)
    }

    .why-item i {
        font-size: 2rem;
        color: #00b7b7;
        margin-bottom: .75rem;
        display: inline-block
    }

    .why-item p {
        margin: 0;
        font-weight: 600;
        color: #333
    }

/* ==============================
   Institute cards (visa-card style)
   ============================== */
.card-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

.visa-card {
    width: 320px;
    height: 250px;
    position: relative;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition),box-shadow var(--transition);
}

    .visa-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0,0,0,.12)
    }

.bg-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block
}

.flag-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 136px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
}

    .flag-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%
    }

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    font-weight: 800;
    color: #fff; /* makes text white */
}


/* ==============================
   Contact layout (map + form)
   ============================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.contact-card {
    background: linear-gradient(180deg,#3f3f3f,#494949);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border-top: 6px solid var(--gold);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    overflow: visible;
}

.contact-card__header {
    margin-bottom: 1rem
}

    .contact-card__header h2 {
        color: var(--gold);
        font-weight: 800;
        margin: .2rem 0
    }

    .contact-card__header p {
        color: #ddd;
        margin: 0
    }

/* Form grid inside card */
.contact-card .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem
}

.fg {
    display: flex;
    flex-direction: column;
    gap: .35rem
}

    .fg label {
        font-weight: 800;
        color: #f7f7f7
    }

        .fg label span {
            color: #ffb3b3
        }

.input, .textarea, .contact-card select {
    width: 100%;
    background: #fff;
    color: #000;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: 1rem;
    transition: box-shadow var(--transition),border-color var(--transition);
}

    .input:focus, .textarea:focus, .contact-card select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(212,175,55,.18);
        outline: 0;
    }

.textarea {
    resize: vertical;
    min-height: 140px
}

.val-msg {
    color: #ffd5d5;
    font-size: .92rem
}

.actions {
    display: flex;
    justify-content: flex-end
}

.btn-submit {
    background: var(--gold);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: .9rem 1.4rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(212,175,55,.35);
    transition: transform .06s ease,box-shadow var(--transition),filter var(--transition);
}

    .btn-submit:hover {
        filter: brightness(1.05);
        box-shadow: 0 12px 28px rgba(212,175,55,.45)
    }

    .btn-submit:active {
        transform: translateY(1px)
    }

/* Map/branch card helpers */
.branch-box {
    background: #00c8c8;
    border-radius: 16px;
    padding: 1rem
}

.branch-line {
    border: 0;
    border-top: 1px solid #b6ece8;
    margin: .8rem 0
}

/* ==============================
   LTR / RTL handling
   ============================== */
[dir="rtl"] .info-card {
    text-align: right
}

[dir="rtl"] .why-grid {
    direction: rtl
}

[dir="rtl"] .contact-card .actions {
    justify-content: flex-start
}

[dir="rtl"] .caption {
    direction: rtl
}

[dir="rtl"] .contact-card .fg label {
    text-align: right
}

[dir="rtl"] .contact-card .input,
[dir="rtl"] .contact-card select,
[dir="rtl"] .contact-card .textarea {
    text-align: right
}

/* Keep the other column order intuitive on small screens */
@media (max-width:960px) {
    [dir="rtl"] .contact-grid > .contact-card:first-child {
        order: 2
    }

    [dir="rtl"] .contact-grid > .contact-card:last-child {
        order: 1
    }
}

/* ==============================
   Small tweaks
   ============================== */
.optional {
    opacity: .7;
    font-weight: 600;
    margin-inline-start: .25rem
}

/* ==== Study page: form full width (no map) ==== */
.contact-grid {
    /* one column only */
    grid-template-columns: 1fr !important;
    max-width: 1100px; /* or 100% if you don't use .container */
    gap: 0; /* optional: tighten spacing */
}

    /* make the card take the full grid width */
    .contact-grid > .contact-card {
        grid-column: 1 / -1;
        width: 100%;
    }

/* optional: center within the page section container */
.page-section .contact-grid {
    margin-left: auto;
    margin-right: auto;
}

/* keep internal form fields stacked as-is */
.contact-card .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}


/* Fix alignment of form fields in RTL */
[dir="rtl"] .fg {
    text-align: right;
}

    [dir="rtl"] .fg label {
        display: inline-block;
        text-align: right;
        width: 100%;
    }

[dir="rtl"] .input,
[dir="rtl"] .textarea,
[dir="rtl"] select {
    direction: rtl; /* makes text and arrow align right */
    text-align: right; /* text aligned right inside the box */
}

[dir="rtl"] select {
    padding-right: 1rem; /* space for text */
    padding-left: 0.5rem; /* less space on left */
}

/* ---------- RTL form alignment ---------- */
[dir="rtl"] .fg {
    text-align: right;
}

    [dir="rtl"] .fg label {
        display: block;
        width: 100%;
        text-align: right;
    }

/* ---------- RTL select: right-aligned text + LEFT caret ---------- */
[dir="rtl"] .contact-card select,
[dir="rtl"] select.input {
    direction: rtl; /* numbers/words flow RTL */
    text-align: right; /* value to the right */
    padding-right: 1rem; /* breathing room on the right */
    padding-left: 2.2rem; /* space for the left caret */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    /* small down arrow SVG, placed on the LEFT in RTL */
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-position: 10px 50%; /* left side */
}

/* Keep LTR selects normal with caret on the right */
[dir="ltr"] .contact-card select,
[dir="ltr"] select.input {
    direction: ltr;
    text-align: left;
    padding-left: 1rem;
    padding-right: 2.2rem; /* space for right caret */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-position: calc(100% - 10px) 50%; /* right side */
}

/* FAQ / Accordion styles */
.faq-section .faq-accordion {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: .75rem;
}

.faq-item {
    border-radius: 6px;
    overflow: visible;
}

/* header button (collapsed state) */
.faq-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #cfcfcf; /* collapsed grey */
    padding: 18px 20px;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px;
    transition: background .2s ease, color .2s ease;
    color: #444;
}

/* caret */
.faq-caret {
    font-size: 20px;
    line-height: 1;
    opacity: .9;
    width: 18px;
    display: inline-block;
    text-align: center;
}

/* the visible title text */
.faq-title {
    flex: 1;
    font-size: 1.05rem;
}

/* open state */
.faq-header[aria-expanded="true"] {
    background: linear-gradient(90deg, var(--teal), #00b7b7);
    color: #fff;
}

    .faq-header[aria-expanded="true"] .faq-caret {
        transform: rotate(180deg);
        color: #fff;
    }

/* body panel */
.faq-body {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    padding: 18px 20px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.03);
}

/* inner wrapper to control typography */
.faq-body-inner {
    color: #333;
    line-height: 1.8;
}

/* spacing between header and body when open */
.faq-item + .faq-item {
    margin-top: 6px;
}

/* RTL support: swap caret to left and right-align text */
[dir="rtl"] .faq-header {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .faq-caret {
    order: 2; /* caret will appear visually at left if we want that */
    margin-left: 12px;
    margin-right: 0;
}

[dir="ltr"] .faq-caret {
    order: 0;
}

/* responsive */
@media (max-width: 640px) {
    .faq-header {
        padding: 14px;
    }

    .faq-body {
        padding: 14px;
    }

    .faq-title {
        font-size: 1rem;
    }
}

/* ===========================
   International Driving Licence
   Accordion / Sections styles
   =========================== */

.idl-accordion {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 8px;
    box-sizing: border-box;
}

/* each accordion row */
.idl-item {
    margin: 0 0 0.75rem;
    border-radius: 8px;
    overflow: visible;
    background: transparent;
    transition: transform .18s ease;
}

/* header button */
.idl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: #d0d0d0; /* closed header bg */
    color: #222;
    padding: 1.05rem 1.1rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}

    /* hover affordance */
    .idl-head:hover {
        transform: translateY(-2px);
    }

/* title inside header (icon + text) */
.idl-title {
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    font-size: 1.05rem;
}

    /* icon styling */
    .idl-title i {
        display: inline-block;
        width: 30px; /* circle size */
        height: 30px;
        line-height: 42px; /* centers icon vertically */
        text-align: center;
        border-radius: 50%;
        background: rgba(0,0,0,0.04);
        color: var(--teal);
        font-size: 18px; /* icon size inside circle */
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
        margin-right: .6rem; /* LTR spacing */
        margin-left: 0;
        padding: 0;
    }

/* caret */
.idl-caret {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #055;
    font-weight: 700;
    transform: rotate(0deg);
    transition: transform .22s ease, background .18s ease;
    display: grid;
    place-items: center;
}

/* body: collapsed by default */
.idl-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .36s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 0;
}

    /* inner padding when open */
    .idl-body .idl-body-inner,
    .idl-body .idl-list {
        padding: 1rem 1.2rem 1.25rem 1.2rem;
        color: #333;
        line-height: 1.75;
    }

/* when open */
.idl-item.open .idl-head {
    background: linear-gradient(90deg, var(--teal), #0fb7ad);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.idl-item.open .idl-caret {
    transform: rotate(180deg);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* raised body when open */
.idl-item.open .idl-body {
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    border-top: 0;
}

/* list style */
.idl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .idl-list li {
        padding: .5rem 0;
        border-bottom: 1px dashed rgba(0,0,0,0.04);
    }

        .idl-list li:last-child {
            border-bottom: 0;
        }

/* file input styling kept minimal (matches your other inputs) */
.file {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.file__input {
    display: none;
}

.file__button {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 8px;
    padding: .45rem .7rem;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.06);
}

.file__label {
    color: #666;
    font-size: .95rem;
}

/* small screens */
@media (max-width: 720px) {
    .idl-title {
        font-size: 0.98rem;
        gap: .6rem;
    }

    .idl-head {
        padding: .9rem;
    }

    .idl-body .idl-body-inner {
        padding: .9rem;
    }
}

/* ======================
   RTL adjustments
   ====================== */
[dir="rtl"] .idl-head {
    direction: rtl;
}

[dir="rtl"] .idl-title {
    flex-direction: row-reverse;
}

    [dir="rtl"] .idl-title i {
        margin-left: 0;
        margin-right: .6rem;
    }

[dir="rtl"] .idl-caret {
    transform: rotate(0deg);
}
/* caret rotation handled by open class */
[dir="rtl"] .idl-item.open .idl-caret {
    transform: rotate(180deg);
}

/* make sure the open panel fits content (JS sets maxHeight). When JS is disabled show content */
.no-js .idl-body {
    max-height: none;
}

/* subtle focus style for accessibility */
.idl-head:focus {
    outline: 3px solid rgba(0, 199, 199, .12);
    outline-offset: 3px;
}

/* optional: fine tune icon colours for dark/light contexts */
@media (prefers-color-scheme: dark) {
    .idl-item {
        color: #ddd;
    }
}



.idl-accordion {
    max-width: 1100px;
    margin: 1rem auto 3rem;
}

.idl-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border: 1px solid #eee;
}

.idl-head {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #00c8c8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05rem;
}

.idl-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .idl-title i {
        font-size: 1rem;
    }

.idl-caret {
    width: 18px;
    height: 18px;
    position: relative;
    margin-inline: .25rem;
}

    .idl-caret::before {
        content: "";
        position: absolute;
        inset: 0;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        display: inline-block;
        transform: rotate(45deg); /* down arrow */
        margin: 2px 0 0 0;
    }

.idl-item.open .idl-caret::before {
    transform: rotate(-135deg);
}
/* up arrow */

.idl-body {
    background: #fff;
    color: #333;
    padding: 0 1.25rem;
    max-height: 0;
    transition: max-height .35s ease;
}

.idl-list {
    list-style: none;
    padding: 1rem 0 1.25rem;
    margin: 0;
}

    .idl-list li {
        position: relative;
        padding: .5rem 0 .5rem 1.75rem;
        line-height: 1.8;
        color: #444;
        border-bottom: 1px solid #f2f2f2;
    }

        .idl-list li:last-child {
            border-bottom: none;
        }

        .idl-list li::before {
            content: "✔";
            position: absolute;
            left: .5rem;
            top: .55rem;
            color: var(--gold);
            font-weight: 700;

        }

/* remove the global logo background for this page section */
.no-bg, .no-bg::before {
    background: none !important;
}

    .no-bg::before {
        display: none !important;
    }



[dir="rtl"] .idl-title i {
    margin-left: .6rem;
    margin-right: 0;
}


/* Force the intl-tel-input widget to behave LTR (flag on left, text LTR) */
.iti, .iti * {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.iti__flag-container {
    left: 12px !important;
    right: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 6 !important;
}

/* Country dropdown (list) always aligns to left of the input */
.iti__country-list {
    left: 0 !important;
    right: auto !important;
}

/* Make sure normal page RTL doesn't push the number text right */
.iti input {
    direction: ltr !important;
    text-align: left !important;
    padding-left: 64px !important; /* will be adjusted by JS too */
    padding-right: 12px !important;
}

/* If you use a wrapper, ensure the wrapper does not flip direction */
.iti-wrapper {
    direction: ltr !important;
}


/* Strong LTR overrides for intl-tel-input (keep after intl CSS) */
html[dir="rtl"] .iti,
html[dir="rtl"] .iti * {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

/* Force flag container left */
.iti .iti__flag-container {
    left: 12px !important;
    right: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
}

/* Country list: default to left; we'll also reposition with JS for safety */
.iti .iti__country-list {
    left: 0 !important;
    right: auto !important;
    direction: ltr !important;
    text-align: left !important;
    z-index: 99999 !important;
}

/* Input text should be LTR no matter page dir */
.iti input[type="tel"] {
    direction: ltr !important;
    text-align: left !important;
}

/* wrapper class used in our markup */
.iti-wrapper {
    direction: ltr !important;
}
