/*--------------------------------------------------------------
# CSS Variables - Modern Eco-Minimalism Theme
--------------------------------------------------------------*/
:root {
  /* Font Families */
  --font-primary: 'Roboto', 'Tajawal', sans-serif;
  --font-headings: 'Archivo Black', 'Tajawal', sans-serif;

  /* Primary Colors (Eco Green) */
  --color-primary: #4CAF50; /* Main Green */
  --color-primary-rgb: 76, 175, 80;
  --color-primary-dark: #388E3C; /* Darker Green for hover/active */
  --color-primary-light: #C8E6C9; /* Lighter Green for subtle backgrounds or accents */

  /* Secondary Colors (Complementary - Warm Orange/Amber) */
  --color-secondary: #FF9800; /* Main Orange/Amber */
  --color-secondary-rgb: 255, 152, 0;
  --color-secondary-dark: #F57C00; /* Darker Orange for hover/active */
  --color-secondary-light: #FFE0B2; /* Lighter Orange for accents */

  /* Neutral & Text Colors */
  --color-text-base: #333333; /* For body text on light backgrounds */
  --color-text-headings: #1A237E; /* Dark Blue/Indigo for strong headings */
  --color-text-muted: #6c757d;   /* Muted text, e.g., Bootstrap's default */
  --color-text-light: #FFFFFF;   /* For text on dark backgrounds */
  --color-text-on-primary: #FFFFFF;
  --color-text-on-secondary: #FFFFFF;

  /* Background Colors */
  --color-background-body: #FDFEFE; /* Very light, almost white */
  --color-background-light-section: #F8F9FA; /* Standard light grey for sections */
  --color-background-white: #FFFFFF;
  --color-background-dark: #263238; /* Dark Blue-Grey for Footer or dark sections */

  /* Borders & Shadows */
  --color-border-subtle: #DEE2E6; /* Subtle borders */
  --color-border-input: #CED4DA;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.15);

  /* Gradients */
  --gradient-hero-overlay: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  --gradient-primary-subtle: linear-gradient(135deg, var(--color-primary-light), var(--color-background-white));

  /* Spacing & Sizing */
  --spacing-unit: 1rem;
  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem;  /* 8px */
  --border-radius-lg: 0.75rem; /* 12px */
  --border-radius-pill: 50px;

  /* Transitions */
  --transition-short: all 0.2s ease-in-out;
  --transition-default: all 0.3s ease-in-out;
}

/*--------------------------------------------------------------
# General & Typography
--------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  background-color: var(--color-background-body);
  color: var(--color-text-base);
  line-height: 1.8;
  font-size: 1rem; /* Approx 16px */
  direction: rtl;
  overflow-x: hidden; /* Prevent horizontal scroll from AOS or other effects */
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-text-headings);
  font-weight: 700; /* Archivo Black is inherently bold */
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  line-height: 1.3;
}

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; }

p {
  margin-bottom: var(--spacing-unit);
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-default);
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Section Styling */
section {
  padding: calc(var(--spacing-unit) * 4) 0; /* Approx 64px */
  overflow: hidden; /* For AOS animations */
}

.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3); /* Approx 48px */
  font-size: 2.5rem; /* Consistent title size */
  color: var(--color-text-headings);
  position: relative;
  padding-bottom: var(--spacing-unit);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-sm);
}

.bg-light {
  background-color: var(--color-background-light-section) !important;
}

.lead {
    font-size: 1.15rem; /* Approx 18px */
    font-weight: 400;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# Buttons (Global Styles)
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem; /* Approx 15px */
  letter-spacing: 0.5px;
  display: inline-block;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75); /* 12px 28px */
  border-radius: var(--border-radius-pill);
  transition: var(--transition-default);
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.btn-primary,
input[type="submit"].btn-primary, /* If you add .btn-primary to submit inputs */
button.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover,
input[type="submit"].btn-primary:hover,
button.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-on-primary);
}

.btn-secondary,
button.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text-on-secondary);
}
.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-text-on-secondary);
}

.btn-outline-light {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}
.btn-outline-light:hover {
  color: var(--color-text-base);
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-link {
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.btn-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

/* Read More Link Styling */
.read-more-link {
  display: inline-block;
  font-weight: 500;
  color: var(--color-primary);
  transition: var(--transition-short);
  position: relative;
  padding-right: 20px; /* Space for icon */
}
.read-more-link::after {
  content: '\2190'; /* Left arrow for RTL */
  font-family: "bootstrap-icons", sans-serif; /* If using Bootstrap Icons, ensure font is loaded */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-short);
}
.read-more-link:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}
.read-more-link:hover::after {
  right: -5px; /* Move arrow slightly on hover */
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.navbar.sticky-top {
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-brand {
  font-size: 1.6rem; /* Slightly smaller for balance */
  letter-spacing: 0.5px;
  color: var(--color-text-headings) !important;
}
.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.6rem 1rem;
  color: var(--color-text-base);
  transition: var(--transition-short);
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after { /* Subtle underline effect for nav links */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon { /* Custom styling for burger icon if needed */
  width: 1.2em;
  height: 1.2em;
}

/* Scrolled Navbar Style */
.navbar-scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: rgba(255, 255, 255, 0.95) !important; /* Semi-transparent white */
    box-shadow: var(--shadow-medium) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  color: var(--color-text-light); /* Enforces white text */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: calc(var(--spacing-unit) * 8) 0; /* Approx 128px */
  min-height: 70vh; /* Natural height based on content or a min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.hero-section::before { /* Dark overlay for text readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero-overlay);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
  font-weight: 700; /* Archivo Black */
  color: var(--color-text-light); /* White text */
  margin-bottom: var(--spacing-unit);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.hero-section .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: calc(var(--spacing-unit) * 2);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9); /* Slightly off-white */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Cards (General Styles for Webinars, Case Studies, etc.)
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-background-white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-default);
  overflow: hidden; /* Important for image zoom effect and border radius */
  display: flex; /* For STROGO: card content centering */
  flex-direction: column;
  height: 100%; /* For consistent card heights in a row if using Bootstrap grid */
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

/* STROGO: Card Image Container Styling */
.card-image, .image-container { /* Covers both .card-image and .image-container */
  width: 100%;
  height: 220px; /* Fixed height for image containers */
  overflow: hidden;
  display: flex; /* Centers image if it's smaller */
  align-items: center;
  justify-content: center;
  background-color: var(--color-background-light-section); /* Placeholder bg */
}
.card-image img, .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, crops if necessary */
  transition: transform 0.4s ease-out;
}
.card:hover .card-image img,
.card:hover .image-container img {
  transform: scale(1.08);
}

/* STROGO: Ensure content within cards is centered if specified by card type */
.card-body, .card-content { /* .card-content from prompt */
  padding: calc(var(--spacing-unit) * 1.5); /* Approx 24px */
  flex-grow: 1; /* Allows card body to fill remaining space */
  display: flex;
  flex-direction: column;
}
.card-body.text-center, .card-content.text-center { /* If specific cards need centered text */
    align-items: center;
    text-align: center;
}
.card-title {
  font-size: 1.3rem; /* Approx 21px */
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  color: var(--color-text-headings);
}
.card-text {
  font-size: 0.9rem; /* Approx 14.5px */
  color: var(--color-text-muted);
  line-height: 1.7;
  flex-grow: 1; /* Pushes buttons/links to bottom if card body is flex */
}
.card .btn, .card .read-more-link {
    margin-top: auto; /* Pushes button to the bottom of the card */
    align-self: flex-start; /* Default for non-centered card text */
}
.card-body.text-center .btn,
.card-body.text-center .read-more-link {
    align-self: center; /* Center button in text-centered cards */
}

/* For specific cards like testimonials or team members requiring centered content */
.testimonial .card-body, .team-member .card-body {
    text-align: center;
    align-items: center;
}
.testimonial img, .team-member img { /* If image is inside card-body */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-unit);
    border-radius: 50%; /* Common for profile pics */
    width: 100px; /* Example size */
    height: 100px;
    object-fit: cover;
}


/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-label {
  font-weight: 500;
  color: var(--color-text-base);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.form-control, .form-select {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border-input);
  padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit); /* 12px 16px */
  transition: var(--transition-short);
  background-color: var(--color-background-white);
  box-shadow: none; /* Remove Bootstrap's default inner shadow */
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.2);
  background-color: var(--color-background-white);
}
.form-check-input {
  border-color: var(--color-border-input);
}
.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.2);
}
.form-check-label {
  color: var(--color-text-muted);
}
textarea.form-control {
  min-height: 120px;
}

/*--------------------------------------------------------------
# Modals (Bootstrap Modal Enhancements)
--------------------------------------------------------------*/
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-strong);
  /* Subtle Glassmorphism for modal dialog (optional) */
  /* background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); */
}
.modal-header {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}
.modal-header .btn-close {
    margin: -0.5rem -0.5rem -0.5rem auto; /* Adjust Bootstrap's default close button margin for RTL */
}
.modal-title {
  color: var(--color-text-headings);
  font-family: var(--font-headings);
}
.modal-body {
  padding: calc(var(--spacing-unit) * 1.5);
}
.modal-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}

/*--------------------------------------------------------------
# Carousels (Bootstrap Carousel Enhancements)
--------------------------------------------------------------*/
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(var(--color-primary-rgb), 0.7);
  border-radius: var(--border-radius-pill);
  width: 2.8rem;
  height: 2.8rem;
  background-size: 50% 50%;
  transition: var(--transition-short);
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(var(--color-primary-rgb), 1);
}
.carousel-indicators [data-bs-target] {
  background-color: var(--color-primary);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.6;
  border: none;
  transition: var(--transition-short);
}
.carousel-indicators .active {
  opacity: 1;
  width: 15px; /* Slightly larger active indicator */
  height: 15px;
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
#partners img {
  max-height: 70px; /* Control partner logo size */
  width: auto;
  opacity: 0.7;
  transition: var(--transition-default);
  filter: grayscale(50%);
}
#partners img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}
#partners .col-md-3 p, #partners .col-6 p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--color-background-dark);
  color: rgba(255,255,255,0.7);
  padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5) 0;
  font-size: 0.9rem;
}
.footer h5 {
  color: var(--color-text-light);
  font-family: var(--font-primary); /* Less bold for footer titles */
  font-size: 1.1rem;
  margin-bottom: var(--spacing-unit);
  font-weight: 500;
}
.footer ul.list-unstyled {
  padding-right: 0; /* RTL adjustment */
}
.footer ul li {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}
.footer .social-links a { /* Text-based social links */
  margin: 0 calc(var(--spacing-unit) * 0.5);
  font-size: 0.95rem;
  display: inline-block;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-short);
}
.footer .social-links a:hover {
  color: var(--color-text-light);
  transform: scale(1.1);
  text-decoration: none;
}
.footer hr {
  border-color: rgba(255,255,255,0.1);
}
.footer .mb-0 { /* Copyright text */
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: var(--spacing-unit);
}

/*--------------------------------------------------------------
# Page Specific Styles
--------------------------------------------------------------*/
/* Privacy & Terms Pages */
.page-privacy, .page-terms {
    padding-top: calc(var(--spacing-unit) * 6) !important; /* Approx 96px, adjust if header height changes */
}
.page-privacy .page-header, .page-terms .page-header {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.page-privacy .content-section h3, .page-terms .content-section h3 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-headings);
}
.page-privacy .content-section ul, .page-terms .content-section ul {
    padding-right: var(--spacing-unit); /* Indent list for RTL */
}
.page-privacy .content-section ul li, .page-terms .content-section ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}


/* Success Page */
.page-success { /* Apply to body or a main wrapper on success.html */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-unit);
  background-color: var(--color-primary-light); /* Light green for success */
}
.page-success h1 {
  color: var(--color-primary-dark);
}
.page-success p {
  color: var(--color-text-base);
}
.page-success .success-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-unit);
}
.page-success .btn-home {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-on-primary);
}
.page-success .btn-home:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Cookie Consent Popup (from HTML inline style, can be moved here) */
#cookie-consent-popup {
    /* Styles are mostly inline in HTML for simplicity, but can be enhanced here */
    font-family: var(--font-primary);
}
#cookie-consent-popup a {
    color: var(--color-primary) !important; /* Ensure link color is consistent */
}
#cookie-consent-popup button {
    background-color: var(--color-primary) !important;
    color: var(--color-text-on-primary) !important;
    border: none !important;
}


/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  h1 { font-size: 2.4rem; }
  h2, .section-title { font-size: 1.9rem; }
  .hero-section { padding: calc(var(--spacing-unit) * 6) 0; }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2, .section-title { font-size: 1.7rem; }
  .hero-section { padding: calc(var(--spacing-unit) * 5) 0; }
  .hero-section h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-section .lead { font-size: clamp(1rem, 3vw, 1.2rem); }
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    text-align: right; /* Align text to right for RTL in collapsed menu */
  }
  .navbar-nav .nav-link.active::after,
  .navbar-nav .nav-link:hover::after {
    left: auto; /* Reset for RTL */
    right: 50%;
    transform: translateX(50%);
  }
  .footer { text-align: center; }
  .footer .col-md-4 { margin-bottom: calc(var(--spacing-unit) * 2); }
}

@media (max-width: 575.98px) {
  section { padding: calc(var(--spacing-unit) * 3) 0; }
  .btn, button, input[type="submit"], input[type="button"] {
    font-size: 0.9rem;
    padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2);
  }
}