* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1b1b1b;
  background: #ffffff;
  font-family: Arial, "Nirmala UI", "Mangal", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 138px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 10px 26px;
  background: #fff;
  text-align: center;
}

.header-logo {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.left-logo {
  justify-self: start;
}

.right-logo {
  justify-self: end;
}

.header-copy h1 {
  margin: 0 0 4px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.header-copy h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.header-copy p {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 44px;
  background: #22a9e8;
  border-top: 1px solid #0696db;
  border-bottom: 1px solid #0f98d7;
}

.main-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a:hover {
  background: #108dca;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(190px, 25.5%) 1fr;
  gap: 0;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.notice-board {
  position: relative;
  min-height: 310px;
  margin: 10px;
  padding: 0 10px 46px;
  border: 1px solid #b8b8b8;
  border-top: 0;
  background: #fff;
}

.notice-board h3 {
  margin: 0 -10px;
  padding: 14px 16px;
  background: #e95a0b;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1;
}

.notice-board a {
  display: flex;
  gap: 8px;
  padding: 18px 8px 14px;
  border-bottom: 1px solid #c9c9c9;
  color: #58aee7;
  font-size: 11px;
  font-weight: 700;
}

.notice-board strong {
  color: #ea580c;
  white-space: nowrap;
}

.notice-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 7px 7px 16px;
  border-top: 1px solid #d2d2d2;
  color: #9a9a9a;
  font-size: 11px;
}

.notice-footer button {
  width: 32px;
  height: 24px;
  border: 1px solid #9eb9c9;
  border-radius: 5px;
  color: #26a8e6;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.slider {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  aspect-ratio: 1010 / 553;
  background: #e7eef5;
}

.slides,
.slide {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: cover;
  transition: opacity 600ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots span {
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.slider-dots span.active {
  background: #fff;
}

.soft-panel {
  width: calc(100% - 18px);
  max-width: 1490px;
  margin: 12px auto 0;
  border-radius: 10px;
  background: #efedff;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.about-section {
  padding: 16px 70px 28px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 22px;
}

.about-cards article,
.course-grid article {
  border-left: 4px solid #29baf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(27, 113, 157, 0.16);
}

.about-cards article {
  min-height: 135px;
  padding: 14px 18px;
}

.about-cards h3 {
  margin: 0 0 7px;
  color: #2baee9;
  font-size: 19px;
  line-height: 1.15;
}

.about-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.principal-section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px 86px;
}

.principal-card {
  padding: 8px;
  text-align: center;
}

.principal-card img {
  width: 160px;
  height: 198px;
  justify-self: center;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
  box-shadow: none;
}

.principal-section h2 {
  margin: -10px 0 14px;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
}

.principal-section p {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.principal-card strong,
.principal-card span {
  display: block;
  text-align: center;
  font-size: 14px;
}

.principal-card span {
  font-size: 12px;
  font-weight: 700;
}

.courses-section {
  max-width: 1060px;
  margin: 42px auto 76px;
  padding: 0 18px;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 42px;
  margin: 28px auto 22px;
}

.course-grid article {
  min-height: 124px;
  padding: 12px 14px 15px;
  background: #efedff;
}

.course-grid h3 {
  margin: 0 0 7px;
  color: #24a9ea;
  font-size: 18px;
}

.course-grid p {
  min-height: 34px;
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.course-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 18px;
  background: #ffc83f;
  font-size: 13px;
  font-weight: 800;
}

.pg-courses {
  margin: 10px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.pg-list {
  margin: 0 auto;
  max-width: 820px;
  color: #26a8e6;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
}

.faculty-section {
  padding: 42px 80px 72px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px;
  margin-top: 66px;
}

.faculty-grid article {
  min-height: 190px;
  padding: 24px 14px 16px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

.faculty-grid img {
  width: 95px;
  height: 95px;
  margin-top: -6px;
  border-radius: 50%;
  object-fit: cover;
}

.faculty-grid h3 {
  margin: 10px 0 2px;
  font-size: 23px;
  line-height: 1.05;
}

.faculty-grid p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.gallery-section {
  max-width: 1160px;
  margin: 60px auto 82px;
  padding: 0 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 46px;
  margin-top: 62px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 2 / 1.18;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.site-footer {
  width: calc(100% - 20px);
  max-width: 1485px;
  margin: 0 auto 16px;
  padding: 34px 80px 36px;
  background: #168bc7;
  color: #eaf8ff;
  text-align: center;
}

.site-footer .section-heading h2 {
  font-size: 45px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin-top: 36px;
}

.contact-grid span {
  display: block;
  font-size: 28px;
}

.contact-grid h3 {
  margin: 6px 0 4px;
  font-size: 14px;
}

.contact-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.footer-line {
  height: 3px;
  margin: 34px 0 22px;
  background: #d9f2ff;
}

.copyright {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .header-copy h1 {
    font-size: 34px;
  }

  .header-copy h2 {
    font-size: 17px;
  }

  .header-copy p {
    font-size: 11px;
  }

  .about-section,
  .faculty-section {
    padding-right: 42px;
    padding-left: 42px;
  }

  .about-cards {
    gap: 22px;
  }

  .faculty-grid {
    gap: 28px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    min-height: 126px;
    gap: 10px;
  }

  .header-logo {
    width: 92px;
    height: 92px;
  }

  .header-copy h1 {
    font-size: 28px;
  }

  .hero-grid {
    grid-template-columns: 240px 1fr;
  }

  .notice-board,
  .slider {
    min-height: 260px;
  }

  .about-cards,
  .course-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid {
    gap: 22px;
  }

  .faculty-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .principal-section {
    padding-right: 42px;
    padding-left: 42px;
  }

  .site-footer {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 76px minmax(0, 1fr) 76px;
    min-height: 108px;
    padding: 8px 10px;
  }

  .header-logo {
    width: 70px;
    height: 70px;
  }

  .header-copy h1 {
    font-size: 22px;
    line-height: 1.08;
  }

  .header-copy h2 {
    font-size: 13px;
  }

  .header-copy p {
    font-size: 9px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .notice-board {
    min-height: 190px;
  }

  .slider {
    min-height: 250px;
  }

  .about-section,
  .faculty-section,
  .site-footer {
    padding-right: 26px;
    padding-left: 26px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading p {
    font-size: 17px;
  }

  .principal-section {
    grid-template-columns: 1fr;
    padding: 24px 26px;
  }

  .principal-card {
    justify-self: center;
  }

  .principal-section h2 {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    gap: 6px;
  }

  .header-logo {
    width: 56px;
    height: 56px;
  }

  .header-copy h1 {
    font-size: 18px;
  }

  .header-copy h2 {
    font-size: 11px;
  }

  .header-copy p {
    font-size: 8px;
    line-height: 1.15;
  }

  .main-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav a {
    min-height: 40px;
  }

  .about-cards,
  .course-grid,
  .faculty-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-section,
  .faculty-section,
  .site-footer {
    padding: 26px 16px;
  }

  .courses-section {
    margin-bottom: 42px;
  }

  .gallery-section {
    margin-top: 42px;
    margin-bottom: 42px;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 92px;
    padding: 8px 6px;
  }

  .header-logo {
    width: 48px;
    height: 48px;
  }

  .header-copy h1 {
    font-size: 15px;
  }

  .header-copy h2 {
    font-size: 9px;
  }

  .header-copy p {
    font-size: 7px;
    line-height: 1.12;
  }

  .header-copy p:last-child {
    display: none;
  }

  .main-nav a {
    font-size: 10px;
  }

  .notice-board a {
    flex-direction: column;
    gap: 4px;
  }

  .slider {
    min-height: 215px;
  }

  .section-heading h2,
  .site-footer .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .principal-section p,
  .about-cards p,
  .pg-list,
  .contact-grid p {
    font-size: 13px;
  }

  .faculty-grid h3 {
    font-size: 20px;
  }

  .copyright {
    font-size: 15px;
  }
}
