/* ========== General Layout ========== */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a2a4a;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  height: 50px;
}

header .learn-btn {
  color: #0a0396;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

header .learn-btn:hover {
  background: #d94b1a;
}

/* ========== Columns Grid ========== */
.about-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px;
}

/* ========== Teacher Guide (Column 1) ========== */
.teacher-guide {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0px;
  animation: fadeInUp 1s ease forwards;
}
.guide-text p{
  border-left: 6px solid #ff6600;
  padding: 15px;
  border-radius: 10px;
}

.teacher-guide h2 {
  font-size: 22px;
  margin-bottom: 15px;
  position: relative;
  opacity: 0;
  align-items: left;
  animation: slideInDown 1s forwards;
}

.teacher-guide h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: #ff6601;
  animation: growLine 1s forwards;
  animation-delay: 0.3s;
}

.teacher-guide .guide-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.teacher-guide .guide-image img {
  max-width: 300px;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 1s forwards;
  animation-delay: 0.6s;
}

.teacher-guide .guide-text {
  flex: 1;
  opacity: 0;
  animation: slideInLeft 1s forwards;
  animation-delay: 0.9s;
}
.guide-text h3{
  padding: 10px; 
}

/* ========== Other Columns (2,3,4) ========== */
.column p{
  background: #fff;
  border-left: 6px solid orange;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.column:first-child {
  border-left: none;
}

.column img {
  width: 100%;
  margin-top: 15px;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInUp 0.8s forwards;
}

.column:nth-child(2) img { animation-delay: 0.3s; }
.column:nth-child(3) img { animation-delay: 0.5s; }
.column:nth-child(4) img { animation-delay: 0.7s; }

.column:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes growLine {
  from { width: 0; }
  to { width: 80px; }
}

/* ========== Responsive Design ========== */

/* Tablets */
@media (max-width: 992px) {
  .about-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .teacher-guide .guide-content {
    flex-direction: column;
    align-items: center;
  }
  .teacher-guide .guide-image img {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .about-columns {
    grid-template-columns: 1fr;
  }
  .teacher-guide {
    text-align: center;
  }
  .teacher-guide h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .teacher-guide .guide-text {
    text-align: left;
  }
}

/* ========== Extra Large Screens (4K / Ultra-wide) ========== */
@media (min-width: 1600px) {
  .about-columns {
    max-width: 1600px;   /* contain everything nicely */
    margin: 40px auto;   /* center the whole section */
    gap: 30px;
  }

  .teacher-guide .guide-content {
    align-items: flex-start;
  }

  .teacher-guide .guide-text {
    max-width: 700px;   /* prevent text from going too far right */
  }

  .teacher-guide .guide-image img {
    max-width: 400px;   /* keep image balanced with text */
  }
}
