/*
Theme Name: Al-Ruba Training Center
Theme URI: https://alrubacenter.com
Description: Professional WordPress theme for training & capacity building centers
Version: 1.0.0
Author: Al-Ruba Training Center
Author URI: https://alrubacenter.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alruba-training
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --primary-gold: #d4af37;
  --primary-gold-light: #e8c547;
  --primary-green: #2d5016;
  --primary-green-dark: #1a3009;
  --light-bg: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

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

/* ===========================
   UTILITIES
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-full {
  max-width: 100%;
  padding: 0;
}

.row {
  display: grid;
  gap: 30px;
}

.row-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.row-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.row-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-gold { color: var(--primary-gold); }
.text-green { color: var(--primary-green); }

.button, a.button, button, input[type="submit"] {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-gold);
  color: var(--primary-green-dark);
  border: 2px solid var(--primary-gold);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.button:hover, a.button:hover, button:hover, input[type="submit"]:hover {
  background-color: var(--primary-green);
  color: var(--primary-gold);
  border-color: var(--primary-green);
}

.button-outline {
  background-color: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
}

.button-outline:hover {
  background-color: var(--primary-gold);
  color: var(--primary-green-dark);
}

.button-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================
   HEADER
   =========================== */
.header-top {
  background-color: var(--primary-green-dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--primary-gold);
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-top-left {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.header-top-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top-item a {
  color: var(--white);
  text-decoration: none;
}

.header-top-item a:hover {
  color: var(--primary-gold);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--white);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-green-dark);
}

/* Main Header */
.header-main {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  max-width: 50px;
  height: auto;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-green);
}

.logo-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--primary-gold);
}

/* Navigation Menu */
.main-nav {
  display: flex;
  gap: 0;
  list-style: none;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 20px 18px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

/* Submenu */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  list-style: none;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary-gold);
}

.main-nav li:hover .sub-menu {
  display: block;
}

.main-nav .sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.main-nav .sub-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--primary-gold);
  padding-left: 25px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-green);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.8) 0%, rgba(26, 48, 9, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--light-bg);
}

.hero .button {
  margin: 0 10px;
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ===========================
   FEATURED PROGRAMS SECTION
   =========================== */
.featured-programs {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 15px;
}

/* Course Card */
.course-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.course-card-image {
  width: 100%;
  height: 220px;
  background-color: var(--light-bg);
  overflow: hidden;
  position: relative;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-card-image img {
  transform: scale(1.05);
}

.course-card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-gold);
  color: var(--primary-green-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-content h3 {
  margin-bottom: 10px;
  color: var(--primary-green);
  font-size: 1.2rem;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-card-content p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.course-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.course-card .button {
  font-size: 0.9rem;
  padding: 10px 20px;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
  padding: 80px 0;
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-green);
  margin-bottom: 25px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.highlight::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary-gold);
  color: var(--primary-green);
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   STATISTICS SECTION
   =========================== */
.statistics {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
}

.statistics .row-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===========================
   BLOG/NEWS SECTION
   =========================== */
.blog-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.post-item {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.post-featured-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--light-bg);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-item:hover .post-featured-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 25px;
}

.post-date {
  display: inline-block;
  background-color: var(--primary-gold);
  color: var(--primary-green);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-content h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.post-read-more {
  color: var(--primary-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.post-read-more:hover {
  gap: 10px;
}

/* ===========================
   TRAINERS SECTION
   =========================== */
.trainers-section {
  padding: 80px 0;
  background-color: var(--white);
}

.trainer-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.trainer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.trainer-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #e0e0e0;
  position: relative;
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trainer-card:hover .trainer-image img {
  transform: scale(1.05);
}

.trainer-info {
  padding: 25px;
}

.trainer-info h3 {
  color: var(--primary-green);
  margin-bottom: 5px;
}

.trainer-role {
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.trainer-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.trainer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.trainer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-gold);
  color: var(--primary-green);
  border-radius: 50%;
  transition: var(--transition);
}

.trainer-social a:hover {
  background-color: var(--primary-green);
  color: var(--primary-gold);
}

/* ===========================
   PARTNERS/CLIENTS SECTION
   =========================== */
.partners-section {
  padding: 60px 0;
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 15px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  filter: grayscale(100%);
}

.partner-logo:hover {
  filter: grayscale(0%);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--white);
}

.testimonial-card {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-gold);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-green);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-gold);
  opacity: 0.3;
  margin-right: 5px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--border-color);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta h4 {
  margin: 0;
  color: var(--primary-green);
  font-size: 1rem;
}

.testimonial-meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.stars {
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ===========================
   NEWSLETTER SECTION
   =========================== */
.newsletter-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  text-align: center;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 12px 30px;
  background-color: var(--primary-gold);
  color: var(--primary-green);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-green);
  color: var(--primary-gold);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background-color: var(--primary-green-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  padding: 60px 0 20px;
}

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

.footer-widget h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-widget ul li a:hover {
  color: var(--primary-gold);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact-item strong {
  color: var(--white);
  min-width: 80px;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-green);
}

/* ===========================
   SINGLE COURSE PAGE
   =========================== */
.course-breadcrumb {
  background-color: var(--light-bg);
  padding: 15px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  list-style: none;
  font-size: 0.95rem;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--primary-gold);
}

.breadcrumb li.active {
  color: var(--text-dark);
}

.course-header {
  margin-bottom: 40px;
}

.course-header-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.course-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.course-details-box {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-gold);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.course-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.course-detail-label {
  font-weight: 600;
  color: var(--text-dark);
}

.course-detail-value {
  color: var(--primary-gold);
  font-weight: 600;
}

.course-curriculum {
  margin: 40px 0;
}

.course-curriculum h3 {
  color: var(--primary-green);
  margin-bottom: 20px;
}

.curriculum-item {
  background-color: var(--light-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary-gold);
  border-radius: 4px;
}

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 40px 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background-color: var(--light-bg);
}

.pagination .current {
  background-color: var(--primary-gold);
  color: var(--primary-green);
  border-color: var(--primary-gold);
}

/* ===========================
   FILTERS
   =========================== */
.filters-section {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.filters-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-gold);
  background-color: var(--primary-gold);
  color: var(--primary-green);
}

/* ===========================
   FLOATING WHATSAPP BUTTON
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  font-size: 1.8rem;
  text-decoration: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-details-box {
    position: relative;
    top: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .main-nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .main-nav.active {
    max-height: 500px;
  }

  .main-nav > li > a {
    padding: 15px 20px;
  }

  .main-nav .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    background-color: var(--light-bg);
  }

  .main-nav li:hover .sub-menu {
    display: none;
  }

  .main-nav li.active .sub-menu {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .header-top-left {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .header-top-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .row-2,
  .row-3,
  .row-4 {
    grid-template-columns: 1fr;
  }

  .statistics .row-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .featured-programs,
  .about-section,
  .statistics,
  .blog-section,
  .trainers-section,
  .testimonials-section,
  .newsletter-section {
    padding: 50px 0;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
  }

  .header-main-content {
    flex-direction: column;
    gap: 15px;
  }

  .logo img {
    max-width: 40px;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .main-nav.active {
    max-height: 400px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    min-width: 100%;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float a {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 8px 0;
  }

  .header-top-item {
    font-size: 0.75rem;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 20px;
    height: 20px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .course-card-content,
  .testimonial-card {
    padding: 20px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .pagination {
    gap: 5px;
  }

  .pagination a,
  .pagination span {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-top-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-main-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .main-nav {
  flex-direction: row;
}

[dir="rtl"] .highlight::before {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

[dir="rtl"] .course-card-category {
  right: auto;
  left: 15px;
}

[dir="rtl"] .newsletter-form {
  flex-direction: row;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}

@media (max-width: 768px) {
  [dir="rtl"] .whatsapp-float {
    left: 20px;
    right: auto;
  }
}
