:root {
  --ms-maroon: #8b0709;
  --ms-maroon-dark: #5f0506;
  --ms-maroon-soft: #fff1f1;
  --ms-gold: #f0b13d;
  --ms-text: #161616;
  --ms-muted: #5f5f5f;
  --ms-border: #eadada;
  --ms-shadow: 0 12px 34px rgba(73, 4, 5, 0.1);
}

body.ms-home,
main.ms-home {
  color: var(--ms-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.ms-topbar {
  background: linear-gradient(90deg, var(--ms-maroon-dark), var(--ms-maroon));
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
}

.ms-topbar a {
  color: #fff;
}

.ms-topbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.ms-topbar .right-info {
  justify-content: flex-end;
}

.ms-main-header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ms-logo img {
  max-width: 330px;
  width: 100%;
}

.ms-nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.ms-nav a {
  color: #101827;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 40px 0;
  display: inline-block;
  position: relative;
}

.ms-nav a.active,
.ms-nav a:hover {
  color: var(--ms-maroon);
}

.ms-nav a.active::after,
.ms-nav a:hover::after {
  content: "";
  height: 3px;
  width: 28px;
  background: var(--ms-maroon);
  position: absolute;
  left: 0;
  bottom: 29px;
}

.ms-hero {
  position: relative;
  overflow: hidden;
}

.ms-hero-slide {
  min-height: 470px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ms-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0.12) 62%);
}

.ms-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 70px;
  max-width: 520px;
}

.ms-kicker {
  color: #111;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ms-hero-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ms-maroon);
  font-size: 54px;
  line-height: 1.05;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.ms-hero-content h1 span {
  color: #101827;
  display: block;
}

.ms-hero-content p {
  color: #222;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.ms-btn {
  background: var(--ms-maroon);
  color: #fff;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ms-btn:hover {
  background: var(--ms-maroon-dark);
  color: #fff;
}

.ms-hero .slick-arrow,
.ms-lite-slider .slick-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  color: var(--ms-maroon);
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
}

.ms-hero .slick-prev,
.ms-lite-slider .slick-prev {
  left: 22px;
}

.ms-hero .slick-next,
.ms-lite-slider .slick-next {
  right: 22px;
}

.ms-hero .slick-dots,
.ms-lite-slider .slick-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-hero .slick-dots button,
.ms-lite-slider .slick-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #dccaca;
  text-indent: -9999px;
  padding: 0;
}

.ms-hero .slick-active button,
.ms-lite-slider .slick-active button {
  background: var(--ms-maroon);
}

.ms-quickbar {
  background: linear-gradient(90deg, var(--ms-maroon-dark), var(--ms-maroon));
  color: #fff;
}

.ms-quickbar .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-left: 0;
  margin-right: 0;
}

.ms-quickbar .row > * {
  width: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.quick-item i {
  font-size: 27px;
}

.quick-item strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.quick-item span {
  font-size: 12px;
}

.ms-section {
  padding: 50px 0;
}

.section-heading {
  text-align: center;
  color: var(--ms-maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 26px;
  text-transform: uppercase;
  position: relative;
}

.section-heading::before,
.section-heading::after {
  content: "";
  display: inline-block;
  width: 85px;
  height: 1px;
  background: var(--ms-maroon);
  vertical-align: middle;
  margin: 0 18px;
}

.ms-about-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--ms-shadow);
}

.ms-about-img img,
.facility-card img,
.gallery-card img,
.news-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.ms-about-img img {
  height: 340px;
}

.years-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ms-maroon);
  color: #fff;
  padding: 22px 28px;
  border-radius: 0 8px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.years-badge i {
  color: var(--ms-gold);
  font-size: 42px;
}

.years-badge strong {
  color: var(--ms-gold);
  font-size: 38px;
  line-height: 1;
}

.ms-title-small {
  color: var(--ms-maroon);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ms-about h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #151515 !important;
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.ms-about p,
.why-card p,
.facility-card p,
.news-item p,
.desk-card p,
.testimonial-card p {
  color: var(--ms-muted);
  line-height: 1.7;
}

.about-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.about-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff8f8 0%, #ffecec 100%);
  border: 1px solid rgba(139, 7, 9, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(139, 7, 9, 0.06);
  color: #2b1111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 78px;
  padding: 14px 16px;
}

.about-icon i {
  color: var(--ms-maroon);
  font-size: 26px;
  flex: 0 0 auto;
}

.why-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 8px;
  padding: 24px 14px;
  min-height: 250px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--ms-maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.why-card h4,
.facility-card h4,
.gallery-card h4 {
  color: #171717 !important;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.why-card h4 {
  color: var(--ms-maroon) !important;
  line-height: 1.25;
  min-height: 38px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0;
}

.why-section {
  background: linear-gradient(180deg, #fff7f7 0%, #fff0f0 100%);
  padding-top: 46px;
  padding-bottom: 50px;
}

.why-section .row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  margin-left: 0;
  margin-right: 0;
}

.why-section .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

.why-section .container {
  max-width: min(1620px, 86vw);
}

.facility-card,
.gallery-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  margin: 0 8px 20px;
}

.facilities-slider {
  padding: 0 46px 32px;
}

.facilities-slider .slick-slide {
  height: auto;
}

.facility-card img {
  height: 175px;
  object-fit: cover;
  object-position: center;
}

.facility-card .card-body {
  text-align: center;
  padding: 18px 16px 22px;
  min-height: 160px;
}

.facility-card h4 {
  min-height: 22px;
}

.facility-card p {
  margin-bottom: 0;
}

.ms-stats {
  background: linear-gradient(90deg, var(--ms-maroon-dark), var(--ms-maroon));
  color: #fff;
  border-radius: 8px;
  padding: 22px;
}

.stat-item {
  display: flex;
  gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
  font-size: 34px;
}

.stat-item strong {
  font-size: 27px;
  line-height: 1;
  display: block;
}

.stat-item span {
  font-size: 12px;
}

.content-panel {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.home-info-section .row {
  align-items: stretch;
}

.home-info-section .row > [class*="col-"] {
  display: flex;
}

.home-info-section .content-panel {
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: hidden;
  width: 100%;
}

.home-info-section .panel-head {
  flex: 0 0 auto;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-head h3 {
  color: var(--ms-maroon);
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.panel-head a {
  color: var(--ms-maroon);
  border: 1px solid #edcccc;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
}

.news-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}

.news-item img {
  width: 92px;
  height: 72px;
  border-radius: 5px;
}

.news-item h4,
.event-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}

.notice-ticker {
  height: 285px;
  overflow: hidden;
}

.home-info-section .notice-ticker,
.home-info-section .notice-ticker marquee {
  height: 318px;
}

.notice-ticker marquee {
  height: 285px;
}

.notice-ticker-item {
  border-bottom: 1px solid #f0d6d6;
  padding: 0 0 16px;
  margin-bottom: 16px;
}

.notice-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-bullet {
  width: 9px;
  height: 9px;
  background: var(--ms-maroon);
  border-radius: 50%;
  flex: 0 0 9px;
  margin-top: 8px;
}

.notice-ticker-item h4 {
  color: #181818;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 7px;
}

.notice-ticker-item small {
  color: #777;
  display: inline-block;
}

.notice-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 19px;
}

.notice-attach-link {
  color: var(--ms-maroon) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.notice-attach-link:hover {
  color: var(--ms-maroon-dark) !important;
  text-decoration: underline;
}

.notice-attach-btn {
  display: inline-block;
  background: var(--ms-maroon);
  color: #fff !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  margin: 10px 0 0 19px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.notice-attach-btn:hover {
  background: var(--ms-maroon-dark);
  color: #fff !important;
}

.notice-page-hero {
  background: linear-gradient(90deg, var(--ms-maroon-dark), var(--ms-maroon));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.notice-page-hero h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  margin-bottom: 10px;
}

.notice-page-hero p {
  color: #ffe5e5;
  margin: 0;
}

.notice-page-section {
  background: #fff7f7;
  padding: 60px 0;
}

.notice-page-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 10px;
  box-shadow: var(--ms-shadow);
  padding: 10px 28px;
}

.notice-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0d6d6;
  padding: 22px 0;
}

.notice-page-item:last-child {
  border-bottom: 0;
}

.notice-page-item h3 {
  color: #171717;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.event-item {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.events-panel-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.events-panel-list .event-item:last-child {
  margin-bottom: 0;
}

.event-date {
  width: 58px;
  text-align: center;
  border: 1px solid #edcccc;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 58px;
}

.event-date strong {
  display: block;
  background: var(--ms-maroon);
  color: #fff;
  font-size: 24px;
  padding: 8px 0;
}

.event-date span {
  display: block;
  font-size: 12px;
  padding: 6px 0;
  color: var(--ms-maroon);
  font-weight: 800;
}

.desk-card {
  background: #fff6ee;
}

.home-info-section .desk-card .ms-btn {
  align-self: flex-start;
  margin-top: auto;
}

.principal-row {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.principal-row img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.gallery-section {
  background: transparent;
  padding-bottom: 32px;
}

.gallery-slider {
  padding: 0 54px;
}

.gallery-slider .slick-slide {
  box-sizing: border-box;
  height: auto;
  padding: 0 16px;
}

.gallery-slider .slick-list {
  margin: 0 -16px;
}

.gallery-section .gallery-card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(96, 8, 8, 0.1);
  height: 285px;
  margin: 0;
  position: relative;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.gallery-section .gallery-card a {
  background: #fff;
  border-radius: 8px;
  height: 100%;
  overflow: hidden;
  display: block;
}

.gallery-section .gallery-card:hover {
  box-shadow: 0 12px 24px rgba(96, 8, 8, 0.14);
  transform: translateY(-6px);
}

.gallery-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
  width: 100%;
}

.gallery-section .gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-slider .slick-prev {
  left: 6px;
}

.gallery-slider .slick-next {
  right: 6px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 8px;
  padding: 26px;
  min-height: 170px;
  margin: 0 10px;
}

.testimonial-card .quote {
  color: var(--ms-maroon);
  font-size: 28px;
}

.test-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.test-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.ms-cta {
  background: linear-gradient(90deg, #650506 0%, var(--ms-maroon) 56%, #450304 100%) !important;
  color: #fff;
  padding: 34px 0;
  margin-top: 38px;
}

.ms-cta h2 {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.ms-cta h2 i {
  color: var(--ms-gold);
  flex: 0 0 auto;
  font-size: 30px;
}

.ms-cta p {
  margin: 8px 0 0;
  color: #ffe7e7 !important;
  font-size: 17px;
  line-height: 1.5;
}

.ms-cta .ms-btn {
  background: var(--ms-gold) !important;
  border: 2px solid var(--ms-gold);
  border-radius: 8px;
  color: #241313 !important;
  display: inline-flex;
  justify-content: center;
  min-width: 220px;
  padding: 15px 28px;
  text-align: center;
}

.ms-cta .ms-btn:hover {
  background: #fff !important;
  border-color: #fff;
  color: var(--ms-maroon) !important;
}

@media (max-width: 991px) {
  .ms-cta {
    margin-top: 30px;
    text-align: center;
  }

  .ms-cta h2 {
    justify-content: center;
    font-size: 26px;
  }

  .ms-cta .text-lg-right {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  .ms-cta {
    padding: 28px 0;
  }

  .ms-cta h2 {
    display: block;
    font-size: 23px;
  }

  .ms-cta h2 i {
    display: block;
    margin-bottom: 8px;
  }

  .ms-cta .ms-btn {
    max-width: 260px;
    width: 100%;
  }
}

.ms-footer {
  background: #650506;
  color: #fff;
  padding: 42px 0 18px;
}

.ms-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.ms-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-footer li,
.ms-footer a,
.ms-footer p {
  color: #ffe8e8;
  font-size: 13px;
  line-height: 1.9;
}

.footer-logo img {
  max-width: 250px;
  filter: brightness(0) invert(1);
}

.newsletter {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.newsletter input {
  border: 0;
  padding: 12px;
  flex: 1;
}

.newsletter button {
  border: 0;
  background: var(--ms-gold);
  color: var(--ms-maroon-dark);
  width: 48px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 12px;
  color: #ffe8e8;
}

@media (max-width: 1199px) {
  .ms-nav {
    gap: 18px;
  }

  .ms-nav a {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .ms-main-header {
    padding: 18px 0;
  }

  .ms-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 15px;
  }

  .ms-nav a {
    padding: 12px 0;
    white-space: nowrap;
  }

  .ms-nav a.active::after,
  .ms-nav a:hover::after {
    bottom: 4px;
  }

  .ms-hero-content h1 {
    font-size: 42px;
  }

  .about-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-item,
  .stat-item {
    border-right: 0;
  }

  .ms-quickbar .row {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-section .container {
    width: auto;
  }

  .home-info-section .row > [class*="col-"] {
    display: block;
  }

  .home-info-section .content-panel {
    height: auto;
    min-height: 420px;
  }

  .home-info-section .notice-ticker,
  .home-info-section .notice-ticker marquee {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .ms-topbar ul,
  .ms-topbar .right-info {
    justify-content: center;
    gap: 10px;
  }

  .ms-hero-slide {
    min-height: 430px;
  }

  .ms-hero-slide::before {
    background: rgba(255, 255, 255, 0.82);
  }

  .ms-hero-content {
    padding: 58px 0;
  }

  .ms-hero-content h1 {
    font-size: 34px;
  }

  .section-heading::before,
  .section-heading::after {
    width: 30px;
    margin: 0 8px;
  }

  .ms-quickbar .row {
    grid-template-columns: 1fr;
  }

  .why-section .row {
    grid-template-columns: 1fr;
  }
}
