/*
Theme Name: Ammer Theme
Description: Custom WordPress Theme for Dr. Amer Dental Clinic. Built with ACF.
Author: Antigravity
Version: 1.0.0
Text Domain: ammer
*/
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #0d4b79;
    --primary-hover: #0a3a5e;
    --text-color: #1a1a1a;
    --text-light: #5a6474;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --font-family: 'Alexandria', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 20px;
    color: #cdd3db;
    font-weight: 500;
    font-family: sans-serif;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 8px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-family);
}

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

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

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

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

.btn-block {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-areas:
        "title content"
        "booking image";
    gap: 40px;
    margin-top: 60px;
    padding-bottom: 20px;
}

/* Title Area */
.hero-title-wrapper {
    grid-area: title;
    display: flex;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

/* Content Area */
.hero-content {
    grid-area: content;
    padding-top: 15px;
    justify-self: end;
    max-width: 400px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Booking Area */
.hero-booking {
    grid-area: booking;
    max-width: 450px;
    width: 100%;
    margin-top: 10px;
}

.booking-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    /* Looks dark blue in design */
    margin-bottom: 25px;
    margin-top: 0;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    background-color: var(--white);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    outline: none;
    /* Soft shadow to separate from background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.form-control::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-wrapper .form-control {
    padding-left: 45px;
}

/* Hero Image Area */
.hero-image {
    grid-area: image;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* Services Section */
.services-section {
    padding: 80px 20px 40px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.services-header .section-title {
    color: #0E2A42;
}

.services-header .section-subtitle {
    color: #485D6F;
    width: 65%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0 0 10px 0;
    max-width: 450px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    border-radius: 16px;
    padding: 30px 25px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    transition: transform 0.3s ease;
}

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

.card-bg-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    transform: rotate(-10deg);
}

.card-bg-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    stroke-width: 1.5;
}

.card-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.card-content {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--white);
}

.card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
}

/* Trust Section */
.trust-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.trust-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.trust-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.3;
}

.trust-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e8f0f6;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 3;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
}

.trust-image {
    height: 100%;
}

.trust-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 450px;
    object-fit: cover;
    border-radius: 20px;
}

.trust-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    flex: 1;
    text-align: right;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    direction: ltr;
    text-align: left;
    width: 100px;
}

.stat-number small {
    font-size: 1.1rem;
}

/* Before/After Section */
.before-after-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.ba-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.ba-header .section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
}

.ba-header .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
    text-align: right;
    line-height: 1.3;
}

.ba-container {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    direction: ltr;
    /* Force LTR for the slider math */
    touch-action: none;
    /* Prevent scroll on touch devices when dragging */
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.ba-after {
    width: 100%;
}

.ba-before {
    width: 50%;
    /* Prototype 'before' look using filters */
    filter: sepia(0.4) brightness(0.85) contrast(0.9) hue-rotate(-10deg);
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--white);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.handle-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    gap: 4px;
}

.handle-arrows svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color);
}

.ba-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.ba-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex: 1;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-width: 120px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail:hover {
    opacity: 0.9;
}

.ba-action {
    text-align: center;
    margin-top: 10px;
}

.view-more-link {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.view-more-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
}

.testimonials-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonials-info .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.testimonials-info .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0;
}

.testimonials-controls {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 480px;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    padding-top: 10px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.user-meta .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.user-meta .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars svg {
    width: 18px;
    height: 18px;
}

.review-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0;
}

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.blog-header .section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
}

.blog-header .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
    text-align: right;
    line-height: 1.3;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 42, 66, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    padding: 0 5px;
    margin-top: 15px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.blog-date {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 20px 20px 80px;
}

.cta-box {
    background-image: linear-gradient(rgba(13, 75, 121, 0.88), rgba(13, 75, 121, 0.88)), url('assets/numbers.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(13, 75, 121, 0.15);
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.cta-subtitle {
    font-size: 1.15rem;
    margin: 0 0 35px 0;
    font-weight: 400;
    opacity: 0.95;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 14px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: #f0f4f8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-info {
    text-align: right;
}

.faq-info .section-title {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.faq-info .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s ease;
}

.faq-icon {
    color: #94a3b8;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0 0 25px 0;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 20px;
}

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

.newsletter-title h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
    text-align: right;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.newsletter-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0 0 20px 0;
    text-align: right;
    line-height: 1.3;
}

.newsletter-form {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 50px;
    padding: 6px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    color: var(--text-color);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
}

/* Footer Section */
.main-footer {
    padding: 60px 20px 40px;
    border-top: 1px solid #e2e8f0;
}

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

.footer-brand {
    text-align: right;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info {
    padding-right: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Added more space between items */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px; /* Slight increase in gap between icon and text */
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "image"
            "content"
            "booking";
        gap: 30px;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
        color: #485D6F;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-booking {
        max-width: 100%;
        margin: 0 auto;
    }

    .booking-form {
        text-align: right;
    }

    /* .main-nav display none removed */

    .hero-title {
        font-size: 2.5rem;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 1100px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .trust-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        padding: 0;
        height: auto;
    }

    .stat-item {
        flex: 1 1 45%;
        justify-content: flex-start;
    }

    .stat-text {
        text-align: right;
        flex: none;
    }

    .testimonials-controls {
        justify-content: center;
    }

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

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .header-nav,
    .header-cta {
        display: none;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

    .trust-features {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .ba-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ba-container {
        height: 350px;
    }

    .thumbnail {
        height: 80px;
        min-width: 100px;
    }

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

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-info {
        text-align: center;
        align-items: center;
    }

    .testimonials-controls {
        justify-content: center;
    }

    .cta-box {
        padding: 50px 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-info .section-title {
        font-size: 2rem;
    }

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

    .newsletter-title h2 {
        text-align: center;
        font-size: 2rem;
    }

    .newsletter-content {
        align-items: center;
    }

    .newsletter-content p {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .contact-item {
        justify-content: center;
    }
}
/* Journey Section */
.journey-section {
    background-color: #f7f9fa;
    border-radius: 30px;
    padding: 60px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.journey-content {
    padding-right: 20px;
}

.journey-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.journey-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item::before {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    bottom: -15px;
    width: 3px;
    background-color: transparent;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.step-item.active::before {
    background-color: #c7d6df;
}

.step-desc-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.step-item.active .step-desc-wrapper {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
}

.step-item.active .step-title {
    color: var(--primary-color);
}

.step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #64748b;
    width: 30px;
    text-align: left; /* Keep English numbers aligned properly */
    font-family: Arial, sans-serif;
}

.step-text {
    flex: 1;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.step-item.active .step-title {
    margin-bottom: 8px;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.journey-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .journey-section {
        padding: 40px 20px;
    }
    
    .journey-title {
        font-size: 2rem;
    }
}





/* Extra Mobile Optimizations (Max Width: 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 10px !important;
    }
    
    .section-subtitle, .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
    }

    .journey-title {
        font-size: 1.8rem !important;
    }

    .trust-title {
        font-size: 1.8rem !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
    
    .hero {
        padding: 30px 15px !important;
    }
    
    .services-section, .trust-section, .before-after-section, .testimonials-section, .blog-section, .faq-section {
        padding: 35px 15px !important;
    }
    
    .journey-section {
        padding: 25px 15px !important;
        margin-top: 25px !important;
        margin-bottom: 25px !important;
        border-radius: 20px !important;
    }
    
    .journey-grid {
        gap: 30px !important;
    }
    
    .step-item {
        gap: 15px !important;
    }
    
    .step-item::before {
        right: -8px !important;
    }

    .step-title {
        font-size: 1.15rem !important;
    }

    .step-number {
        font-size: 1rem !important;
        width: 25px !important;
    }

    .ba-container {
        height: 250px !important;
    }

    .thumbnail {
        min-width: 70px !important;
        height: 60px !important;
    }

    .cta-box {
        padding: 30px 15px !important;
        border-radius: 20px !important;
    }
    
    .booking-form {
        padding: 20px 15px !important;
    }

    .btn {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .header-actions {
        display: block;
        width: auto;
    }
    
    .header-actions .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

.close-menu-btn {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 992px) {
    .header {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: auto;
        margin-left: 15px;
    }
    
    .header-actions {
        display: none !important; /* Hide booking button in header on mobile to fit menu icon better */
    }

    /* Override the previous display: none on main-nav */
    .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        z-index: 1000;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        font-weight: 600;
        display: block;
        width: 100%;
        color: var(--text-color);
    }
    
    .close-menu-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    
    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}



/* Specific Mobile Layout Requests (Logo, Hero Margin, Services) */
@media (max-width: 768px) {
    .logo img {
        height: 50px !important;
    }
    
    .hero-grid {
        margin-top: 0 !important;
    }
    
    .services-header {
        align-items: center !important;
        text-align: center !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .service-card {
        padding: 20px 10px !important;
        min-height: 180px !important;
    }
    
    .service-icon img {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }
    
    .service-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .service-card p {
        font-size: 0.85rem !important;
    }
}

/* Trust Stats Mobile Optimization */
@media (max-width: 768px) {
    .trust-stats {
        gap: 15px !important;
    }
    .stat-item {
        flex: 1 1 45% !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: #f7f9fa !important;
        padding: 20px 10px !important;
        border-radius: 16px !important;
    }
    .stat-text {
        text-align: center !important;
        margin-bottom: 5px !important;
        font-size: 0.95rem !important;
    }
    .stat-number {
        text-align: center !important;
        font-size: 1.8rem !important;
    }
}

/* Blog Carousel Optimization on Mobile */
@media (max-width: 768px) {
    .blog-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .blog-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .blog-card {
        flex: 0 0 85% !important;
        scroll-snap-align: start;
    }
}

/* Final Mobile Layout Tweaks */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .hero-buttons .btn {
        width: auto !important;
        display: inline-flex !important;
        justify-content: center !important;
        flex: 1;
        margin-bottom: 0 !important;
        padding: 12px 10px !important;
        font-size: 0.95rem !important;
    }
    
    .hero-title-wrapper, .hero-content {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        width: 100%;
    }
    
    .services-header {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
    }
    
    .services-header h2, .services-header p, .section-title, .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .card-icon {
        width: 35px !important;
        height: 35px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .card-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
    
    .card-bg-icon {
        width: 85px !important;
        height: 85px !important;
        top: -15px !important;
        left: -15px !important;
        opacity: 0.4;
    }
    
    .card-bg-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
}

/* Further Mobile Adjustments (Logo, Hero Buttons, Card Icon) */
@media (max-width: 768px) {
    .logo img {
        height: auto !important;
        max-height: 65px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        image-rendering: -webkit-optimize-contrast; /* Helps with scaling on some mobile browsers */
        image-rendering: crisp-edges;
    }
    
    .hero-buttons {
        width: 100% !important;
    }
    
    .hero-buttons .btn {
        flex: 1 1 50% !important; /* Make buttons share 50% of the full width */
        width: 100% !important;
    }
    
    .card-icon {
        width: 48px !important;
        height: 48px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .card-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    .journey-title {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

@media (max-width: 576px) {
    .services-section, .trust-section, .before-after-section, .testimonials-section, .blog-section, .faq-section {
        padding: 30px 10px !important;
        margin-bottom: 15px !important;
    }
    
    .faq-question h3 {
        font-size: 1rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 768px) {
    .trust-image {
        height: 100% !important;
        max-height: 320px !important;
    }
    
    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .testimonials-info {
        display: contents !important;
    }
    
    .info-content {
        order: 1;
    }
    
    .testimonials-list {
        order: 2;
    }
    
    .testimonials-controls {
        order: 3;
        margin-top: 20px;
        justify-content: center;
    }
}

/* --- Animation System --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up {
    transform: translateY(40px);
}

.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight delays for grid items to stagger animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* --- Abstract GSAP Shapes --- */
.bg-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.5s ease;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(13,75,121,0.12), rgba(13,75,121,0.03));
    top: -150px;
    right: -150px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(13,75,121,0.08), rgba(13,75,121,0.02));
    bottom: -100px;
    left: -100px;
}

@media (max-width: 768px) {
    .blob-1 { width: 300px; height: 300px; top: -50px; right: -50px; }
    .blob-2 { width: 200px; height: 200px; bottom: 0px; left: -50px; }
}

/* Fix horizontal scrolling issue caused by background shapes */
body {
    overflow-x: hidden;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .trust-section, .faq-section {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
    .social-links {
        justify-content: center;
    }
}


/* Social Links Footer */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}
.social-links a i {
    font-size: 20px;
}


/* Footer Bottom */
.footer-bottom {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .trust-stats-wrapper {
        z-index: 9999;
        position: relative;
    }
}


/* Custom Title Colors */
.faq-info .section-title, 
.faq-question h3, 
.newsletter-title h2, 
.blog-header .section-title, 
.blog-title, 
.ba-header .section-title, 
.journey-title, 
.trust-title {
    color: #0E2A42 !important;
}
