/* ==============================
   Fonts
============================== */

/* English Font */
body.ltr {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* Arabic Font */
body.rtl {
    font-family: 'Tajawal', sans-serif !important;
}

/* ==============================
   Color Variables (Brand)
============================== */
:root {
    --primary: #1A2F52;   /* Dark Blue */
    --gold: #C9A342;      /* Gold */
    --white: #FFFFFF;
    --text: #333333;
}

/* ==============================
   Global Body
============================== */
body {
    margin: 0;
    background-color: var(--white);
    color: var(--text);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

/* ==============================
   Navbar
============================== */
.navbar {
    background: var(--primary) !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: 0.3s ease;
}

.navbar.scrolled {
    padding-top: 4px;
    padding-bottom: 4px;
    background: rgba(26,47,82,0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold) !important;
}

.navbar .nav-link {
    color: var(--gold) !important;
    font-weight: 600;
    transition: 0.3s ease;
}

/* Hover */
.navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff !important;
}

/* Active Link */
.navbar .nav-link.active-link {
    color: #ffffff !important;
    background: rgba(255,255,255,0.18);
    padding: 8px 14px;
    border-radius: 8px;
}

/* Remove dots beside menu items */
.navbar-nav {
    list-style: none !important;
}

.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after {
    content: none !important;
}

/* ==============================
   Hero Section
============================== */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(
        rgba(26,47,82,0.8),
        rgba(26,47,82,0.8)
    ),
    url('../img/hero.jpg') center/cover no-repeat;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Buttons */
.btn-main {
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    transition: 0.3s;
}

.btn-main:hover {
    background: #b2892d;
    color: #fff;
}

/* ==============================
   Section Titles
============================== */
section {
    padding: 60px 0;
}

.section-title {
    border-left: 5px solid var(--gold);
    padding-left: 12px;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
}

/* ==============================
   Cards
============================== */
.card {
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
}

/* ==============================
   Service Cards (Home Slider)
============================== */
.service-card-home {
    text-decoration: none;
    color: inherit;
}

.service-home-card {
    width: 100%;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.service-home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.service-home-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-home-card h5 {
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    background: #fff;
}

/* Swiper Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fff;
}

/* ==============================
   Vision / Mission Sections
============================== */
.vision-img {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vision-card {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: none;
}

.vision-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.vision-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

/* ==============================
   Core Values
============================== */
.value-card {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.value-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

/* Value Icons (Circle Gold Border) */
.value-icon {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 3px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ==============================
   Why Choose Us
============================== */
.why-card {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    border: none;
}

.why-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.why-list li {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* ==============================
   Timeline
============================== */
.timeline {
    border-left: 4px solid var(--gold);
    padding-left: 25px;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
}

.timeline-item::before {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    position: absolute;
    left: -32px;
    top: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* ==============================
   Team (Management Page)
============================== */
.team-card {
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.team-thumb {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    margin: 0 auto;
    display: block;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.team-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
}

.team-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

/* ==============================
   Search Bar (Navbar)
============================== */
.nav-search-form {
    position: relative;
}

.nav-search-input {
    height: 38px;
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.nav-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(201,163,66,0.4);
}

.nav-search-btn {
    position: absolute;
    right: 5px;
    top: 4px;
    border: none;
    background: none;
    color: var(--primary);
}

body.rtl .nav-search-btn {
    right: auto;
    left: 5px;
}

body.rtl .nav-search-input {
    padding-right: 15px;
    padding-left: 40px;
}

/* ==============================
   Curtain Menu
============================== */
.curtain-btn {
    cursor: pointer;
    background: var(--gold);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.curtain-btn:hover {
    background: #b68d2f;
    color: #fff;
}

.curtain-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 310px;
    background: var(--primary);
    color: white;
    padding: 30px;
    text-align: center;
    transition: 0.6s ease;
    z-index: 9999;
}

.curtain-menu.open {
    top: 0;
}

.curtain-menu ul {
    list-style: none;
    padding: 0;
}

.curtain-menu li {
    margin: 15px 0;
}

.curtain-menu a {
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
}

.curtain-menu a:hover {
    color: #fff;
}

/* ==============================
   Footer
============================== */
footer {
    background: var(--primary);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-brand {
    color: var(--gold);
    font-weight: 700;
}

.footer-brand:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255,255,255,0.9);
    transform: scale(1.05);
}

/* ==============================
   Back To Top Button
============================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.back-to-top:hover {
    background: var(--gold);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==============================
   Reveal Animation
============================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-50px);
}
.fade-left.active {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(50px);
}
.fade-right.active {
    transform: translateX(0);
}

.fade-up {
    transform: translateY(50px);
}
.fade-up.active {
    transform: translateY(0);
}

.fade-down {
    transform: translateY(-50px);
}
.fade-down.active {
    transform: translateY(0);
}

/* Masonry Layout */
.masonry {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* Service Card Updated */
.service-card {
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Number Circle */
.service-number-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -40px auto 10px auto;
    background: #fff;
    position: relative;
    z-index: 5;
    transition: 0.4s ease;
}

.service-number-circle span {
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
}

/* Hover Effect Around Circle */
.service-number-circle:hover {
    box-shadow: 0 0 0 6px rgba(201,163,66,0.45);
    transform: scale(1.08);
}

/* Service Image */
.service-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
}

/* Divider */
.gold-divider {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 12px auto;
    border-radius: 5px;
}

/* Intro Text */
.service-intro {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}
.fade-up.active {
    transform: translateY(0);
}

.service-detail-card {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.main-service-img {
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.service-heading {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-subheading {
    color: var(--gold);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

.service-list li {
    margin-bottom: 8px;
    font-size: 16px;
}

.small-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.contact-box {
    background: #fdf6e3;
    border-left: 5px solid var(--gold);
    border-radius: 12px;
}

.contact-title {
    color: var(--primary);
    font-weight: 700;
}

.contact-item {
    display: block;
    margin: 8px 0;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-item:hover {
    color: var(--gold);
}

.whatsapp {
    color: #25D366;
}

.whatsapp:hover {
    color: #128C7E;
}


/* ============================================================
   CERTIFICATE SAMPLE — ADVANCED ZETC STYLING
============================================================ */

/* الكارد الخارجية */
.certificate-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 28px;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    max-width: 950px;
    margin: 60px auto;
    position: relative;
    overflow: hidden;
}

/* تأثير إضاءة الهويّة */
.certificate-card::before,
.certificate-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    z-index: 0;
}

.certificate-card::before {
    width: 180px;
    height: 180px;
    background: var(--gold);
    top: -50px;
    left: -50px;
}

.certificate-card::after {
    width: 220px;
    height: 220px;
    background: var(--primary);
    bottom: -70px;
    right: -70px;
}

/* عنوان الكارد */
.cert-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.cert-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--gold);
    display: block;
    margin: 12px auto 0;
    border-radius: 4px;
}

/* تنسيق الحاوية الداخلية */
.cert-wrapper {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* ==========================
   الصورة — أحلى كارد
========================== */

.cert-img {
    width: 100%;
    max-width: 330px;
    border-radius: 14px;
    border: 4px solid var(--primary);        /* إطار الهوية */
    padding: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: 0.3s ease;
}

.cert-img:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 8px 26px rgba(0,0,0,0.22);
}

/* النص */
.cert-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* روابط */
.cert-list a {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.cert-list a:hover {
    color: var(--gold);
}

/* ==========================
   زر المزيد من الدورات
========================== */

.more-courses-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 14px 34px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50px;
    border: 3px solid var(--gold);
    margin-top: 25px;
    transition: 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.more-courses-btn:hover {
    background: var(--gold);
    color: #000 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

@media (max-width: 768px) {
    .cert-img { max-width: 100%; }
    .more-courses-btn { font-size: 18px; padding: 12px 26px; }
}


/* ===========================================
   BIG TRAINING CENTER LINK CARD (Service 11)
=========================================== */

.training-link-card {
    display: block;
    background: #ffffff;
    border: 3px solid var(--gold);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.training-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    background: #f7fdfd;
}

.training-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.training-icon {
    font-size: 45px;
    color: var(--primary);
    background: #eef7fa;
    padding: 14px;
    border-radius: 12px;
}

.training-texts h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 6px;
}

.highlighted-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

/* RTL support */
body.rtl .training-card-content {
    flex-direction: row-reverse;
    text-align: right;
}

body.ltr .training-card-content {
    flex-direction: row;
    text-align: left;
}

/* === كرت التدريب العائم (Floating Card) === */
.training-float-card {
  position: fixed;
  bottom: 20px;
  background-color: #ffffff;
  border: 2px solid var(--accent, #ffc107);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  max-width: 300px;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

/* اتجاه البطاقة حسب اللغة */
.training-float-card.float-ar {
  right: 20px;
}

.training-float-card.float-en {
  left: 20px;
}

/* تنسيق الرابط داخل الكرت */
.training-float-card a {
  font-weight: bold;
  color: var(--primary, #0d6efd);
}

.training-float-card a:hover {
  text-decoration: underline;
}

/* دخول ناعم */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.training-float-card {
  animation: fadeInCard 0.6s ease-in-out;
}

/* استجابة للموبايل */
@media (max-width: 576px) {
  .training-float-card {
    left: 10px !important;
    right: 10px !important;
    max-width: none;
    font-size: 0.85rem;
  }
}
