/* ===============================
   FINAL GLOBAL SPACING FIX
================================ */
/* ===============================
   FORCE POPPINS FOR LEADER BLOCK
=============================== */

.leader-block,
.leader-block * {
  font-family: 'Poppins', sans-serif !important;
}


/* Remove extra bottom margin from custom sections */
.leader-section,
.secretary-container,
.vm-grid,
.academics-section,
.student-welfare,
.governing-section,
.about-institution {
  margin-top: 0 !important;
  margin-bottom: 50px !important;
}

/* Remove double spacing inside */
.section-header {
  margin-bottom: 30px !important;
}

/* Remove large bottom gaps */
.vm-grid {
  margin-bottom: 40px !important;
}

.academics-header p {
  margin-bottom: 40px !important;
}

/* Reduce heavy sections */
.academics-section,
.student-welfare,
.governing-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Reduce about section heavy height */
.about-institution {
  padding: 70px 6% !important;
  min-height: auto !important;
}

/* Remove accidental blank div gaps */
div:empty {
  display: none;
}

/* ===============================
   ABOUT INSTITUTION – PREMIUM
================================ */

.about-institution {
  position: relative;
  width: 100%;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 6%;

  background:
    linear-gradient(rgba(21, 10, 37, 0.509), rgba(16, 11, 26, 0.628)),
    url("../images/images-2/vimtech_campus.png") center center / cover no-repeat;
}



/* CONTENT */
.about-content {
  position: relative;
  max-width: 900px;
  color: #ffffff;
  text-align: center;
}

/* HEADING */
.about-content h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* INTRO */
.about-intro {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 28px;
  color: #e5e7eb;
  font-weight: 500;
}

/* PARAGRAPHS */
.about-points p {
  font-size: 16.5px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #f1f5f9;
}

/* ===============================
   TABLET
================================ */

@media (max-width: 992px) {

  .about-institution {
    padding: 80px 5%;
  }

  .about-content {
    max-width: 100%;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 640px) {

  .about-institution {
    padding: 70px 5%;
    min-height: auto;
  }

  .about-content {
    text-align: left;
  }

  .about-content h2 {
    text-align: center;
    font-size: 26px;
  }

  .about-intro {
    font-size: 16px;
  }

  .about-points p {
    font-size: 15px;
  }
}


/* ===============================
   VISION & MISSION SECTION
================================ */

.vm-section {
  padding: 80px 6%;
  background: #f3f4f6;
  font-family: "Inter", "Segoe UI", sans-serif;
}

/* CONTAINER GRID */
.vm-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* BOX */
.vm-box {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform .3s ease;
}

.vm-box:hover {
  transform: translateY(-6px);
}

/* HEADER BAR */
.vm-header {
  background: linear-gradient(135deg, #8a028a, #6b006b);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-header i {
  font-size: 22px;
}

.vm-header h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

/* CONTENT */
.vm-content {
  padding: 28px;
}

.vm-content p,
.vm-content li {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.vm-content ul {
  padding-left: 18px;
}

/* ===============================
   TABLET
================================ */

@media (max-width: 992px) {

  .vm-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 640px) {

  .vm-section {
    padding: 60px 5%;
  }

  .vm-header {
    padding: 14px 18px;
  }

  .vm-header h2 {
    font-size: 20px;
  }

  .vm-content {
    padding: 20px;
  }

  .vm-content p,
  .vm-content li {
    font-size: 14.5px;
  }
}


/* ===============================
   STUDENT WELFARE SECTION
================================ */
/* STUDENT WELFARE TITLE UNDERLINE */
.student-welfare .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.student-welfare .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-blue); 
  border-radius: 6px;
}

.student-welfare {
  padding: 90px 6%;
  background: #f8fafc;
}

.welfare-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* TITLE */
.student-welfare .section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #800080;
  margin-bottom: 16px;
}

/* INTRO */
.student-welfare .section-intro {
  max-width: 820px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

/* GRID */
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* ITEM */
.welfare-item {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
}

.welfare-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* ICON */
.welfare-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
}

/* HEADING */
.welfare-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

/* TEXT */
.welfare-item p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #475569;
}

/* TABLET */
@media (max-width: 1024px) {
  .welfare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .student-welfare {
    padding: 60px 5%;
  }

  .welfare-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== ACADEMICS PREMIUM SECTION ===== */

.academics-section {
  padding: 100px 8%;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  text-align: center;
}

.academics-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 15px;
}

.academics-header p {
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
}

/* GRID */
.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 columns */
  grid-template-rows: repeat(3, auto);    /* 3 rows */
  gap: 40px;
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Tablet */
@media (max-width: 992px) {
  .academics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .academics-grid {
    grid-template-columns: 1fr;   /* 1 column */
    gap: 20px;
  }
}

/* CARD */
.academic-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  text-align: left;
}

.academic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ICON */
.icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e3a8a, #800080);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
}

.academic-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
}

.academic-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
}

/* MOBILE */
@media (max-width: 768px) {
  .academics-section {
    padding: 70px 6%;
  }

  .academics-header h2 {
    font-size: 32px;
  }

  .academic-card {
    text-align: center;
  }

  .icon-box {
    margin: 0 auto 20px;
  }
}

/* SECTION BACKGROUND */
.governing-section {
    padding: 80px 6%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.97),
        rgba(255,255,255,0.94),
        rgba(255,255,255,0.97)
    );
    font-family: 'Poppins', sans-serif;
}

/* CONTAINER */
.governing-section .container {
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #800080;
    margin-bottom: 10px;
    letter-spacing: 1px;
}



.section-header p {
    max-width: 900px;
    margin: auto;
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    text-align: center;
}

/* TABLE TITLE */
.table-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TABLE WRAPPER */
.table-wrapper {
    overflow-x: auto;
}

/* TABLE DESIGN */
.governing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.governing-table thead {
    background: linear-gradient(to right, #800080);
    color: #fff;
}

.governing-table th,
.governing-table td {
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
}

.governing-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.governing-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: 0.3s ease;
}

.governing-table tbody tr:hover {
    background: #f9f5ff;
}

.governing-table td:first-child {
    font-weight: 600;
    color: #6a0dad;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
        text-align: left;
    }

    .table-title {
        font-size: 18px;
    }

    .governing-table th,
    .governing-table td {
        padding: 14px;
        font-size: 14px;
    }
}
.section-underline {
    width: 70px;
    height: 4px;
    margin: 15px auto 25px;
    border-radius: 6px;
    background: linear-gradient(90deg, #6a0dad, #a855f7);
}
/* ===============================
   CLEAN GLOBAL SPACING SYSTEM
================================ */

/* Remove all section margins */
section,
.about-institution,
.vm-section,
.leader-section,
.secretary-premium,
.student-welfare,
.academics-section,
.governing-section {
  margin: 0 !important;
}

/* Single controlled spacing for all major sections */
section {
  padding: 60px 0 !important;
}

/* Reduce heavy sections */
.about-institution {
  padding: 70px 6% !important;
  min-height: auto !important;
}

.vm-section,
.student-welfare,
.academics-section,
.governing-section {
  padding: 60px 6% !important;
}

/* Remove grid extra spacing */
.vm-grid,
.vm-container,
.secretary-container,
.leader-section {
  margin: 0 auto !important;
}

/* Remove large bottom stacking */
.section-header,
.academics-header,
.student-welfare .section-intro {
  margin-bottom: 30px !important;
}

/* Remove double spacing inside sections */
.leader-section,
.secretary-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Fix mobile stacking */
@media (max-width: 768px) {
  section {
    padding: 45px 0 !important;
  }
}
/* REMOVE EXTRA SPACE AFTER LEADERS SECTION */
.leaders-premium {
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
}

.leaders-premium + section {
  margin-top: 0 !important;
  padding-top: 40px !important;
}
/* ===============================
   ABOUT PAGE FONT SYSTEM (CDC STYLE)
=============================== */

.about-page {
  font-family: 'Poppins', sans-serif;
}

/* Headings */
.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Paragraphs */
.about-page p,
.about-page li {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}
/* APPLY POPPINS TO ALL ABOUT SECTIONS */

.about-institution,
.vm-section,
.student-welfare,
.academics-section,
.governing-section {
  font-family: 'Poppins', sans-serif;
}

.about-institution h2,
.vm-section h2,
.student-welfare h2,
.academics-section h2,
.governing-section h2 {
  font-weight: 700;
}
