/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f7fb;
  color: #1e293b;
  line-height: 1.6;
}
/* =================== NAVBAR BEAUTIFICATION =================== */

header.navbar {
  padding-bottom: 4;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 100;
  transition: all 0.3s ease;
}

/* Add some spacing below navbar so content isn't hidden */
body {
  padding-top: 50px; /* adjust if navbar height changes */
}

/* Logo styling */
.navbar .logo {
  display: flex;
  align-items: center;
  /* gap: 10px; */
}

.navbar .logo img {
  height: 55px; /* smaller than before */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar .logo img:hover {
  transform: scale(1.05);
}

.navbar .title {
  line-height: 0.8;
  text-align: left;
}

.navbar .title .main {
  margin-bottom: 1%;
  font-size: 38px; /* reduced */
  font-weight: 300;
  color: #000000;
  letter-spacing: 0.5px;
}

.navbar .title .sub {
  font-size: 19px;
  font-weight: 300;
  color: #555555;
}
/* Designing "Discovery Coaching Classes" */
/* Logo container */
.logo {
  display: flex;
  align-items: center;          /* vertically align logo and text */
  justify-content: center;
  gap: 10px                    /* space between logo and title */;
  margin: 10px 0;
}

.logo img {
  height: 130px;
  width: 130px;  /* force equal width if the image is too narrow */
  object-fit: contain;
  flex-shrink: 0;               /* prevents logo from shrinking */
  transition: transform 0.3s ease; /* smooth hover effect */
}

.logo img:hover {
  transform: scale(1.05);       /* small zoom on hover */
}
/* Title text */
.title {
  line-height: 1.0;
  text-align: left;
}

.title .main {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 15px;              /* bold large font */
  color: #030303;               /* premium academic blue */
  letter-spacing: 1px;
}

.title .sub {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 10px;
  color: #424242;
  letter-spacing: 1px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  /* Compact header */
  header.navbar {
    padding: 5px 10px;
    border-radius: 0 0 10px 10px;
  }

  /* Logo and title inline */
  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 5px 0;
  }

  /* Logo image size */
  .logo img {
    height: 35px;
    width: auto;
  }

  /* Title section stacked text */
  .title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .title .main {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .title .sub {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
  }
}

/* End of design of "discovery coaching classes on header`" */

/* ====== Balanced & Compact Section Spacing ====== */
section {
  padding: 15px 0; /* inner breathing space */
  margin: 0; /* tighter outer gap */
  scroll-margin-top: 90px; /* ensures section header is visible */
}

/* Avoid large gaps between consecutive sections */
section + section {
  margin-top: 10px;
}

/* Specific tweaks for banner and footer */
#image-slider {
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ====== Section Headings ====== */
section h2,
section .section-title {
  margin-top: 0;
  margin-bottom: 8px; /* slightly reduced */
  padding: 0;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

/* Optional smaller headings (like inside cards or subsections) */
section h3 {
  margin-top: 5px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

/* ===== Syllabus ===== */
.syllabus {
  background-color: #f9f9f9;
  text-align: center;
  padding: 15px 0; /* slightly reduced */
}

/* ===== Class Buttons ===== */
.class-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.class-btn {
  padding: 10px 18px;
  border: 2px solid #003366;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  transition: 0.3s;
}

.class-btn:hover {
  background-color: #003366;
  color: white;
}
/* ===== Footer ===== */
footer {
  margin-top: 25px;
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 15px;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

footer .copyright {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.8;
}

/* Footer links color */
footer a.phone-link,
footer a.email-link {
  color: white; /* Change text color to white */
  text-decoration: none; /* Optional: remove underline */
}

/* Optional: on hover */
footer a.phone-link:hover,
footer a.email-link:hover {
  color: #ffd700; /* Example: gold on hover */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  section {
    padding: 30px 0;
    margin: 15px 0;
  }

  section h2,
  section .section-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .academics-container {
    flex-direction: column;
  }

  .dcc-notice-board,
  .syllabus {
    flex: 1 1 100%;
    max-height: unset;
    position: relative;
  }

  .dcc-notice-board {
    order: 1;
    margin-bottom: 15px;
  }

  .syllabus {
    order: 2;
  }
}
/* ===== Scroll Reveal Animations ===== */
section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s ease-out, transform 1.8s ease-out;
  will-change: opacity, transform;
}

/* When section is visible */
section.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Apply Ubuntu font to all headings ===== */
h1, h2, h3, h4, h5, h6,
.title .main,
.title .sub,
section .section-title {
  font-family: "Ubuntu", sans-serif !important;
}

h1, .title .main {
  font-weight: 700;
}

h2, h3, .title .sub {
  font-weight: 500;
}
