/* Madhupur College - custom theme
   Primary colour: #882A1B
   Bootstrap 5.3.x compatible
*/
:root {
  --primary: #882A1B;
  --primary-dark: #681F15;
  --primary-light: #A63A27;
  --gold: #E8BE55;
  --cream: #FBF8F2;
  --text: #28313A;
  --muted: #68717A;
  --border: #E9E3DA;
  --white: #fff;
  --shadow: 0 8px 30px rgba(47, 32, 25, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", Georgia, serif;
  font-optical-sizing: auto;
}

.fs-7 {
  font-size: 0.885rem;
  line-height: 1.5;
}

.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, .96);
  font-size: .79rem;
  padding: 7px 0;
}

.topbar-contact,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar i {
  margin-right: 5px;
}

.topbar a:hover {
  color: var(--gold);
}

.site-header {
  background: #fff;
}

.header-main {
  min-height: 86px;
  padding: 1.05rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-main .header-title {
  color: var(--primary);
  font-size: 2.05rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.5;
}

.header-main .header-caption {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--muted);
}

.motto {
  position: relative;
  color: #27313a;
  font: italic 1.05rem "Playfair Display", serif;
  display: flex;
  gap: 12px;
}

.motto::before {
  position: absolute;
  top: -10px;
  right: 0;
  height: 2px;
  width: 100px;
  background-color: var(--gold);
  content: '';
}

.motto::after {
  position: absolute;
  bottom: -12px;
  right: 0;
  height: 2px;
  width: 100px;
  background-color: var(--gold);
  content: '';
}

.main-nav {
  background: var(--primary);
  padding: 0;
}

.main-nav .navbar-nav {
  align-items: stretch;
}

.main-nav .nav-link {
  color: #fff;
  font-size: .855rem;
  text-transform: uppercase;
  padding: 13px 10px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--gold);
}

.main-nav .dropdown-menu {
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 220px;
}

.main-nav .dropdown-item {
  font-size: .86rem;
  padding: 8px 11px;
  border-radius: 4px;
}

.main-nav .dropdown-item:hover {
  background: #f8eee9;
  color: var(--primary);
}

.btn-apply {
  background: var(--gold);
  color: #3c2613;
  font-size: .82rem;
}

.btn-apply:hover {
  background: #f2cd71;
  color: #3c2613;
}

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

.hero-slide-1 {
  background-image: url("../images/IMG_20150418_124205.jpg");
}

.hero-slide-2 {
  background-image: url("../images/IMG_20150418_125126.jpg");
}

.hero-slide-3 {
  background-image: url("../images/IMG_20160531_103948.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(96, 23, 14, .93) 0%, rgba(136, 42, 27, .74) 43%, rgba(0, 0, 0, .05) 78%);
}

.hero-content {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-copy {
  color: #fff;
  max-width: 570px;
  padding-bottom: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: #f2cf75;
}

.hero-copy h1 {
  font-size: 3.15rem;
  line-height: 1.08;
  margin: .25rem 0 .8rem;
}

.hero-copy p {
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.btn-gold {
  background: var(--gold);
  color: #3c2613;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 17px;
}

.btn-gold:hover {
  background: #f4d17c;
  color: #3c2613;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.notice-strip {
  background: #faf7f1;
  border-bottom: 1px solid var(--border);
}

.notice-inner {
  display: flex;
  align-items: center;
  min-height: 45px;
  gap: 18px;
}

.notice-label {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: .8rem;
  color: var(--primary);
}

.notice-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.notice-track {
  display: inline-flex;
  gap: 15px;
  font-size: .79rem;
  animation: notice-scroll 28s linear infinite;
}

.notice-track a:hover {
  color: var(--primary);
}

.btn-notices {
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  padding: 7px 13px;
  white-space: nowrap;
}

@keyframes notice-scroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-25%)
  }
}

/* section-title */
.section-title {
  position: relative;
}

.section-title h3 {
  font-size: 1.65rem;
  color: var(--primary);
}

.section-title::after {
  position: absolute;
  width: 45px;
  height: 3px;
  background: var(--gold);
  content: '';
}

.section-padding {
  padding: 48px 0;
}

.welcome-section {
  background: #fff;
}

.section-heading h2,
.panel-heading h2 {
  color: var(--primary);
  font-size: 1.55rem;
  margin: 0 0 9px;
  line-height: 1.2;
}

.section-heading>span,
.panel-heading span {
  width: 25px;
  height: 3px;
  background: var(--gold);
  display: block;
}

.welcome-section p {
  font-size: .9rem;
  color: #4d5962;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 9px 15px;
  font-size: .82rem;
  font-weight: 700;
}

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

.principal-card {
  background: linear-gradient(135deg, #fbf8f2, #f5f0e7);
  border: 1px solid #eee7dc;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  right: 15px;
  top: 26px;
  color: #d8b45b;
  font: 700 4rem/1 Georgia;
  opacity: .75;
}

.principal-card blockquote {
  margin: 10px 0 12px;
  font: italic .9rem/1.6 "Playfair Display", serif;
  color: #4b3b32;
  position: relative;
}

.principal-card p {
  font-size: .82rem;
  margin-bottom: 15px;
}

.principal-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.principal-profile strong,
.principal-profile small {
  display: block;
}

.principal-profile strong {
  font-size: .87rem;
}

.principal-profile small {
  color: var(--primary);
  font-size: .76rem;
}

/* stats-section */
.stats-section {
  background-color: var(--gold);
  color: var(--primary-dark);
}

.stats-section .stats-icon {
  padding: 15px;
  width: 78px;
  height: 78px;
  background-color: var(--cream);
  color: var(--primary-light);
  font-size: 48px;
  line-height: 1;
  border-radius: 100%;
  transition: linear all 300ms;
}

.stats-section .d-flex:hover .stats-icon{
  scale: calc(1.15);
  background-color: var(--primary-light);
  color: var(--gold);
}

.programmes-section {
  background: var(--cream);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.programme-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 18px;
  min-height: 180px;
  transition: .25s;
}

.programme-card:hover,
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.programme-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.programme-card h3 {
  color: #252d34;
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.programme-card p {
  color: var(--muted);
  font-size: .77rem;
  margin-bottom: 17px;
}

.programme-card a {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
}

.facilities-section {
  background: #fff;
}

.facility-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  transition: .25s;
  height: 100%;
}

.facility-image {
  height: 125px;
  background-size: cover;
  background-position: center;
}

.image-library {
  background-image: url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=700&q=80");
}

.image-classroom {
  background-image: url("https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=700&q=80");
}

.image-lab {
  background-image: url("https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=700&q=80");
}

.image-hall {
  background-image: url("https://images.unsplash.com/photo-1505373877841-8d25f7d46678?auto=format&fit=crop&w=700&q=80");
}

.facility-body {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.facility-icon {
  color: var(--primary);
  font-size: 1.55rem;
  flex: 0 0 30px;
}

.facility-body h3 {
  font: 700 1.125rem "Playfair Display", serif;
  margin: 0;
}

.facility-body p {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
  margin: 3px 0 0;
}

.information-section {
  background: var(--cream);
}

.content-panel {
  height: 100%;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
  gap: 10px;
}

.panel-heading h2 {
  font-size: 1.35rem;
}

.panel-heading>a {
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.notice-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #eee8df;
  transition: .2s;
}

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

.notice-item:hover {
  background: #fffaf5;
}

.notice-item time {
  width: 50px;
  min-width: 50px;
  text-align: center;
  background: #f7f2ea;
  border-radius: 4px;
  padding: 4px;
}

.notice-item time b,
.notice-item time small {
  display: block;
}

.notice-item time b {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.1;
}

.notice-item time small {
  font-size: .6rem;
  color: #68717a;
}

.notice-item span {
  flex: 1;
  min-width: 0;
}

.notice-item strong,
.notice-item span small {
  display: block;
}

.notice-item strong {
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.35;
}

.notice-item span small {
  font-size: .785rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

.notice-item>i {
  color: #aaa;
  font-size: .7rem;
}

.event-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  padding-bottom: 7px;
  height: 100%;
}

.event-card:hover strong {
  color: var(--primary);
}

.event-image {
  height: 75px;
  background-size: cover;
  background-position: center;
}

.event-1 {
  background-image: url("https://images.unsplash.com/photo-1526676037777-05a232554f77?auto=format&fit=crop&w=500&q=80");
}

.event-2 {
  background-image: url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=500&q=80");
}

.event-3 {
  background-image: url("https://images.unsplash.com/photo-1544531586-fde5298cdd40?auto=format&fit=crop&w=500&q=80");
}

.event-4 {
  background-image: url("https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=500&q=80");
}

.event-card strong {
  display: block;
  font-size: .68rem;
  line-height: 1.3;
  padding: 6px 7px 1px;
}

.event-card small {
  display: block;
  color: var(--muted);
  font-size: .6rem;
  padding: 0 7px;
}

.important-links {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.important-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-bottom: 1px solid #eee8df;
  font-size: .775rem;
}

.important-links a:last-child {
  border-bottom: 0;
}

.important-links a>i:first-child {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

.important-links a>i:last-child {
  margin-left: auto;
  color: #aaa;
  font-size: .65rem;
}

.important-links a:hover {
  color: var(--primary);
  background: #fffaf5;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, .86);
  padding-top: 38px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand small {
  color: rgba(255, 255, 255, .7);
  font-size: .65rem;
}

.footer-brand .logo-placeholder {
  border-color: #fff;
  width: 50px;
  height: 50px;
  background: transparent;
}

.footer-intro {
  font-size: .74rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
}

.social-links a:hover {
  background: var(--gold);
  color: #3c2613;
  border-color: var(--gold);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.footer-links a,
.contact-list li {
  font-size: .885rem;
  color: rgba(255, 255, 255, .78);
}

.footer-links a:hover {
  color: var(--gold);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  display: flex;
  gap: 9px;
}

.contact-list i {
  color: var(--gold);
  width: 15px;
}

.map-box {
  min-height: 105px;
  background: #fff;
  color: #444;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.map-box>i {
  color: #dc3545;
  font-size: 1.3rem;
}

.map-box small {
  color: #888;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .17);
  margin-top: 30px;
  padding: 12px 0;
  font-size: .67rem;
  color: rgba(255, 255, 255, .65);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom b {
  margin: 0 8px;
  font-weight: 400;
  color: rgba(255, 255, 255, .3);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

@media (max-width: 1199.98px) {
  .main-nav .nav-link {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: .76rem;
  }
}

@media (max-width: 991.98px) {
  .header-main {
    min-height: 76px;
  }

  .main-nav {
    padding: 6px 0;
  }

  .main-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
  }

  .main-nav .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }

  .main-nav .navbar-nav {
    padding-top: 8px;
  }

  .main-nav .nav-link {
    padding: 8px 3px !important;
  }

  .main-nav .btn-apply {
    display: inline-block;
    margin: 6px 0 5px;
  }

  .hero-slide,
  .hero-content {
    min-height: 400px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .section-padding {
    padding: 40px 0;
  }
}

@media (max-width: 767.98px) {
  .topbar-contact {
    gap: 9px;
  }

  .topbar-contact span:last-child {
    display: none;
  }

  .topbar-links span,
  .topbar-links a:nth-of-type(n+3) {
    display: none;
  }

  .brand strong {
    font-size: 1.15rem;
  }

  .hero-slide,
  .hero-content {
    min-height: 390px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(96, 23, 14, .9), rgba(136, 42, 27, .62));
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-copy p {
    font-size: .95rem;
  }

  .notice-label span {
    display: none;
  }

  .notice-inner {
    gap: 9px;
  }

  .notice-marquee {
    min-width: 0;
  }

  .btn-notices {
    padding: 6px 8px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row p {
    margin-top: 8px;
  }

  .stats-grid {
    min-height: 245px;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center !important;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    font-size: .68rem;
  }

  .topbar-contact,
  .topbar-links {
    gap: 7px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 50px;
  }
}