/* 
 * Do-while Academy - Main Stylesheet
 * Author: Do-while Academy
 * Version: 1.0
 */

/* ======= Base Styles ======= */
:root {
  --primary: #0275d8;
  --primary-dark: #01579b;
  --primary-light: #b3e5fc;
  --secondary: #fd7e14;
  --secondary-dark: #e65100;
  --gray-light: #f8f9fa;
  --gray: #6c757d;
  --dark: #343a40;
  --white: #ffffff;
  --navbar-height: 50px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  padding-top: var(--navbar-height);
}

/* ======= Animations ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= Navigation ======= */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  color: var(--dark) !important;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary) !important;
}

.navbar-brand img {
  height: 75px;
}

/* ======= Hero Section ======= */
.hero {
  position: relative;
  background: url('/img/hero.jpeg') no-repeat center center;
  background-size: cover;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.hero .container {
  position: relative;
  z-index: 5;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.btn-cta {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======= Section Styles ======= */
.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 1.5rem auto;
}

/* ======= Course Cards ======= */
.course-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

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

.course-image {
  height: 300px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-body {
  padding: 1.5rem;
}

.course-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.course-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.course-coming-soon {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 350px;
}

.coming-soon-content {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}

.coming-soon-content i {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ======= Instructors ======= */
.instructor-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.instructor-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-light);
}

.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.instructor-specialization {
  color: var(--gray);
}

/* ======= Contact Section ======= */
.contact-info {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(2, 117, 216, 0.25);
  border-color: var(--primary);
}

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

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white) !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ======= Footer ======= */
.footer {
  background-color: var(--gray-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links li a {
  color: var(--gray);
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: var(--primary);
}

/* ======= Course Detail Page ======= */
.course-header {
  background-color: var(--gray-light);
}

.course-info {
  background-color: var(--gray-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.course-info-item {
  margin-bottom: 1rem;
}

.content-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.content-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.sidebar-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ======= Registration Steps ======= */
.registration-step {
  position: relative;
}

.registration-step:not(:last-child)::after {
  content: '';
  position: absolute;
  height: 50px;
  width: 2px;
  background: var(--primary);
  left: 50%;
  bottom: -25px;
  transform: translateX(-50%);
}

.step-number {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ======= FAQ Page ======= */
.accordion-item {
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  padding: 1.25rem;
  font-weight: 500;
  background-color: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
  color: var(--white);
  background-color: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(2, 117, 216, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
}

/* ======= Page Headers ======= */
.page-header {
  background-color: var(--gray-light);
}

/* ======= Terms Page ======= */
.terms-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.terms-content p,
.terms-content ul {
  margin-bottom: 1rem;
}

.terms-content ul {
  padding-left: 1.5rem;
}

/* ======= Responsive Styles ======= */
@media (max-width: 991.98px) {
  body {
    padding-top: 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .course-image {
    height: 180px;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .footer-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-cta {
    padding: 0.5rem 1rem;
  }
  
  .instructor-image {
    width: 120px;
    height: 120px;
  }
}