:root {
    --primary-color: #007ACC;
    --secondary-color: #FF7F00;
    --accent-color: #0048AB;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-gray: #ECECEC;
    --white: #FFFFFF;
    --orange-gradient: linear-gradient(180deg, #FF7628 0%, #C54D09 100%);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

.header-text {
    text-align: center;
    color: #F5F5F5;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('pic-3.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 1.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-right: 25px;
}

/* Countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    margin-right: 19px;
}

.countdown-item {
    background: var(--secondary-color);
    padding: 2rem 1rem;
    border-radius: 5px;
    text-align: center;
    color: var(--white);
}

.countdown-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
}

/* Course Sections */
.course-section {
    padding: 4rem 0;
    border-bottom: 1px solid #ddd;
}

.course-header {
    text-align: center;
    margin-bottom: 3rem;
}

.course-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.course-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    font-family: 'Cairo', sans-serif;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
    text-align: justify;
    padding: 1rem;
    font-size: 14px;
    text-align: center;
}

/* Course Details */
.course-details {
    text-align: center;
    margin-bottom: 20px;
}

.course-details .course-title {
    font-weight: bold;
    color: black;
    font-size: 18px;
    margin-bottom: 10px;
}

.course-details .course-name {
    color: #FF7F00;
    font-size: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
}

.course-details .course-description {
    color: gray;
    font-size: 14px;
    font-weight: normal;
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 2rem 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Ensures no border issues */
    display: block; /* Fixes potential inline-block issues */
    aspect-ratio: auto; /* Ensures proper scaling in Firefox */
}

.video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(23, 49, 236, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--white);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Course Stats */
.course-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg{
    fill: var(--secondary-color);
    width: 40px;
    height: 40px;
}

.stat-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.stat-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-light);
}

/* CTA Button */
.cta-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    margin: 2rem auto;
}

.cta-button:hover {
    background: #003d9a;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background: var(--orange-gradient);
    padding: 4rem 0;
    border-radius: 20px;
    margin: 4rem 0;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(210, 210, 210, 0.3);
}

.feature-card.primary {
    background: var(--accent-color);
    color: var(--white);
}

.feature-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Features Section */
.features {
  background: var(--orange-gradient);
  border-radius: 20px;
  padding: 2rem 0;
  margin: 4rem auto;
  max-width: 1200px;
}

.features-container {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(-50px);
  transition: transform 1.5s ease, opacity 1.5s ease;
}

.features-title.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.feature-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .features-container { padding: 1.5rem; }
  .features-title { font-size: clamp(1.75rem,5vw,2.5rem); }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
}

@media (max-width: 480px) {
  .features-container { padding: 1rem; }
  .features-title { font-size: clamp(1.5rem,6vw,2rem); }
  .features-grid { grid-template-columns: 1fr; }
}

/* Target Audience */
.target-audience {
    background: var(--bg-gray);
    padding: 4rem 0;
}

.audience-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    text-align: right;
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* custom bullet‐list */
.about-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: right;
}

.about-list li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-light);
}

.about-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--secondary-color)
        url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.485 1.929l-7.071 7.071L3.536 5.464l-1.414 1.414L6.07 11.828l8.485-8.485z"/></svg>')
        no-repeat center/contain;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

.stat-item.highlighted {
    background: var(--secondary-color);
    color: var(--white);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 275;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Certificates */
.certificates {
    background: var(--bg-gray);
    padding: 4rem 0;
}

.certificates-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(159, 159, 159, 0.3);
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* FAQ */
.faq {
    padding: 4rem 0;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
}

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

.faq-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    position: relative;
}

.faq-question {
    position: relative;
    text-align: right;
    padding-left: 2rem;
    cursor: pointer;
}

.faq-question::before {
    content: '+';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    content: '-';
}

.faq-answer {
    text-align: right;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

/* Contact */
.contact {
    background: var(--accent-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1200px;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.contact-item {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 20rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.contact-text {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--text-dark);
}

/* Social Media */
.social-media {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 46px;
    height: 46px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.social-link:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--accent-color);
    padding: 1rem 0;
    text-align: center;
}

.footer-text {
    color: var(--white);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 1rem;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

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

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

@media (max-width: 480px) {

    .hero-content {
        padding: 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

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

    .course-stats {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 43px;
    height: 43px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
}

/* Elementor styles */
.elementor *,
.elementor ::after,
.elementor ::before {
    box-sizing: border-box;
}

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

.elementor-560 .elementor-element.elementor-element-f445582 {
    text-align: center;
    font-family: "Cairo", Sans-serif;
    font-size: 33px;
    font-weight: 900;
    color: #666666;
}

.elementor-element,
.elementor-lightbox {
    --swiper-theme-color: #000;
    --swiper-navigation-size: 44px;
    --swiper-pagination-bullet-size: 6px;
    --swiper-pagination-bullet-horizontal-gap: 6px;
}

.elementor-element {
    --widgets-spacing: 20px 20px;
    --widgets-spacing-row: 20px;
    --widgets-spacing-column: 20px;
}

.elementor-element {
    --flex-direction: initial;
    --flex-wrap: initial;
    --justify-content: initial;
    --align-items: initial;
    --align-content: initial;
    --gap: initial;
    --flex-basis: initial;
    --flex-grow: initial;
    --flex-shrink: initial;
    --order: initial;
    --align-self: initial;
}
