/*
  Theme: Registration and Licensing of Companies in the UAE
  Design System: Creative
  Trend: Curved Grids (implied via modern, flowing layout and rounded elements)
  Color Scheme: Tetrad
  Animation Style: Morphing
  Fonts: Oswald (headings), Nunito (body)
*/

/* -------------------------------------------------------------------------
   1. CSS Variables & Root Styles
   ------------------------------------------------------------------------- */
:root {
    --font-primary: 'Oswald', 'Cairo', sans-serif;
    --font-secondary: 'Nunito', 'Cairo', sans-serif;

    /* Tetrad Color Scheme */
    --color-main-dark: #1C2B3A;       /* Very Dark Blue/Slate (Text, Dark Elements) */
    --color-main-light: #F4F7F6;      /* Off-white/Very Light Grey (Background) */
    --color-primary-accent: #FF7A5A;  /* Coral/Orange-Red (CTAs, Highlights) */
    --color-secondary-accent: #00A7E1; /* Bright Blue (Info, Icons, Links) */
    
    --color-text-light-bg: #1C2B3A; /* Text on light backgrounds */
    --color-text-dark-bg: #FFFFFF;  /* Text on dark backgrounds (e.g., Hero, Footer) */
    --color-text-muted: #5f6c7b;  /* Muted text for less emphasis */
    --color-text-card: #333333;   /* Main text color within cards */

    --color-background-card: #FFFFFF;
    --color-border: #dde2e7;        /* Light grey border */
    --color-shadow: rgba(28, 43, 58, 0.1); /* Subtle shadow based on main-dark */
    --color-shadow-hover: rgba(28, 43, 58, 0.15);

    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    --header-height: 80px; /* Approximate header height for page padding */
}

/* Base HTML Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    direction: rtl; /* Right-to-left for Arabic */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-light-bg);
    background-color: var(--color-main-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* -------------------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-main-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em; /* Consistent bottom margin */
    text-align: center;
}

h1 { font-size: 3em; margin-bottom: 0.5em; }
h2 { font-size: 2.5em; } /* Section titles */
h3 { font-size: 1.75em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1.25em;
    color: var(--color-text-muted);
}
section p:last-of-type {
    margin-bottom: 0;
}

a {
    color: var(--color-secondary-accent);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    color: var(--color-main-dark);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--color-primary-accent);
    border-radius: var(--border-radius-sm);
}

.section-intro {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   3. Layout & Container
   ------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    overflow: hidden; /* For animations and potential curved grid effects */
}
section:nth-child(odd) {
   /* background-color: #FAFBFC; /* Subtle alternating background */
}

.grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* -------------------------------------------------------------------------
   4. Header & Navigation
   ------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(244, 247, 246, 0.9); /* Main light with slight transparency */
    backdrop-filter: blur(8px); /* Glassmorphism effect */
    padding: 0; /* Let container handle padding */
    height: var(--header-height);
    position: fixed; /* Fixed header */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--color-shadow);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
    display: flex; /* Added for vertical centering */
    align-items: center; /* Added for vertical centering */
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(28, 43, 58, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure container takes full header height */
}

.logo a {
    text-decoration: none;
    color: var(--color-main-dark);
    font-family: var(--font-primary);
    font-size: 1.6em; /* Adjusted for better balance */
    font-weight: bold;
    display: flex;
    align-items: center;
}
.logo img {
    margin-left: 12px; /* For RTL */
    height: 45px; /* Adjust as needed */
    width: auto;
}

.main-navigation .nav-links {
    list-style: none;
    display: flex;
}
.main-navigation .nav-links li {
    margin-right: 30px; /* For RTL */
}
.main-navigation .nav-links li:last-child {
    margin-right: 0;
}
.main-navigation .nav-links a {
    color: var(--color-main-dark);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1em;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.5px;
}
.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active-link {
    color: var(--color-primary-accent);
}
.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 4px;
    right: 0;
    background: var(--color-primary-accent);
    transition: width var(--transition-speed) var(--transition-timing);
    border-radius: var(--border-radius-sm);
}
.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active-link::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-main-dark);
    font-size: 2.2em;
    cursor: pointer;
    padding: 0;
}

/* Mobile Navigation */
@media (max-width: 992px) { /* Increased breakpoint for better tablet nav */
    .main-navigation .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--color-main-light);
        box-shadow: 0 8px 15px var(--color-shadow);
        padding: 20px 0;
        border-top: 1px solid var(--color-border);
    }
    .main-navigation .nav-links.active {
        display: flex;
    }
    .main-navigation .nav-links li {
        margin-right: 0;
        margin-bottom: 0; /* Remove bottom margin */
        width: 100%;
    }
     .main-navigation .nav-links li a {
        padding: 15px 25px; /* Increase padding */
        display: block;
        text-align: center; /* Center text */
        border-bottom: 1px solid var(--color-border); /* Separator */
    }
    .main-navigation .nav-links li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-links a::after{ display: none; } /* No underline on mobile */

    .menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    .logo a { font-size: 1.4em; }
    .logo img { height: 40px; }
}


/* -------------------------------------------------------------------------
   5. Global Button Styles
   ------------------------------------------------------------------------- */
.cta-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    background-color: var(--color-primary-accent);
    color: var(--color-text-dark-bg);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: 1em;
    font-family: var(--font-secondary);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--transition-speed) var(--transition-timing),
                transform var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing),
                border-radius 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Morphing border-radius */
    box-shadow: 0 4px 15px rgba(255, 122, 90, 0.3);
    letter-spacing: 0.5px;
}
.cta-button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #E86A4C; /* Darker shade of primary accent */
    transform: translateY(-3px) scale(1.03); /* Slight lift and scale */
    box-shadow: 0 8px 25px rgba(255, 122, 90, 0.4);
    color: var(--color-text-dark-bg); /* Ensure text color remains on hover */
    text-decoration: none; /* Remove underline from a tags styled as buttons */
    border-radius: var(--border-radius-lg); /* Morph border */
}
.cta-button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 12px rgba(255, 122, 90, 0.3);
}

.button-secondary { /* Example for a secondary button style */
    background-color: var(--color-secondary-accent);
    box-shadow: 0 4px 15px rgba(0, 167, 225, 0.3);
}
.button-secondary:hover {
    background-color: #008RBE6; /* Darker shade of secondary */
    box-shadow: 0 8px 25px rgba(0, 167, 225, 0.4);
}

/* -------------------------------------------------------------------------
   6. Card Styles (Portfolio, Team, Services, Gallery etc.)
   ------------------------------------------------------------------------- */
.card {
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-lg); /* More rounded for "creative" */
    box-shadow: 0 5px 25px var(--color-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), 
                box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    /* align-items: center;  Centering image block */
    height: 100%; /* For equal height cards in a grid */
    text-align: right; /* Default for RTL content */
}
.card:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced hover */
    box-shadow: 0 12px 35px var(--color-shadow-hover);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for image container */
    overflow: hidden;
    position: relative; /* For potential overlays */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers, might crop */
    display: block; /* Remove bottom space */
    transition: transform 0.4s ease-out;
}
.card:hover .card-image img {
    transform: scale(1.08); /* Subtle zoom on image */
}

.card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill space for equal height cards */
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-main-dark);
    text-align: right; /* For RTL */
    font-weight: 600;
}
.card-content p {
    font-size: 0.95em;
    color: var(--color-text-card);
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes actions to bottom if any */
}
.card-content p:last-child {
    margin-bottom: 0;
}
.card-content .cta-button { /* Button inside a card */
    margin-top: auto; /* Push to bottom if content above is short */
    align-self: flex-start; /* For RTL, start of line */
}

/* Specific to gallery cards with centered text */
.gallery-section .card .card-content {
    text-align: center;
}
.gallery-section .card .card-content p {
    font-weight: 600;
    color: var(--color-main-dark);
}


/* -------------------------------------------------------------------------
   7. Section-Specific Styles
   ------------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
    color: var(--color-text-dark-bg);
    padding: 120px 0; /* More padding for hero */
    min-height: calc(80vh - var(--header-height)); /* Ensure it's substantial */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}
/* Overlay is applied inline in HTML: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)) */
.hero-content h1 {
    color: var(--color-text-dark-bg);
    font-size: 3.5em; /* Larger for hero */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}
.hero-content p {
    color: var(--color-text-dark-bg);
    font-size: 1.3em;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.8;
}

/* Mission Section */
.mission-section .mission-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.mission-section .mission-content > div {
    flex: 1;
    min-width: 300px;
}
.mission-section .mission-content img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px var(--color-shadow);
}
.mission-section .mission-content p {
    font-size: 1.05em;
    text-align: justify; /* Justify for formal text */
    hyphens: auto; /* Improve justification */
}

/* Methodology (Timeline) Section */
.methodology-section { background-color: var(--color-background-card); }
.timeline {
    position: relative;
    margin: 30px auto;
    padding: 20px 0;
    list-style-type: none;
}
.timeline::before { /* The vertical line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-secondary-accent);
    right: 23px; /* Position line to the right for RTL, icon width/2 */
    z-index: 1;
    border-radius: 2px;
}
.timeline-item {
    margin: 30px 0;
    padding-right: 80px; /* Space for icon on the right */
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-icon {
    /* background-color is inline */
    color: var(--color-text-dark-bg);
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: var(--font-primary);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--color-main-light), 0 3px 10px var(--color-shadow);
}
.timeline-content {
    background-color: var(--color-main-light); /* Slightly different from section bg */
    padding: 25px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px var(--color-shadow);
    position: relative;
    text-align: right;
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-primary-accent);
    text-align: right;
    font-size: 1.6em;
}
.timeline-content p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.timeline-content::before { /* Arrow */
    content: ' ';
    height: 0;
    position: absolute;
    top: 20px;
    width: 0;
    z-index: 1;
    right: -12px;
    border: solid transparent;
    border-width: 12px 0 12px 12px;
    border-left-color: var(--color-main-light);
}

/* Media (Why UAE - Carousel) Section */
.media-section { background-color: var(--color-background-card); }
.content-carousel {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px var(--color-shadow);
}
.carousel-slide {
    padding: 30px; /* Padding inside the slide */
    background-color: var(--color-main-light); /* Background for each slide if different */
    /* JS handles display */
    text-align: center;
}
.carousel-slide img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    box-shadow: 0 6px 20px var(--color-shadow);
}
.carousel-slide h3 {
    color: var(--color-primary-accent);
    font-size: 2em;
    margin-bottom: 15px;
}
.carousel-slide p {
    font-size: 1.05em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: var(--color-text-muted);
}
.carousel-navigation { /* Container for prev/next buttons if any */
    text-align: center;
    margin-top: 30px;
}
.carousel-prev, .carousel-next {
    /* Uses global button styles */
    margin: 0 8px;
    background-color: var(--color-secondary-accent);
    box-shadow: 0 4px 15px rgba(0, 167, 225, 0.2);
}
.carousel-prev:hover, .carousel-next:hover {
    background-color: #008RBE6;
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.3);
}

/* Team Section */
.team-section { background-color: var(--color-background-card); }
.team-member .card-image {
    height: 280px; /* Specific height for team member photos */
}
.team-member .card-content { text-align: center; } /* Center team member info */
.team-member h3 { text-align: center; font-size: 1.6em; }
.team-member h4 { /* Role */
    text-align: center;
    color: var(--color-secondary-accent);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}
.team-member p {
    font-size: 0.9em;
    text-align: center;
}

/* Careers (Opportunities & Growth) Section */
.careers-section .careers-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.careers-section .careers-content > div {
    flex: 1;
    min-width: 300px;
}
.careers-section .careers-content img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px var(--color-shadow);
}
.careers-section .careers-content p {
    font-size: 1.05em;
    text-align: justify;
    hyphens: auto;
}

/* External Resources Section */
.external-resources-section { background-color: var(--color-background-card); }
.resources-list {
    list-style: none;
    padding: 0;
    text-align: center;
}
.resources-list li {
    margin-bottom: 20px;
}
.resources-list li a {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-secondary-accent);
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}
.resources-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 3px;
    right: 50%;
    transform: translateX(50%);
    background: var(--color-primary-accent);
    transition: width var(--transition-speed) var(--transition-timing);
}
.resources-list li a:hover::after {
    width: 60%;
}
.resources-list li a:hover {
    color: var(--color-primary-accent);
}

/* FAQ Section */
.faq-accordion .faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--color-background-card);
    transition: box-shadow var(--transition-speed);
}
.faq-accordion .faq-item:hover {
    box-shadow: 0 4px 15px var(--color-shadow);
}
.faq-question {
    width: 100%;
    padding: 18px 25px;
    text-align: right;
    background-color: transparent; /* Inherit from .faq-item */
    color: var(--color-main-dark);
    border: none;
    cursor: pointer;
    font-size: 1.15em;
    font-family: var(--font-secondary);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
}
.faq-question:hover {
    color: var(--color-primary-accent);
}
.faq-question::after { /* +/- icon */
    content: '+';
    font-size: 1.6em;
    color: var(--color-secondary-accent);
    transition: transform var(--transition-speed), color var(--transition-speed);
    font-weight: bold;
    margin-right: 15px; /* For RTL */
}
.faq-question[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
    color: var(--color-primary-accent);
}
.faq-answer {
    padding: 0 25px 25px 25px; /* Padding for when open */
    background-color: transparent;
    text-align: right;
    line-height: 1.8;
    max-height: 0; /* For transition */
    overflow: hidden; /* For transition */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth open/close */
}
.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* Arbitrary large height */
    padding-top: 15px;
    padding-bottom: 25px;
}
.faq-answer p {
    margin: 0 0 10px 0;
    color: var(--color-text-muted);
}
.faq-answer p:last-child { margin-bottom: 0; }


/* Contact Section */
.contact-section {
    background-color: var(--color-main-dark);
    color: var(--color-text-dark-bg);
}
.contact-section .section-title,
.contact-section .section-intro,
.contact-section h3 {
    color: var(--color-text-dark-bg);
}
.contact-section .section-intro {
    color: #c5cdd3; /* Lighter muted for dark bg */
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text-dark-bg);
    text-align: right;
    font-size: 1.05em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #3E5062; /* Adjusted border for dark theme */
    border-radius: var(--border-radius-sm);
    background-color: #2A3B4C; /* Darker input field */
    color: var(--color-text-dark-bg);
    font-family: var(--font-secondary);
    font-size: 1em;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8997a5; /* Lighter placeholder */
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 90, 0.25);
    background-color: #304355; /* Slightly lighter on focus */
}
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center; /* For RTL */
    padding-left: 50px;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form .submit-button { /* Already styled globally */
    width: 100%; /* Full width submit button */
    padding: 18px 35px; /* Larger padding for main CTA */
    font-size: 1.1em;
}
.contact-details {
    text-align: center;
    margin-top: 50px;
}
.contact-details p {
    color: #c5cdd3;
    font-size: 1.1em;
    margin-bottom: 12px;
}
.contact-details a {
    color: var(--color-secondary-accent);
}
.contact-details a:hover {
    color: var(--color-primary-accent);
}
.contact-map-image img {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-main-dark);
    color: #adb5bd; /* Lighter text for footer */
    padding: 50px 0;
    text-align: center;
}
.footer-nav { margin-bottom: 25px; }
.footer-nav a {
    color: #dee2e6; /* Bright links */
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}
.footer-nav a:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}
.social-media { margin-bottom: 25px; }
.social-media p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #dee2e6;
}
.social-media a { /* Text-based social links */
    color: var(--color-secondary-accent);
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color var(--transition-speed);
}
.social-media a:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}
.copyright p {
    font-size: 0.9em;
    color: #8d98a3; /* Muted copyright */
    margin-bottom: 5px;
}
.copyright p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   9. Animations & Transitions
   ------------------------------------------------------------------------- */
/* Scroll Animation Placeholders (JS will add .is-visible) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Start slightly lower */
    transition: opacity 0.7s var(--transition-timing), transform 0.7s var(--transition-timing);
    transition-delay: 0.1s; /* Slight delay */
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barba.js Page Transitions (Basic Example) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease-in-out;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}


/* -------------------------------------------------------------------------
   10. Specific Page Styles
   ------------------------------------------------------------------------- */
/* For privacy.html and terms.html, ensures content isn't under fixed header */
.page-content-padding {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px; /* Ensure space before footer */
}
.page-content-padding h1 { /* Page title on these static pages */
    margin-bottom: 30px;
    font-size: 2.8em;
}
.page-content-padding h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: right;
    color: var(--color-main-dark);
}
.page-content-padding p,
.page-content-padding ul li {
    text-align: right;
    font-size: 1.05em;
    color: var(--color-text-muted);
}
.page-content-padding ul {
    list-style-position: inside; /* For RTL lists */
    padding-right: 20px; /* Indent list for RTL */
    margin-bottom: 20px;
}

/* For success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--color-main-light);
}
.success-page-container .icon-success { /* Placeholder for a success icon */
    font-size: 5em;
    color: var(--color-primary-accent);
    margin-bottom: 25px;
    /* Example: using a checkmark character or an SVG */
}
.success-page-container .icon-success::before {
    content: "✔"; /* Simple checkmark */
    display: block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border: 3px solid var(--color-primary-accent);
    border-radius: 50%;
}
.success-page-container h1 {
    color: var(--color-main-dark);
    font-size: 3em;
    margin-bottom: 20px;
}
.success-page-container p {
    font-size: 1.25em;
    margin-bottom: 35px;
    color: var(--color-text-muted);
    max-width: 600px;
}
/* Button on success page uses global .cta-button style */


/* -------------------------------------------------------------------------
   11. Cookie Consent Popup (from HTML, can be refined here)
   ------------------------------------------------------------------------- */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML for simplicity as requested */
    /* Can add transitions here if desired */
    font-family: var(--font-secondary);
}
#cookieConsentPopup p {
    color: var(--color-text-dark-bg); /* Ensure text is readable */
    margin-bottom: 15px; /* Spacing for button */
}
#acceptCookieButton {
    /* Uses global button styles */
}


/* -------------------------------------------------------------------------
   12. Responsive Adjustments (General)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2, .section-title { font-size: 2em; margin-bottom: 30px; }
    .section-title::after { width: 70px; height: 4px; }
    .section-intro { font-size: 1em; margin-bottom: 30px; }
    section { padding: 60px 0; }

    .hero-section { padding: 80px 0; }
    .hero-content h1 { font-size: 2.8em; }
    .hero-content p { font-size: 1.1em; }

    .grid-container {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .card-image { height: 200px; }

    /* Timeline adjustments for mobile */
    .timeline::before { right: 18px; }
    .timeline-item { padding-right: 60px; }
    .timeline-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }
    .timeline-content::before {
        top: 15px;
        right: -10px;
        border-width: 10px 0 10px 10px;
    }
    .timeline-content h3 { font-size: 1.4em; }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        padding: 12px 15px;
    }
    .contact-form select { background-position: left 15px center; padding-left: 40px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2, .section-title { font-size: 1.8em; }
    .hero-content h1 { font-size: 2.2em; }
    .hero-content p { font-size: 1em; }
    .cta-button, button, input[type="submit"] {
        padding: 12px 25px;
        font-size: 0.95em;
    }
    .footer-nav a, .social-media a { margin: 0 8px; font-size: 0.95em; }
}