/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: A professional, modern, and responsive child theme for Astra.
Author: Brainstorm Force & Cascade
Author URI: https://www.brainstormforce.com
Template: astra
Version: 2.0.1
Text Domain: astra-child
*/

/*------------------------------------------------------------------
[Table of contents]

1.  Theme Variables
2.  Global & Reset
3.  Typography
4.  Layout & Container
5.  Header & Top Bar
6.  Navigation
7.  Buttons
8.  Dark Mode Toggle
9.  Footer
10. RTL Support
11. Responsive Styles

-------------------------------------------------------------------*/

/* 1. Theme Variables
------------------------------------------------------------------*/
:root {
  /* Color Palette */
  --color-primary: #005a9c;
  --color-secondary: #00aeef;
  --color-accent: #ffc425;
  --text-color: #333333;
  --heading-color: #1a1a1a;
  --bg-color: #ffffff;
  --bg-offset: #f7f7f7;
  --border-color: #eaeaea;

  /* Typography */
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing & Sizing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --container-width: 1280px;
  --header-height: 80px;

  /* Borders & Shadows */
  --rounded: 0.375rem;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --color-primary: #00aeef;
  --color-secondary: #007bb5;
  --text-color: #cccccc;
  --heading-color: #ffffff;
  --bg-color: #121212;
  --bg-offset: #1e1e1e;
  --border-color: #333333;
}

/* 2. Global & Reset
------------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--bg-color);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* 3. Typography
------------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: var(--color-secondary);
}

/* 4. Layout & Container
------------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* 5. Header & Top Bar
------------------------------------------------------------------*/
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
  position: relative;
}

.site-branding {
  flex: 0 0 auto;
}

.main-navigation {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 3px 0;
  background: var(--heading-color);
  border-radius: 2px;
  transition: background 0.2s;
}

.menu-toggle .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 992px) {
  .header-flex {
    align-items: stretch;
    gap: 0.5rem;
    min-height: unset;
  }

  .main-navigation {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    box-shadow: var(--shadow);
    z-index: 100;
  }

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

  .nav-menu li {
    width: 100%;
    text-align: right;
  }

  .nav-menu a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
}

.menu-toggle:hover {
  background: none !important;
}

.menu-toggle:focus {
  background: none !important;
}

.top-bar {
  background-color: var(--bg-offset);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-2) 0;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info,
.emergency {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.contact-info a,
.emergency a {
  color: var(--text-color);
  transition: color 0.2s ease;
}

.contact-info a:hover,
.emergency a:hover {
  color: var(--color-primary);
}

.contact-info i,
.emergency i {
  margin-left: var(--space-2);
}

.site-header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.site-branding {
  flex-shrink: 0;
}

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

.site-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  transition: color 0.2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* 6. Navigation
------------------------------------------------------------------*/
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* display: flex; */
  gap: var(--space-6);
}

.main-navigation .menu-item a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--heading-color);
  padding: var(--space-2) 0;
  position: relative;
}

[data-theme="dark"] .main-navigation .menu-item a {
  color: var(--heading-color);
}

/* 7. Buttons
------------------------------------------------------------------*/
.btn,
.btn-primary,
.btn-support {
  font-family: var(--font-heading);
  background-color: var(--color-primary);
  color: white !important;
  border-radius: var(--rounded);
  padding: 0.65rem 1.5rem;
  text-decoration: none !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn:hover,
.btn-primary:hover,
.btn-support:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* 8. Dark Mode Toggle
------------------------------------------------------------------*/
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 16px;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--color-primary);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

[data-theme="dark"] .slider {
  background-color: #444;
}

/* 9. Footer
------------------------------------------------------------------*/
.site-footer {
  background-color: var(--bg-offset);
  color: var(--text-color);
  padding: var(--space-8) 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-widgets {
  margin-bottom: var(--space-8);
}

.footer-widget .widget-content {
  width: fit-content;
  margin: 0 auto;
  text-align: right;
}

.footer-widget .widget-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.footer-video {
  width: 20%;
  height: auto;
  display: block;
  margin: 0 auto var(--space-4) auto;
  border-radius: var(--rounded);
}

.footer-widget p {
  line-height: 1.8;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .footer-widget .widget-content {
    text-align: center;
  }

  .footer-widget ul {
    text-align: center;
  }
}

.footer-widget ul li {
  margin-bottom: var(--space-3);
}

.footer-widget ul li a {
  color: var(--text-color);
  transition: color 0.2s ease;
}

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

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

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.site-info {
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
  padding-top: var(--space-6);
  text-align: center;
  font-size: 0.9rem;
}

.site-info a {
  text-decoration: none;
}

/* 11. Responsive Styles
------------------------------------------------------------------*/
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading-color);
  font-size: 1.75rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .header-content {
    gap: var(--space-4);
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    z-index: 1000;
  }

  .main-navigation.toggled {
    display: flex;
  }

  .main-navigation .nav-menu {
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
  }

  .main-navigation .nav-menu>li {
    width: 100%;
  }

  .main-navigation .nav-menu a {
    display: block;
    width: 100%;
    padding: var(--space-4) 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* 10. RTL Support
------------------------------------------------------------------*/
body[dir="rtl"] .contact-info i,
body[dir="rtl"] .emergency i {
  margin-left: 0;
  margin-right: var(--space-2);
}

body[dir="rtl"] .main-navigation ul ul {
  right: 0;
  left: auto;
}

body[dir="rtl"] .main-navigation ul ul ul {
  right: 100%;
  left: auto;
}

.site-logo:hover {
  opacity: 0.9;
}

/* Main Navigation */
.main-navigation {
  margin-left: auto;
  height: 100%;
}

.main-nav {
  height: 100%;
}

.main-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.main-nav .nav-menu>li {
  position: relative;
  margin: 0 2px;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav .nav-menu a {
  color: #2c3e50;
  text-decoration: none;
  padding: 0 18px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  font-family: "Open Sans", sans-serif;
}

.main-nav .nav-menu>li>a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  background-color: #3498db;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-nav .nav-menu>li:hover>a::after,
.main-nav .nav-menu>li.current-menu-item>a::after,
.main-nav .nav-menu>li.current_page_item>a::after {
  transform: scaleX(1);
}

.main-nav .nav-menu>li>a:hover,
.main-nav .nav-menu>li.current-menu-item>a,
.main-nav .nav-menu>li.current_page_item>a {
  color: #3498db;
  background-color: #f8f9fa;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  background: none;
  border: none;
  color: #7f8c8d;
  padding: 0 5px;
  margin-right: -5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.dropdown-toggle:hover {
  color: #3498db;
}

.dropdown-toggle[aria-expanded="true"] {
  color: #3498db;
  transform: rotate(180deg);
}

.dropdown-toggle .fa-chevron-down {
  font-size: 11px;
  transition: transform 0.3s ease;
}

/* Dropdown Menus */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  text-align: right;
  border: 1px solid #f1f3f5;
  border-top: 2px solid #3498db;
}

.main-nav .menu-item-has-children.menu-item-active>.sub-menu,
.main-nav .menu-item-has-children:focus-within>.sub-menu,
.main-nav .menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu .sub-menu {
  top: 0;
  right: 100%;
  transform: translateY(10px) translateX(10px);
}

.main-nav .sub-menu .menu-item-has-children.menu-item-active>.sub-menu,
.main-nav .sub-menu .menu-item-has-children:focus-within>.sub-menu,
.main-nav .sub-menu .menu-item-has-children:hover>.sub-menu {
  transform: translateY(0) translateX(0);
}

.main-nav .sub-menu a {
  padding: 10px 20px;
  color: #2c3e50;
  white-space: nowrap;
  font-size: 13.5px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav .sub-menu a:hover {
  background-color: #f8f9fa;
  color: #3498db;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #2c3e50;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  order: -1;
}

/* Header CTA Button */
.header-cta {
  margin-right: 20px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .main-nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .main-nav .nav-menu.toggled {
    display: flex;
  }

  .main-nav .nav-menu>li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #f1f3f5;
  }

  .main-nav .nav-menu a {
    padding: 15px 20px;
    justify-content: space-between;
  }

  .main-nav .menu-item-has-children>a {
    padding-right: 15px;
  }

  .main-nav .dropdown-toggle {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    padding-right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-top: 1px solid #f1f3f5;
  }

  .main-nav .sub-menu.toggled {
    max-height: 1000px;
  }

  .main-nav .sub-menu a {
    padding-right: 35px;
  }

  .main-nav .sub-menu .dropdown-toggle {
    left: 20px;
  }

  /* Adjust top bar for mobile */
  .top-content {
    flex-wrap: wrap;
    padding: 8px 15px;
    font-size: 12px;
  }

  .contact-info {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 5px;
  }

  .emergency {
    margin: 0 auto;
  }
}

/* RTL Support */
[dir="rtl"] .main-nav .nav-menu {
  padding-right: 0;
}

[dir="rtl"] .main-nav .sub-menu {
  text-align: right;
}

[dir="rtl"] .main-nav .sub-menu .sub-menu {
  right: auto;
  left: 100%;
}

[dir="rtl"] .main-nav .dropdown-toggle {
  right: 0;
  left: auto;
}

[dir="rtl"] .main-nav .sub-menu .dropdown-toggle {
  right: 20px;
  left: auto;
}

.main-nav {
  height: 100%;
}

.main-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.main-nav .nav-menu>li {
  position: relative;
  margin: 0 1px;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav .nav-menu a {
  color: #2c3e50;
  text-decoration: none;
  padding: 0 18px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.main-nav .nav-menu>li>a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  background-color: #3498db;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-nav .nav-menu>li:hover>a::after,
.main-nav .nav-menu>li.current-menu-item>a::after,
.main-nav .nav-menu>li.current_page_item>a::after {
  transform: scaleX(1);
}

.main-nav .nav-menu>li>a:hover,
.main-nav .nav-menu>li.current-menu-item>a,
.main-nav .nav-menu>li.current_page_item>a {
  color: #3498db;
  background-color: #f8f9fa;
}

/* Top Bar */
.top-bar {
  padding: 10px 0;
  font-size: 13px;
  color: #ecf0f1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.contact-info {
  display: flex;
  gap: 25px;
  color: var(--text-color);
}

.contact-link,
.emergency-link {
  display: flex;
  align-items: center;
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}

.contact-link:hover,
.emergency-link:hover {
  color: #3498db;
}

.contact-icon,
.emergency-icon {
  margin-left: 8px;
  font-size: 13px;
  color: #3498db;
  width: 16px;
  text-align: center;
  transform: scaleX(-1);
}

.emergency {
  background-color: rgba(231, 76, 60, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 2px solid #e74c3c;
  margin-right: 11px;
}

.emergency-link {
  color: #e74c3c;
  font-weight: 500;
}

.emergency-link:hover {
  color: #c0392b;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  background: none;
  border: none;
  color: #7f8c8d;
  padding: 0 5px;
  margin-right: -5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.dropdown-toggle:hover {
  color: #3498db;
}

.dropdown-toggle[aria-expanded="true"] {
  color: #3498db;
  transform: rotate(180deg);
}

.dropdown-toggle .fa-chevron-down {
  font-size: 11px;
  transition: transform 0.3s ease;
}

/* Dropdown Menus */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  text-align: right;
  border: 1px solid #f1f3f5;
  border-top: 2px solid #3498db;
}

.nav-menu .sub-menu a:hover,
.nav-menu .children a:hover,
.nav-menu .sub-menu .current-menu-item>a,
.nav-menu .children .current-menu-item>a {
  background: var(--color-gray-50);
  color: var(--color-primary);
  padding-right: var(--space-6);
}

/* Add arrow to parent menu items */
.menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
}

/* Mobile dropdown styles */
@media (max-width: 767px) {
  .dropdown-toggle {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .menu-item-has-children>a {
    padding-right: var(--space-10);
  }

  .nav-menu .sub-menu,
  .nav-menu .children {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    transform: none;
    margin-right: var(--space-4);
  }

  .menu-item-has-children.menu-item-active>.sub-menu,
  .menu-item-has-children.menu-item-active>.children {
    max-height: 1000px;
    padding: var(--space-2) 0;
  }

  .nav-menu .sub-menu a,
  .nav-menu .children a {
    padding: var(--space-2) var(--space-8);
    font-size: var(--text-sm);
  }
}

.nav-menu li:hover>.sub-menu,
.nav-menu li:hover>.children,
.nav-menu li.focus>.sub-menu,
.nav-menu li.focus>.children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a,
.nav-menu .children a {
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}

.nav-menu .sub-menu a:hover,
.nav-menu .children a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--rounded-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  /* transform: translateY(-1px); */
  box-shadow: var(--shadow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-gray-700);
}

.menu-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: all 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  left: 0;
  transition: all 0.2s ease;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  bottom: -6px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-content {
    gap: var(--space-4);
  }

  .nav-menu {
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: var(--text-xs);
  }

  .contact-info {
    gap: var(--space-3);
  }

  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    margin-top: var(--space-4);
    display: none;
  }

  .main-navigation.toggled {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
  }

  .nav-menu>li {
    width: 100%;
  }

  .nav-menu a {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--rounded);
  }

  .nav-menu .sub-menu,
  .nav-menu .children {
    position: static;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: none;
    margin-right: var(--space-4);
  }

  .nav-menu li:hover>.sub-menu,
  .nav-menu li:hover>.children {
    max-height: 1000px;
  }

  .nav-menu .sub-menu a,
  .nav-menu .children a {
    padding: var(--space-2) var(--space-8);
    font-size: var(--text-sm);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  .site-header {
    position: static;
    border-bottom: 1px solid #000;
  }

  .top-bar,
  .mobile-menu-toggle,
  .header-cta {
    display: none;
  }

  .logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
  }

  @media print {
    .logo-image {
      filter: grayscale(100%) contrast(200%);
    }
  }
}

/* Buttons */
.btn-primary {
  background: #260b5b;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #07335f;
  /* transform: translateY(-2px); */
}

.btn-secondary {
  background: transparent;
  color: #0066cc;
  border: 2px solid #0066cc;
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #0066cc;
  color: white;
}

/* Flip phone icons for RTL */
.btn-primary .fa-phone-alt,
.btn-secondary .fa-phone-alt,
.fa-phone-alt {
  transform: scaleX(-1);
  display: inline-block;
}

/* Hero Section */

.hero-content h1 {
  font-weight: bold;
  font-style: oblique;
}

.hero-content h1 .copyright {
  font-size: 0.5em;
  font-weight: normal;
  margin-left: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 800px;
  font-style: oblique;
  margin: 0 auto 40px;
}

.hero-subtitle .highlight {
  background: rgba(0, 174, 239, 0.2);
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
}

.stat span {
  font-size: 1rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  font-size: 1.1rem;
  padding: 15px 35px;
  line-height: 1.5;
  min-width: 220px;
  text-align: center;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--bg-color);
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--border-color);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

.service-card ul {
  text-align: right;
  list-style: none;
  padding: 0;
  width: fit-content;
  margin: 0 auto;
}

.service-card li {
  padding: 8px 0;
  color: var(--text-color);
}

.service-card li:before {
  content: "✓ ";
  color: #28a745;
  font-weight: bold;
  margin-left: 10px;
}

/* Audiences Section */
.audiences-section {
  padding: 80px 0;
  background: var(--border-color);
}

.audiences-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.audience-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.dark-mode .audience-card {
  background: #a5a5a5;
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.audience-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.audience-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  text-align: right;
  margin: 0 auto;
}

.audience-features span {
  color: #28a745;
  font-weight: bold;
  font-style: oblique;
}

.dark-mode .audience-features span {
  color: #333;
}

/* Partners Section */
.partners-section {
  padding: 60px 0;
  background: var(--bg-color);
}

.partners-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

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

.partner-logo {
  text-align: center;
  padding: 20px;
  border: solid 1px;
  border-radius: 20px;
}

.dark-mode .partner-logo {
  background: var(--text-color);
}

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

.partner-logo.aws-logo img {
  padding: 12px 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--border-color);
}

.testimonials-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-right: 4px solid #0066cc;
}

.dark-mode .testimonial-card {
  background: #a5a5a5;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.testimonial-author strong {
  color: #333;
  font-size: 1.1rem;
}

.testimonial-author span {
  color: #666;
  display: block;
  margin-top: 5px;
}

.testimonial-rating {
  margin-top: 15px;
  font-size: 1.2rem;
}

/* Why Us Section */
.why-us-section {
  padding: 80px 0;
  background: var(--bg-color);
}

.why-us-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

.feature-item p {
  margin-top: auto;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* CTA Section */

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  font-style: oblique;
  text-shadow: -2px -1px 6px rgba(0, 0, 0, 0.5);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-section p.cta-line {
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.95;
  background: rgb(4 211 115 / 30%);
  display: inline-block;
  padding: 8px 10px 8px 14px;
  border-radius: 8px;
  border-right: 3px solid #04d373;
}

.cta-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.cta-section p.cta-line i {
  color: #04d373;
  margin-left: 10px;
  font-size: 1.1rem;
}

.cta-section p.cta-line:first-child {
  transform: translateX(15px);
}

.cta-section p.cta-line:last-child {
  transform: translateX(-15px);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  font-size: 1.1rem;
  padding: 12px 30px;
  line-height: 1.5;
}

.emergency-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.emergency-contact a {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .audience-cards {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
  order: 2;
}

/* Mobile-specific adjustments for header-actions */
@media (max-width: 992px) {
  .header-flex {
    gap: 1rem;
    min-height: var(--header-height);
  }

  .header-actions {
    order: 1;
    /* Actions on the left for RTL */
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    /* Force navigation to new line */
    margin-top: 0;
    display: none;
    /* Hidden by default */
  }

  /* Show navigation when toggled */
  .main-navigation.open,
  .main-navigation.toggled {
    display: flex;
  }
}

/* Additional mobile menu toggle positioning */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    order: 1;
    margin-left: 0;
    margin-right: 1rem;
  }

  .theme-switch-wrapper {
    order: 2;
  }

  /* CTA button in header-actions */
  .header-cta {
    order: 3;
  }

  .btn-support {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .site-name {
    font-size: 1.3rem;
  }

  .ast-header-break-point .main-navigation ul .menu-item .menu-link {
    padding: 15px 50px;
    border: 0;
    /* background: #ffffff1f; */
    font-weight: 600;
    font-style: oblique;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .ast-header-break-point .main-navigation ul .menu-item:first-child .menu-link {
    border-radius: 20px 0 0 0;
  }

  .ast-header-break-point .main-navigation ul .menu-item:last-child .menu-link {
    border-radius: 0 0 0 20px;
  }

  .ast-header-break-point .main-navigation ul .menu-item .menu-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu a {
    border-radius: inherit;
  }

  #primary-menu {
    width: fit-content;
    border-radius: 20px 0 0 20px;
  }

  @media (max-width: 1024px) {
    .top-bar {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .site-branding img {
      max-height: 40px;
      width: auto;
    }

    .nav-menu a {
      border-radius: inherit;
    }
  }
}

/* Schedule Meeting Page */
.schedule-meeting-page {
  padding: 80px 0;
  min-height: 60vh;
  background-image: url('/wp-content/uploads/2026/02/superbook-meet.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* Fix background display on mobile devices */
@media (max-width: 768px) {
  .schedule-meeting-page {
    background-attachment: scroll;
  }
}

.schedule-meeting-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 0;
}

.schedule-meeting-page .container {
  position: relative;
  z-index: 1;
}

.login-wrapper {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.login-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--heading-color);
  font-weight: bold;
}

.login-wrapper h1 small {
  font-style: oblique;
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.calendar-embed {
  display: none;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 20px;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 800px;
}

/* Dark Mode Support */
.dark-mode .schedule-meeting-page::before {
  background: rgba(0, 0, 0, 0.5);
}

.dark-mode .login-wrapper h1 {
  color: #ffffff !important;
}

.dark-mode .login-wrapper h1 small {
  color: #ffffff !important;
}

.dark-mode .calendar-embed {
  background: #a7a7a7;
}

/* Responsive */
@media (max-width: 768px) {
  .schedule-meeting-page {
    padding: 40px 0;
  }

  .login-wrapper h1 {
    font-size: 1.8rem;
  }

  .calendar-embed iframe {
    min-height: 600px;
  }
}

/* Google Calendar Button */
.btn-google-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1151af;
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 5px;
}

.btn-google-cal:hover {
  background: #c5221f;
  color: #ffeb3b;
  box-shadow: 0 5px 15px rgba(234, 67, 53, 0.4);
}

.btn-google-cal span {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* Google Calendar Guide Page */
.calendar-guide {
  padding: 40px;
  background: var(--bg-color);
  direction: rtl;
}

.calendar-guide h1 {
  text-align: center;
  color: var(--heading-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.calendar-guide .intro {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.guide-step {
  background: var(--border-color);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.guide-step h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.guide-step ol,
.guide-step ul {
  margin: 20px 0;
  padding-right: 25px;
}

.guide-step li {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 1.05rem;
}

[data-theme="dark"] .guide-step ol li,
[data-theme="dark"] .guide-step ul li {
  color: white;
}

[data-theme="dark"] .guide-step h3,
[data-theme="dark"] .guide-step p {
  color: white;
}

.guide-step strong {
  color: var(--heading-color);
}

.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}

.page-id-103 .code-block {
  padding: 0;
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.success-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.warning-box {
  background: #fff3cd;
  border-right: 4px solid #ffc107;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.warning-box strong {
  color: #856404;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.warning-box ul {
  margin: 10px 0;
  padding-right: 25px;
}

.warning-box li {
  margin: 0;
  line-height: normal;
}

[data-theme="dark"] .warning-box li {
  color: #666 !important;
}

.final-checklist {
  background: #d4edda;
  border-right: 4px solid #28a745;
  padding: 25px;
  border-radius: 5px;
  margin: 30px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.final-checklist h3 {
  color: #155724;
  margin-bottom: 15px;
}

.final-checklist ul {
  list-style: none;
  padding: 0;
}

.final-checklist li:before {
  content: "✅ ";
  margin-left: 10px;
}

.calendar-guide .link-button {
  display: inline-block;
  background: #4285f4;
  color: white !important;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none !important;
  margin: 5px 3px;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.calendar-guide .link-button:hover {
  background: #4285f4;
  color: white !important;
  opacity: 0.85;
  transform: none;
}

[data-theme="dark"] .calendar-guide .link-button {
  color: white !important;
}

[data-theme="dark"] .calendar-guide .link-button:hover {
  color: white !important;
}

/* Blog Post Template */
.blog-post {
  padding: 80px 0;
  background: var(--bg-color);
  direction: rtl;
  min-height: 70vh;
}

.post-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

.post-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--border-color);
}

.post-title {
  font-size: 3rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.post-subtitle {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.7;
  font-weight: 400;
}

.post-meta {
  font-size: 1rem;
  color: #999;
  font-style: italic;
}

.post-body {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-color);
}

.post-body h2 {
  font-size: 2.2rem;
  color: var(--heading-color);
  margin: 60px 0 30px;
  padding-top: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.post-body h3 {
  font-size: 1.6rem;
  color: var(--heading-color);
  margin: 40px 0 20px;
  font-weight: 600;
  line-height: 1.4;
}

.post-body p {
  margin-bottom: 30px;
  line-height: 2;
}

.post-body ul,
.post-body ol {
  margin: 30px 0;
  padding-right: 40px;
  line-height: 2;
}

.post-body li {
  margin-bottom: 15px;
}

.post-body strong {
  color: var(--heading-color);
  font-weight: 700;
}

.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--color-secondary);
}

.post-body code {
  background: var(--bg-offset);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

.post-body hr {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 60px 0;
}

@media (max-width: 768px) {
  .blog-post {
    padding: 40px 0;
  }

  .post-content {
    padding: 0 20px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-subtitle {
    font-size: 1.2rem;
  }

  .post-body {
    font-size: 1.05rem;
  }

  .post-body h2 {
    font-size: 1.7rem;
    margin: 40px 0 20px;
  }

  .post-body h3 {
    font-size: 1.4rem;
  }
}

/* Article Images */
.article-image {
  margin: 40px 0 50px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .article-image {
    margin: 30px 0;
    border-radius: 8px;
  }
}

/* Knowledge Base Template Styles */
.kb-container {
  display: flex;
  padding: 40px 20px;
  background-color: var(--bg-color);
  gap: 40px;
}

/* Header anchor links */
.kb-article h1,
.kb-article h2,
.kb-article h3,
.kb-article h4 {
  position: relative;
  scroll-margin-top: 100px;
  /* Ensures header is visible when jumping to anchor */
}

.kb-article .header-link {
  opacity: 0;
  margin-right: 10px;
  font-size: 0.7em;
  text-decoration: none;
  transition: opacity 0.2s;
  color: #0073aa;
}

.kb-article h1:hover .header-link,
.kb-article h2:hover .header-link,
.kb-article h3:hover .header-link,
.kb-article h4:hover .header-link {
  opacity: 1;
}

.kb-article .header-link:hover {
  color: #005177;
}

.kb-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
  background: var(--bg-offset);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kb-sidebar h3 {
  margin: 0 0 20px 0;
  font-size: 1.3em;
  color: var(--heading-color);
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.kb-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-sidebar li {
  margin-bottom: 8px;
}

.kb-sidebar a {
  display: block;
  padding: 10px 15px;
  background: var(--bg-color);
  border-radius: 5px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95em;
}

.kb-sidebar a:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
  transform: translateX(-3px);
}

.kb-article {
  flex: 1;
  min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  padding: 40px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
}

@media (max-width: 640px) {
  .kb-article {
    padding: 20px;
  }
}

@media (min-width: 1200px) {

  .kb-article {
    padding: 40px 40px 10% 40px !important;
  }

  .api-article {
    padding: 40px 10% 40px 40px !important;
  }
}

.kb-article h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--heading-color);
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

.kb-article h2 {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--heading-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.kb-article h3 {
  font-size: 1.4em;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.kb-article p {
  margin-bottom: 15px;
  padding-left: 10%;
}

.kb-article ul,
.kb-article ol {
  margin: 15px 0;
  padding-right: 30px;
}

.kb-article li {
  margin-bottom: 8px;
}

.kb-article code {
  background: var(--bg-offset);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

.kb-article .code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  width: 55%;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.kb-article .code-block p {
  padding: 0;
  margin: 5px 0;
}

.kb-article .code-block ul {
  padding-left: 20px;
}

.kb-article .code-block code {
  background: transparent;
  color: #ecf0f1;
  padding: 0;
}

.kb-article .screenshot-placeholder {
  background: #e8f4f8;
  border: 2px dashed #3498db;
  padding: 40px;
  text-align: center;
  margin: 30px 0;
  border-radius: 8px;
  font-size: 1.1em;
  color: #2980b9;
}

.kb-screenshot {
  margin: 30px 0;
  text-align: center;
  background: var(--bg-offset);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.kb-screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kb-screenshot-caption {
  margin-top: 15px;
  font-size: 0.95em;
  color: #666;
  font-style: italic;
}

.kb-article a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid #3498db;
}

.kb-article a:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

.kb-article hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 40px 0;
}

.kb-article strong {
  color: var(--heading-color);
  font-weight: 600;
}

.kb-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.kb-article table th,
.kb-article table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: right;
}

.kb-article table th {
  background: var(--bg-offset);
  font-weight: 600;
}

/* Mobile menu toggle */
.kb-mobile-toggle {
  display: none;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 15px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 1.1em;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  z-index: 9999;
}

.kb-mobile-toggle:hover {
  background: #2980b9;
}

@media (max-width: 968px) {
  .kb-container {
    flex-direction: column;
    padding: calc(var(--header-height) + 60px) 15px 0 15px;
  }

  .kb-sidebar {
    width: 100%;
    /* position: fixed; */
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 999;
    display: none;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .kb-sidebar.active {
    display: block;
  }

  .kb-mobile-toggle {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 10000;
  }

  .kb-article h1 {
    font-size: 2em;
  }

  .kb-article h2 {
    font-size: 1.5em;
  }
}

/* Hide main navigation on mobile for all pages except homepage */
@media (max-width: 1024px) {

  body:not(.home) .main-navigation,
  body:not(.home) .menu-toggle {
    display: none !important;
  }
}

/* WhatsApp 2026 Notice Section */
.whatsapp-notice-section {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 40px 0;
  margin: 40px 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
  position: relative;
  overflow: hidden;
}

.whatsapp-notice-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 4rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.notice-text {
  flex: 1;
  color: white;
}

.notice-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notice-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notice-features {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.notice-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-features i {
  color: #fff;
  font-size: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .whatsapp-notice-section {
  background: linear-gradient(135deg, #1e7e34 0%, #0d5d2a 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notice-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .notice-icon {
    font-size: 3rem;
  }

  .notice-text h3 {
    font-size: 1.5rem;
  }

  .notice-text p {
    font-size: 1rem;
  }

  .notice-features {
    justify-content: center;
    gap: 15px;
  }

  .notice-features span {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* API Documentation Template Styles */
.api-container {
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 30px;
  font-family: var(--font-body);
  background: var(--bg-color);
  /* Force LTR direction for API container to keep sidebar on left */
  direction: ltr;
}

/* Mobile Toggle Button */
.api-mobile-toggle {
  display: none;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 15px;
  border: none;
  border-radius: var(--rounded);
  width: 100%;
  font-size: 1.1em;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  z-index: 9999;
}

.api-mobile-toggle:hover {
  background: #2980b9;
}

/* Sidebar Navigation */
.api-sidebar {
  width: 280px;
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.api-sidebar h3 {
  margin: 0 0 20px 0;
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.api-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.api-sidebar li {
  margin-bottom: 8px;
}

.api-sidebar a {
  display: block;
  padding: 10px 15px;
  background: var(--bg-color);
  border-radius: 5px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95em;
}

.api-sidebar a:hover {
  background: var(--bg-color);
  color: var(--color-primary);
}

/* Article Content */
.api-article {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  /* Reset direction to inherit from parent (RTL if site is RTL) */
  direction: inherit;
}

/* Typography */
.api-article h1 {
  color: var(--heading-color);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 24px 0;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 16px;
}

.api-article h2 {
  color: var(--heading-color);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.api-article h3 {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px 0;
}

.api-article h4 {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px 0;
}

.api-article p {
  color: var(--text-color);
  margin: 0;
}

/* Header Links */
.api-article .header-link {
  opacity: 0;
  margin-left: 8px;
  font-size: 0.8em;
  text-decoration: none;
  color: var(--color-secondary);
  transition: opacity 0.2s;
}

.api-article h1:hover .header-link,
.api-article h2:hover .header-link,
.api-article h3:hover .header-link,
.api-article h4:hover .header-link {
  opacity: 1;
}

/* Code Blocks */
.api-article .code-block {
  background: var(--bg-offset);
  border-radius: var(--rounded);
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

.api-article .code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.api-article .code-block code {
  color: #333;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 0;
}

/* Inline Code */
.api-article .inline-code {
  background: var(--bg-offset);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

/* Lists */
.api-article ul,
.api-article ol {
  margin: 16px 0;
  padding-left: 24px;
}

.api-article li {
  margin: 8px 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* Links */
.api-article a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.api-article a:hover {
  border-bottom-color: var(--color-primary);
}

/* Horizontal Rules */
.api-article hr {
  border: none;
  height: 2px;
  background: var(--border-color);
  margin: 40px 0;
  border-radius: 1px;
}

/* Strong Text */
.api-article strong {
  color: var(--heading-color);
  font-weight: 600;
}

/* Overlay for mobile API menu */
.api-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.api-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .api-mobile-toggle {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 10000;
  }

  .api-container {
    flex-direction: column;
    padding: calc(var(--header-height) + 60px) 15px 0 15px;
  }

  .api-sidebar {
    width: 100%;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 999;
    display: none;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .api-sidebar.active {
    display: block;
  }

  .api-article {
    padding: 24px;
  }

  .api-article h1 {
    font-size: 28px;
  }

  .api-article h2 {
    font-size: 22px;
  }

  .api-article .code-block {
    margin: 16px -8px;
    border-radius: 0;
  }

  .api-article .code-block pre {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .api-article {
    padding: 20px;
  }

  .api-article h1 {
    font-size: 24px;
  }

  .api-article h2 {
    font-size: 20px;
  }

  .api-article .code-block pre {
    padding: 12px;
    font-size: 13px;
  }
}

/* Code Block Language-Specific Styling */
.api-article .code-block.language-php {
  border-left: 4px solid #777bb4;
}

.api-article .code-block.language-javascript,
.api-article .code-block.language-js {
  border-left: 4px solid #f7df1e;
}

.api-article .code-block.language-json {
  border-left: 4px solid #00d4aa;
}

.api-article .code-block.language-bash,
.api-article .code-block.language-shell {
  border-left: 4px solid #4eaa25;
}

.api-article .code-block.language-sql {
  border-left: 4px solid #336791;
}

.api-article .code-block.language-css {
  border-left: 4px solid #1572b6;
}

.api-article .code-block.language-html {
  border-left: 4px solid #e34f26;
}