/* ========================================
   1. SETUP & GLOBALS
======================================== */
:root {
    --bg-color: #303030;
    --accent-colour: #CEAC11;
    --accent-selected-1: #A98F18;
    --primary-text: #FFFFFF;
    --sub-text: #959595;
}

[data-theme="light"] {
    --bg-color: #FFFFFF;
    --accent-colour: #CEAC11;
    --accent-selected-1: #A98F18;
    --primary-text: #000000;
    --sub-text: #959595;
}

@font-face {
    font-family: 'Playfair-Display';
    src: url("../fonts/Playfair-Display.ttf");
}

@font-face {
    font-family: 'Chopper';
    src: url("../fonts/Chopper.ttf");
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Playfair-Display', serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-colour);
}

/* ========================================
   2. PAGE STRUCTURE & MAJOR COMPONENTS
======================================== */

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    font-family: 'Playfair-Display', serif;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

#nav-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-logo {
    position: fixed;
    left: 40px;
    top: 0;
    z-index: 10;
}

.nav-logo img {
    width: 130px;
    height: 130px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    padding-right: 40px;
    margin-left: auto;
}

.nav-links li {
    padding-left: 40px;
    cursor: pointer;
}

/* --- Language Switcher --- */
.language-switcher {
    position: relative;
}

.language-switcher-button {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-25%);
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
    margin: 0;
    padding: 0.5rem; /* This sets a small padding on all sides */
    border-radius: 5px;
    z-index: 110;
    width: max-content;
}

.language-dropdown.open {
    display: block; /* Shown when open */
}

.language-dropdown li{
    padding: 0;
    text-align: center;
}

.language-dropdown li a {
    display: block;
    border-radius: 3px;
}

.language-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-colour);
}

.icon-chevron {
    transition: transform 0.3s ease;
}

.language-switcher-button.open .icon-chevron {
    transform: rotate(180deg);
}

.hamburger-btn {
    display: none;
    z-index: 101;
    position: fixed;
    top: 20px;
    right: 40px;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-text);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

.hamburger-btn span:nth-child(1) { top: 0px; }
.hamburger-btn span:nth-child(2) { top: 11px; }
.hamburger-btn span:nth-child(3) { top: 22px; }

.hamburger-btn.is-active span:nth-child(1) { top: 11px; transform: rotate(135deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; left: -30px; }
.hamburger-btn.is-active span:nth-child(3) { top: 11px; transform: rotate(-135deg); }

@media (max-width: 1000px) {
    .hamburger-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links .close-btn-li { display: block; position: absolute; top: 10px; right: 40px; }
    #close-btn { background: none; border: none; color: var(--primary-text); font-size: 45px; cursor: pointer; }
    .nav-links li { padding: 20px 0; }
    .nav-links a:not(.btn) { font-size: 6vw; font-family: 'Playfair-Display', serif; }
    .nav-logo { left: 20px; }
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section a{
    margin-top: 5%;
}

.hero-btn {
    margin-top: 100px;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}


/* --- Homepage Story Section --- */
.our-story-section {
    position: relative;
    min-height: 100vh;
    background-image: url("../assets/home-arabesque.jpg");
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem 0;
    box-sizing: border-box;
}

/* needs to be fixed. */
/* .our-story-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: -1;
} */

@media (max-width: 1000px) {
    .our-story-section { min-height: auto; }
}


/* --- Brands Scroller --- */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--gap))); }
}

.brands-container {
    --gap: 5vw;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
    background-color: var(--bg-color);
    width: 100%;
    height: 11vh;
}

.brands-list {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 100%;
    gap: var(--gap);
    animation: scroll-left 35s linear infinite;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brands-item img {
    max-height: 80px;
    width: auto;
}


/* --- Pillars Section --- */
.pillars-section {
    padding: 5rem 2rem;
    background-color: var(--bg-color);
}

.pillars {
    display: flex;
    justify-content: space-around;
    align-items: stretch; /* Ensures lines are full height */
    text-align: center;
    margin-bottom: 4rem;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    flex: 1;
}

/* This creates the vertical lines */
.pillar-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.pillar-title {
    display: block;
    font-family: sans-serif;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pillar-subtitle {
    display: block;
    font-family: sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sub-text);
}

.philosophy-text p {
    max-width: 50%;
    margin: 0 auto;
    margin-top: 5%;
    text-align: center;
}

@media (max-width: 1000px) {
    .philosophy-text p {
        max-width: 90%;
        margin: 0 auto;
        margin-top: 5%;
        text-align: center;
    }

    .pillars {
        flex-direction: column;
        gap: 1rem;
    }

    .pillar-item {
        padding: 1.5rem 0;
    }

    /* Remove vertical lines and add horizontal ones for mobile */
    .pillar-item:not(:first-child) {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* --- Loader & Gallery Visibility --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-container.hidden {
    opacity: 0;
    pointer-events: none; /* Disables interaction when hidden */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-colour);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hide grid until it's ready */
.gallery-grid {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s; /* Fade in after loader fades out */
}

.gallery-grid.loaded {
    opacity: 1;
}

.lg-backdrop {
    /* Override the default black background with a semi-transparent one */
    background-color: rgba(0, 0, 0, 0.5) !important;

    /* Apply the 'frosted glass' blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari compatibility */
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust this value to control how far the fade extends */
    
    /* Creates the gradient from 40% black to fully transparent */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0));
    
    z-index: -1; /* Sits just behind the navbar (which is at z-index 100) */
    pointer-events: none; /* Allows you to click on content underneath the overlay */
}

/* --- Footer --- */
footer {
    background-color: #000000;
    color: #FFFFFF;
    font-family: sans-serif;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo img {
    max-width: 300px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.footer-social i {
    font-size: 45px;
}

.footer-bottom {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid #333333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-list i {
    font-size: 20px;
    width: 25px;
    text-align: center;
    margin-top: 3px;
}

@media (max-width: 800px) {
    .footer-bottom { grid-template-columns: 1fr; text-align: center; }
    .contact-list li { justify-content: center; text-align: center; }
}


/* ========================================
   3. REUSABLE LAYOUT & COMPONENTS
======================================== */

/* --- Page Sections & Wrappers --- */
.page-section-centered {
    display: flex; /* Use flexbox for more control */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    box-sizing: border-box;
    background-color: var(--bg-color);
}

.content-wrapper--wide {
    width: 100%;
    margin: 0 auto;
}

.content-wrapper--narrow {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
}

/* --- Content Block --- */
.content-block {
    background-color: var(--bg-color);
    min-height: 710px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 40px;
    box-sizing: border-box;
}

.content-block.content-block-reversed {
    flex-direction: row-reverse;
}

.content-block-image {
    flex: 0 1 45%;
    text-align: center;
}

.content-block-image img {
    width: 100%;
    max-width: 700px; /* Increased size */
    height: auto;
}

.content-block-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    min-width: 0;
    max-width: 65ch;
}

.content-block-text--centered {
    align-items: center;
    text-align: center;
}

.horizontal-btn {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: auto;
}

@media (max-width: 1000px) {
    .content-block, .content-block.content-block-reversed { flex-direction: column; min-height: auto; height: auto; padding: 20px; gap: 2rem;}
    .content-block-text,
    .content-block-image { width: 100%; }
    .content-block-text {gap: 1.5rem; align-items: center; }
    .content-block-text > img { max-width: 100%; height: auto; margin-top: 1.5rem; margin-bottom: 1.5rem; }
    .horizontal-btn { flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; }
    .horizontal-btn a { width: 75%; }

    .content-wrapper-wide,
    .content-wrapper-narrow {
        width: 100%;
    }
    
    /* Reduce the side padding on the main section for more space */
    .page-section-centered {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* ========================================
   4. UTILITIES (Typography & Buttons)
======================================== */

/* --- Headings --- */
.heading-display {
    font-family: 'Chopper', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent-colour);
    text-transform: uppercase;
    text-decoration: underline;
    text-wrap: balance;
    margin: 0;
    line-height: 1.2;
}

.heading-1 {
    font-family: 'Playfair-Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent-colour);
    margin: 0;
    line-height: 1.2;
    text-wrap: balance;
}

.heading-3 {
    font-family: 'Chopper', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    line-height: 1.1;
}

.heading-overline {
    font-family: 'Playfair-Display', serif;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--accent-colour);
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 1rem;
}


/* --- Text Sizing & Alignment --- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-white { color: #FFFFFF; }

@media (max-width:1000px){
    .text-left { text-align: center; }
    .text-center { text-align: center; }
    .text-right { text-align: center; }
}

.text-sm,
.text-md,
.text-lg {
    white-space: normal;
    overflow-wrap: break-word;
}

.text-sm { font-size: clamp(0.875rem, 2vw, 1rem); line-height: 1.6; }
.text-md { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.7; }
.text-lg { font-size: clamp(1.125rem, 3vw, 1.5rem); line-height: 1.7; }


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 5px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Playfair-Display', serif;
}

.btn-primary {
    border-color: var(--primary-text);
    color: var(--primary-text);
}
.btn-primary:hover {
    border-color: var(--accent-selected-1);
    color: var(--accent-selected-1);
}

.btn-secondary {
    border-color: var(--accent-colour);
    color: #FFFFFF;
}
.btn-secondary:hover {
    border-color: var(--accent-selected-1);
    color: var(--accent-selected-1);
}

.btn-tertiary {
    border-color: var(--accent-colour);
    color: var(--accent-colour);
}
.btn-tertiary:hover {
    border-color: var(--accent-selected-1);
    color: var(--accent-selected-1);
}

.column-small{
    width: 30%;
}

.column-medium{
    width: 50%;
}

.column-semilarge{
    width: 70%;
}

.column-large{
    width: 90%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}


/*new*/


/* --- Gallery Page --- */
.gallery-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
}

.gallery-grid {
    max-width: min(95%, 90%);
    margin: 0 auto 5rem;
    box-sizing: border-box;
}

.gallery-item {
    box-sizing: border-box;
    padding: 0.5rem; /* The space around each image */
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* --- Responsive Column Layouts (Mobile-First) --- */

/* Default: 1 column on the smallest screens */
.gallery-item {
    width: 50%;
}

/* 2 columns for small mobile landscape and up */
@media (min-width: 480px) {
    .gallery-item {
        width: 50%;
    }
}

/* 3 columns for tablets and up */
@media (min-width: 768px) {
    .gallery-item {
        width: 33.333%;
    }
}

/* 4 columns for standard desktops and up */
@media (min-width: 1200px) {
    .gallery-item {
        width: 25%;
    }
}

/*new*/

/* --- Theme Switcher --- */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.25rem; /* Adjust size as needed */
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-colour);
}

/* Hide the sun icon by default (in dark mode) */
.theme-toggle-btn .fa-sun {
    display: none;
}

/* When in light mode, hide the moon and show the sun */
[data-theme="light"] .theme-toggle-btn .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle-btn .fa-sun {
    display: block;
}

/* ========================================
    5. COMPONENTS (NEW)
======================================== */

/* --- Title Box Component --- */
.title-box {
    position: relative;
    /* 1. Increased padding for a larger box on desktop */
    padding: 3rem 5rem; 
    text-align: center;
    color: var(--primary-text);
    transition: padding 0.3s ease, font-size 0.3s ease; /* Smooth transition for resizing */
}

.title-box .border {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1; /* Borders are behind the text */
}
.title-box .border.top {
    top: 0; left: 0; right: 0; height: 1px;
}
.title-box .border.bottom {
    bottom: 0; left: 0; right: 0; height: 1px;
}
.title-box .border.left {
    top: 0; bottom: 0; left: 0; width: 1px;
}
.title-box .border.right {
    top: 0; bottom: 0; right: 0; width: 1px;
}

.title-box-text {
    position: absolute;
    left: 50%;
    display: inline-block; 
    z-index: 2; /* Ensures text is above the border */
    padding: 0 1em;
    /* 2. Increased font size for desktop */
    font-size: 1.25rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Playfair-Display', serif; /* Use project font */
}

.title-box-overline {
    top: 0;
    transform: translate(-50%, -50%);
}

.title-box-main {
    /* 3. Increased main title size using clamp() for fluid responsiveness */
    font-size: clamp(4rem, 8vw, 6rem);
    margin: 1.5rem 0;
    line-height: 1;
    color: var(--accent-colour); 
    font-family: 'Chopper', serif; /* Use project font */
}

.title-box-subtext {
    bottom: 0;
    transform: translate(-50%, 50%);
}

/* 4. Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
    .title-box {
        /* Make the box smaller on mobile */
        padding: 2rem 1.5rem;
        width: 80%; /* Give it a max width to prevent it touching the edges */
    }

    .title-box-main {
        /* Reduce main title size on mobile */
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin: 1rem 0;
    }

    .title-box-text {
        /* Reduce overline/subtext size on mobile */
        font-size: 1rem;
        padding: 0 0.5em; /* Reduce padding for smaller text */
    }
}


/* --- Boat Page: Boat Slider --- */
.boat-slider-section {
    background-color: var(--bg-color);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.boat-slider-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.slider-arrow {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.2s ease;
    z-index: 5;
}

.slider-arrow:hover {
    color: var(--accent-colour);
}

.boat-slider {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-grow: 1;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.boat-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.boat-slider-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.boat-slider-item:hover {
    transform: scale(1.05);
}

.boat-slider-item img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.boat-slider-item span {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Playfair-Display', serif;
}

.boat-slider-item.active img {
    border-color: var(--accent-colour);
}

.boat-slider-item.active span {
    color: var(--accent-colour);
}

/* --- Boat Page: Details Section --- */
.boat-details-section {
    padding: 5rem 2rem;
    background-color: var(--bg-color);
}

.boat-details-section .pillars {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.boat-details-section .philosophy-text p {
    max-width: 75ch;
    margin: 0 auto;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4rem;
    opacity: 1; /* Ensure it's visible */
}


/* ========================================
   6. RTL (Right-to-Left) STYLES
======================================== */

/* These styles apply only when the page direction is RTL */

/* --- Navbar --- */
[dir="rtl"] .nav-logo {
    left: auto;  /* Unset the default left positioning */
    right: 40px; /* Position the logo on the right */
}

[dir="rtl"] .nav-links {
    padding-right: 0;      /* Remove the LTR padding */
    padding-left: 40px;    /* Add padding on the new "end" of the navbar */
    margin-left: 0;        /* Unset the LTR margin */
    margin-right: auto;    /* Ensure it stays pushed to the left */
}

[dir="rtl"] .nav-links li {
    padding-left: 0;       /* Unset the LTR padding */
    padding-right: 40px;   /* Add padding between items in the correct direction */
}

/* --- Hamburger (Mobile View) --- */
[dir="rtl"] .hamburger-btn {
    right: auto; /* Unset default right positioning */
    left: 40px;  /* Position the hamburger on the left */
}

/* --- Text Alignment Utilities --- */
[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

[dir="rtl"] .content-block-text {
    /* Ensures text inside content blocks starts from the right */
    align-items: flex-end;
}

/* Re-centers text for blocks that should remain centered */
[dir="rtl"] .content-block-text--centered {
    align-items: center;
}