/* =========================================================
   TURKEY eVisa - DESIGN SYSTEM (GLOBAL FILE)
   Version: 1.0 (Turkey Theme Edition)
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* =========================================================
   ROOT VARIABLES (TURKEY GOVERNMENT COLOR PALETTE)
========================================================= */
:root {
    /* =========================
       TURKEY NATIONAL COLORS
    ========================= */
    --primary-red: #e30a17; /* Turkish Flag Crimson Red */
    --primary-white: #ffffff;
    --accent-turquoise: #00a3a6; /* Turkish Turquoise Accent */

    --red-light: #ff2e3c;
    --red-dark: #a8000c;

    --turquoise-light: #e0f7f7;
    --turquoise-dark: #007a7c;

    /* =========================
       BACKGROUNDS
    ========================= */
    --bg-primary: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #111827; /* Charcoal Dark */

    /* =========================
       TEXT COLORS
    ========================= */
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --text-muted: #6b7280;

    /* =========================
       BORDER
    ========================= */
    --border-color: #e5e7eb;

    /* =========================
       STATUS COLORS
    ========================= */
    --success: #16a34a;
    --success-light: #dcfce7;

    --warning: #d97706;
    --warning-light: #fef3c7;

    --danger: #e30a17;
    --danger-light: #fee2e2;

    /* =========================
       SHADOWS
    ========================= */
    --shadow-sm: 0 4px 18px rgba(227, 10, 23, 0.08);
    --shadow-md: 0 10px 30px rgba(227, 10, 23, 0.12);

    /* =========================
       RADIUS
    ========================= */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* =========================
       TRANSITION
    ========================= */
    --transition: all 0.3s ease;

    /* =========================
       GRADIENTS
    ========================= */
    --gradient-primary: linear-gradient(135deg, #e30a17, #ff2e3c);
    --gradient-accent: linear-gradient(135deg, #00a3a6, #22d3ee);
    --gradient-turkey: linear-gradient(135deg, #e30a17, #a8000c);

    /* =========================
       GOVERNMENT SPECIFIC
    ========================= */
    --gov-primary: #e30a17;
    --gov-primary-dark: #a8000c;

    --gov-secondary: #4b5563;
    --gov-secondary-dark: #374151;

    --gov-success: #15803d;
    --gov-success-dark: #166534;

    --gov-warning: #b45309;
    --gov-warning-dark: #92400e;

    --gov-danger: #b91c1c;
    --gov-danger-dark: #991b1b;

    --gov-preview: #00a3a6;
    --gov-preview-dark: #007a7c;

    --turkey-red: #e30a17;
    --turkey-red-light: rgba(227, 10, 23, 0.12);
    --turkey-dark: #111827;

    /* =========================
       FOOTER
    ========================= */
    --footer-bg: #111827;
}

/* =========================================================
   GLOBAL RESET & TYPOGRAPHY
========================================================= */
html[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

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

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: var(--red-dark);
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
    width: 100%;
    max-width: 1240px;
    margin: auto;
    padding-inline: 15px;
}

/* =========================================================
   HEADINGS
========================================================= */
h1,
.heading-xl {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
h2,
.section-title {
    position: relative;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    padding-bottom: 12px;
}
h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 16px;
}
h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}
h5 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
h6 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* =========================================================
   SUBTITLE
========================================================= */
.heading-subtitle {
    max-width: 760px;
    margin: 0 auto 45px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-muted);
}

/* =========================================================
   DARK SECTION
========================================================= */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6 {
    color: var(--text-light);
}

/* =========================================================
   TEXT
========================================================= */
p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.9;
    color: #4b5563;
}
span {
    font-size: 15px;
}
small {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   LIST
========================================================= */
ul,
ol {
    padding-left: 22px;
    margin-bottom: 22px;
}
li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.9;
    color: #4b5563;
}

/* =========================================================
   TABLE
========================================================= */
.table,
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border-color);
}
thead {
    background: var(--primary-red);
}
th {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}
td {
    padding: 15px;
    border: 1px solid var(--border-color);
    vertical-align: middle;
    color: #374151;
    font-size: 14px;
}
tbody tr:nth-child(even) {
    background: #fafafa;
}
tbody tr:hover {
    background: var(--turkey-red-light);
}

/* =========================================================
   FORM
========================================================= */
input,
select,
textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    transition: var(--transition);
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 10, 23, 0.15);
}
button {
    font-family: "Poppins", sans-serif;
}

/* =========================================================
   HORIZONTAL RULE
========================================================= */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

/* =========================================================
   BLOCKQUOTE
========================================================= */
blockquote {
    padding: 20px 24px;
    border-left: 4px solid var(--primary-red);
    background: #ffffff;
    color: #4b5563;
    margin: 25px 0;
}

/* =========================================================
   CODE
========================================================= */
code {
    background: var(--turkey-red-light);
    color: var(--primary-red);
    padding: 3px 6px;
    border-radius: 4px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    .heading-subtitle {
        font-size: 15px;
    }
    th,
    td {
        padding: 12px;
    }
}
@media (max-width: 768px) {
    body {
        line-height: 1.75;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    p,
    li {
        font-size: 14px;
    }
    .container {
        padding-inline: 12px;
    }
}

/* =========================================================
   FAQ SECTION - GOVERNMENT STYLE
========================================================= */
.faq-section {
    background: var(--bg-light);
    position: relative;
}

.custom-faq {
    max-width: 100%;
    margin: auto;
}

.custom-faq .accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: none;
    transition: var(--transition);
}

.custom-faq .accordion-item:hover {
    border-color: #c5ced8;
}

.custom-faq .accordion-button {
    background: #ffffff;
    padding-block: 16px;
    padding-inline-start: 16px;
    padding-inline-end: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: none !important;
    position: relative;
    line-height: 1.6;
    text-align: start;
}

.custom-faq .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.custom-faq .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: var(--primary-red);
}

.custom-faq .accordion-button::after {
    display: none;
}

.custom-faq .accordion-button::before {
    content: "+";
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #ffffff;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.custom-faq .accordion-button:not(.collapsed)::before {
    content: "−";
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.custom-faq .accordion-body {
    padding-block: 0 16px;
    padding-inline: 16px;
    background: #ffffff;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: start;
}

.custom-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-inline-start: 3px solid var(--primary-red);
}

.custom-faq .accordion-body a {
    color: var(--primary-red);
    font-weight: 600;
}

.custom-faq .accordion-body a:hover {
    color: var(--red-dark);
}

@media (max-width: 768px) {
    .custom-faq .accordion-button {
        padding-block: 14px;
        padding-inline-start: 14px;
        padding-inline-end: 45px;
        font-size: 12px;
    }

    .custom-faq .accordion-body {
        padding-inline: 14px;
        padding-block: 0 14px;
        font-size: 12px;
    }

    .custom-faq .accordion-button::before {
        width: 22px;
        height: 22px;
        font-size: 14px;
        inset-inline-end: 12px;
    }
}

/* =========================================================
   MESSAGE BOXES - GOVERNMENT STYLE
========================================================= */
.status-message-box {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

/* SUCCESS */
.status-message-box.success {
    background: var(--success-light);
    color: var(--gov-success);
    border: 1px solid rgba(21, 128, 61, 0.2);
    border-left: 3px solid var(--gov-success);
}

/* WARNING */
.status-message-box.warning {
    background: var(--warning-light);
    color: var(--gov-warning);
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-left: 3px solid var(--gov-warning);
}

/* ERROR */
.status-message-box.error {
    background: var(--danger-light);
    color: var(--gov-danger);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-left: 3px solid var(--gov-danger);
}

/* =========================================================
   OFFER CARD - GOVERNMENT STYLE
========================================================= */
.offer-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-red);
    border-radius: 6px;
    padding: 16px 18px;
    overflow: hidden;
    transition: var(--transition);
}

.offer-card:hover {
    border-color: #c8d0da;
}

.offer-card::before {
    content: "IMPORTANT";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.4px;
}

.offer-content p {
    margin: 0;
    padding-right: 70px;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 600;
}

.offer-content strong {
    color: var(--primary-red);
    font-weight: 700;
}

@media (max-width: 768px) {
    .offer-card {
        padding: 14px;
    }

    .offer-content p {
        font-size: 12px;
        padding-right: 0;
        padding-top: 18px;
    }

    .offer-card::before {
        top: 10px;
        right: 10px;
        font-size: 9px;
        padding: 3px 7px;
    }
}

/* Non-English anchor typography */
html:not([lang="en"]) a {
    margin: 0 4px;
}
