@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/eot/IRANSansWeb_Black.eot");
  src: url("../fonts/eot/IRANSansWeb_Black.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb_Black.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb_Black.woff") format("woff"), url("../fonts/ttf/IRANSansWeb_Black.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  src: url("../fonts/eot/IRANSansWeb_Bold.eot");
  src: url("../fonts/eot/IRANSansWeb_Bold.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb_Bold.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb_Bold.woff") format("woff"), url("../fonts/ttf/IRANSansWeb_Bold.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/eot/IRANSansWeb_Medium.eot");
  src: url("../fonts/eot/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb_Medium.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb_Medium.woff") format("woff"), url("../fonts/ttf/IRANSansWeb_Medium.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/eot/IRANSansWeb_Light.eot");
  src: url("../fonts/eot/IRANSansWeb_Light.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb_Light.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb_Light.woff") format("woff"), url("../fonts/ttf/IRANSansWeb_Light.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/eot/IRANSansWeb_UltraLight.eot");
  src: url("../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb_UltraLight.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb_UltraLight.woff") format("woff"), url("../fonts/ttf/IRANSansWeb_UltraLight.ttf") format("truetype");
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/eot/IRANSansWeb.eot");
  src: url("../fonts/eot/IRANSansWeb.eot?#iefix") format("embedded-opentype"), url("../fonts/woff2/IRANSansWeb.woff2") format("woff2"), url("../fonts/woff/IRANSansWeb.woff") format("woff"), url("../fonts/ttf/IRANSansWeb.ttf") format("truetype");
}

/* ============================================
   CSS VARIABLES - THEME SYSTEM
   ============================================ */
:root {
  --primary: #36C9F4;
  --primary-dark: #00b2da;
  --primary-light: #E1F0FF;
  --primary-border: #b4e7fd;
  --primary-gradient: linear-gradient(135deg, #36C9F4 0%, #00b2da 100%);
  --green: #8ED557;
  --green-dark: #65973e;
  --yellow: #F9A134;
  --red: #ec4b5c;
  --red-dark: #c13947;
  --dark: #1a1d29;
  --dark-hover: #2d3142;
  --gray: #56626E;
  --gray-light: #acadb1;
  --bg-light: #f0f2f5;
  --bg-page: #f7f8fc;
  --body-bg: #ffffff;
  --border: #e4e7ec;
  --white: #ffffff;
  --black: #000000;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --mobile-nav-bg: #0f1119;
  --mobile-nav-border: #1e2130;
  --mobile-nav-btn: #161824;
  --comment-bg: #f0f2f5;
  --tag-bg: #f0f2f5;
  --tag-hover: #e2e5ea;
  --footer-bg: linear-gradient(135deg, #1a1d29 0%, #2d3142 100%);
  --footer-shadow: rgba(26, 29, 41, 0.3);
  --service-shadow: 0 8px 30px rgba(0,0,0,0.08);
  --service-border: transparent;
  --404-bg: #0f1119;
  --panel-hover-bg: #E1F0FF;
  --progress-active: #e4e7ec;
  --notification-alert: #2d3142;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-shadow: 0 10px 40px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 20px 60px rgba(0,0,0,0.12);
  --glow: 0 0 20px rgba(54, 201, 244, 0.3);
  --breadcrumb-bg: #f0f2f5;
  --text-white: #ffffff;
}

[data-mode="dark"] {
  --dark: #e8eaed;
  --dark-hover: #f0f2f5;
  --gray: #b0b4c8;
  --gray-light: #8084a0;
  --bg-light: #32326a;
  --bg-page: #16163a;
  --body-bg: #0b0b1e;
  --border: #3d3d6a;
  --white: #222252;
  --black: #ffffff;
  --navbar-bg: rgba(11, 11, 30, 0.92);
  --comment-bg: #282858;
  --tag-bg: #32326a;
  --tag-hover: #3d3d6a;
  --footer-bg: linear-gradient(135deg, #060612 0%, #0e0e28 100%);
  --footer-shadow: rgba(0,0,0,0.6);
  --service-shadow: 0 8px 30px rgba(0,0,0,0.5);
  --404-bg: #060612;
  --panel-hover-bg: #3d3d6a;
  --progress-active: #3d3d6a;
  --notification-alert: #3d3d6a;
  --glass-bg: rgba(34, 34, 82, 0.5);
  --glass-border: rgba(255,255,255,0.05);
  --card-shadow: 0 10px 50px rgba(0,0,0,0.6);
  --card-hover-shadow: 0 20px 70px rgba(0,0,0,0.7);
  --glow: 0 0 20px rgba(54, 201, 244, 0.12);
  --breadcrumb-bg: #222252;
  --table-stripe: #282858;
  --dashboard-bg: #222252;
  --dashboard-sidebar: #121236;
  --input-bg: #282858;
  --input-text: #e8eaed;
  --section-desc-bg: #222252;
  --text-white: #ffffff;
}

[data-theme="blue"] {
  --primary: #36C9F4; --primary-dark: #00b2da; --primary-light: #E1F0FF;
  --primary-border: #b4e7fd; --primary-gradient: linear-gradient(135deg, #36C9F4, #00b2da);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(54, 201, 244, 0.3);
}
[data-theme="purple"] {
  --primary: #6C5CE7; --primary-dark: #5A4BD1; --primary-light: #EDE9FF;
  --primary-border: #C4B5FD; --primary-gradient: linear-gradient(135deg, #6C5CE7, #a29bfe);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(108, 92, 231, 0.3);
}
[data-theme="green"] {
  --primary: #00B894; --primary-dark: #00A381; --primary-light: #D4F5ED;
  --primary-border: #A3E4D7; --primary-gradient: linear-gradient(135deg, #00B894, #55efc4);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(0, 184, 148, 0.3);
}
[data-theme="orange"] {
  --primary: #E17055; --primary-dark: #D35400; --primary-light: #FDEBD0;
  --primary-border: #F5CBA7; --primary-gradient: linear-gradient(135deg, #E17055, #fab1a0);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(225, 112, 85, 0.3);
}
[data-theme="navy"] {
  --primary: #2C3E50; --primary-dark: #1A252F; --primary-light: #D5DBDB;
  --primary-border: #AEB6BF; --primary-gradient: linear-gradient(135deg, #2C3E50, #34495e);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(44, 62, 80, 0.3);
}
[data-theme="pink"] {
  --primary: #FD79A8; --primary-dark: #E84393; --primary-light: #FFE0EC;
  --primary-border: #F8BBD0; --primary-gradient: linear-gradient(135deg, #FD79A8, #e84393);
  --footer-shadow: rgba(26, 29, 41, 0.3); --glow: 0 0 20px rgba(253, 121, 168, 0.3);
}

/* ============================================
   THEME SWITCHER
   ============================================ */
.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 90px;
  top: auto;
  left: auto;
  transform: none;
  z-index: 998;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-switcher:hover {
  box-shadow: var(--glow);
}
.theme-switcher-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--primary-gradient);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
}
.theme-switcher-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(54, 201, 244, 0.35);
}
.theme-switcher-toggle:hover i {
  animation: themeSpin 1.2s ease-in-out infinite;
}
@keyframes themeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.products-section,
.services,
.blog {
  animation: fadeUp 0.7s ease forwards;
}
.theme-switcher-options {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.theme-switcher-options.show {
  display: flex;
}
.theme-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 3px solid var(--white);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.theme-color-btn:hover {
  transform: scale(1.2) rotate(5deg);
}
.theme-color-btn.active {
  border-color: var(--dark);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.theme-color-btn[data-theme="blue"] { background: #36C9F4; }
.theme-color-btn[data-theme="purple"] { background: #6C5CE7; }
.theme-color-btn[data-theme="green"] { background: #00B894; }
.theme-color-btn[data-theme="orange"] { background: #E17055; }
.theme-color-btn[data-theme="navy"] { background: #2C3E50; }
.theme-color-btn[data-theme="pink"] { background: #FD79A8; }

/* ============================================
   GLOBAL RESETS
   ============================================ */
* {
  font-family: IRANSans;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a { text-decoration: none; }
ol, ul { padding: 0; margin: 0; list-style: none; }
body { background: var(--body-bg); color: var(--dark); }
input, button { box-shadow: none !important; }
input {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(54, 201, 244, 0.15) !important;
}
p { margin: 0; }
textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(54, 201, 244, 0.15) !important;
  border-color: var(--primary) !important;
}
[type=email] { direction: rtl; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-green, .bg-yellow, .bg-blue {
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.bg-green { background: var(--green); }
.bg-yellow { background: var(--yellow); }
.bg-blue { background: var(--primary-gradient); }

.hidden { display: none; opacity: 0; visibility: hidden; }
.btn { box-shadow: none !important; }

/* ============================================
   BUTTONS - New Modern Style
   ============================================ */
.custom-btn-gray {
  background: var(--bg-light);
  color: var(--gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-btn-gray:hover {
  color: var(--text-white);
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.custom-btn-dark-gray {
  background: var(--dark);
  color: var(--text-white);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-btn-dark-gray:hover {
  color: var(--text-white);
  background: var(--dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.custom-btn-blue {
  background: var(--primary-gradient);
  color: var(--text-white);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.custom-btn-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.custom-btn-blue:hover::before {
  left: 100%;
}
.custom-btn-blue:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 201, 244, 0.35);
}

.custom-btn-light-blue {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  border: 1px solid var(--primary-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-btn-light-blue:hover {
  color: var(--text-white);
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.custom-btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--text-white);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-btn-red:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 75, 92, 0.35);
}

.custom-btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--text-white);
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 500;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-btn-green:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(142, 213, 87, 0.35);
}

/* ============================================
   OWL CAROUSEL
   ============================================ */
.owl-theme .owl-prev, .owl-theme .owl-next {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
  color: var(--dark) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 26px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid var(--border) !important;
}
.owl-theme .owl-prev { right: -20px; }
.owl-theme .owl-next { left: -20px; }
.owl-theme:hover .owl-prev, .owl-theme:hover .owl-next { opacity: 1; }
.owl-theme .owl-prev:hover, .owl-theme .owl-next:hover {
  background: var(--primary-gradient) !important;
  color: var(--text-white) !important;
  transform: translateY(-50%) scale(1.1);
  border-color: transparent !important;
  box-shadow: 0 8px 30px rgba(54, 201, 244, 0.35) !important;
}
.owl-theme .owl-dots { margin-top: 24px !important; }
.owl-theme .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 4px;
}
.owl-theme .owl-dots .owl-dot.active span {
  width: 28px;
  background: var(--primary-gradient);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(54, 201, 244, 0.3);
}
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary-light);
}

/* ============================================
   CARDS - Completely New Design
   ============================================ */
.card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: var(--primary-border);
}
.card a { overflow: hidden; display: block; }
.card a img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card i { font-weight: 300; }
.card .card-body {
  padding: 20px 20px 16px;
}
.card .card-body a {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .card-body a:hover {
  color: var(--primary);
}
.card .card-body .card-details { margin-top: 10px; }
.card .card-body .card-details .stars i {
  color: #f1c40f;
  margin-left: 2px;
  font-size: 12px;
}
.card .card-body .card-details span {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card .card-footer {
  background: var(--bg-light);
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
}
.card .card-footer span {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}
.card .card-footer span:last-child {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.card .card-footer span i {
  margin-left: 4px;
  color: var(--gray-light);
}
.card:hover a img {
  transform: scale(1.1);
}

/* ============================================
   ITEM BOX
   ============================================ */
.item-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.item-box:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.item-box form { padding: 10px; }
.item-box form input:focus {
  box-shadow: 0 0 0 3px rgba(54, 201, 244, 0.15) !important;
}
.item-box form button {
  left: 7px;
  top: 11px;
  font-weight: 300 !important;
  color: var(--gray-light);
}
.item-box ul { padding: 5px 15px; }
.item-box ul li { margin: 10px 0; }
.item-box ul li label { font-size: 14px; }
.item-box a.bell {
  width: 38px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  margin-left: 18px;
}
.item-box a.bell i {
  vertical-align: -5px;
  padding: 8px;
  color: var(--primary);
  font-weight: 400;
}
.item-box .item-box-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  background: var(--bg-light);
}
.item-box .item-box-title span {
  padding-right: 10px;
  color: var(--green);
}
.item-box .item-box-details { padding: 0 20px; }
.item-box .item-box-details ul li {
  margin: 14px 0;
  font-size: 14px;
  color: var(--gray);
}
.item-box .item-box-details ul li i {
  margin-left: 10px;
  color: var(--gray-light);
}
.item-box .item-box-details ul li span {
  margin-right: 7px;
  color: var(--dark);
}
.item-box .item-box-details ul li span a {
  color: var(--primary);
  margin-right: 5px;
}
.item-box .item-box-details ul li .in-progress { color: var(--primary); }

.note-box, .copy-box, .tags-box, .tags-wrapper { font-weight: 400; }
.item-box.note-box { border-color: var(--primary); border-width: 2px; }
.item-box.note-box .item-box-title {
  padding: 18px 10px 15px 10px;
  font-size: 14px;
}
.item-box.copy-box span { padding-top: 20px; }
.item-box.copy-box span i {
  border-right: 1px solid var(--border);
  margin-right: 10px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray);
}
.item-box.tags-box i {
  color: var(--gray);
  vertical-align: -3px;
  margin-left: 5px;
  font-size: 14px;
}
.item-box.tags-box .tags-wrapper { margin: 15px; }
.item-box.tags-box .tags-wrapper a {
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--gray);
  margin: 4px;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 13px;
  border: 1px solid var(--border);
}
.item-box.tags-box .tags-wrapper a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* ============================================
   TABS & COMMENTS
   ============================================ */
.nav-tabs {
  padding-bottom: 10px;
  margin: 10px 0 0 0 !important;
}
.nav-tabs .custom-link {
  border: 0 !important;
  color: var(--dark) !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  transition: all 0.3s ease;
}
.nav-tabs .custom-link:hover {
  background: var(--primary-light);
}
.nav-tabs .custom-link.active {
  color: var(--text-white);
  background: var(--primary-gradient);
}

.comment-box, .comment-child { padding: 16px; }
.comment-box {
  margin-top: 20px;
  background: var(--bg-light);
  border-radius: 12px;
}
.comment-box .comment-author {
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
}
.comment-box .comment-text { margin: 0; }
.comment-box .comment-child {
  background: var(--white);
  margin: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.custom-breadcrumb {
  background: var(--breadcrumb-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.custom-breadcrumb nav h4 {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 20px;
}
.custom-breadcrumb nav ol { margin-bottom: 0; }
.custom-breadcrumb nav ol li.active a { color: var(--primary); }
.custom-breadcrumb form { overflow: hidden; }
.custom-breadcrumb form button {
  left: 0;
  bottom: 0;
  background: var(--primary-gradient);
  color: var(--text-white);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
}
.custom-breadcrumb form input { min-width: 230px; }

/* ============================================
   PAGINATION
   ============================================ */
.custom-pagination ul li a {
  color: var(--gray);
  border-radius: 10px;
  margin: 0 3px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.custom-pagination ul li a:active, .custom-pagination ul li a:focus, .custom-pagination ul li a:hover {
  color: var(--text-white);
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
}
.custom-pagination ul .active a {
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  color: var(--gray);
  padding: 0 20px;
}
.contact-form label {
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--dark);
}
.contact-form label i {
  margin-left: 5px;
  color: var(--primary);
}
.contact-form-title {
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
  text-align: center;
  border-bottom: 2px solid var(--primary-light);
}
.contact-form-title h1 {
  color: var(--primary);
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
  padding: 0 15px;
}

/* ============================================
   NAVBAR - Glassmorphism Style
   ============================================ */
#navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.3);
  padding: 0 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
  position: relative;
  z-index: 500;
}
#navbar .navbar-right .navbar-brand {
  margin-left: 40px;
  font-size: 30px;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  line-height: 1;
}
#navbar .navbar-right .navbar-brand img {
  vertical-align: -28px;
}
#navbar .navbar-right .navbar-right-items ul li {
  position: relative;
  display: inline-block;
  padding: 20px 0 20px 6px;
  z-index: 99;
}
#navbar .navbar-right .navbar-right-items ul li:first-child > a {
  color: var(--primary);
  font-weight: 600;
}
#navbar .navbar-right .navbar-right-items ul li:first-child > a i {
  color: var(--primary);
}
#navbar .navbar-right .navbar-right-items ul li > a {
  color: var(--dark);
  transition: all 0.3s ease;
  display: block;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 10px 16px;
  border-radius: 10px;
}
#navbar .navbar-right .navbar-right-items ul li:hover > a {
  background: var(--primary-light);
  color: var(--primary);
}
#navbar .navbar-right .navbar-right-items ul li > a i {
  margin-right: 6px;
  vertical-align: -2px;
  transition: all 0.3s ease;
  color: var(--gray-light);
  font-weight: 400;
}
#navbar .navbar-right .navbar-right-items ul li:hover > a i {
  color: var(--primary);
  transform: rotate(180deg);
}
#navbar .navbar-right .navbar-right-items ul li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#navbar .navbar-right .navbar-right-items ul li ul {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(228,231,236,0.2);
  min-width: 240px;
  background: var(--white);
  border-radius: 16px;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 20px 8px 12px 8px;
  margin-top: 0;
}
#navbar .navbar-right .navbar-right-items ul li ul::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}
#navbar .navbar-right .navbar-right-items ul li ul li {
  display: block;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 10px;
  margin: 2px 0;
}
#navbar .navbar-right .navbar-right-items ul li ul li::after { display: none; }
#navbar .navbar-right .navbar-right-items ul li ul li a {
  color: var(--dark) !important;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
}
#navbar .navbar-right .navbar-right-items ul li ul li a::after { display: none; }
#navbar .navbar-right .navbar-right-items ul li ul li a::before {
  content: '\f104';
  font-family: 'Font Awesome 5 Pro';
  font-weight: 300;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
  color: var(--primary);
}
#navbar .navbar-right .navbar-right-items ul li ul li:hover a::before {
  opacity: 1;
  transform: translateX(0);
}
#navbar .navbar-right .navbar-right-items ul li ul li:last-child {
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
#navbar .navbar-right .navbar-right-items ul li ul li:last-child::after { width: 0; height: 0; }
#navbar .navbar-right .navbar-right-items ul li ul li:hover {
  background: var(--primary-light);
}
#navbar .navbar-right .navbar-right-items ul li ul li:hover a {
  color: var(--primary) !important;
}
/* Mega menu for "صفحات" (3rd nav item) */
#navbar .navbar-right .navbar-right-items > ul > li:nth-child(3) > ul {
  min-width: 460px;
  right: -80px;
  padding: 14px;
}
#navbar .navbar-right .navbar-right-items > ul > li:nth-child(3) > ul::before {
  right: 110px;
}
#navbar .navbar-right .navbar-right-items > ul > li:nth-child(3) > ul > li {
  display: inline-block;
  width: calc(50% - 4px);
  vertical-align: top;
}
#navbar .navbar-left .search-wrapper i, #navbar .navbar-left .shopping-basket-wrapper i, #navbar .navbar-left #showNavbarBtn i {
  color: var(--gray);
  font-size: 20px;
  font-weight: 400;
  background: var(--bg-light);
  padding: 10px;
  border-radius: 10px;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#navbar .navbar-left .search-wrapper i:hover, #navbar .navbar-left .shopping-basket-wrapper i:hover, #navbar .navbar-left #showNavbarBtn i:hover {
  background: var(--primary-light);
  color: var(--primary);
}
#navbar .navbar-left .dark-mode-toggle {
  color: var(--gray);
  font-size: 20px;
  font-weight: 400;
  background: var(--bg-light);
  padding: 10px;
  border-radius: 10px;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  border: none;
}
#navbar .navbar-left .dark-mode-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}
#navbar .navbar-left .shopping-basket-wrapper a span {
  top: -8px;
  right: -12px;
  background: var(--primary-gradient);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#navbar .navbar-left .action, #navbar .navbar-left .teacher-action {
  padding: 10px 20px;
  border-radius: 10px;
}
#navbar .navbar-left .action {
  margin-left: 10px;
}
#navbar .navbar-left .action i {
  margin-left: 8px;
  vertical-align: -5px;
  font-size: 20px;
}
#navbar .navbar-left #showNavbarBtn { display: none; }

.navbar { padding: 0; }
.navbar.scroll {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* ============================================
   MOBILE NAVBAR
   ============================================ */
.mobile-navbar {
  width: 300px;
  height: 100%;
  background: var(--mobile-nav-bg);
  position: fixed !important;
  top: 0;
  right: -100%;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  z-index: 9999;
  overflow-y: auto;
  font-size: 14px;
}
.mobile-navbar .mobile-navbar-action {
  padding: 15px;
  border-bottom: 1px solid var(--mobile-nav-border);
}
.mobile-navbar .mobile-navbar-action a {
  border-radius: 10px;
  color: var(--text-white);
  background: var(--primary-gradient);
  display: block;
  padding: 14px;
  font-weight: 500;
}
.mobile-navbar .mobile-navbar-action a i { margin-left: 5px; }
.mobile-navbar .mobile-navbar-items ul { padding: 20px; }
.mobile-navbar .mobile-navbar-items ul li {
  margin: 8px 0;
  border-bottom: 1px solid var(--mobile-nav-border);
  padding-bottom: 7px;
}
.mobile-navbar .mobile-navbar-items ul li a {
  display: block;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}
.mobile-navbar .mobile-navbar-items ul li a:hover { color: var(--text-white); }
.mobile-navbar .mobile-navbar-items ul li a i {
  float: left;
  margin: 3px 0 5px 0;
}
.mobile-navbar .mobile-navbar-items ul li ul { display: none; }
.mobile-navbar a.m-active {
  background: var(--mobile-nav-border);
  padding: 10px;
  border-radius: 8px;
}
.mobile-navbar a.m-active i { transform: rotate(-90deg); }
.mobile-navbar .show-sub-menu { display: block !important; }
.mobile-navbar.fix { right: 0; }

@media only screen and (max-width: 1038px) {
  #navbar .navbar-right .navbar-right-items { display: none; position: absolute; }
  #navbar .navbar-left .teacher-action { display: none; }
  #navbar .navbar-left .action { display: none; }
  #navbar .navbar-left #showNavbarBtn { display: block; }
  #navbar .navbar-right .navbar-brand { font-size: 26px; margin-left: 0; }
  #navbar .navbar-left { justify-content: flex-end !important; gap: 8px; }
  #navbar .navbar-left .search-wrapper i, #navbar .navbar-left .shopping-basket-wrapper i, #navbar .navbar-left #showNavbarBtn i { font-size: 19px; padding: 9px; margin-left: 0; }
  #navbar .navbar-left .dark-mode-toggle { width: 37px; height: 37px; padding: 8px; margin-left: 0; font-size: 18px; }
}
@media only screen and (min-width: 1039px) and (max-width: 1200px) {
  #navbar .navbar-right .navbar-brand { font-size: 22px; }
  #navbar .navbar-right .navbar-right-items > ul > li > a { font-size: 13px; padding: 6px 10px; }
  #navbar .navbar-left .action { font-size: 13px; padding: 7px 14px; }
  #navbar .navbar-left .teacher-action { font-size: 12px; padding: 7px 12px; }
  #navbar .navbar-left { gap: 4px; }
}
@media only screen and (max-width: 576px) {
  #navbar { padding: 6px 0; }
  #navbar .navbar-right .navbar-brand { font-size: 20px; margin-left: 0; }
  #navbar .navbar-left { gap: 6px; }
  #navbar .navbar-left .search-wrapper i, #navbar .navbar-left .shopping-basket-wrapper i, #navbar .navbar-left #showNavbarBtn i { font-size: 16px; padding: 7px; margin-left: 0; }
  #navbar .navbar-left .dark-mode-toggle { width: 30px; height: 30px; padding: 5px; margin-left: 0; font-size: 14px; }
  #navbar .navbar-left .shopping-basket-wrapper a span { top: -5px; right: -7px; min-width: 16px; height: 16px; font-size: 9px; }
}

/* ============================================
   HEADER - Gradient Background
   ============================================ */
header {
  background: var(--bg-page);
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: var(--primary-gradient);
  opacity: 0.04;
  transform: rotate(-12deg);
  border-radius: 50%;
  z-index: 0;
}
header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 40%;
  height: 150%;
  background: var(--primary-gradient);
  opacity: 0.03;
  transform: rotate(15deg);
  border-radius: 50%;
  z-index: 0;
}
header .container { position: relative; z-index: 1; }
header .header-right .header-span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
header .header-right h6 {
  margin: 12px 0;
  font-weight: 400;
  color: var(--gray);
  font-size: 16px;
}
header .header-right h3 {
  margin: 20px 0 30px 0;
  font-weight: 800;
  font-size: 32px;
  color: var(--dark);
  line-height: 1.5;
}
header .header-right form button, header .header-right form input {
  border-radius: 14px;
}
header .header-right form input {
  height: 56px;
  width: 100%;
  border: 2px solid var(--border);
  padding: 0 60px 0 20px;
  font-size: 15px;
}
header .header-right form input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(54, 201, 244, 0.1) !important;
}
header .header-right form button {
  margin: 0;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  padding: 12px 22px;
  border-radius: 10px;
}
header .header-right form button i { font-size: 20px; }
header .header-right form button:hover {
  transform: translateY(-50%) translateY(-2px);
}

header .header-right .search-result-box {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 160px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow-y: auto;
  transition: all 0.4s ease;
  border: 1px solid var(--border);
  z-index: 10;
}
header .header-right .search-result-box::-webkit-scrollbar { width: 5px; }
header .header-right .search-result-box::-webkit-scrollbar-track { background: transparent; }
header .header-right .search-result-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
header .header-right .search-result-box a {
  background: var(--white);
  display: block;
  padding: 12px;
  height: 110px;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
header .header-right .search-result-box a:hover { background: var(--bg-light); }
header .header-right .search-result-box a img {
  float: right;
  width: 100px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  margin-left: 15px;
}
header .header-right .search-result-box a span {
  display: block;
  color: var(--dark);
  font-weight: 500;
  margin-top: 10px;
}
header .header-right .search-result-box a span:last-child {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
header .header-right .search-result-box a:last-child { border-bottom: 0; }
header .header-right .search-result-box a.all-results {
  height: auto;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}
header .header-right .search-result-box a.all-results i {
  font-weight: 300;
  margin-right: 5px;
}
header .header-right .search-result-box.show-search-result-box { display: block; }

/* Activities Box - New Style */
header .header-right .activities-box {
  margin-top: 40px;
}

/* Header Image Slider */
.header-image-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.header-image-slider .slider-img {
  display: block;
  width: 100%;
  }
header .header-right .activities-box .activity-box {
  margin-bottom: 20px;
}
header .header-right .activities-box .activity-box .activity-counter,
header .header-right .activities-box .activity-counter {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 28px;
  margin: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: inline-block;
}
header .header-right .activities-box .activity-box .activity-counter:hover,
header .header-right .activities-box .activity-counter:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-border);
}
header .header-right .activities-box .activity-box .activity-counter span,
header .header-right .activities-box .activity-box .activity-counter h4,
header .header-right .activities-box .activity-counter span,
header .header-right .activities-box .activity-counter h4 {
  color: var(--dark);
  font-weight: 300;
}
header .header-right .activities-box .activity-box .activity-counter span,
header .header-right .activities-box .activity-counter span {
  font-size: 36px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
header .header-right .activities-box .activity-box .activity-counter h4,
header .header-right .activities-box .activity-counter h4 {
  font-size: 14px;
  margin-top: 4px;
  color: var(--gray);
}

@media only screen and (max-width: 992px) {
  header .header-left { display: none; }
  header .header-right { flex: 0 0 100%; max-width: 100%; }
}
@media only screen and (min-width: 993px) and (max-width: 1200px) {
  header { padding: 40px 0 50px 0; }
  header .header-right h3 { font-size: 24px; margin: 14px 0 20px 0; }
  header .header-right h6 { font-size: 14px; }
  header .header-right form input { height: 48px; font-size: 14px; }
  header .header-right form button { padding: 10px 16px; font-size: 14px; }
  header .header-right .activities-box { gap: 8px; margin-top: 24px; }
  header .header-right .activities-box .activity-counter { padding: 12px 16px; min-width: 90px; }
  header .header-right .activities-box .activity-counter span { font-size: 26px; }
  header .header-right .activities-box .activity-counter h4 { font-size: 12px; }
}
@media only screen and (min-width: 577px) and (max-width: 991px) {
  header { padding: 60px 0 70px 0; text-align: center; }
  header .header-right h3 { font-size: 28px; }
  header .header-right h6 { font-size: 15px; }
  header .header-right .header-span { font-size: 13px; }
  header .header-right .activities-box { display: flex !important; flex-wrap: wrap; gap: 12px; justify-content: center !important; margin-top: 32px; }
  header .header-right .activities-box .activity-counter { padding: 18px 24px; min-width: 130px; }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  margin: 70px 0;
  position: relative;
}
.products-section .owl-carousel {
  margin-top: 20px;
  padding: 30px 10px 10px;
  background: var(--bg-light);
  border-radius: 28px;
  position: relative;
}
.products-section .owl-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 40px;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 4px;
}
.section-desc {
  position: relative;
  padding-bottom: 10px;
}
.section-desc::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(54,201,244,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.section-desc .desc h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.section-desc .desc span {
  font-size: 14px;
  color: var(--gray);
  font-weight: 400;
}
.section-desc .btn-desc a {
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(54, 201, 244, 0.2);
}
.section-desc .btn-desc a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 201, 244, 0.35);
}

/* ============================================
   SERVICES - New Card Design
   ============================================ */
.services {
  margin: 40px 0;
  padding: 60px 50px;
  background: var(--bg-light);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(54,201,244,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.services::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(54,201,244,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.services .services-box {
  box-shadow: none;
  border-radius: 20px;
  margin: 12px 0;
  padding: 36px 28px 32px;
  text-align: center;
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.services .services-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.services .services-box:hover::before { opacity: 1; }
.services .services-box > * { position: relative; z-index: 1; }
.services .services-box i {
  font-size: 32px;
  background: linear-gradient(135deg, var(--primary-light), rgba(54,201,244,0.15));
  border: none;
  width: 66px;
  height: 66px;
  line-height: 66px;
  text-align: center;
  border-radius: 18px;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  box-shadow: 0 8px 24px rgba(54, 201, 244, 0.12);
}
.services .services-box h4 {
  margin-top: 20px;
  font-weight: 700;
  color: var(--dark);
  font-size: 18px;
  transition: color 0.3s ease;
}
.services .services-box p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
  transition: color 0.3s ease;
}
.services .services-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(54, 201, 244, 0.18);
  border-color: transparent;
}
.services .services-box:hover i {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(54, 201, 244, 0.25);
}
.services .services-box:hover h4,
.services .services-box:hover p { color: var(--text-white); }
.services .services-box.s-active {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(54, 201, 244, 0.25);
}
.services .services-box.s-active::before { opacity: 0; }
.services .services-box.s-active i {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.services .services-box.s-active h4 { color: var(--text-white); }
.services .services-box.s-active p { color: rgba(255,255,255,0.9); }

/* ============================================
   BLOG - New Layout
   ============================================ */
.blog {
  margin: 50px 0;
  padding: 50px 0;
  position: relative;
}
.blog .row { padding: 20px 0; }
.blog .row .blog-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  cursor: pointer;
}
.blog .row .blog-item img {
  object-fit: cover;
  width: 100%;
  height: 320px;
  filter: brightness(55%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog .row .col-lg-4 .blog-item img { height: 148px; }
.blog .row .blog-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}
.blog .row .blog-item .blog-item-details {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  padding: 18px 22px;
  border-radius: 14px;
  max-width: 88%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.blog .row .blog-item .blog-item-details a {
  color: var(--dark);
  font-weight: 600;
  font-size: 13px;
}
.blog .row .blog-item .blog-item-details a i {
  color: var(--primary);
  font-size: 8px;
  margin-left: 4px;
}
.blog .row .blog-item .blog-item-details a span {
  display: block;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}
.blog .row .blog-item:hover .blog-item-details {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(54, 201, 244, 0.2);
}
.blog .row .blog-item:hover img {
  transform: scale(1.08);
  filter: brightness(65%);
}
.blog .row .blog-item + .blog-item { margin-top: 24px; }
.blog .row > .col-lg-12:last-child { text-align: left; }
.blog .row > .col-lg-12:last-child a.btn {
  margin-top: 8px;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(54, 201, 244, 0.2);
  transition: all 0.3s ease;
}
.blog .row > .col-lg-12 a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 201, 244, 0.35);
}

@media only screen and (max-width: 1038px) {
  .blog .blog-item .blog-item-details {
    bottom: 12px !important;
    right: 12px !important;
    padding: 14px !important;
  }
}
@media only screen and (max-width: 1002px) { .row { margin: auto 0; } }
@media only screen and (max-width: 768px) {
  .row { margin: auto 0; }
  .blog .row .blog-item .blog-item-details { max-width: 90%; padding: 14px 16px !important; }
  .blog .row .blog-item .blog-item-details a span { font-size: 13px; }
  .custom-breadcrumb { padding: 14px 0; }
  .custom-breadcrumb .d-flex { flex-direction: column; gap: 8px; }
  .custom-breadcrumb nav h4 { font-size: 16px; }
  .custom-breadcrumb form input { min-width: unset; width: 100%; }
  .custom-breadcrumb form { width: 100%; }
  .about-hero-title, .contact-hero-title { font-size: 30px !important; }
  .about-hero-subtitle, .contact-hero-subtitle { font-size: 16px !important; }
  .about-hero, .contact-hero { min-height: 240px !important; }
  .error-code { font-size: 100px !important; }
  .error-title { font-size: 22px !important; }
  .error-desc { font-size: 14px !important; }
}
@media only screen and (max-width: 582px) { .row { margin: auto 0; } }

/* ============================================
   FOOTER - Dark Gradient
   ============================================ */
footer {
  background: var(--footer-bg);
  padding: 80px 0 30px 0;
  margin: 30px 0 0 0;
  border-radius: 32px 32px 0 0;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 4px;
  margin-top: -2px;
}
footer img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
footer .footer-item h5 {
  position: relative;
  padding-right: 18px;
  margin-bottom: 20px;
  color: var(--text-white);
  font-weight: 600;
  font-size: 16px;
}
footer .footer-item h5:after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
footer .footer-item .links ul {
  padding: 0;
  box-shadow: none;
}
footer .footer-item .links ul li { margin-bottom: 10px; }
footer .footer-item .links ul li a {
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  font-size: 14px;
}
footer .footer-item .links ul li a:hover {
  color: var(--text-white);
  padding-right: 8px;
}

.copyright {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  color: rgba(255,255,255,0.5);
  border-radius: 0;
}
.copyright p { font-size: 13px; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 10000;
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   TO TOP
   ============================================ */
#toTop {
  opacity: 0;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--primary-gradient);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 14px 16px;
  z-index: 9;
  box-shadow: 0 4px 15px rgba(54, 201, 244, 0.3);
}
#toTop i {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-white);
}
#toTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(54, 201, 244, 0.4);
}
#toTop.active { opacity: 1; bottom: 24px; }

@media only screen and (max-width: 1200px) {
  footer .symbols-title { display: none; }
  footer .symbols { margin-top: 30px; }
}
@media only screen and (max-width: 992px) { footer ul { margin-bottom: 20px; } }
@media only screen and (max-width: 576px) {
  footer { padding: 50px 0 20px 0; }
  footer .footer-item { text-align: center; }
  footer .footer-item h5 { padding-right: 0; text-align: center; }
  footer .footer-item h5:after { display: none; }
  footer .footer-item .links ul { text-align: center; }
  footer .footer-item .links ul li a:hover { padding-right: 0; }
  footer .footer-desc { text-align: center; }
  footer .symbols { justify-content: center !important; }
  footer .copyright { text-align: center; }
  footer .copyright .d-flex { flex-direction: column; gap: 8px; }
  .services { padding: 30px 20px !important; }
  .services .services-box { padding: 28px 20px !important; }
  .services .services-box i { width: 54px; height: 54px; line-height: 54px; font-size: 26px; }
  .blog .row .blog-item img { height: 200px; }
  .blog .row .col-lg-4 .blog-item img { height: 200px; }
  .blog .row .blog-item .blog-item-details { max-width: 85%; }
  .section-desc { flex-direction: column; gap: 10px; text-align: center; }
  header { padding: 70px 0 80px 0; text-align: center; }
  header .header-right h3 { font-size: 28px; margin: 18px 0 24px 0; }
  header .header-right h6 { font-size: 14px; margin: 10px 0; }
  header .header-right .header-span { font-size: 12px; padding: 6px 16px; margin-bottom: 14px; }
  header .header-right form input { height: 50px; font-size: 14px; }
  header .header-right form button { padding: 11px 18px; }
  header .header-right .activities-box { margin-top: 30px; display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center !important; }
  header .header-right .activities-box .activity-counter { margin: 0; padding: 14px 10px; width: calc(50% - 10px); max-width: 160px; }
  header .header-right .activities-box .activity-counter span { font-size: 24px; }
  header .header-right .activities-box .activity-counter h4 { font-size: 12px; }
  header .header-right .search-result-box a img { width: 70px; height: 60px; }
  header .header-right .search-result-box a { height: auto; padding: 10px; }
  header .header-right .search-result-box a span { font-size: 13px; }
  .products-section .owl-carousel { padding: 20px 6px 6px; margin-right: -6px; margin-left: -6px; }
  .products-section .owl-carousel::before { right: 20px; width: 50px; height: 3px; }
  .section-desc .desc h3 { font-size: 18px; }
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-box a {
  position: absolute;
  top: 30px;
  left: 30px;
}
.search-box a i {
  color: var(--gray);
  font-size: 22px;
  background: rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.search-box a i:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-white);
  transform: rotate(90deg);
}
.search-box form {
  width: 100%;
  max-width: 600px;
  position: relative;
}
.search-box form input {
  padding: 22px 60px 22px 24px;
  border-radius: 16px;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
}
.search-box form input::placeholder {
  color: rgba(255,255,255,0.35);
}
.search-box form input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 50px rgba(0,0,0,0.4), 0 0 0 4px rgba(54, 201, 244, 0.1);
}
.search-box form button {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
}
.search-box form button i {
  color: var(--text-white);
  font-size: 20px;
}
.search-box.show-search-box { opacity: 1; visibility: visible; }

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(15, 17, 25, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: url("../img/close.png"), auto;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ============================================
   CART CONTAINER
   ============================================ */
.cart-container {
  width: 360px;
  height: 100%;
  background: var(--white);
  position: fixed;
  top: 0;
  right: -100%;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.cart-container .cart-body .cart-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.cart-container .cart-body .cart-item .delete-item {
  background: var(--bg-light);
  padding: 35px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.cart-container .cart-body .cart-item .delete-item i {
  color: var(--gray-light);
  font-size: 12px;
}
.cart-container .cart-body .cart-item .delete-item:hover {
  background: var(--red);
}
.cart-container .cart-body .cart-item .delete-item:hover i { color: var(--text-white); }
.cart-container .cart-body .cart-item a img {
  width: 100px;
  padding: 0 10px;
  border-radius: 10px;
}
.cart-container .cart-body .cart-item .cart-item-details { display: inline-block; }
.cart-container .cart-body .cart-item .cart-item-details a {
  color: var(--dark);
  font-weight: 500;
}
.cart-container .cart-body .cart-item .cart-item-details a:hover { color: var(--primary); }
.cart-container .cart-body .cart-item .cart-item-details a,
.cart-container .cart-body .cart-item .cart-item-details span {
  padding: 0 10px;
  font-size: 14px;
}
.cart-container .cart-body .cart-item .cart-item-details span {
  display: block;
  color: var(--primary);
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}
.cart-container .cart-body .cart-item:last-child { border-bottom: 0; }
.cart-container .cart-footer {
  border-top: 2px solid var(--border);
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 20px;
  background: var(--bg-light);
}
.cart-container .cart-footer .all-cart-price { margin-bottom: 16px; }
.cart-container .cart-footer .all-cart-price strong { color: var(--dark); font-weight: 700; }
.cart-container .cart-footer .all-cart-price span {
  color: var(--primary);
  font-weight: 600;
}
.cart-container .cart-footer a { margin-top: 10px; border-radius: 10px; }
.cart-container.cart-show { right: 0; }

/* ============================================
   PRELOADER
   ============================================ */
.preload {
  position: fixed;
  width: 100%; height: 100%;
  top: 0; right: 0; left: 0; bottom: 0;
  background: var(--body-bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preload.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preload .preload-logo {
  font-size: 42px;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  letter-spacing: 2px;
}
.preload .preload-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.preload .preload-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  animation: preloadBar 1.4s ease-in-out infinite;
}
.preload .preload-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.preload .preload-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.2;
  animation: preloadDot 1.2s ease-in-out infinite;
}
.preload .preload-dots span:nth-child(2) { animation-delay: 0.2s; }
.preload .preload-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes preloadBar {
  0% { left: -100%; width: 60%; }
  50% { left: 10%; width: 80%; }
  100% { left: 100%; width: 60%; }
}
@keyframes preloadDot {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.hidden { display: none; opacity: 0; visibility: hidden; }

/* ============================================
   ACTION WRAPPER (Auth Forms)
   ============================================ */
.action-wrapper {
  position: relative;
  background: var(--bg-page);
  height: 100vh;
  width: 100%;
}
.action-wrapper form {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  width: 500px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.action-wrapper form p { color: var(--gray); }
.action-wrapper form .form-header span { color: var(--gray-light); }
.action-wrapper form .form-header a {
  color: var(--primary);
  margin-right: 10px;
  font-weight: 600;
}
.action-wrapper form .form-header a i { font-weight: 300; }
.action-wrapper form .form-header .back {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}
.action-wrapper form .form-body input {
  border: 2px solid var(--border);
  background: var(--bg-light);
  padding: 16px 14px;
  border-radius: 12px;
}
.action-wrapper form .form-body input:focus {
  border-color: var(--primary) !important;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(54, 201, 244, 0.1) !important;
}
.action-wrapper form .form-footer button,
.action-wrapper form .form-footer a {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 10px;
}
.action-wrapper form .form-footer a {
  margin-right: 10px;
  color: var(--primary);
}
.toggle-forms { display: none; }

@media only screen and (max-width: 600px) { form { max-width: 400px !important; } }
@media only screen and (max-width: 1200px) { .courses .item-box .item-box-title { font-size: 14px; } }

/* ============================================
   COURSE & BLOG CONTENT
   ============================================ */
.course-content-wrapper, .blog-content-wrapper {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.course-content-wrapper .article-img, .blog-content-wrapper .article-img {
  width: 100%; height: 100%;
}
.course-content-wrapper p, .blog-content-wrapper p {
  line-height: 30px;
  margin: 15px 0;
}
.course-content-wrapper h6, .blog-content-wrapper h6 {
  margin: 20px 0 10px 0;
}
.course-content-wrapper .course-seasons .course-season-item,
.blog-content-wrapper .course-seasons .course-season-item {
  background: var(--primary-light);
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--primary-border);
}
.course-content-wrapper .course-seasons .course-season-item .counter,
.blog-content-wrapper .course-seasons .course-season-item .counter {
  width: 32px; height: 32px;
  display: block;
  background: var(--primary-gradient);
  padding: 5px 11px;
  border-radius: 10px;
  color: var(--text-white);
  margin-left: 10px;
  font-weight: 600;
}
.course-content-wrapper form button, .blog-content-wrapper form button {
  margin-right: auto;
  display: block;
}
.course-content-wrapper .profile-box .profile-box-image .teacher-image,
.blog-content-wrapper .profile-box .profile-box-image .teacher-image {
  width: 140px; height: 140px;
  object-fit: cover;
  bottom: -30px; right: 10px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.course-content-wrapper .profile-box .profile-box-image .resume,
.blog-content-wrapper .profile-box .profile-box-image .resume { left: 10px; bottom: 10px; }
.course-content-wrapper .profile-box .profile-box-image .resume span { padding-left: 10px; }
.course-content-wrapper .profile-box .profile-box-image .resume a { color: var(--dark); }
.course-content-wrapper .profile-box .profile-box-teacher-skills h5,
.blog-content-wrapper .profile-box .profile-box-teacher-skills h5 {
  font-size: 18px; margin: 25px 0; font-weight: 700;
}
.course-content-wrapper .profile-box .profile-box-teacher-skills .progress,
.blog-content-wrapper .profile-box .profile-box-teacher-skills .progress {
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
}
.course-content-wrapper .profile-box .profile-box-teacher-skills .progress .progress-bar,
.blog-content-wrapper .profile-box .profile-box-teacher-skills .progress .progress-bar {
  font-size: 13px;
  border-radius: 14px;
  background: var(--primary-gradient);
}

.same-products h4 {
  border-bottom: 3px solid var(--primary);
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}
.same-products h4::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

@media only screen and (max-width: 530px) {
  .profile-box .profile-box-image .teacher-image { width: 100px !important; height: 100px !important; }
  .profile-box .profile-box-image .resume a, .profile-box .profile-box-image .resume span { font-size: 14px; }
}

.blog-content-wrapper .blog-title {
  padding: 16px;
  border-bottom: 2px solid var(--border);
  font-size: 26px;
  font-weight: 700;
}
.blog-content-wrapper p {
  padding: 12px;
  line-height: 40px;
  text-align: justify;
}
.blog-content-wrapper .article-details { margin: 15px 0; }
.blog-content-wrapper .article-details span {
  padding-right: 15px;
  color: var(--gray);
  font-size: 14px;
}

/* ============================================
   ABOUT US
   ============================================ */
#aboutUs .about-us-title {
  background: var(--dark) url("../img/about-us.jpg") no-repeat fixed top left;
  background-size: cover;
  padding: 140px 0;
  position: relative;
}
#aboutUs .about-us-title::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,29,41,0.85), rgba(26,29,41,0.6));
}
#aboutUs .about-us-title h1, #aboutUs .about-us-title h3 { color: var(--text-white); position: relative; z-index: 1; }
#aboutUs .about-us-title h3 { font-weight: 400; }
#aboutUs .about-us-contents { margin-top: 80px; }
#aboutUs .about-us-contents .about-us-box {
  margin-left: 15px;
  padding: 10px;
}
#aboutUs .about-us-contents .about-us-box .about-us-box-title {
  position: relative;
  padding-right: 28px;
  font-weight: 700;
}
#aboutUs .about-us-contents .about-us-box .about-us-box-title::before {
  content: "";
  width: 20px; height: 4px;
  background: var(--primary-gradient);
  position: absolute;
  top: 14px; right: 0;
  border-radius: 4px;
}
#aboutUs .about-us-contents .about-us-box .about-us-box-text { margin-top: 24px; }
#aboutUs .about-us-contents .about-us-box .about-us-box-text p {
  line-height: 36px;
  text-align: justify;
}

/* ============================================
   CONTACT US
   ============================================ */
#contactUs .contact-us-title {
  color: var(--text-white);
  background: var(--dark) url("../img/contact-us.jpg") no-repeat fixed top right;
  background-size: cover;
  padding: 140px 0;
  position: relative;
}
#contactUs .contact-us-title::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,29,41,0.85), rgba(26,29,41,0.6));
}
#contactUs .contact-us-title h1, #contactUs .contact-us-title h3 { position: relative; z-index: 1; }
#contactUs .contact-us-contents { margin-top: 100px; }
#contactUs .contact-us-contents #map { width: 100%; height: 500px; border-radius: 16px; overflow: hidden; }

/* ============================================
   FAQ
   ============================================ */
#faq .accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
#faq .accordion-item .accordion-button {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px !important;
}
#faq .accordion-item .accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: none;
}
#faq .accordion-item .accordion-button:focus { box-shadow: none; }
#faq .accordion-item .accordion-body {
  text-align: justify;
  line-height: 30px;
  padding: 20px 24px;
}

/* ============================================
   404
   ============================================ */
#_404Wrapper {
  background: var(--404-bg) url("../img/p404.png");
  width: 100%; height: 100vh;
  color: var(--text-white);
  position: relative;
}
#_404Wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(15,17,25,0.8) 100%);
}
#_404Wrapper h2 {
  font-size: 280px;
  position: relative;
  z-index: 1;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#_404Wrapper h4 {
  margin-top: -50px;
  font-size: 44px;
  position: relative;
  z-index: 1;
}
#_404Wrapper p {
  margin: 30px 20px;
  font-size: 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}
#_404Wrapper a {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 450px) { #_404Wrapper h2 { font-size: 180px; } }

/* ============================================
   CART PAGE - Premium Redesign
   ============================================ */
#cart {
  margin-top: 40px;
  --cart-radius: 16px;
}

/* ── Cart table ── */
#cart .cart-table-wrap {
  background: var(--white);
  border-radius: var(--cart-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 32px rgba(0,0,0,0.04);
  overflow: hidden;
}
#cart form table {
  margin-bottom: 0;
  border: 0;
}
#cart form table thead {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
#cart form table thead th {
  color: var(--text-white);
  font-weight: 600;
  font-size: 12px;
  padding: 16px 20px;
  border: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#cart form table thead th:first-child {
  width: 90px;
  text-align: center;
}
#cart form table thead th:last-child {
  text-align: center;
}
#cart form table tbody tr {
  transition: background 0.2s ease;
}
#cart form table tbody tr + tr {
  border-top: 1px solid var(--border);
}
#cart form table tbody tr:hover {
  background: rgba(54, 201, 244, 0.02);
}
#cart form table tbody tr td {
  padding: 20px;
  vertical-align: middle;
  border: 0;
}

/* ── Remove + Image ── */
#cart form table tbody tr td.remove-cell {
  width: 90px;
  text-align: center;
  padding: 20px 16px;
  vertical-align: middle;
}
#cart form table tbody tr td.remove-cell .product-thumb {
  position: relative;
  display: inline-block;
}
#cart form table tbody tr td.remove-cell .product-thumb .btn-close {
  position: absolute;
  top: -8px;
  left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--white);
  opacity: 1;
  transition: all 0.3s ease;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
}
#cart form table tbody tr td.remove-cell .product-thumb .btn-close::before {
  content: '\f00d';
  font-family: 'Font Awesome 5 Pro';
  font-size: 11px;
  color: var(--gray);
  transition: color 0.3s ease;
}
#cart form table tbody tr td.remove-cell .product-thumb .btn-close:hover {
  background: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
}
#cart form table tbody tr td.remove-cell .product-thumb .btn-close:hover::before {
  color: var(--text-white);
}
#cart form table tbody tr td.remove-cell .product-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
#cart form table tbody tr td.remove-cell .product-thumb img:hover { transform: scale(1.06); }

/* ── Product info ── */
#cart form table tbody tr td.product-cell .product-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
  transition: color 0.2s ease;
  cursor: pointer;
}
#cart form table tbody tr td.product-cell .product-name:hover { color: var(--primary); }

/* ── Price ── */
#cart form table tbody tr td.price-cell {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray);
  text-align: center;
}

/* ── Quantity stepper ── */
#cart form table tbody tr td.qty-cell {
  text-align: center;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s ease;
}
.qty-stepper:hover { border-color: var(--primary); }
.qty-stepper .qty-btn {
  width: 34px;
  height: 36px;
  border: 0;
  background: var(--bg-light);
  color: var(--gray);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.qty-stepper .qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.qty-stepper .qty-btn:active { transform: scale(0.9); }
.qty-stepper .qty-input {
  width: 44px;
  height: 36px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
}

/* ── Subtotal ── */
#cart form table tbody tr td.total-cell {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  text-align: center;
}

/* ── Cart actions ── */
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.cart-actions .coupon {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.cart-actions .coupon::before {
  content: '\f145';
  font-family: 'Font Awesome 5 Pro';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-light);
  font-size: 16px;
  z-index: 1;
}
.cart-actions .coupon .form-control {
  height: 50px;
  padding: 0 46px 0 120px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 14px;
  transition: all 0.3s ease;
}
.cart-actions .coupon .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(54, 201, 244, 0.1);
}
.cart-actions .coupon .btn-apply {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-weight: 600;
  font-size: 13px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 2;
  cursor: pointer;
}
.cart-actions .coupon .btn-apply:hover {
  box-shadow: 0 6px 20px rgba(54, 201, 244, 0.3);
  transform: translateY(-50%) scale(1.02);
}
.cart-actions .btn-update {
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cart-actions .btn-update:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(54, 201, 244, 0.04);
}
.cart-actions .btn-update i { font-size: 15px; }

/* ── Checkout sidebar ── */
#cart .checkout-box {
  background: var(--white);
  border-radius: var(--cart-radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 32px rgba(0,0,0,0.04);
  position: sticky;
  top: 100px;
}
#cart .checkout-box .checkout-box-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
#cart .checkout-box .checkout-box-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}
#cart .checkout-box .checkout-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--gray);
}
#cart .checkout-box .checkout-box-row + .checkout-box-row {
  border-top: 1px solid var(--border);
}
#cart .checkout-box .checkout-box-row:last-of-type {
  padding: 16px 0 20px;
}
#cart .checkout-box .checkout-box-row .total-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
}
#cart .checkout-box .checkout-box-row .total-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
}
#cart .checkout-box .checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  transition: all 0.3s ease;
}
#cart .checkout-box .checkout-btn:hover {
  box-shadow: 0 8px 28px rgba(54, 201, 244, 0.35);
  transform: translateY(-2px);
  color: var(--text-white);
}
#cart .checkout-box .checkout-btn i { font-size: 17px; }

/* ── Responsive ── */
@media only screen and (max-width: 767px) {
  #cart form table thead { display: none; }
  #cart form table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 16px;
  }
  #cart form table tbody tr + tr { border-top: 1px solid var(--border); }
  #cart form table tbody tr td {
    padding: 0 !important;
    border: 0 !important;
    width: auto !important;
  }
  /* Image: fixed width */
  #cart form table tbody tr td.remove-cell { width: 80px !important; flex: none; }
  #cart form table tbody tr td.remove-cell .product-thumb {
    position: relative;
  }
  #cart form table tbody tr td.remove-cell .product-thumb img {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
  }
  #cart form table tbody tr td.remove-cell .product-thumb .btn-close {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    z-index: 2;
  }
  #cart form table tbody tr td.remove-cell .product-thumb .btn-close::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Pro';
    font-size: 10px;
    color: var(--gray);
  }
  #cart form table tbody tr td.remove-cell .product-thumb .btn-close:hover {
    background: #dc3545;
  }
  #cart form table tbody tr td.remove-cell .product-thumb .btn-close:hover::before {
    color: var(--text-white);
  }
  /* Name: fills remaining space on row 1 */
  #cart form table tbody tr td.product-cell { flex: 1; min-width: 0; }
  #cart form table tbody tr td.product-cell .product-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Price, qty, total: sit on row 2 with labels */
  #cart form table tbody tr td.price-cell { margin-right: 0; }
  #cart form table tbody tr td.price-cell::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--gray);
  }
  #cart form table tbody tr td.price-cell {
    color: var(--gray);
    font-weight: 500;
    font-size: 13px;
  }
  #cart form table tbody tr td.qty-cell { font-size: 13px; }
  #cart form table tbody tr td.qty-cell .qty-stepper .qty-btn {
    width: 30px;
    height: 32px;
    font-size: 14px;
  }
  #cart form table tbody tr td.qty-cell .qty-stepper .qty-input {
    width: 36px;
    height: 32px;
    font-size: 13px;
  }
  #cart form table tbody tr td.total-cell {
    font-weight: 700;
    color: var(--dark);
    font-size: 13px;
  }
  #cart form table tbody tr td.total-cell::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--dark);
  }
  .cart-actions {
    flex-direction: column;
    padding: 16px;
  }
  .cart-actions .coupon {
    width: 100%;
    min-width: unset;
  }
  .cart-actions .btn-update {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PANEL (Dashboard)
   ============================================ */
#panel .panel-box {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
#panel .panel-box .profile-image {
  display: block;
  width: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  padding: 4px;
  border: 3px solid var(--primary);
}
#panel .panel-box .profile-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
#panel .panel-box ul li {
  padding: 12px;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 4px;
}
#panel .panel-box ul li:hover {
  background: var(--primary-light);
}
#panel .panel-box ul li:hover a { color: var(--primary); }
#panel .panel-box ul li a {
  transition: color 0.3s ease;
  color: var(--dark);
  display: block;
  font-weight: 500;
}
#panel .panel-box ul li a i {
  font-weight: 300;
  padding-left: 8px;
}
#panel .panel-box ul li a .fa-circle { font-size: 10px; }
#panel .panel-box ul li a .fa-angle-down {
  padding: 3px 5px;
  font-size: 16px;
  transition: transform 0.3s ease;
}
#panel .panel-box ul li ul { display: none; }
#panel .panel-box ul li ul li {
  margin: 8px;
  background: var(--white);
  border-radius: 8px;
}
#panel .panel-box ul li ul li:hover { background: var(--bg-light); }
#panel .panel-box ul li ul li a { color: var(--dark) !important; font-weight: 400; }
#panel .panel-box ul li .menu-sub-item-show { display: block; }
#panel .panel-box ul .active-menu-li { background: var(--primary-light); }
#panel .panel-box ul .active-menu-li .active-sub-menu-ul { display: block; }
#panel .panel-box ul .active-menu-li .active-sub-menu-ul .active-sub-menu-li { background: var(--bg-light); }
#panel .panel-box ul .menu-item-active { background: var(--primary-light); }
#panel .panel-box ul .menu-item-active a { color: var(--primary); font-weight: 600; }
#panel .panel-box ul .menu-item-active .fa-angle-down {
  transform: rotate(180deg);
  color: var(--primary);
}
#panel .panel-box ul .exit {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 10px;
}
#panel .panel-box ul .exit a { color: var(--text-white); font-weight: 600; }
#panel .panel-box ul .exit:hover { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
#panel .panel-box ul .exit:hover a { color: var(--text-white); }

#panel .panel-details .panel-details-title,
#panel .panel-details .panel-details-boxes,
#panel .panel-details .panel-details-favourite-box {
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  border: 1px solid var(--border);
}
#panel .panel-details .panel-details-title {
  text-align: center;
  color: var(--gray);
  padding: 12px;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}
#panel .panel-details .panel-details-title:hover { color: var(--primary); }
#panel .panel-details .panel-details-notification,
#panel .panel-details .panel-details-notification-alert { border-radius: 10px; }
#panel .panel-details .panel-details-notification {
  padding: 20px;
  background: var(--bg-light);
}
#panel .panel-details .panel-details-notification h5 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  font-weight: 600;
}
#panel .panel-details .panel-details-notification h5 i { font-weight: 300; }
#panel .panel-details .panel-details-notification .panel-details-notification-alert {
  background: var(--primary-gradient);
  padding: 12px;
  color: var(--text-white);
  margin: 15px;
  border-radius: 10px;
}
#panel .panel-details .panel-details-boxes {
  padding: 20px;
  margin: 30px 0 0 0;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#panel .panel-details .panel-details-boxes:hover {
  background: var(--primary-gradient);
  transform: translateY(-4px);
}
#panel .panel-details .panel-details-boxes:hover .details-boxes-title,
#panel .panel-details .panel-details-boxes:hover .details-boxes-quantity { color: var(--text-white); }
#panel .panel-details .panel-details-boxes:hover .fa-circle { opacity: 1; visibility: visible; }
#panel .panel-details .panel-details-boxes .details-boxes-title,
#panel .panel-details .panel-details-boxes .details-boxes-quantity { display: block; }
#panel .panel-details .panel-details-boxes .details-boxes-title {
  color: var(--gray);
  font-size: 13px;
  font-weight: 400;
}
#panel .panel-details .panel-details-boxes .details-boxes-quantity {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
}
#panel .panel-details .panel-details-boxes .fa-circle {
  font-size: 88px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
#panel .panel-details .panel-details-boxes .fa-circle {
  top: -45px; left: -45px;
  color: rgba(255,255,255,0.15);
}
#panel .panel-details .panel-details-favourite-box {
  margin-top: 20px;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
}
#panel .panel-details .panel-details-favourite-box:hover .delete-item-from-favourites {
  opacity: 1; visibility: visible;
}
#panel .panel-details .panel-details-favourite-box img {
  border-radius: 10px;
}
#panel .panel-details .panel-details-favourite-box a {
  color: var(--dark);
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}
#panel .panel-details .panel-details-favourite-box a:hover { color: var(--primary); }
#panel .panel-details .panel-details-favourite-box .delete-item-from-favourites {
  background: var(--primary-gradient);
  padding: 8px 12px;
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
#panel .panel-details .panel-details-favourite-box .delete-item-from-favourites i { color: var(--text-white); }
#panel .panel-details .panel-insert-new-course {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
}
#panel .panel-details .panel-insert-new-course form label {
  margin: 14px 0;
  font-weight: 500;
  color: var(--dark);
}
#panel .panel-details .panel-insert-new-course form input[type=file] { margin-top: 5px; }
#panel .panel-details .panel-insert-new-course form .custom-with-50 { width: 45%; }
#panel .panel-details .table-container { overflow-x: auto; }
#panel .panel-details .table-container span {
  min-width: 80px;
  transition: all 0.3s ease;
}
#panel .panel-details .table-container span:hover { color: var(--text-white); }

@media only screen and (max-width: 1200px) {
  .table-container { overflow-x: visible; }
  .table-container .custom-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
  }
}

/* ============================================
   TABLES
   ============================================ */
table {
  border: 1px solid var(--border);
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}
table th, table tr {
  color: var(--gray);
  font-weight: 400;
}
table thead { border-color: var(--border); }
table tbody tr td { padding: 24px 13px; }
table tbody tr td img {
  width: 100px;
  margin: -16px;
  border-radius: 10px;
}
table tbody tr .coupon { position: relative; }
table tbody tr .coupon .form-control {
  padding-left: 110px;
  height: 46px;
}
table tbody tr .coupon button {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ===== Modern Dashboard Tables ===== */
#panel .panel-details .table-container table thead {
  background: var(--primary-gradient);
  border-radius: 12px 12px 0 0;
}
#panel .panel-details .table-container table thead th {
  color: var(--text-white);
  font-weight: 600;
  font-size: 13px;
  padding: 16px 13px;
  border: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#panel .panel-details .table-container table tbody tr {
  transition: all 0.2s ease;
}
#panel .panel-details .table-container table tbody tr:hover {
  background: rgba(54, 201, 244, 0.04);
}
#panel .panel-details .table-container table tbody tr:nth-child(even) {
  background: var(--bg-light);
}
#panel .panel-details .table-container table tbody tr:nth-child(even):hover {
  background: rgba(54, 201, 244, 0.06);
}
#panel .panel-details .table-container table tbody tr td {
  padding: 18px 13px;
  vertical-align: middle;
  font-size: 14px;
}
#panel .panel-details .table-container table tbody tr td .btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

@media only screen and (max-width: 620px) {
  .section-desc .desc h3 { font-size: 18px; }
  .section-desc .desc span { font-size: 14px; }
  .section-desc .btn-desc a { font-size: 14px; }
}

/* ===== Inline Styles Moved to CSS Classes ===== */

/* Footer */
.footer-logo-img { filter: brightness(0) invert(1); opacity: 0.9; max-width: 140px; }
.footer-text-logo {
  font-size: 28px;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.8; margin-top: 10px; }
.footer-symbol-img { max-width: 80px; }
.footer-copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; background: transparent; }
.footer-copyright-text { color: rgba(255,255,255,0.4); }

/* Auth Pages */
.auth-title { font-weight: 700; }
.auth-back-link { font-size: 14px; }
.auth-label { font-weight: 500; color: var(--dark); }
.auth-link-text { color: var(--gray-light); font-size: 14px; }
.auth-link { color: var(--primary); font-weight: 600; font-size: 14px; margin-right: 5px; }
.auth-secondary-btn { font-size: 14px; padding: 8px 20px; }
.auth-submit-btn { padding: 12px 40px; }
.auth-full-btn { padding: 12px; }
.auth-desc { color: var(--gray); font-size: 14px; margin-top: 10px; }

/* Dashboard */
.dashboard-title { font-weight: 700; }
.dashboard-desc { color: var(--gray-light); font-size: 14px; margin-top: 8px; }
.dashboard-profile-name { font-weight: 700; font-size: 16px; color: var(--dark); }
.dashboard-exit-link { margin-top: 50px; }
.dashboard-section-title { font-weight: 700; font-size: 18px; border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 20px; }
.dashboard-notif-box { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--white); }
.dashboard-notif-title { font-weight: 700; color: var(--dark); border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.dashboard-notif-icon { color: var(--primary); margin-left: 8px; }
.dashboard-notif-alert { margin: 15px 0 0 0; border-radius: 10px; padding: 14px 18px; background: var(--primary-gradient); color: var(--text-white); }
.dashboard-table-bordered { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.dashboard-table-simple { border-radius: 12px; overflow: hidden; }
.dashboard-fav-box { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--white); margin-top: 20px; box-shadow: var(--card-shadow); }
.dashboard-input { border-radius: 10px; padding: 12px 14px; }
.dashboard-select { border-radius: 10px; padding: 12px 14px; }
.dashboard-submit-btn { border-radius: 10px; padding: 12px 30px; }

/* About-us */
.about-hero { min-height: 350px; }
.about-hero-title { font-size: 48px; font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.about-hero-subtitle { font-size: 22px; color: rgba(255,255,255,0.9); font-weight: 400; }
.about-box-title { font-size: 32px; font-weight: 700; color: var(--dark); }
.about-stats-card { background: var(--white); border-radius: 16px; padding: 30px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.about-stats-number { font-size: 36px; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-stats-label { margin-top: 8px; color: var(--gray); font-size: 14px; }

/* 404 */
.error-wrapper { padding: 0 20px; }
.error-code { font-size: 200px; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 900; line-height: 1; }
.error-title { font-size: 36px; font-weight: 700; margin-top: -10px; }
.error-desc { opacity: 0.7; font-size: 18px; max-width: 500px; margin: 20px auto; }
.error-btn { padding: 14px 40px; font-size: 16px; }

/* FAQ */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-title { font-weight: 700; font-size: 28px; color: var(--dark); }
.faq-desc { color: var(--gray); font-size: 16px; max-width: 600px; margin: 10px auto 0; }

/* Contact / Request */
.contact-hero { min-height: 350px; }
.contact-hero-title { font-size: 48px; font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.contact-hero-subtitle { font-size: 22px; color: rgba(255,255,255,0.9); font-weight: 400; }
.request-title { font-weight: 700; font-size: 28px; color: var(--dark); }
.request-desc { color: var(--gray); font-size: 15px; }
.request-form { max-width: 700px; margin: 0 auto; }
.request-btn { border-radius: 10px; padding: 12px 30px; }

/* Register Teacher */
.teacher-form-header { border-bottom: 2px solid var(--primary-light); padding-bottom: 20px; }
.teacher-form-title { font-weight: 700; font-size: 28px; }
.teacher-form-desc { color: var(--gray); font-size: 15px; }
.teacher-submit-btn { border-radius: 10px; padding: 12px 40px; margin-top: 10px; }

/* Header */
.header-image-round { border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

/* Single Course Progress Bars */
.progress-bar-95 { width: 95%; }
.progress-bar-90 { width: 90%; }
.progress-bar-85 { width: 85%; }
.progress-bar-70 { width: 70%; }
.progress-bar-60 { width: 60%; }

/* ===== Modern Form Inputs ===== */
.contact-form .form-control,
#checkout-form .form-control {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 14px;
  transition: all 0.3s ease;
  color: var(--dark);
}
.contact-form .form-control:focus,
#checkout-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(54, 201, 244, 0.1);
  outline: none;
}
.contact-form textarea.form-control,
#checkout-form textarea.form-control {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}
.contact-form label,
#checkout-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}
.contact-form label i,
#checkout-form label i {
  margin-left: 6px;
  color: var(--primary);
}
.contact-form .btn,
#checkout-form .btn {
  border-radius: 12px;
  padding: 12px 32px;
  font-weight: 600;
}
.contact-form-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.contact-form-title h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

/* ============================================
   DARK MODE COMPONENT OVERRIDES
   ============================================ */
[data-mode="dark"] .form-control,
[data-mode="dark"] input[type="text"],
[data-mode="dark"] input[type="email"],
[data-mode="dark"] input[type="password"],
[data-mode="dark"] input[type="number"],
[data-mode="dark"] textarea,
[data-mode="dark"] select {
  background: var(--input-bg);
  color: var(--input-text);
  border-color: var(--border);
}
[data-mode="dark"] .form-control::placeholder,
[data-mode="dark"] input::placeholder,
[data-mode="dark"] textarea::placeholder {
  color: var(--gray-light);
}
[data-mode="dark"] .card-footer {
  background: var(--bg-light);
}
[data-mode="dark"] .owl-theme .owl-prev,
[data-mode="dark"] .owl-theme .owl-next {
  background: var(--white) !important;
  color: var(--dark) !important;
}
[data-mode="dark"] .custom-btn-light-blue {
  background: var(--bg-light);
  border-color: var(--border);
}
[data-mode="dark"] .section-desc .desc h3,
[data-mode="dark"] .section-desc .desc span {
  color: var(--dark);
}
[data-mode="dark"] .contact-form-title h1,
[data-mode="dark"] #checkout-form label {
  color: var(--dark);
}
[data-mode="dark"] #panel .panel-box {
  background: var(--dashboard-bg);
}
[data-mode="dark"] #panel .panel-details .table-container table tbody tr:nth-child(even) {
  background: var(--table-stripe);
}
[data-mode="dark"] table {
  border-color: var(--border);
}
[data-mode="dark"] table tbody tr td {
  color: var(--gray);
}
[data-mode="dark"] .custom-breadcrumb form input {
  background: var(--input-bg);
  color: var(--input-text);
}
[data-mode="dark"] header .header-right form input {
  background: var(--input-bg);
  color: var(--input-text);
  border-color: var(--border);
}
[data-mode="dark"] header .header-right form input:focus {
  border-color: var(--primary) !important;
}
[data-mode="dark"] header .header-right .search-result-box {
  background: var(--white);
  border-color: var(--border);
}
[data-mode="dark"] header .header-right .search-result-box a {
  background: var(--white);
}
[data-mode="dark"] header .header-right .search-result-box a span {
  color: var(--dark);
}
[data-mode="dark"] #panel .panel-details .table-container table tbody tr:hover {
  background: rgba(54, 201, 244, 0.08);
}
[data-mode="dark"] #panel .panel-details .table-container table tbody tr:nth-child(even):hover {
  background: rgba(54, 201, 244, 0.1);
}

/* ===== Dark mode comprehensive box/component fixes ===== */
[data-mode="dark"] .item-box,
[data-mode="dark"] .action-wrapper,
[data-mode="dark"] .course-content-wrapper .course-seasons,
[data-mode="dark"] .course-content-wrapper .profile-box,
[data-mode="dark"] .faq-section .accordion-item,
[data-mode="dark"] .comment-item,
[data-mode="dark"] .checkout-sidebar,
[data-mode="dark"] .cart-actions .coupon,
[data-mode="dark"] .dashboard-notif-box,
[data-mode="dark"] .dashboard-fav-box,
[data-mode="dark"] .ticket-box,
[data-mode="dark"] .support-box {
  background: var(--white);
  border-color: var(--border);
}
[data-mode="dark"] .action-wrapper form .form-body input {
  background: var(--input-bg);
  color: var(--input-text);
  border-color: var(--border);
}
[data-mode="dark"] .action-wrapper form .form-body input:focus {
  border-color: var(--primary) !important;
}
[data-mode="dark"] .comment-item .comment-text {
  color: var(--dark);
}
[data-mode="dark"] .comment-item .comment-name {
  color: var(--dark);
}
[data-mode="dark"] .faq-section .accordion-item .accordion-header button {
  background: var(--white);
  color: var(--dark);
}
[data-mode="dark"] .faq-section .accordion-item .accordion-body {
  background: var(--white);
  color: var(--gray);
}
[data-mode="dark"] .checkout-sidebar .checkout-item {
  border-bottom-color: var(--border);
}
[data-mode="dark"] .checkout-sidebar .checkout-total {
  border-top-color: var(--border);
}
[data-mode="dark"] .cart-actions .coupon .form-control {
  background: var(--input-bg);
  color: var(--input-text);
  border-color: var(--border);
}
[data-mode="dark"] .pagination .page-item .page-link {
  background: var(--white);
  border-color: var(--border);
  color: var(--dark);
}
[data-mode="dark"] .pagination .page-item.active .page-link {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-white);
}
[data-mode="dark"] .pagination .page-item .page-link:hover {
  background: var(--bg-light);
}
[data-mode="dark"] .products-section .section-desc {
  background: transparent;
}
[data-mode="dark"] .products-section .owl-carousel {
  background: var(--tag-bg);
}
[data-mode="dark"] .products-section .owl-carousel::before {
  opacity: 0.8;
}
[data-mode="dark"] .services {
  background: var(--tag-bg);
}
[data-mode="dark"] .services .services-box {
  background: var(--bg-light);
}
[data-mode="dark"] .blog .row .blog-item .blog-item-details {
  background: var(--bg-light);
}
[data-mode="dark"] .section-desc .desc h3,
[data-mode="dark"] .section-desc .desc span {
  color: var(--dark);
}
[data-mode="dark"] header .header-right .activities-box .activity-counter span {
  color: var(--dark);
}
[data-mode="dark"] header .header-right .activities-box .activity-counter h4 {
  color: var(--gray);
}
[data-mode="dark"] header .header-right h6 {
  color: var(--gray);
}
[data-mode="dark"] header .header-right h3 {
  color: var(--dark);
}
[data-mode="dark"] .footer-item .links ul li a {
  color: rgba(255,255,255,0.4) !important;
}
[data-mode="dark"] .footer-item .links ul li a:hover {
  color: var(--text-white) !important;
}
[data-mode="dark"] #panel .panel-box ul li a {
  color: var(--dark);
}
[data-mode="dark"] #panel .panel-box ul li ul li a {
  color: var(--dark) !important;
}
[data-mode="dark"] #panel .panel-box ul li ul li:hover {
  background: var(--panel-hover-bg);
}
[data-mode="dark"] #panel .panel-box ul .active-menu-li {
  background: var(--bg-light);
}
[data-mode="dark"] #aboutUs .about-us-title {
  background: #0b0b1e url("../img/about-us.jpg") no-repeat fixed top left;
  background-size: cover;
}
[data-mode="dark"] #contactUs .contact-us-title {
  background: #0b0b1e url("../img/contact-us.jpg") no-repeat fixed top left;
  background-size: cover;
}
[data-mode="dark"] .status-badge {
  color: var(--text-white);
}
[data-mode="dark"] .card .card-footer span,
[data-mode="dark"] #cart form table tbody tr td.price-cell,
[data-mode="dark"] #cart .checkout-box .checkout-box-row .total-price,
[data-mode="dark"] .course-price,
[data-mode="dark"] .single-course-price,
[data-mode="dark"] .cart-item-details span:last-child,
[data-mode="dark"] .checkout-item span:last-child,
[data-mode="dark"] .checkout-total span:last-child,
[data-mode="dark"] .all-cart-price span {
  color: var(--primary) !important;
}

/* ===== Dark mode catch-all fixes ===== */
[data-mode="dark"] .teacher-form-title,
[data-mode="dark"] .teacher-form-desc,
[data-mode="dark"] .request-title,
[data-mode="dark"] .request-desc,
[data-mode="dark"] .faq-title,
[data-mode="dark"] .faq-desc,
[data-mode="dark"] .about-box-title,
[data-mode="dark"] .about-stats-label,
[data-mode="dark"] .error-title,
[data-mode="dark"] .error-desc,
[data-mode="dark"] .blog-title,
[data-mode="dark"] .blog-desc,
[data-mode="dark"] .comment-name,
[data-mode="dark"] .comment-date,
[data-mode="dark"] .comment-text,
[data-mode="dark"] .course-content-wrapper p,
[data-mode="dark"] .blog-content-wrapper p,
[data-mode="dark"] .course-content-wrapper h6,
[data-mode="dark"] .blog-content-wrapper h6,
[data-mode="dark"] .course-content-wrapper li,
[data-mode="dark"] .course-content-wrapper .profile-box .profile-box-teacher-skills h5,
[data-mode="dark"] .course-content-wrapper .profile-box .profile-box-teacher-skills li {
  color: var(--dark);
}
[data-mode="dark"] .course-content-wrapper .course-seasons .course-season-item {
  background: var(--bg-light);
  border-color: var(--border);
}
[data-mode="dark"] .course-content-wrapper .course-seasons .course-season-item .counter {
  background: var(--primary-gradient);
  color: var(--text-white);
}
[data-mode="dark"] .action-wrapper form p,
[data-mode="dark"] .action-wrapper form .form-header span,
[data-mode="dark"] .action-wrapper form .form-header .back,
[data-mode="dark"] .item-box p,
[data-mode="dark"] .ticket-text,
[data-mode="dark"] .support-text {
  color: var(--gray);
}
[data-mode="dark"] .footer-desc,
[data-mode="dark"] .copyright p {
  color: rgba(255,255,255,0.4) !important;
}
[data-mode="dark"] .about-stats-card {
  background: var(--white);
  border-color: var(--border);
}
[data-mode="dark"] .text-black-50 {
  color: var(--gray-light) !important;
}
[data-mode="dark"] .course-content-wrapper .course-seasons .course-season-item {
  background: var(--bg-light);
  border-color: var(--border);
}
[data-mode="dark"] .course-content-wrapper .course-seasons .course-season-item .counter {
  background: var(--primary-gradient);
  color: var(--text-white);
}
[data-mode="dark"] header .header-right .header-span {
  background: var(--bg-light);
  border: 1px solid var(--border);
}
[data-mode="dark"] #panel .panel-box ul .menu-item-active {
  background: var(--bg-light);
}
[data-mode="dark"] #panel .panel-box ul .active-menu-li .active-sub-menu-ul .active-sub-menu-li {
  background: var(--bg-light);
}
[data-mode="dark"] .custom-btn-light-blue {
  background: var(--bg-light);
  border-color: var(--border);
  color: var(--primary);
}
[data-mode="dark"] .section-desc .desc h3 {
  color: var(--dark);
}
[data-mode="dark"] .section-desc .desc span {
  color: var(--gray);
}
