/* =====================================================
   ABU AL HASAN EDUCATION SYSTEM — HOME PAGE STYLES
   ===================================================== */

:root {
  --primary: #0f6b4c;      /* Islamic green */
  --primary-dark: #0a4d37;
  --primary-light: #e6f3ee;
  --gold: #d4a017;
  --gold-light: #f7e6b8;
  --dark: #1c1c1c;
  --gray: #6c757d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', 'Noto Nastaliq Urdu', Tahoma, sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary-dark);
}

.section-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* =====================================================
   HOME HERO SECTION
   ===================================================== */

.home-hero {
  position: relative;
}

.home-hero .hero-image {
  height: 90vh;
  min-height: 500px;
  object-fit: cover;
  filter: brightness(0.1);
}

.home-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 77, 55, 0.55) 0%, rgba(10, 77, 55, 0.75) 100%);
}

.home-hero .carousel-caption {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0;
}

.home-hero .hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.home-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.4;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.home-hero p {
  color: #f0f0f0;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 650px;
  margin-bottom: 30px;
  line-height: 1.9;
}

.home-hero .hero-buttons .btn {
  padding: 12px 34px;
  font-weight: 700;
  margin-right: 12px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.home-hero .hero-buttons .btn:hover {
  transform: translateY(-3px);
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
  width: 6%;
}

.home-hero .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
}

.home-hero .carousel-indicators button.active {
  background-color: var(--gold);
}

/* =====================================================
   QUICK ACTIONS
   ===================================================== */

.quick-actions {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  padding-bottom: 20px;
}

.quick-actions .quick-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.quick-actions .quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: var(--primary);
}

.quick-actions .quick-card:hover i,
.quick-actions .quick-card:hover h4,
.quick-actions .quick-card:hover p {
  color: var(--white);
}

.quick-actions .quick-card i {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 14px;
  transition: var(--transition);
}

.quick-actions .quick-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
  transition: var(--transition);
}

.quick-actions .quick-card p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
  transition: var(--transition);
}

/* =====================================================
   HERO STATS
   ===================================================== */

.hero-stats {
  padding: 50px 0 20px;
}

.hero-stats h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-stats p {
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

/* =====================================================
   WELCOME SECTION
   ===================================================== */

.welcome-section img {
  width: 100%;
}

.welcome-section .lead {
  color: var(--dark);
  line-height: 2;
}

.welcome-section p {
  color: var(--gray);
  line-height: 2;
}

/* =====================================================
   CHAIRMAN / PRINCIPAL MESSAGE
   ===================================================== */

.chairman-section img,
.principal-section img {
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.chairman-section p,
.principal-section p {
  line-height: 2;
  color: var(--gray);
}

.chairman-section h5,
.principal-section h5 {
  color: var(--primary);
  margin-bottom: 0;
}

/* =====================================================
   VISION & MISSION
   ===================================================== */

.vision-mission .vm-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.vision-mission .vm-box:hover {
  transform: translateY(-6px);
}

.vision-mission .vm-box i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
}

.vision-mission .vm-box p {
  color: var(--gray);
  line-height: 1.9;
}

/* =====================================================
   CORE VALUES
   ===================================================== */

.core-values .value-card {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.core-values .value-card:hover {
  background: var(--primary);
}

.core-values .value-card:hover i,
.core-values .value-card:hover h4 {
  color: var(--white);
}

.core-values .value-card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 12px;
  transition: var(--transition);
}

.core-values .value-card h4 {
  font-size: 17px;
  margin: 0;
  transition: var(--transition);
}

/* =====================================================
   WHY CHOOSE US
   ===================================================== */

.why-choose .feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.why-choose .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.why-choose .feature-card i {
  font-size: 30px;
  color: var(--gold);
  background: var(--gold-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
}

.why-choose .feature-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-choose .feature-card p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   ACADEMIC HIGHLIGHT
   ===================================================== */

.academic-highlight img {
  width: 100%;
}

.academic-highlight ul li {
  padding: 8px 0;
  font-size: 16px;
  color: var(--dark);
}

/* =====================================================
   FEATURED PROGRAMS
   ===================================================== */

.featured-programs .program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.featured-programs .program-card:hover {
  transform: translateX(6px);
}

.featured-programs .program-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.featured-programs .program-card p {
  color: var(--gray);
  font-size: 14px;
}

/* =====================================================
   FACILITIES
   ===================================================== */

.facility-preview .facility-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.facility-preview .facility-card:hover {
  background: var(--primary);
}

.facility-preview .facility-card:hover i,
.facility-preview .facility-card:hover h4 {
  color: var(--white);
}

.facility-preview .facility-card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 12px;
  transition: var(--transition);
}

.facility-preview .facility-card h4 {
  font-size: 16px;
  margin: 0;
  transition: var(--transition);
}

/* =====================================================
   COUNTERS
   ===================================================== */

.counter-section {
  background: var(--primary);
  padding: 60px 0;
}

.counter-section .counter {
  color: var(--white);
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 4px;
}

.counter-section p {
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

/* =====================================================
   HOME CTA
   ===================================================== */

.home-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0;
  text-align: center;
}

.home-cta h2 {
  color: var(--white);
  font-size: 34px;
  margin-bottom: 14px;
}

.home-cta p {
  color: #dff2ea;
  font-size: 17px;
  margin-bottom: 26px;
}

.home-cta .btn {
  padding: 12px 36px;
  font-weight: 700;
}

/* =====================================================
   LATEST NEWS
   ===================================================== */

.latest-news .news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.latest-news .news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.latest-news .news-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.latest-news .news-card small {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.latest-news .news-card h4 {
  margin: 10px 0 16px;
  font-size: 18px;
}

/* =====================================================
   UPCOMING EVENTS
   ===================================================== */

.home-events .event-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.home-events .event-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.home-events .event-card h3 {
  font-size: 19px;
  color: var(--primary-dark);
}

.home-events .event-card p {
  color: var(--gray);
  margin: 10px 0 18px;
}

/* =====================================================
   GALLERY PREVIEW
   ===================================================== */

.gallery-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-preview img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-hover);
}

/* =====================================================
   VIDEO TOUR
   ===================================================== */

.video-tour p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 24px;
}

.video-tour .ratio {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* =====================================================
   ACHIEVEMENTS
   ===================================================== */

.achievement-section .achievement-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.achievement-section .achievement-card:hover {
  transform: translateY(-6px);
}

.achievement-section .achievement-card i {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 12px;
}

.achievement-section .achievement-card h5 {
  font-size: 15px;
  margin: 0;
}

/* =====================================================
   AWARDS
   ===================================================== */

.awards-section p {
  max-width: 700px;
  margin: 16px auto 26px;
  color: var(--gray);
  line-height: 1.9;
}

/* =====================================================
   LEADERSHIP TEAM
   ===================================================== */

.leadership-section .leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.leadership-section .leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.leadership-section .leader-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.leadership-section .leader-content {
  padding: 20px;
}

.leadership-section .leader-content h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.leadership-section .leader-content p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

/* =====================================================
   PARENT TESTIMONIALS
   ===================================================== */

.testimonial-section .testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  height: 100%;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-section .testimonial-card i {
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.testimonial-section .testimonial-card p {
  color: var(--dark);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 18px;
}

.testimonial-section .testimonial-card h5 {
  color: var(--primary);
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   PARTNERS
   ===================================================== */

.partner-section .partner-logo {
  max-height: 70px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: var(--transition);
  margin-bottom: 20px;
}

.partner-section .partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */

.newsletter-section {
  padding: 20px 0 60px;
}

.newsletter-section .newsletter-box {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 46px;
  color: var(--white);
}

.newsletter-section h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-section p {
  color: #dff2ea;
  margin: 0;
}

.newsletter-section .form-control {
  height: 50px;
  border-radius: 30px;
  border: none;
  padding: 0 20px;
}

.newsletter-section .btn {
  height: 50px;
  border-radius: 30px;
  font-weight: 700;
}

/* =====================================================
   FINAL CTA
   ===================================================== */

.final-home-cta {
  background: linear-gradient(135deg, var(--gold), #b9860f);
  padding: 70px 0;
  text-align: center;
}

.final-home-cta h2 {
  color: var(--dark);
  font-size: 32px;
  margin-bottom: 14px;
}

.final-home-cta p {
  color: #3a2f10;
  font-size: 17px;
  margin-bottom: 10px;
}

.final-home-cta .btn {
  padding: 12px 32px;
  font-weight: 700;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
  .home-hero .hero-image {
    height: 70vh;
  }

  .home-hero .carousel-caption {
    text-align: center;
  }

  .home-hero .hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .quick-actions {
    margin-top: -30px;
  }

  .chairman-section .row,
  .principal-section .row {
    text-align: center;
  }

  .newsletter-section .newsletter-box {
    text-align: center;
    padding: 30px;
  }

  .newsletter-section form {
    margin-top: 20px;
  }
}

@media (max-width: 575px) {
  .hero-stats h2,
  .counter-section .counter {
    font-size: 30px;
  }

  .home-hero h1 {
    font-size: 26px;
  }
}