/*
  Theme: Business Training & Consulting
  Design System: Glassmorphism, Volumetric UI
  Color Scheme: Neutral with Bold Accents
  Animation Style: 3D Effects
  Fonts: Playfair Display (Headings), Cairo/Amiri/Tajawal/Source Sans Pro (Body)
*/

/* CSS Variables */
:root {
    --font-primary: 'Playfair Display', 'Cairo', 'Amiri', 'Tajawal', serif;
    --font-secondary: 'Cairo', 'Amiri', 'Tajawal', 'Source Sans Pro', sans-serif;

    /* Neutral Color Scheme with Bold Accents */
    --color-primary: #007bff; /* Bright, attractive blue */
    --color-primary-dark: #0056b3; /* Darker blue for hovers/active states */
    --color-primary-light: #66b3ff; /* Lighter blue for subtle highlights */
    --color-accent: #ff8c00; /* Bold orange accent */
    --color-accent-dark: #cc7000;

    --color-text-headings: #222222; /* Very dark gray for headings */
    --color-text-body: #343a40; /* Standard dark gray for body text */
    --color-text-muted: #6c757d; /* Lighter gray for muted text */
    --color-text-on-dark: #FFFFFF; /* White text for dark backgrounds */
    --color-text-on-primary: #FFFFFF; /* White text on primary color buttons */

    --color-background-light: #f8f9fa; /* Very light gray, almost white */
    --color-background-medium: #e9ecef; /* Light gray for sections, footer */
    --color-background-card: #ffffff; /* White for cards before glass effect */

    --color-success: #28a745;
    --color-success-dark: #1e7e34;
    --color-success-background: rgba(40, 167, 69, 0.1);


    /* Glassmorphism & Volumetric UI */
    --glass-bg-light-theme: rgba(255, 255, 255, 0.65);
    --glass-border-light-theme: rgba(255, 255, 255, 0.25);
    --glass-blur-intensity: 10px;
    --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

    --volumetric-shadow-light: 0 4px 8px rgba(0,0,0,0.05), 0 6px 12px rgba(0,0,0,0.08);
    --volumetric-shadow-strong: 0 8px 16px rgba(0,0,0,0.1), 0 12px 24px rgba(0,0,0,0.1);
    --volumetric-inset-highlight: inset 0 1px 1px rgba(255,255,255,0.4);
    --volumetric-inset-shadow: inset 0 -1px 1px rgba(0,0,0,0.05);

    /* Borders & Spacing */
    --border-radius-sm: 0.5rem;  /* 8px */
    --border-radius-md: 0.9375rem; /* 15px */
    --border-radius-lg: 1.25rem; /* 20px */
    --spacing-unit: 1rem; /* 16px */

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.3s ease-in-out;
    --transition-long: 0.5s ease-in-out;
}

/* Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0px !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-primary-dark);
    text-decoration: none; /* Often preferred to keep underline off unless specific */
}

/* Paragraphs and Lists */
p {
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-body);
}
ul, ol {
    margin-bottom: var(--spacing-unit);
    padding-right: calc(var(--spacing-unit) * 1.5); /* RTL padding */
}
li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space */
}

/* Buttons - Global Styling */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-primary);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75); /* 12px 28px */
    border-radius: var(--border-radius-sm);
    box-shadow: var(--volumetric-shadow-light), var(--volumetric-inset-highlight);
    transition: all var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden; /* For ripple or other effects */
    transform: perspective(1px) translateZ(0); /* Promotes to new layer for smoother animation */
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-on-primary);
    box-shadow: var(--volumetric-shadow-strong), var(--volumetric-inset-highlight);
    transform: translateY(-2px) scale(1.02);
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: var(--volumetric-inset-shadow);
    transform: translateY(1px) scale(0.98);
}

.btn-outline-primary {
    color: var(--color-primary);
    background-color: transparent;
    background-image: none;
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    color: var(--color-text-on-primary);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary { /* Example for another button type if needed */
    background-color: var(--color-text-muted);
    border-color: var(--color-text-muted);
    color: var(--color-text-on-dark);
}
.btn-secondary:hover {
    background-color: #5a6268; /* Darken manually */
    border-color: #545b62;
    color: var(--color-text-on-dark);
}

.btn-lg {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.25); /* 16px 36px */
    font-size: 1.1rem;
}
.btn-sm {
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.25); /* 8px 20px */
    font-size: 0.875rem;
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color var(--transition-fast);
}
.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0; /* For RTL */
    background-color: var(--color-accent-dark);
    transition: width var(--transition-smooth);
}
.read-more-link:hover {
    color: var(--color-accent-dark);
}
.read-more-link:hover::after {
    width: 100%;
    right: auto; /* For RTL */
    left: 0; /* For RTL */
}

/* Forms - General Styling (Complementing Bootstrap) */
.form-control {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-neutral-medium);
    border-radius: var(--border-radius-sm);
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    color: var(--color-text-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 0, 123, 255), 0.25); /* Assuming --color-primary-rgb is set or use direct RGB */
    background-color: var(--color-background-card);
}
.form-label {
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--color-text-headings);
}
textarea.form-control {
    min-height: 120px;
}

/* Sections - General Styling */
section {
    padding-top: calc(var(--spacing-unit) * 4); /* 64px */
    padding-bottom: calc(var(--spacing-unit) * 4);
    position: relative; /* For pseudo-elements or absolute positioning inside */
}
.section-bg-light {
    background-color: var(--color-background-card); /* Often sections are on a slightly different bg or pure white */
}
.section-bg-medium {
    background-color: var(--color-background-medium);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3); /* 48px */
    color: var(--color-text-headings);
    position: relative;
}
.section-title::after { /* Decorative underline for section titles */
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-unit) auto 0;
    border-radius: 2px;
}
.lead { /* Bootstrap lead enhancement */
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Header / Navbar */
.header {
    background: var(--glass-bg-light-theme);
    backdrop-filter: blur(var(--glass-blur-intensity));
    -webkit-backdrop-filter: blur(var(--glass-blur-intensity));
    border-bottom: 1px solid var(--glass-border-light-theme);
    box-shadow: var(--glass-shadow);
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
    z-index: 1030; /* Ensure it's above other content */
}
.navbar-brand img {
    max-height: 50px; /* Adjust as needed */
    transition: transform var(--transition-smooth);
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.navbar-nav .nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-text-body);
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    position: relative;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary);
}
/* Underline effect for nav links */
.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px; /* Adjust vertical position */
    right: 0; /* Start from right for RTL */
    background-color: var(--color-primary);
    visibility: hidden;
    transform: scaleX(0);
    transition: all var(--transition-smooth);
    transform-origin: right; /* For RTL */
}
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    visibility: visible;
    transform: scaleX(1);
}
/* Bootstrap toggler icon color */
.navbar-toggler {
    border-color: transparent;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(var(--color-text-body-rgb, 52, 58, 64),0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: var(--spacing-unit);
        margin-top: calc(var(--spacing-unit) * 0.5);
        border-radius: var(--border-radius-sm);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link::before {
        transform-origin: center; /* Adjust for centered text in collapsed menu */
    }
}


/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-on-dark);
    position: relative;
    padding-top: calc(var(--spacing-unit) * 6); /* More padding for hero */
    padding-bottom: calc(var(--spacing-unit) * 6);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* The linear-gradient overlay is applied via inline style in HTML */
}
.hero-section .hero-title {
    color: var(--color-text-on-dark); /* Strictly white */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* Ensure readability */
}
.hero-section .hero-subtitle {
    color: var(--color-text-on-dark); /* Strictly white */
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero-section .btn { /* Specific hero button styling if needed, but prefer global */
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2.5);
    font-size: 1.1rem;
}
@media (max-width: 767.98px) {
    .hero-section .hero-title { font-size: 2.5rem; }
    .hero-section .hero-subtitle { font-size: 1.1rem; }
}


/* Cards - General Styling */
.card {
    background: var(--glass-bg-light-theme);
    backdrop-filter: blur(var(--glass-blur-intensity));
    -webkit-backdrop-filter: blur(var(--glass-blur-intensity));
    border: 1px solid var(--glass-border-light-theme);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    height: 100%; /* For consistent height in rows */
    display: flex; /* For STROGO requirement */
    flex-direction: column; /* For STROGO requirement */
    text-align: center; /* For STROGO requirement */
}
.card:hover {
    transform: translateY(-8px) perspective(1000px) rotateX(2deg) rotateY(-1deg); /* Subtle 3D hover */
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
/* STROGO: Card content centering */
.card-content, .card .card-body { /* card-body is Bootstrap's class */
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; /* Allows card body to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center if there's extra space */
    align-items: center; /* Horizontally center content */
}
.card-title {
    color: var(--color-primary-dark);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}
.card-text, .card p {
    color: var(--color-text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* STROGO: Card image container and image styling */
.card-image, .card .image-container { /* Renamed for consistency with HTML */
    padding: var(--spacing-unit); /* Space around icon/image */
    margin-bottom: calc(var(--spacing-unit) * 0.5); /* Space between image and text */
    display: flex; /* For centering */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Important for object-fit and border-radius */
    width: 100%; /* Take full width of card */
}
/* For images that are meant to be card tops (like in Press or Insights section) */
.card .card-img-top {
    border-top-left-radius: var(--border-radius-md); /* Match card's radius */
    border-top-right-radius: var(--border-radius-md);
    object-fit: cover;
    width: 100%;
    height: 200px; /* Example fixed height, adjust as needed */
}
/* For smaller icons within cards (like Features section) */
.card .card-image img:not(.card-img-top),
.card .image-container img:not(.card-img-top) {
    max-height: 80px; /* Example for icons */
    width: auto;
    object-fit: contain; /* For icons, contain is usually better */
    margin: 0 auto var(--spacing-unit); /* Center and add bottom margin */
}

/* Specific Card types for centering images within them */
.team-member-card .card-image img {
    border-radius: 50%; /* For profile pictures */
    width: 120px; /* Fixed size for profile pics */
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb, 0, 123, 255), 0.3);
    margin: var(--spacing-unit) auto;
}


/* Features Section */
#features .card-image img {
    height: 70px; /* Specific for feature icons */
    width: 70px;
    object-fit: contain;
}

/* Insights Section (Carousel) */
#insightsCarousel .carousel-item .card {
    box-shadow: none; /* Often carousels handle shadows differently */
    border: none;
}
#insightsCarousel .carousel-item .row > div[class*="col-md-4"] { /* Image column */
    display: flex;
    align-items: center;
    justify-content: center;
}
#insightsCarousel .img-fluid.rounded-start {
    /* Bootstrap's rounded-start for RTL needs specific overrides if used with fixed height image containers */
    height: 250px; /* Consistent height for carousel images */
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md) !important; /* For LTR default */
}
html[dir="rtl"] #insightsCarousel .img-fluid.rounded-start {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0 !important;
}
@media (max-width: 767.98px) { /* On mobile, insights image is on top */
    #insightsCarousel .img-fluid.rounded-start,
    html[dir="rtl"] #insightsCarousel .img-fluid.rounded-start {
        height: 200px;
        border-radius: var(--border-radius-md) var(--border-radius-md) 0 0 !important;
    }
}
#insightsCarousel .carousel-control-prev-icon,
#insightsCarousel .carousel-control-next-icon {
    background-color: rgba(var(--color-text-headings-rgb, 34, 34, 34), 0.7);
    border-radius: 50%;
    padding: 20px; /* Make controls larger */
    width: 50px;
    height: 50px;
    background-size: 50%;
}
#insightsCarousel .carousel-indicators button {
    background-color: var(--color-primary);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.7;
}
#insightsCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.1);
}

/* Modals */
.modal-content {
    background: var(--glass-bg-light-theme);
    backdrop-filter: blur(var(--glass-blur-intensity));
    -webkit-backdrop-filter: blur(var(--glass-blur-intensity));
    border: 1px solid var(--glass-border-light-theme);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-header {
    border-bottom: 1px solid var(--glass-border-light-theme);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}
.modal-title {
    color: var(--color-primary-dark);
}
.modal-body {
    padding: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-body);
}
.modal-body img {
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-unit);
}
.modal-footer {
    border-top: 1px solid var(--glass-border-light-theme);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}
.btn-close { /* Bootstrap's close button styling */
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg); /* To make it visible on glass */
}

/* Partners Section */
#partners .partner-logo {
    max-height: 70px;
    width: auto;
    filter: grayscale(80%);
    opacity: 0.75;
    transition: all var(--transition-smooth);
    margin: 0 auto; /* Center logo within its column */
}
#partners .partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1) rotate(2deg); /* Playful hover */
}

/* Press Section Cards */
#press .card-img-top {
    height: 220px; /* Consistent image height for press cards */
}

/* Accolades Section */
#accolades .accolade-item {
    padding: calc(var(--spacing-unit) * 1.5);
}
#accolades .accolade-item img { /* Award icons */
    max-height: 60px;
    margin: 0 auto var(--spacing-unit);
}
#accolades .accolade-title {
    font-size: 1.1rem;
    color: var(--color-text-headings);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
#accolades .accolade-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* External Resources Section */
#external-resources .list-group-item {
    background-color: var(--glass-bg-light-theme);
    border: 1px solid var(--glass-border-light-theme);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-unit) !important; /* Override Bootstrap if needed */
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
#external-resources .list-group-item:hover {
    background-color: rgba(var(--color-primary-rgb, 0, 123, 255), 0.05);
    transform: translateX(5px); /* For RTL */
    html[dir="ltr"] & { transform: translateX(-5px); } /* For LTR */
    box-shadow: var(--volumetric-shadow-light);
}
#external-resources .list-group-item h5 {
    color: var(--color-primary);
}
#external-resources .list-group-item p {
    color: var(--color-text-body);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Section */
#contact .contact-form, #contact .contact-info {
    padding: calc(var(--spacing-unit) * 2); /* More padding for contact elements */
}
#contact .contact-info ul li {
    margin-bottom: var(--spacing-unit);
    display: flex;
    align-items: center;
}
#contact .contact-info ul li i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-left: var(--spacing-unit); /* For RTL */
    html[dir="ltr"] & { margin-right: var(--spacing-unit); margin-left:0; }
    width: 25px; /* Align icons */
}
#contact .contact-info img[alt="خريطة الموقع"] {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--volumetric-shadow-light);
}

/* Statistical Widgets (from About Us Short Section) */
.stat-widget {
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-md);
    text-align: center;
}
.stat-widget h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.stat-widget p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--color-background-medium);
    color: var(--color-text-body);
    padding-top: calc(var(--spacing-unit) * 3);
    padding-bottom: 0; /* Copyright bar will have its own padding */
    border-top: 4px solid var(--color-primary);
}
.footer h5 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    margin-bottom: var(--spacing-unit);
    text-transform: uppercase;
    font-size: 1.1rem;
}
.footer p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.footer .list-unstyled li {
    margin-bottom: calc(var(--spacing-unit) * 0.6);
}
.footer .footer-link {
    color: var(--color-text-body);
    transition: color var(--transition-fast), padding-right var(--transition-fast); /* For RTL */
}
.footer .footer-link:hover {
    color: var(--color-primary);
    padding-right: 5px; /* For RTL */
    html[dir="ltr"] & { padding-left: 5px; padding-right: 0; }
}
.footer .copyright-bar {
    background-color: rgba(0,0,0,0.04);
    padding: var(--spacing-unit) 0;
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.footer .copyright-bar a {
    color: var(--color-primary);
    font-weight: 600;
}
.footer .copyright-bar a:hover {
    color: var(--color-primary-dark);
}
/* Footer social links (text-based) */
.footer .social-links a { /* Assuming social links are in a .social-links container */
    margin: 0 calc(var(--spacing-unit) * 0.5);
    font-size: 1rem; /* Adjust if needed */
}

/* Specific Page Styles */

/* Privacy & Terms Pages */
.page-title-section { /* Used on About, Contact, Privacy, Terms */
    padding-top: calc(var(--spacing-unit) * 5);
    padding-bottom: calc(var(--spacing-unit) * 5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Gradient overlay applied inline in HTML */
}
.page-title-section h1 {
    color: var(--color-text-on-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.page-title-section p.lead {
    color: var(--color-text-on-dark);
    opacity: 0.9;
}

#privacy-policy-content, /* ID for content block on privacy.html */
#terms-of-service-content { /* ID for content block on terms.html */
    padding-top: 100px; /* To avoid header overlap */
}
.content-section { /* Class for the main text block on static pages */
    background-color: var(--color-background-card);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: var(--border-radius-md);
    box-shadow: var(--volumetric-shadow-strong);
}
.content-section h2, .content-section h3 {
    color: var(--color-primary-dark);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}
.content-section ul {
    list-style-position: inside; /* Keeps bullets aligned in RTL */
}

/* Success Page (success.html) */
#success-page-container { /* Add this ID to the main container div in success.html */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* To allow header/footer if present, and center main content */
}
#success-page-content { /* ID for the section holding the success message card */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-card { /* The card itself on success page */
    text-align: center;
    padding: calc(var(--spacing-unit) * 2.5);
    max-width: 600px;
    margin: var(--spacing-unit) auto; /* Fallback centering if not in flex container */
    background: var(--glass-bg-light-theme); /* Re-use glass card style */
    border: 1px solid var(--glass-border-light-theme);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
}
.success-card img[alt="أيقونة نجاح"] {
    width: 100px;
    height: 100px;
    margin: 0 auto calc(var(--spacing-unit) * 1.5);
}
.success-card h1 {
    color: var(--color-success);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-unit);
}
.success-card p {
    color: var(--color-text-body);
    margin-bottom: var(--spacing-unit);
}
.success-card .btn {
    margin-top: calc(var(--spacing-unit) * 1.5);
}


/* Cookie Consent Popup */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML for simplicity, but can be moved here */
    font-family: var(--font-secondary);
}
#cookieConsentPopup p {
    font-size: 0.9rem;
}
#cookieConsentPopup button {
    font-size: 0.9rem;
    padding: 8px 18px; /* Slightly smaller button */
}

/* AOS Animation Customizations (Example for 3D feel) */
[data-aos="fade-up"] {
    transform: translate3d(0, 40px, -20px); /* Add a slight Z-axis for 3D */
    opacity: 0;
}
[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="zoom-in-up"] {
    transform: scale(0.8) translate3d(0, 30px, -50px) rotateX(15deg);
    opacity: 0;
}
[data-aos="zoom-in-up"].aos-animate {
    transform: scale(1) translate3d(0, 0, 0) rotateX(0deg);
    opacity: 1;
}

[data-aos="flip-left"] {
    transform: perspective(1500px) rotateY(60deg) translateX(-50px); /* For RTL, flip from left */
    html[dir="ltr"] & { transform: perspective(1500px) rotateY(-60deg) translateX(50px); }
    opacity: 0;
}
[data-aos="flip-left"].aos-animate {
    transform: perspective(1500px) rotateY(0deg) translateX(0);
    opacity: 1;
}


/* Responsive Adjustments for very large screens (optional) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px; /* Slightly wider container for larger screens */
    }
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
}

/* Ensure background images always cover and don't repeat */
[style*="background-image"] { /* General selector for elements with inline background images */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Utility classes */
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-success { color: var(--color-success) !important; }

.bg-primary-light-transparent { /* Example utility for a subtle background */
    background-color: rgba(var(--color-primary-rgb, 0, 123, 255), 0.05);
}

.shadow-soft { box-shadow: var(--volumetric-shadow-light); }
.shadow-strong { box-shadow: var(--volumetric-shadow-strong); }

.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }

/* Microinteraction: Button Ripple (from JS file, but CSS part) */
.btn.ripple-active::after, button.ripple-active::after { /* JS will add .ripple-active */
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--color-text-on-primary) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10,10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}
.btn.ripple-active:active:after, button.ripple-active:active:after {
    transform: scale(0,0);
    opacity: .2;
    transition: 0s;
}

/* Final check on card image centering and object-fit for various card structures */
.card .card-image.fixed-height-image-container,
.card .image-container.fixed-height-image-container {
    height: 200px; /* Default fixed height, adjust per card type if needed */
    width: 100%;
}
.card .card-image.fixed-height-image-container img,
.card .image-container.fixed-height-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container without distortion */
}
*{
    opacity: 1 !important;
}
html,body{
    overflow-x: hidden;
}
/* Ensure column content is reasonably distributed */
/* Bootstrap handles this well with its grid. No specific overrides needed unless layout issues arise. */
/* Using `col-lg-8` (2/3) or `col-md-6` (1/2) in HTML is the Bootstrap way. */