/* Main Styles for Leaders Academy */

/* General Settings */
body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Backgrounds */
.gradient-background {
  background: linear-gradient(300deg, #1A5F7A, #7D9BB1, #73BE9D, #1A5F7A, #1A5F7A);
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

.gradient-backgroundd {
  background: linear-gradient(300deg, #000000, #1A5F7A, #1A5F7A, #1A5F7A, #1A5F7A, #FFFFFF, #1A5F7A, #000000);
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Color Classes */
.navy-color { background: #D6D6D6; }
.navy2-color { background: #1A5F7A; }
.navy3-color { background: #73BE9D; }
.navy4-color { background: #7D9BB1; }
.navy5-color { background: #494949; }

/* Navigation */
.navbar {
  background-color: #1A5F7A;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-size: 14px;
}

.navbar-nav .nav-item {
  margin-left: 10px;
  margin-right: 10px;
}

.navbar-toggler img {
  width: 30px;
  margin-right: 5px;
}

.navbar-brand img {
  width: 60px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
}

/* Buttons */
.btnp-color {
  background: #1A5F7A;
  border-color: #1A5F7A;
  border-width: 3px;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.btnp-color::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.6s;
}

.btnp-color:hover {
  background-color: #164d6f;
  border-color: #164d6f;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(26, 95, 122, 0.5), 0 0 20px rgba(26, 95, 122, 0.3);
  animation: none;
}

.btnp-color:hover::before {
  left: 100%;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
  }
  14% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.5), 0 0 15px rgba(26, 95, 122, 0.3);
  }
  28% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
  }
  42% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.5), 0 0 15px rgba(26, 95, 122, 0.3);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
  }
}

.btns-color {
  background: #73BE9D;
  border-color: #73BE9D;
  border-width: 3px;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btns-color:hover {
  background-color: #5fa885;
  border-color: #5fa885;
  transform: scale(1.05);
}

.btn1-color {
  background: transparent;
  border-color: #1A5F7A;
  border-width: 3px;
  font-weight: bold;
  color: #1A5F7A;
}

.btn2-color {
  background: #1A5F7A;
  border-color: #1A5F7A;
  border-width: 3px;
  font-weight: bold;
  color: white;
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  font-weight: bold;
  color: #1A5F7A;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background-color: #73BE9D;
  width: 140px;
  margin: 0 auto;
}

/* Icons and Elements */
.icon-square {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

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

.text-content h3 {
  margin-bottom: 15px;
}

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

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

/* Course Cards */
.course-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 25px;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.course-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.course-card .card-body {
  padding: 1.5rem;
}

.course-card .card-title {
  color: #1A5F7A;
  font-weight: bold;
  margin-bottom: 1rem;
}

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

/* Title Style for Colored Backgrounds */
.title-style {
  font-size: 40px; 
  font-family: 'Cairo', sans-serif; 
  font-weight: bold; 
  color: white;
}

/* Footer Styles */
footer {
  background-color: #1A5F7A;
  color: white;
  padding: 30px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #73BE9D;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.popup-logo img {
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.popup-divider {
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: rgba(26, 95, 122, 0.1);
  color: #1A5F7A;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
}

.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.125);
}

/* Contact Form Styles */
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
  border-color: #1A5F7A;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .course-actions {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .title-style {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  #features, #pricing, #testimonial {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .title-style {
    font-size: 28px;
  }
}

/* Legendary Countdown Timer Styles */
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(26, 95, 122, 0.15);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(26, 95, 122, 0.25);
  padding: 32px 24px 24px 24px;
  position: relative;
  overflow: hidden;
}
.countdown-container h4 {
  color: #E3BB3C;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 16px #1A5F7A, 0 0px 2px #fff;
}
.countdown-box {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.countdown-item {
  background: linear-gradient(145deg, #1A5F7A 60%, #E3BB3C 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(227, 187, 60, 0.15), 0 1.5px 8px #1A5F7A;
  padding: 24px 18px 12px 18px;
  min-width: 90px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}
.countdown-item:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(227, 187, 60, 0.25), 0 2px 12px #1A5F7A;
}
.countdown-item span {
  display: block;
  font-size: 2.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 12px #E3BB3C, 0 2px 8px #1A5F7A;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.countdown-item p {
  color: #E3BB3C;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 4px #1A5F7A;
}
@media (max-width: 768px) {
  .countdown-box {
    gap: 12px;
  }
  .countdown-item {
    min-width: 60px;
    padding: 12px 6px 8px 6px;
  }
  .countdown-item span {
    font-size: 1.5rem;
  }
  .countdown-container h4 {
    font-size: 1.2rem;
  }
}

/* Simple Registration Form Improvements */
.form-signin {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-control, .form-select {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.button-container {
  text-align: center;
  margin-top: 2rem;
}

.button-container .btn {
  margin: 0 auto;
  display: block;
  width: auto;
  min-width: 120px;
}

@media (max-width: 768px) {
  .form-signin {
    padding: 0 15px;
    margin: 1rem auto;
  }
  
  .form-control, .form-select {
    max-width: 100%;
    padding: 15px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    margin-bottom: 1rem;
  }
  
  .form-floating {
    margin-bottom: 1.5rem;
  }
  
  .form-floating label {
    font-size: 16px;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .button-container {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .button-container .btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 8px;
  }
  
  .form-signin h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .form-signin {
    padding: 0 10px;
    margin: 0.5rem auto;
  }
  
  .form-control, .form-select {
    padding: 18px 15px;
    font-size: 16px;
  }
  
  .button-container .btn {
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
  }
  
  .form-signin h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}