/* ========== BASE STYLES & VARIABLES ========== */
:root {
  /* Main Colors */
  --primary-color: #333333;
  --primary-dark: #1a1a1a;
  --primary-light: #4d4d4d;
  --secondary-color: #666666;
  --accent-color: #999999;
  --accent-hover: #b3b3b3;
  
  /* Text Colors */
  --text-dark: #222222;
  --text-light: #ffffff;
  --text-medium: #888888;
  
  /* Background Colors */
  --bg-dark: #121212;
  --bg-light: #f5f5f5;
  --bg-medium: #e0e0e0;
  
  /* UI Elements */
  --border-radius: 0;
  --card-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  --btn-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* ========== GLOBAL STYLES ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Nunito', 'Tajawal', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--space-sm) auto;
}

/* ========== BUTTONS ========== */
.button, 
button, 
input[type="submit"] {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border: 3px solid var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--btn-shadow);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  text-align: center;
}

.button:hover, 
button:hover, 
input[type="submit"]:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.button:active, 
button:active, 
input[type="submit"]:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.button.is-outlined, 
button.is-outlined {
  background-color: transparent;
  color: var(--primary-color);
}

.button.is-outlined:hover, 
button.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.button.is-light, 
button.is-light {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.button.is-light:hover, 
button.is-light:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.button.is-primary,
button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.button.is-primary:hover,
button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: var(--bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.navbar-brand {
  font-family: 'Oswald', 'Cairo', sans-serif;
  font-weight: bold;
}

.navbar-item {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-item:hover {
  color: var(--accent-hover);
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-light);
}

.navbar-burger span {
  background-color: var(--text-light);
}

.navbar-burger {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* .navbar-menu {
  background-color: var(--bg-dark);
} */

.navbar-menu.is-active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: brightness(0.7);
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
}

.hero-body {
  padding: var(--space-xl) 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .title,
.hero .subtitle,
.hero-text {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

/* ========== VISION SECTION ========== */
.vision-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border: 4px solid var(--primary-color);
  padding: var(--space-md);
  background-color: white;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.vision-content:hover {
  transform: translate(-5px, -5px);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.2);
}

.vision-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: var(--space-md);
  border: 3px solid var(--primary-color);
}

.vision-text {
  margin-bottom: var(--space-sm);
  text-align: justify;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-slides {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  padding: var(--space-sm);
}

.testimonial-slide .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 4px solid var(--primary-color);
  box-shadow: var(--card-shadow);
  background-color: white;
  transition: transform 0.3s ease;
}

.testimonial-slide .card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.2);
}

.testimonial-slide .card-image {
  width: 100%;
  text-align: center;
  padding: var(--space-sm);
}

.testimonial-slide .card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin: 0 auto;
}

.testimonial-slide .card-content {
  padding: var(--space-md);
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  position: relative;
  padding: 0 var(--space-sm);
}

.testimonial-text:before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -15px;
  color: var(--primary-light);
  opacity: 0.2;
}

.testimonial-author {
  font-weight: bold;
  text-align: left;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.prev-button,
.next-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1rem;
  margin: 0 var(--space-xs);
  cursor: pointer;
  transition: all 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========== CLIENTELE SECTION ========== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 4px solid var(--primary-color);
  box-shadow: var(--card-shadow);
  margin-bottom: var(--space-md);
  background-color: white;
  transition: transform 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 100%;
  text-align: center;
  padding: var(--space-sm);
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin: 0 auto;
}

.card-content {
  padding: var(--space-md);
  text-align: center;
}

.card .title {
  margin-bottom: var(--space-sm);
}

/* ========== RESOURCES SECTION ========== */
.resource-card {
  height: 100%;
  border: 4px solid var(--primary-color);
}

.resource-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.resource-card .button {
  align-self: center;
  margin-top: auto;
}

/* ========== WEBINARS SECTION ========== */
.webinars-accordion {
  border: 4px solid var(--primary-color);
  background-color: white;
  box-shadow: var(--card-shadow);
}

.accordion-item {
  border-bottom: 2px solid var(--primary-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: var(--space-md);
  background-color: var(--bg-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--bg-medium);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: var(--space-md);
  display: none;
  background-color: white;
}

.accordion-item.is-active .accordion-content {
  display: block;
}

.accordion-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

/* ========== CAREERS SECTION ========== */
.careers-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  font-size: 1.2rem;
}

.careers-accordion {
  border: 4px solid var(--primary-color);
  background-color: white;
  box-shadow: var(--card-shadow);
}

/* ========== CONTACT SECTION ========== */
.contact-info strong {
  color: var(--primary-dark);
}

.contact-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.contact-form {
  border: 4px solid var(--primary-color);
  padding: var(--space-md);
  background-color: white;
  box-shadow: var(--card-shadow);
}

.field {
  margin-bottom: var(--space-sm);
}

.label {
  font-weight: bold;
  margin-bottom: var(--space-xs);
  display: block;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--primary-color);
  background-color: white;
  font-family: 'Nunito', 'Tajawal', sans-serif;
  transition: border-color 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.select {
  position: relative;
  display: block;
  width: 100%;
}

.select:after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--bg-dark) !important;
  color: var(--text-light);
  padding: var(--space-lg) 0 !important;
}

.footer .title {
  color: var(--text-light);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-links a {
  color: var(--text-light);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-decoration: none;
  margin-right: var(--space-sm);
}

.social-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.newsletter-form .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: var(--text-light);
}

.newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.copyright {
  margin-top: var(--space-lg);
  opacity: 0.7;
}

/* ========== COOKIE CONSENT POPUP ========== */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-light);
  padding: var(--space-md);
  z-index: 9999;
  text-align: center;
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-content p {
  margin-bottom: var(--space-sm);
}

.cookie-content button {
  align-self: center;
}

/* ========== UTILITY CLASSES ========== */
.has-text-centered {
  text-align: center !important;
}

.has-text-white {
  color: var(--text-light) !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mt-6 {
  margin-top: 1.5rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.parallax-element {
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

/* ========== RESPONSIVE STYLES ========== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .vision-content,
  .testimonial-slide .card,
  .card,
  .contact-form {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
  }
  
  .columns {
    display: block;
  }
  
  .column {
    width: 100% !important;
    margin-bottom: var(--space-md);
  }
  
  .accordion-content .columns {
    display: flex;
    flex-direction: column;
  }
}

/* ========== SUCCESS PAGE ========== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.success-content {
  max-width: 600px;
  border: 4px solid var(--primary-color);
  background-color: white;
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 5rem;
  color: #4caf50;
  margin-bottom: var(--space-md);
}

/* ========== PRIVACY & TERMS PAGES ========== */
.page-content {
  padding-top: 100px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: var(--space-lg);
}

.page-content h1 {
  margin-bottom: var(--space-md);
}

.page-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.page-content p {
  margin-bottom: var(--space-md);
  text-align: justify;
}

.page-content ul {
  margin-bottom: var(--space-md);
  padding-right: var(--space-md);
}

.page-content li {
  margin-bottom: var(--space-xs);
}

/* ========== READ MORE LINKS ========== */
.read-more {
  display: inline-block;
  font-weight: bold;
  color: var(--primary-color);
  position: relative;
  padding-left: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:after {
  content: '→';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.read-more:hover {
  padding-left: 1.5rem;
  color: var(--primary-dark);
}

.read-more:hover:after {
  opacity: 1;
  left: 0.5rem;
}

/* RTL specific adjustments */
[dir="rtl"] .read-more {
  padding-right: 0.5rem;
  padding-left: 0;
}

[dir="rtl"] .read-more:after {
  content: '←';
  right: 0;
  left: auto;
}

[dir="rtl"] .read-more:hover {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .read-more:hover:after {
  right: 0.5rem;
  left: auto;
}

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

[dir="rtl"] .select:after {
  right: auto;
  left: 15px;
}

@media screen and (min-width: 1024px) {
    .container>.navbar .navbar-brand, .navbar>.container .navbar-brand {
       margin-left: 0 !important;
    }
}