/* ==============================================
  Header
   ============================================== */

header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ==============================================
  Hero
   ============================================== */

.hero-container {
  background-image: url("./assets/hero/banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, #00a3ffd1 0%, #043958 100%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  font-family: "Roboto", sans-serif;
  width: 100%;
}

.hero-content h1{
  font-size: 44px !important;
}

/* Form Styles */
form input,
form select,
form textarea,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

form input:focus,
form select:focus,
form textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==============================================
  Features
   ============================================== */

.features-section {
  background-color: #f1f5f9;
}

.feature-card {
  background-color: #043d5d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  font-family: "Poppins", sans-serif;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==============================================
  Certificate Courses
   ============================================== */

.certificate-courses-section {
  background-color: white;
}

/* Pill Button Styles */
.pill-btn {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pill-btn:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pill-btn.active {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card img {
  transition: transform 0.3s ease;
}

.course-card:hover img {
  transform: scale(1.05);
}

.view-more-btn {
  font-family: "Poppins", sans-serif;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  color: #1e40af;
  transition: all 0.3s ease;
  background-color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.view-more-btn:hover {
  background-color: #1d4ed8;
  color: white;
}
.view-more-btn:hover img {
  filter: brightness(0) invert(1);
}

/* ==============================================
  Degree Courses
   ============================================== */

.degree-courses-section {
  background-color: white;
}

/* ==============================================
  Free Courses
   ============================================== */

.free-courses-section {
  background-color: white;
}

.free-course-card {
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  max-width: 100%;
  min-width: 300px;
}

.free-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.free-course-card img {
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.free-course-card:hover img {
  transform: scale(1.05);
}

.square-btn {
  border: none;
  color: #0029a4;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.square-btn:hover {
  background-color: #fbbf24;
  color: #001a6d;
}

.square-btn.active {
  background-color: #0029a4;
  color: white;
}

/* ==============================================
  About
   ============================================== */

.about-section {
  background-color: #e4e4e4;
}

.stat-card {
  transition: transform 0.3s ease;
  h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
  }
  p {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #020d1c;
    text-wrap: nowrap;
  }
}

.stat-card:hover {
  transform: translateY(-3px);
}

/* ==============================================
  Footer
   ============================================== */

footer {
  background-color: #e4e4e4;
}

.social-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.social-icon img {
  filter: brightness(0) invert(1);
}

/* ==============================================
  Responsive Design
   ============================================== */

@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-content .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    text-align: -webkit-center;
  }

  .hero-content .text-4xl {
    font-size: 2.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .pill-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  header {
    padding: 1rem;
  }

  header img {
    height: 3rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    text-align: -webkit-center;
  }

  .hero-content .text-4xl {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .container-min {
    padding: 0 1rem;
  }

  .pill-btn {
    font-size: 11px;
    padding: 4px 8px;
    margin: 2px;
  }
}

/* ==============================================
  Enhanced Form Styles
   ============================================== */

.form-container {
  background-color: #fffffff5;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.phone-container {
  position: relative;
}

.country-selector {
  min-width: 80px;
  border: 1px solid black;
  background-color: white;
}

.selected-flag {
  transition: all 0.2s ease;
}

.selected-flag:hover {
  background-color: #f9fafb;
}

.flag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

#otp-container {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form field focus states */
.form-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover states */
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Message animations */
.message-enter {
  opacity: 0;
  transform: translateX(100px);
}

.message-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.message-exit {
  opacity: 1;
  transform: translateX(0);
}

.message-exit-active {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

/* Loading spinner animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Form validation styles */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Responsive form adjustments */
@media (max-width: 640px) {
  .phone-container .flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .country-selector {
    width: 100%;
  }

  #send-otp {
    width: 100%;
  }
}
