
/* ================= HERO ================= */

.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
  }

  .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
  }
  
  .hero-slide.active {
    opacity: 1;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-small {
    font-size: 12px;
    letter-spacing: 3px;
    display: block;
    font-family: var(--theme-headings-font-family);
    text-transform: uppercase;
    transition: opacity 1.2s ease-in-out;
  }
  
  .hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: var(--theme-font-family);
    width: 65%;
    transition: opacity 1.2s ease-in-out;
  }
  
  .hero-buttons {
    display: flex;
    gap: 20px;
  }
  
  @media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
        width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
  
    .hero h1 {
        font-size: 28px;
    }
  
    .hero-buttons {
      flex-direction: column;
    }
  }

/* ================= NEWS SECTION ================= */

.news-section {
    padding: 80px 0;
    background: #f2f2f2;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 4px;
}

.section-header h2 {
    margin: 0;
    font-size: 32px;
}

.nav-arrows {
    position: absolute;
    right: 0;
}

.arrow {
    background: #e6f0ea;
    border: none;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #008037;
    transition: 0.2s ease;
}

.arrow:hover:not(:disabled) {
    background: #008037;
    color: #fff;
}

.arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Carousel viewport */
.news-carousel {
    overflow: hidden;
    width: 100%;
}

/* Sliding track — holds all cards in a row */
.news-track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s ease;
}

/* Each card takes up 1/3 of the viewport width (minus gaps) by default */
.news-card {
    flex: 0 0 calc((100% - (2 * 30px)) / 3);
    border-radius: 8px;
    transition: 0.3s ease;
    position: relative;
    height: 400px;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.overlay-blue::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 100, 0.7);
}

.overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 36px;
    font-weight: 700;
    z-index: 2;
}

.news-content {
    display: block;
    padding: 25px;
    text-align: center;
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    text-decoration: none;
}

.news-content h3 {
    color: #0a7c3e;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 24px;
}

.meta {
    font-size: 13px;
    color: #777;
}

.slider-dots {
    text-align: center;
    margin: 30px 0;
}

.slider-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 5px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #444;
    cursor: pointer;
    transition: 0.2s ease;
}

.slider-dots .active {
    background: #e51c23;
    border-color: #e51c23;
}

.view-all {
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-color), #002b13);
    transition: 0.3s ease;
}

/* Responsive: fewer visible cards on smaller screens.
   JS reads these breakpoints to recalculate slide width/position. */
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 visible */
    }
}

@media (max-width: 600px) {
    .news-card {
        flex: 0 0 100%; /* 1 visible */
        height: auto;
    }
    .news-image {
        height: 220px;
    }
}

/* ================= ABOUT SECTION ================= */

.about-section {
    padding: 100px 0;
    background: #f2f2f2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    height: 400px;
}

.about-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.about-section h2 {
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 30px;
    font-size: 32px;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content .btn-primary {
    margin-top: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .nav-arrows {
        display: none;
    }

    .news-section h3 {
      font-size: 18px;
    }
}


/* ================= STRENGTHS SECTION ================= */

.strengths-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0b8f45, #059148);
    color: white;
}

.strengths-title {
    text-align: center;
    letter-spacing: 6px;
    font-weight: 500;
    margin-bottom: 70px;
    font-size: 32px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.strength-item {
  display: flex;
  align-items: start;
  gap: 10px;
}

.strength-item h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--theme-font-family)
}

.strength-item p {
    line-height: 1.8;
    font-size: 14px;
    color: #e3f6ea;
}

/* Number + Line */
.strength-number {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.strength-number span {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.strength-number .line {
    width: 70px;
    height: 2px;
    background: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .strengths-title {
        font-size: 20px;
    }

  .strength-number .line {
    width: 30px;
  }
}

/* ================= ACADEMICS SECTION ================= */

.academics-section {
    padding: 100px 0;
    background: #f4f4f4;
}

.section-header.center {
    flex-direction: column;
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    letter-spacing: 6px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    max-width: 1000px;
    margin: auto;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: normal;
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.academic-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-6px);
}

.academic-image {
    height: 220px;
    overflow: hidden;
}

.academic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.academic-content {
    padding: 25px;
    text-align: center;
}

.academic-content h4 {
    color: #e11b22;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.academic-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.explore-all {
    text-align: center;
    margin-top: 50px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .academics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .academics-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= TESTIMONIAL SECTION ================= */

.testimonial-section {
    padding: 100px 0;
    background: linear-gradient(90deg, rgba(0,120,60,0.9) 60%, rgba(0,120,60,0)),
                url('../../assets/images/stars.jpg') center left/cover no-repeat;
    color: white;
    position: relative;
}

.testimonial-content {
    max-width: 900px;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 13px;
    letter-spacing: 2px;
    margin: 0;
}

.testimonial-author span {
    font-size: 12px;
    opacity: 0.8;
}

/* ================= STUDY SECTION ================= */

.study-section {
    padding: 100px 0;
    background: #f4f4f4;
}

.study-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.study-content h2 {
    letter-spacing: 6px;
    font-weight: 500;
    margin-bottom: 30px;
}

.study-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.study-content .btn-primary {
    margin-top: 20px;
}

.study-images {
    position: relative;
    height: 100%;
}

.study-images img {
    width: 60%;
    height: 60%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: absolute;
}

.study-images .img-top {
    top: 0;
    left: 0;
}

.study-images .img-bottom {
    bottom: 0;
    right: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .study-grid {
      display: flex;
      flex-direction: column-reverse;
    }

    .study-images {
        margin-top: 40px;
        min-height: 200px;
        width: 100%;
    }

    .testimonial-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 70px 0;
    }

    .study-section {
        padding: 70px 0;
    }

    .study-grid {
      grid-template-columns: 1fr;
    }
}
