/* ================================
   LINGVERSO - GLOBAL STYLES
================================ */

:root {
    --blue: #03045e;
    --blue-dark: #03045e;
    --red: #c1121f;

    --text: #172033;
    --text-light: #5f6877;

    --background: #faf9f7;
    --background-soft: #f3f5f7;

    --border: #e5e9ef;

    --max-width: 1180px;
}


/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* CONTAINER */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* ================================
   HEADER
================================ */

header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.header-container {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 190px;
    height: auto;
}

/* ================================
   HERO
================================ */

.hero {
    padding: 70px 0 80px;
    text-align: center;

    background:
        radial-gradient(circle at 85% 15%,
            rgba(255, 0, 24, 0.07),
            transparent 25%),
        radial-gradient(circle at 15% 80%,
            rgba(6, 75, 148, 0.08),
            transparent 28%),
        var(--background);
}

.eyebrow {
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero .eyebrow {
    font-size: 16px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto;

    font-size: clamp(28px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.5px;

    color: var(--blue-dark);
}

.hero-text {
    max-width: 650px;
    margin: 22px auto 28px;

    font-size: 20px;
    color: var(--text-light);
}


/* ================================
   BUTTON
================================ */

.button {
    display: inline-block;

    background: var(--blue);
    color: #ffffff;

    padding: 14px 26px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


/* ================================
   SERVICES
================================ */

/* ================================
   SERVICES
================================ */

.services {
    background: var(--background-soft);
    padding: 65px 0;
}

.services>.container>.eyebrow,
.services>.container>h2 {
    text-align: center;
}

.services h2 {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(20, 40, 70, 0.08);
}

.language-label {
    display: block;
    color: var(--red);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 16px;
}

.language-label[lang="ar"],
.language-label-ar {
    font-size: 20px;
    letter-spacing: normal;
    text-align: left;
}

.service-card h3 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 0 16px;
}

.service-card p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    margin: 0 0 16px;
    max-width: 460px;
}

.service-card p strong {
    font-weight: 700;
}

.service-card>a,
.card-links {
    margin-top: auto;
    padding-top: 12px;
}

.service-card>a,
.card-links a {
    color: var(--blue);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.service-card>a:hover,
.card-links a:hover {
    color: var(--red);
}

.service-card>a:focus-visible,
.card-links a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
    border-radius: 2px;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services {
        padding: 45px 0;
    }

    .service-card {
        padding: 26px;
    }

    .service-card h3 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}

/* ================================
   SERVICES IN CROATIAN
================================ */

/* ================================
   SERVICES IN CROATIAN
================================ */

.croatian-services {
    margin: 48px auto 0;
}

.services .croatian-services-title {
    margin: 0 0 32px;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.2px;
}

.croatian-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.croatian-service-card {
    padding: 32px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.croatian-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(20, 40, 70, 0.08);
}

.croatian-service-card .language-label {
    margin: 0 0 16px;
}

.croatian-service-card h3 {
    margin: 0 0 16px;
    color: var(--blue-dark);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
}

.croatian-service-card p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
}

.croatian-service-card p strong {
    font-weight: 700;
}

.croatian-service-card>a {
    margin-top: auto;
    padding-top: 12px;
    color: var(--blue);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
}

.croatian-service-card>a:hover {
    color: var(--red);
}

.croatian-service-card>a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .croatian-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .croatian-services {
        margin-top: 36px;
    }

    .croatian-service-card {
        padding: 26px;
    }

    .croatian-service-card h3 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .croatian-service-card {
        transition: none;
    }

    .croatian-service-card:hover {
        transform: none;
    }
}

/* ================================
   ABOUT
================================ */

.about {
    padding: 65px 0;
}

.about-container {
    max-width: 780px;
    text-align: center;
}

.about p:last-child {
    font-size: 19px;
    color: var(--text-light);
}

/* ================================
   LEGAL PAGE
================================ */

.legal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.legal-header .container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-logo-link {
    display: inline-flex;
    align-items: center;
}

.legal-logo {
    width: 210px;
    height: auto;
    display: block;
}


/* LEGAL HERO */

.legal-hero {
    padding: 70px 0 65px;
    background:
        radial-gradient(circle at 85% 15%,
            rgba(255, 0, 24, 0.06),
            transparent 28%),
        radial-gradient(circle at 15% 80%,
            rgba(6, 75, 148, 0.07),
            transparent 30%),
        var(--background);
}

.legal-container {
    max-width: 820px;
}

.legal-back {
    display: inline-block;
    margin-bottom: 45px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
    text-decoration: underline;
}

.legal-hero h1 {
    margin: 0 0 20px;
    color: var(--blue-dark);
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.legal-intro {
    max-width: 650px;
    margin: 0;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.75;
}


/* LEGAL SECTIONS */

.legal-section {
    padding: 80px 0;
    background: #ffffff;
}

.legal-section-alt {
    background: var(--background);
}

.legal-section-label {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.15;
}

.legal-updated {
    margin: 0 0 45px;
    color: var(--text-light);
    font-size: 13px;
}


/* LEGAL TEXT */

.legal-text {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.legal-text h3 {
    margin: 42px 0 12px;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.4;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text p {
    margin: 0 0 18px;
}

.legal-text ul {
    margin: 0 0 22px;
    padding-left: 24px;
}

.legal-text li {
    margin-bottom: 8px;
}

.legal-text strong {
    color: var(--blue-dark);
}

.legal-text a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-text a:hover,
.legal-text a:focus-visible {
    text-decoration-thickness: 2px;
}


/* LEGAL PAGE - MOBILE */

@media (max-width: 800px) {

    .legal-header .container {
        min-height: 74px;
    }

    .legal-logo {
        width: 190px;
    }

    .legal-hero {
        padding: 50px 0 55px;
    }

    .legal-back {
        margin-bottom: 35px;
    }

    .legal-hero h1 {
        letter-spacing: -1px;
    }

    .legal-section {
        padding: 60px 0;
    }

    .legal-updated {
        margin-bottom: 35px;
    }

    .legal-text h3 {
        margin-top: 34px;
    }

}

@media (max-width: 520px) {

    .legal-logo {
        width: 175px;
    }

    .legal-hero {
        padding: 40px 0 48px;
    }

    .legal-hero h1 {
        font-size: 40px;
    }

    .legal-intro {
        font-size: 16px;
    }

    .legal-section {
        padding: 50px 0;
    }

    .legal-section h2 {
        font-size: 32px;
    }

    .legal-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .legal-text h3 {
        font-size: 19px;
    }

}

/* ================================
   FOOTER
================================ */

footer {
    background: #0B1F6B;
    color: #ffffff;
    padding: 28px 0 20px;
    text-align: center;
}

.footer-logo {
    width: 52px;
    height: auto;
    margin: 0 auto 10px;
    background: #ffffff;
    border-radius: 6px;
}

footer>.container>p {
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* LEGAL LINKS */

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    text-decoration: underline;
}

.footer-legal span {
    opacity: 0.5;
}

.copyright {
    font-size: 12px;
    opacity: 0.6 !important;
    margin: 10px 0 0 !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================
   ABOUT ME PAGE
   ========================= */

.about-back {
    padding-top: 28px;
}

.about-back a {
    display: inline-block;
    color: var(--blue);
    font-size: 17px;
    font-weight: 600;
    transition: color .2s, transform .2s;
}

.about-back a:hover {
    color: var(--red);
    transform: translateX(-3px);
}

.about-page-hero {
    padding: 85px 0 105px;
    text-align: center;
}

.about-page-hero h1 {
    font-size: clamp(46px, 7vw, 72px);
    line-height: 1.08;
    color: var(--blue-dark);
    margin-bottom: 22px;
}

.about-page-intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 20px;
}

.about-page-section {
    padding: 100px 0;
}

.about-page-soft {
    background: var(--background-soft);
}

.about-page-content {
    max-width: 780px;
}

.about-page-content h2 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 28px;
}

.about-page-content>p:not(.eyebrow) {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-page-explore {
    padding: 100px 0;
    text-align: center;
}

.about-page-explore h2 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 35px;
}

.about-page-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ================================
   ABOUT ME
================================ */

.about-me-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 45px;
    align-items: start;
}

.about-me-content {
    max-width: 760px;
}

.about-me-photo {
    display: flex;
    justify-content: center;
    align-self: start;
    padding-top: 45px;
}

.about-me-photo img {
    width: 202px;
    height: auto;
    display: block;
    border-radius: 0;
}

.about-me-intro {
    margin-bottom: 34px;
}

.about-me-content .about-me-intro p {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}

.about-me-intro p:last-child {
    margin-bottom: 0;
}

.about-me-content .about-me-intro .about-me-lead {
    color: var(--blue-dark);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
}

.about-highlight {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.about-highlight strong {
    display: block;
    color: var(--blue-dark);
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.about-highlight span {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* =========================
   ABOUT ME PAGE
   ========================= */

.about-back {
    padding-top: 28px;
}

.about-back a {
    display: inline-block;
    color: var(--blue);
    font-size: 17px;
    font-weight: 600;
    transition: color .2s, transform .2s;
}

.about-back a:hover {
    color: var(--red);
    transform: translateX(-3px);
}

.about-page-hero {
    padding: 85px 0 105px;
    text-align: center;
}

.about-page-hero h1 {
    font-size: clamp(46px, 7vw, 72px);
    line-height: 1.08;
    color: var(--blue-dark);
    margin-bottom: 22px;
}

.about-page-intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 20px;
}

.about-page-section {
    padding: 100px 0;
}

.about-page-soft {
    background: var(--background-soft);
}

.about-page-content {
    max-width: 780px;
}

.about-page-content h2 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 28px;
}

.about-page-content>p:not(.eyebrow) {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-page-explore {
    padding: 100px 0;
    text-align: center;
}

.about-page-explore h2 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 35px;
}

.about-page-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ================================
   BUSINESS INFORMATION
================================ */

.business-info {
    padding: 30px 0 25px;
}

.business-info-inner {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.business-info-title {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.business-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.business-info-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
}

.business-info-details strong {
    color: var(--blue-dark);
}

.business-info-details a {
    color: var(--blue);
    text-decoration: none;
}

.business-info-details a:hover,
.business-info-details a:focus-visible {
    text-decoration: underline;
}

/* ================================
   TABLET / MOBILE
================================ */

@media (max-width: 800px) {

    .header-container {
        min-height: 74px;
    }

    .logo img {
        width: 170px;
    }

    /* SERVICES IN CROATIAN - MOBILE */

    .croatian-services {
        margin-top: 45px;
    }

    .croatian-services-title {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 28px;
    }

    .croatian-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .croatian-service-card {
        padding: 26px;
    }

    /* ABOUT ME - MOBILE */

    .about-me-grid {
        display: block;
        width: 100%;
    }

    .about-me-photo {
        display: flex;
        width: 100%;
        padding-top: 0;
        margin-bottom: 35px;
        justify-content: center;
    }

    .about-me-photo img {
        width: 202px;
        height: auto;
    }

    .about-me-content {
        width: 100%;
    }

    .about-highlights {
        width: 100%;
    }

    .about-highlight {
        width: 100%;
    }

    .about-me-text {
        width: 100%;
    }

    .hero {
        padding: 55px 0 65px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 18px;
    }

    .services {
        padding: 42px 0 50px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 30px;
    }

    .about {
        padding: 55px 0 40px;
    }

    .business-info {
        padding: 30px 0 25px;
    }

}


/* ================================
   SMALL PHONES
================================ */

@media (max-width: 520px) {

    .container {
        width: 88%;
    }

    .header-container {
        min-height: 70px;
        padding: 10px 0;
    }

    .logo img {
        width: 170px;
    }

    .hero {
        padding: 70px 0 80px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-text {
        font-size: 17px;
    }

    .services h2 {
        margin-bottom: 38px;
    }

    .service-card h3 {
        font-size: 26px;
    }
}

/* TRANSLATION CONTACT */

#language-services .arabic-quote-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

#language-services .arabic-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 28px;
    margin: 0;
    border: 1px solid #03045e;
    border-radius: 12px;
    background: #03045e;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

#language-services .arabic-quote-email {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

#language-services .arabic-quote-email a {
    color: #03045e;
    text-decoration: none;
}

#language-services .arabic-quote-email a:hover {
    text-decoration: underline;
}

/* Let homepage cards fit their content */

.service-grid,
.croatian-services-grid {
    align-items: start;
}

.service-card,
.croatian-service-card {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
}

.service-card p,
.croatian-service-card p {
    flex: none;
    margin-bottom: 16px;
}

.service-card>a,
.croatian-service-card>a {
    margin-top: 8px;
}

/* Align service cards within each row */
.services .service-grid,
.services .croatian-services-grid {
    align-items: stretch;
    grid-auto-rows: auto;
}

.services .service-grid>.service-card,
.services .croatian-services-grid>.croatian-service-card {
    align-self: stretch;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.services .service-card>a,
.services .croatian-service-card>a {
    margin-top: auto;
}

.services .language-label {
    min-height: 30px;
    line-height: 30px;
}

/* SERVICE CARD BUTTONS */

.services .service-card>a,
.services .croatian-service-card>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    margin-top: auto;
    padding: 11px 16px;
    min-height: 44px;
    box-sizing: border-box;

    color: var(--blue-dark);
    background: transparent;
    border: 1px solid rgba(3, 4, 94, 0.25);
    border-radius: 12px;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.services .service-card>a:hover,
.services .croatian-service-card>a:hover {
    color: #ffffff;
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.services .service-card>a:focus-visible,
.services .croatian-service-card>a:focus-visible {
    outline: 2px solid var(--blue-dark);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .services .service-card>a,
    .services .croatian-service-card>a {
        transition: none;
    }
}

/* LEGAL PAGE BACK BUTTON */

.legal-back.back-to-lingverso {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;
    padding: 11px 16px;
    min-height: 44px;
    box-sizing: border-box;

    color: #03045e;
    background: rgba(3, 4, 94, 0.04);
    border: 1px solid rgba(3, 4, 94, 0.25);
    border-radius: 12px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.legal-back.back-to-lingverso svg {
    display: block;
    flex-shrink: 0;
}

.legal-back.back-to-lingverso:hover {
    color: #ffffff;
    background: #03045e;
    border-color: #03045e;
    transform: none;
}

.legal-back.back-to-lingverso:focus-visible {
    outline: 2px solid #03045e;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .legal-back.back-to-lingverso {
        transition: none;
    }
}

/* LEGAL PAGE HEADING SIZES */

.legal-hero h1 {
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.legal-section h2 {
    font-size: clamp(26px, 2.5vw, 32px);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.legal-section h3 {
    font-size: 20px;
    line-height: 1.4;
}

/* Croatian lessons card for Arabic speakers */
.service-card-arabic {
    direction: rtl;
    text-align: right;
}

.service-card-arabic h3,
.service-card-arabic p,
.service-card-arabic a {
    letter-spacing: normal;
}

.service-card-arabic p {
    line-height: 1.9;
}

/* Balanced layout for the four main service cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-grid>.service-card {
    display: flex;
    flex-direction: column;
}

/* Arabic content fills the card and aligns its button */
.service-card-arabic {
    display: flex;
    flex-direction: column;
    flex: 1;
    direction: rtl;
    text-align: right;
}

.service-card-arabic h3 {
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: normal;
}

.service-card-arabic p {
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: normal;
}

.service-card-arabic a {
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 16px;
    border: 1px solid #c0c1df;
    border-radius: 12px;
    color: #03045e;
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    letter-spacing: normal;
}

@media (max-width: 800px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card-arabic {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* SERVICE GROUPS */

.services .service-group-title {
    margin: 0 0 12px;
    color: #03045e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-align: center;
}

.services .service-group-intro {
    margin: 0 0 28px;
    color: #62758d;
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
}

.services .service-group-intro :lang(ar) {
    font-family: "Noto Sans Arabic", sans-serif;
    letter-spacing: normal;
}

/* THREE CROATIAN OPTIONS */

.services .croatian-lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.services .service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.services .service-card h4,
.services .croatian-service-card h4 {
    margin: 0 0 16px;
    color: #03045e;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.services .service-card>a {
    align-self: flex-start;
    margin-top: auto;
}

/* LANGUAGE LABELS */

.services .language-label {
    display: block;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
}

/* ARABIC CROATIAN CARD */

.services .service-card-rtl {
    direction: rtl;
    text-align: right;
    font-family: "Noto Sans Arabic", sans-serif;
}

.services .service-card-rtl h4 {
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: normal;
}

.services .service-card-rtl p {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: normal;
}

.services .service-card-rtl>a {
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: normal;
}

.services .arabic-language-label {
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 20px;
    letter-spacing: normal;
    text-align: left;
}

.services .portuguese-language-label {
    font-size: 16px;
    letter-spacing: normal;
    text-transform: none;
}

/* SEPARATE ARABIC SERVICE GROUP */

.services .service-group-separated {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #dce3ee;
}

.services .arabic-services-card {
    margin-top: 24px;
}

.services .arabic-service-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

.services .arabic-service-details p {
    margin: 0;
}

.services .arabic-service-details>div+div {
    padding-inline-start: 32px;
    border-inline-start: 1px solid #dce3ee;
}

/* MOBILE */

@media (max-width: 800px) {
    .services .croatian-lessons-grid {
        grid-template-columns: 1fr;
    }

    .services .service-group-title {
        font-size: 18px;
    }

    .services .service-group-intro>span[lang],
    .services .service-group-intro>bdi {
        display: block;
    }

    .services .service-group-intro>span[aria-hidden] {
        display: none;
    }

    .services .service-group-separated {
        margin-top: 36px;
        padding-top: 28px;
    }

    .services .arabic-service-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services .arabic-service-details>div+div {
        padding-inline-start: 0;
        padding-top: 20px;
        border-inline-start: 0;
        border-top: 1px solid #dce3ee;
    }
}