/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --font-heading: 'Raleway', 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Cairo', 'Tajawal', 'Open Sans', sans-serif;

  /* Monochromatic Color Scheme */
  --color-background: #f8f9fa; /* Lighter grey for main background */
  --color-surface: #ffffff;    /* White for cards, content areas */
  --color-alt-bg: #e9ecef;   /* Slightly darker grey for alternate sections */
  
  --color-text-primary: #343a40; /* Dark grey for body text */
  --color-text-headings: #212529; /* Near black for main headings */
  --color-text-secondary: #6c757d; /* Medium grey for subtitles, less important text */
  --color-text-light: #ffffff;     /* White text for dark backgrounds */
  
  --color-border: #dee2e6;       /* Light grey for borders */
  --color-border-darker: #ced4da; /* Slightly darker border */

  --color-primary: #495057;        /* Main interactive color (button, links) - a strong grey */
  --color-primary-hover: #343a40;  /* Darker shade for hover */
  --color-primary-light: #adb5bd;  /* Lighter shade for subtle accents */

  --color-secondary: #6c757d;      /* Secondary interactive color */
  --color-secondary-hover: #5a6268;

  --color-success: #28a745;
  --color-error: #dc3545;

  /* Spacing */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem;  /* 8px */
  --spacing-md: 1rem;    /* 16px */
  --spacing-lg: 1.5rem;  /* 24px */
  --spacing-xl: 2.5rem;  /* 40px */
  --spacing-xxl: 4rem;   /* 64px */

  /* Borders & Shadows - Biomorphic hints */
  --border-radius-soft: 8px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px; /* More organic feel */
  --box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.1);

  --header-height: 80px; 
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-headings);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside; /* Ensures markers are aligned with text in RTL */
  padding-right: var(--spacing-md); /* For RTL, padding on the right for list markers */
  padding-left: 0;
}
html[dir="ltr"] ul, html[dir="ltr"] ol {
    padding-left: var(--spacing-md);
    padding-right: 0;
}


/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  background-color: var(--color-surface);
  box-shadow: var(--box-shadow-soft);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-headings);
  text-decoration: none;
}
.logo a:hover {
  color: var(--color-primary);
}

.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation .nav-menu li {
  margin-right: var(--spacing-lg); /* RTL: margin-left */
}
html[dir="ltr"] .main-navigation .nav-menu li {
  margin-left: var(--spacing-lg);
  margin-right: 0;
}
.main-navigation .nav-menu li:last-child {
  margin-right: 0;
  html[dir="ltr"] & {
    margin-left: 0;
  }
}

.main-navigation .nav-menu a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-primary);
  padding: var(--spacing-sm) 0;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.main-navigation .nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0; /* RTL */
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}
html[dir="ltr"] .main-navigation .nav-menu a::after {
  left:0;
  right: auto;
}


.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu .active a { /* Assuming an 'active' class for current page */
  color: var(--color-primary);
}

.main-navigation .nav-menu a:hover::after,
.main-navigation .nav-menu .active a::after {
  width: 100%;
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-headings);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-headings);
  right: 0; /* RTL */
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
html[dir="ltr"] .hamburger-icon::before,
html[dir="ltr"] .hamburger-icon::after {
  left: 0;
  right: auto;
}


.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
  .main-navigation .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 0; /* RTL */
    background-color: var(--color-surface);
    width: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
  }
  html[dir="ltr"] .main-navigation .nav-menu {
    left: 0;
    right: auto;
  }

  .main-navigation .nav-menu.is-active {
    display: flex;
  }

  .main-navigation .nav-menu li {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
    text-align: right; /* RTL */
    html[dir="ltr"] & {
        margin-left: 0;
        text-align: left;
    }
  }
  .main-navigation .nav-menu li:last-child {
    margin-bottom: 0;
  }

  .main-navigation .nav-menu a {
    display: block;
    padding: var(--spacing-sm);
  }

  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.is-active .hamburger-icon {
    background-color: transparent; /* Hides middle bar */
  }
  .menu-toggle.is-active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  .menu-toggle.is-active .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
}

/*--------------------------------------------------------------
# Main Content & Sections
--------------------------------------------------------------*/
main {
  padding-top: var(--header-height); /* Prevent content from being hidden by fixed header */
}

.section-padding {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.alt-bg {
  background-color: var(--color-alt-bg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-weight: 700;
  color: var(--color-text-headings);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after { /* Biomorphic underline */
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-primary-light);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px; /* Soften the underline */
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  color: var(--color-text-light);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-md);
}

.hero-overlay { /* For text readability on image */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light); /* Explicitly white as per requirement */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Ensure contrast */
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light); /* Explicitly white as per requirement */
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Buttons (Global Styles)
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-soft);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Elastic feel */
  min-width: 120px;
  box-shadow: var(--box-shadow-soft);
  user-select: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-light);
  transform: translateY(-2px); /* Subtle lift */
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  border-color: var(--color-secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn-link {
  background-color: transparent;
  color: var(--color-primary);
  border: none;
  padding: var(--spacing-xs) 0; /* Minimal padding for link-like buttons */
  text-decoration: underline;
  box-shadow: none;
}
.btn-link:hover, .btn-link:focus {
  color: var(--color-primary-hover);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

/* "Read More" link style */
.read-more-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: var(--spacing-sm);
    transition: color 0.3s ease, transform 0.3s ease;
}
.read-more-link::after {
    content: ' \2192'; /* Right arrow, will be flipped in RTL */
    font-family: Arial, sans-serif; /* Ensure arrow renders */
    transition: transform 0.3s ease;
    display: inline-block; /* For transform */
}
html[dir="rtl"] .read-more-link::after {
    content: ' \2190 '; /* Left arrow */
}
.read-more-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}
.read-more-link:hover::after {
    transform: translateX(5px); /* RTL: -5px */
}
html[dir="rtl"] .read-more-link:hover::after {
    transform: translateX(-5px);
}


/*--------------------------------------------------------------
# Card Styles (Common for Features, Webinars, Pricing, Resources, Events)
--------------------------------------------------------------*/
.card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-large); /* Biomorphic: softer, larger radius */
  box-shadow: var(--box-shadow-medium);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center; /* STRICT: Center content within card */
  text-align: center;   /* STRICT: Center text */
  height: 100%; /* Ensure cards in a grid have same height if content varies */
}

.card:hover {
  transform: translateY(-5px) scale(1.02); /* Elastic pop effect */
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.card-image { /* STRICT: Container for image */
  width: 100%;
  height: 200px; /* STRICT: Fixed height */
  overflow: hidden;
  display: flex;       /* For centering if image is smaller, though object-fit should handle */
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STRICT: Ensures image covers the area, crops if necessary */
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1; /* Allows content to take up space, pushing buttons down */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes button to bottom if card is flex container for content */
  width: 100%; /* Ensure content takes full width for text alignment */
  text-align: center; /* STRICT: Ensure text content is centered */
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-headings);
}

.card-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  flex-grow: 1; /* Allows paragraph to expand */
}

.card-content .btn {
  margin-top: auto; /* Pushes button to bottom if card-content is flex */
  align-self: center; /* Center button if it's not full width */
}

/* Grid Layout for Cards */
.features-grid, .pricing-grid, .resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
/* Uses generic .card styles */

/*--------------------------------------------------------------
# Webinars Section (Content Carousel)
--------------------------------------------------------------*/
.webinars-section .content-carousel {
  display: flex; /* Basic setup for a carousel, JS will handle actual sliding */
  overflow-x: auto; /* Allow horizontal scrolling if JS is not fully implemented */
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md); /* Space for scrollbar if visible */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-light) var(--color-alt-bg);
}
.webinars-section .content-carousel::-webkit-scrollbar {
    height: 8px;
}
.webinars-section .content-carousel::-webkit-scrollbar-track {
    background: var(--color-alt-bg);
    border-radius: 4px;
}
.webinars-section .content-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-light);
    border-radius: 4px;
}

.webinars-section .carousel-item {
  flex: 0 0 auto; /* Prevent items from shrinking */
  width: 350px; /* Or responsive width, e.g., 80vw on mobile */
  max-width: 90%;
}

.webinar-date {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/*--------------------------------------------------------------
# Events Section (Timeline)
--------------------------------------------------------------*/
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after { /* The central line */
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--color-border-darker);
  top: 0;
  bottom: 0;
  right: 50%; /* RTL */
  margin-right: -2px; /* RTL */
  border-radius: 2px;
}
html[dir="ltr"] .timeline::after {
  left: 50%;
  right: auto;
  margin-left: -2px;
  margin-right: 0;
}


.timeline-item {
  padding: var(--spacing-md) var(--spacing-xl);
  position: relative;
  background-color: transparent;
  width: 50%;
}

/* Alternating items */
.timeline-item:nth-child(odd) {
  right: 0; /* RTL */
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  text-align: right;
}
html[dir="ltr"] .timeline-item:nth-child(odd) {
  left: 0;
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  text-align: left;
}


.timeline-item:nth-child(even) {
  right: 50%; /* RTL */
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  text-align: right; /* Content alignment */
}
html[dir="ltr"] .timeline-item:nth-child(even) {
  left: 50%;
  right: auto;
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  text-align: left;
}

/* Icon on the timeline */
.timeline-icon {
  position: absolute;
  top: 20px;
  right: -22px; /* RTL: Half of icon width (40px) + half of line (4px) */
  transform: translateX(50%); /* RTL */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border: 3px solid var(--color-surface); /* Makes it pop from the line */
}
html[dir="ltr"] .timeline-icon {
  left: -22px;
  right: auto;
  transform: translateX(-50%);
}


.timeline-icon img {
  width: 20px;
  height: 20px;
}

.timeline-content {
  position: relative;
  background-color: var(--color-surface); /* Card style for content */
}
.timeline-item:nth-child(odd) .timeline-content {
    /* text-align will be inherited */
}
.timeline-item:nth-child(even) .timeline-content {
    /* text-align will be inherited */
}


.timeline-item .card-content {
  text-align: inherit; /* Inherit from .timeline-item for RTL awareness */
}
.timeline-item .card-content .btn {
  align-self: flex-start; /* RTL: flex-end */
}
html[dir="rtl"] .timeline-item .card-content .btn {
    align-self: flex-end;
}
html[dir="ltr"] .timeline-item:nth-child(odd) .card-content .btn {
    align-self: flex-start;
}
html[dir="ltr"] .timeline-item:nth-child(even) .card-content .btn {
    align-self: flex-end;
}


.event-title {
  margin-bottom: var(--spacing-xs);
}
.event-date-location {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    right: 31px; /* RTL */
    html[dir="ltr"] & {
        left: 31px;
        right: auto;
    }
  }
  .timeline-item {
    width: 100%;
    padding-right: 70px; /* RTL */
    padding-left: 25px; /* RTL */
    text-align: right; /* RTL */
  }
  html[dir="ltr"] .timeline-item {
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    right: 0%; /* RTL */
    html[dir="ltr"] & {
        left: 0%;
        right: auto;
    }
  }
  .timeline-icon {
    right: 10px; /* RTL */
    transform: translateX(0); /* RTL */
    html[dir="ltr"] & {
        left: 10px;
        right: auto;
        transform: translateX(0);
    }
  }
  .timeline-item .card-content .btn {
      align-self: flex-start; /* RTL: flex-end */
  }
  html[dir="rtl"] .timeline-item .card-content .btn {
      align-self: flex-end;
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
/* Uses generic .card styles */
.pricing-card .pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
  text-align: right; /* RTL */
  html[dir="ltr"] & {
    text-align: left;
  }
}

.pricing-features li {
  padding: var(--spacing-xs) 0;
  color: var(--color-text-secondary);
  border-bottom: 1px dashed var(--color-border);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li::before {
  content: "✓ "; /* Checkmark */
  color: var(--color-success);
  font-weight: bold;
  margin-left: var(--spacing-sm); /* RTL */
  html[dir="ltr"] & {
    margin-right: var(--spacing-sm);
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Resources Section
--------------------------------------------------------------*/
/* Uses generic .card styles */
.resource-card .card-content p {
  min-height: 60px; /* Give some consistent space for description */
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-form-container {
  max-width: 700px;
  margin: 0 auto var(--spacing-xl) auto;
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-medium);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-headings);
}
.form-group label .required {
  color: var(--color-error);
  margin-right: var(--spacing-xs); /* RTL */
  html[dir="ltr"] & {
    margin-left: var(--spacing-xs);
    margin-right: 0;
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-darker);
  border-radius: var(--border-radius-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background-color: var(--color-background); /* Slight contrast from form container */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.15); /* Use RGB version of primary or a fixed color */
  background-color: var(--color-surface);
}
/* Placeholder for --rgb-primary if not defined: using a generic grey */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.15);
}


textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-container button[type="submit"] {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1.1rem;
}

.contact-details {
  text-align: center;
  margin-top: var(--spacing-xl);
}
.contact-details h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-headings);
}
.contact-details p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center; /* Center items within the paragraph */
}
.contact-details p img { /* Icons in contact details */
    width: 20px;
    height: 20px;
    margin-left: var(--spacing-sm); /* RTL */
    html[dir="ltr"] & {
        margin-right: var(--spacing-sm);
        margin-left: 0;
    }
}
.contact-details p a {
  color: var(--color-primary);
}
.contact-details p a:hover {
  color: var(--color-primary-hover);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: var(--color-text-headings); /* Dark footer */
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md) 0;
  font-size: 0.95rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-widget h4 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}
.footer-widget h4::after { /* Biomorphic underline for footer titles */
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary-light);
  margin-top: var(--spacing-xs);
  border-radius: 1.5px;
}


.footer-widget p {
  color: #adb5bd; /* Lighter grey for footer text */
  line-height: 1.8;
}

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

.footer-widget ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-widget ul a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease, padding-right 0.3s ease; /* RTL: padding-left */
}
html[dir="ltr"] .footer-widget ul a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-widget ul a:hover {
  color: var(--color-text-light);
  padding-right: var(--spacing-sm); /* RTL: padding-left */
  text-decoration: underline;
  html[dir="ltr"] & {
    padding-left: var(--spacing-sm);
    padding-right: 0;
  }
}

.footer-widget .social-links li a {
  /* Text-based links, styling can be more pronounced if desired */
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid #495057; /* Darker border within footer */
  color: #adb5bd;
}
.footer-bottom p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
/* success.html */
body.page-success {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.success-page-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
}
.success-page-content h1 {
  color: var(--color-success);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}
.success-page-content p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}
.success-page-content .btn {
  font-size: 1.1rem;
}

/* privacy.html & terms.html */
.page-privacy main,
.page-terms main {
  padding-top: calc(var(--header-height) + var(--spacing-xl)); /* Header height + extra space */
  padding-bottom: var(--spacing-xl);
}

.static-page-content .container {
    background-color: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-soft);
}
.static-page-content h1 {
    margin-bottom: var(--spacing-lg);
}
.static-page-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}
.static-page-content p, 
.static-page-content ul,
.static-page-content ol {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}
.static-page-content ul,
.static-page-content ol {
    padding-right: var(--spacing-lg); /* RTL */
    html[dir="ltr"] & {
        padding-left: var(--spacing-lg);
        padding-right: 0;
    }
}


/*--------------------------------------------------------------
# Animations & Transitions (Initial states for GSAP)
--------------------------------------------------------------*/
.gsap-fade-in, .gsap-fade-in-up, .gsap-fade-in-down, .gsap-fade-in-left, .gsap-fade-in-right,
.gsap-scroll-fade-in, .gsap-scroll-fade-in-up, .gsap-scroll-fade-in-down, .gsap-scroll-fade-in-left, .gsap-scroll-fade-in-right {
  opacity: 0;
  /* GSAP will handle the 'visibility: hidden' to 'visible' and transforms */
}

/* Example of adding subtle elastic feel to CSS transitions if GSAP is not used for everything */
.card, .btn {
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Elastic ease */
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.sr-only { /* Screen-reader only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; } /* RTL: equivalent to text-align: start */
.text-left { text-align: left; }   /* RTL: equivalent to text-align: end */
html[dir="rtl"] .text-right { text-align: right; } /* For explicit control if needed */
html[dir="rtl"] .text-left { text-align: left; }

.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
/* Add more utility classes as needed */

/* Cookie Consent Popup - Basic styles if not fully covered by inline */
#cookie-consent-popup {
    /* HTML already has inline styles, this is just a placeholder if needed */
    /* Ensure it has a high z-index and is fixed at the bottom */
}


/* Responsive adjustments for very large screens if needed */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}
html,body{
  overflow-x: hidden;
}