/* Royal Turkish Schools - Master Styles */
:root {
    --primary-red: #E31E24;
    --primary-navy: #0F1B2D;
    --accent-gold: #D4AF37;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-light: rgba(231, 235, 240, 0.8);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1240px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px rgba(15, 27, 45, 0.05);
    --shadow-thick: 0 20px 60px rgba(15, 27, 45, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease;
}

::selection {
    background: var(--primary-red);
    color: white;
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
}

.btn-primary:hover {
    background-color: #c4181d;
    border-color: #c4181d;
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

.btn-outline-navy {
    background-color: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline-navy:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--white);
}

.btn-white:hover {
    color: #c4181d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tursab-badge-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 24px;
    border-left: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.tursab-mini-icon {
    height: 24px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-tag {
    font-size: 0.6rem;
    color: #9ca3af;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 240px 0 200px;
    background-color: var(--primary-navy);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
    /* Ensure it covers most of the initial viewport */
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent tiling */
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Slightly smoother transition */
    transform: scale(1.02);
    animation: slowZoom 30s infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Adjusted for better image visibility + text contrast */
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.85) 0%, rgba(15, 27, 45, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 650px;
    line-height: 1.4;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.trust-strip {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-item i {
    font-size: 24px;
    color: var(--primary-red);
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* No replacement, just checking */
.stats-section {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 600;
    color: var(--primary-navy);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* Feature Cards (Why Us) */
.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg-light);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-thick);
    border-color: rgba(227, 30, 36, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.course-features {
    list-style: none;
    margin: 24px 0;
    flex: 1;
}

.course-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4B5563;
}

.course-features i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 0.8rem;
}

.course-footer {
    margin-top: auto;
}

.popular-card {
    border: 2px solid var(--primary-red);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

/* Page Header */
.page-header {
    background: var(--primary-navy);
    color: white !important;
    padding: 160px 0;
    /* Increased height significantly */
    margin-top: 80px;
    text-align: center;
    /* Centered text */
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3.5rem;
    /* Larger Title */
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Better readability */
    font-weight: 800;
}

.page-header p {
    font-size: 1.4rem;
    /* Larger Subtitle */
    opacity: 1;
    /* Full opacity */
    color: white !important;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.micro-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

/* Support Services */
.support-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.support-item {
    text-align: center;
    max-width: 250px;
}

.support-icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.support-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.support-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Reviews Carousel */
.reviews-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollReviews 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

/* Review Cards */
.review-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 350px;
    /* Fixed width for carousel items */
    flex-shrink: 0;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.stars {
    color: #FFB400;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
    /* Pushes author down */
}

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

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.country {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls half-way since we duplicate content */
}

/* B2B Section */
.b2b-box {
    background: var(--primary-navy);
    color: white;
    padding: 80px 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-thick);
}

.b2b-box h3 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.b2b-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 48px;
}

.badge-gold {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.b2b-value-grid {
    margin-bottom: 48px;
}

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

.value-item i {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.value-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-item span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.tursab-digital-plate {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tursab-digital-plate i {
    font-size: 1.5rem;
    color: #10B981;
}

.tursab-digital-plate strong {
    display: block;
    font-size: 0.9rem;
}

.tursab-digital-plate span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.info-item a {
    font-size: 1.25rem;
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-thick);
    border: 1px solid var(--border-light);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--primary-navy);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

/* Footer Upgrade */
.footer {
    background-color: var(--primary-navy);
    color: white;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: white;
}

.footer-partner {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
}

.footer-partner h4 {
    opacity: 0.7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-partner strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.footer-partner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.partner-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    /* Explicitly removed border */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Newsletter & Social */
.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected input and button */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    /* Pill shape */
    padding: 4px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* Newsletter & Social */
.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected input and button */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    /* Pill shape */
    padding: 4px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

/* Reverted to safe state */


.active-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
    margin-left: 15px;
}

/* Page Header - Inner Pages Fix */
.page-header h1,
.page-header h2,
.page-header h3 {
    color: white !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Subtle Patterns */
.bg-pattern {
    background-image: radial-gradient(var(--border-light) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-color: #fcfdfe;
    /* Slightly warmer white for contrast */
}

/* Accessibility Widget Styles */
#a11y-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#a11y-toggle:hover {
    transform: scale(1.1);
}

#a11y-menu {
    position: fixed;
    bottom: 90px;
    left: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 250px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#a11y-menu.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

#a11y-menu h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-navy);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
}

#a11y-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--text-dark);
}

#a11y-menu button:hover {
    background: #f5f5f5;
}

#a11y-menu button.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

#a11y-menu button i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

#a11y-menu .reset-btn {
    margin-top: 12px;
    text-align: center;
    background: #f0f0f0;
    font-weight: 600;
}

/* Accessibility Modes */
body.a11y-large-text {
    font-size: 120%;
}

body.a11y-high-contrast {
    filter: invert(1) hue-rotate(180deg);
    background-color: black;
}

body.a11y-high-contrast img,
body.a11y-high-contrast video,
body.a11y-high-contrast .hero-overlay {
    filter: invert(1) hue-rotate(180deg);
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

body.a11y-dyslexia-font {
    font-family: 'Verdana', 'Arial', sans-serif !important;
    line-height: 2 !important;
    letter-spacing: 0.05em !important;
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -100px;
    /* Hidden off-screen, fixed from -40px */
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    z-index: 10001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Footer Adjustments */
.footer-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for badges */
    gap: 20px;
    padding-top: 10px;
    grid-column: 2 / -1;
    /* Spans from column 2 to the end (wider) */
}

/* Fix for formatting trust badges properly */
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-badge-item i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    width: 30px;
    text-align: center;
}

.trust-badge-item img {
    height: 38px;
    /* Slightly larger */
    width: auto;
    min-width: 40px;
    /* Ensure they have presence */
    max-width: 90px;
    background-color: #FFFFFF;
    padding: 3px;
    border-radius: 4px;
    display: block;
    object-fit: contain;
    filter: none;
    /* Explicitly remove any filters */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow to distinguish from white backgrounds */
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-badge-text strong {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

.trust-badge-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Payments */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-payments i {
    font-size: 42px;
    /* Increased from 32px */
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-payments i:hover {
    color: white;
}

.ssl-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #10B981;
    /* Green for secure */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.ssl-secure i {
    font-size: 1rem;
    /* Reset for SSL lock icon */
    color: #10B981;
}

/* Ensure footer grid allows flow */
.footer-grid {
    grid-auto-flow: row dense;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: gap 0.2s;
}

.partner-link:hover {
    gap: 12px;
}

/* Who We Are Split */
.who-we-are-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.credential-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.credential-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-gold);
}

.credential-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: block;
}

.credential-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.credential-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sample Itineraries */
.sample-itineraries {
    border-top: 1px solid var(--border-light);
    padding-top: 80px;
}

.itinerary-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
}

.itinerary-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-thick);
}

/* Itinerary Resimleri Üzerine Karartma */
.itinerary-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 3px solid var(--accent-gold);
    display: block;
    width: 100%;
}

.itinerary-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 27, 45, 0.4) 100%);
}

.itinerary-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.itinerary-content {
    padding: 24px;
}

.itinerary-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.itinerary-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* B2B Form Enhancements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.events-note {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e2a3a 100%);
    color: white !important;
}

.events-note strong {
    color: var(--accent-gold) !important;
}

.events-note p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    margin: 0;
}

.text-red {
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .who-we-are-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .form-row,
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 180px 0 140px;
    }

    .sample-itineraries .grid-3 {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 24px;
        scroll-snap-type: x mandatory;
        margin-right: -24px;
        padding-right: 24px;
        /* Scrollbar hiding */
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .sample-itineraries .grid-3::-webkit-scrollbar {
        display: none;
    }

    .sample-itineraries .itinerary-card {
        min-width: 280px;
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

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

    .section {
        padding: 80px 0;
    }

    .b2b-box {
        padding: 60px 30px;
    }

    .contact-form {
        padding: 40px 24px;
    }
}

/* --- Mobile Footer Fix (Step 1433) --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
        text-align: center;
        gap: 40px;
    }

    .footer-brand p,
    .footer-links a,
    .footer-contact p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links ul {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-trust-badges {
        /* If travel page has badges */
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* --- ROBUST Mobile Footer Fix (Step 1454) --- */
@media (max-width: 992px) {
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-partner {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-brand p,
    .footer-links a,
    .footer-contact p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-trust-badges {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        justify-items: center !important;
    }
}

/* --- Mobile Logo Fix (Step 1459) --- */
@media (max-width: 992px) {

    .logo img,
    .logo-img {
        height: 50px !important;
        /* Smaller logo on mobile */
        width: auto !important;
    }
}

/* --- Mobile Header Cleanup (Step 1477) --- */
@media (max-width: 992px) {
    .legal-tag {
        display: none !important;
        /* Too long for mobile */
    }

    .tursab-badge-mini {
        display: none !important;
        /* Available in footer */
    }

    .header {
        padding: 10px 0 !important;
    }

    .header-container {
        padding: 0 20px;
        /* Ensure lateral padding */
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .header-actions {
        /* Only Contact button remains */
        display: flex !important;
    }
}

/* --- iPhone 13 & Small Screen Safeguards (Step 1508) --- */
@media (max-width: 480px) {

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .container,
    .footer,
    .footer-grid {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Stack Trust Badges on small screens to prevent overflow */
    .footer-trust-badges {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .trust-badge-item {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Force images to stay within bounds */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Force text wrapping */
    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    span,
    strong,
    a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* --- Smaller Footer Logos Mobile (Step 1512) --- */
@media (max-width: 992px) {

    /* Main Footer Logo */
    .footer-brand img {
        height: 40px !important;
        width: auto !important;
    }

    /* Trust Badge Logos */
    .trust-badge-item img {
        width: 45px !important;
        height: 45px !important;
    }

    .trust-badge-item {
        padding: 10px !important;
        /* Reduce padding too */
    }
}