/* ============================================================
   MCM — MQI College of Management
   Modern education theme (Bootstrap 5)
   Brand: teal #0097a7 · orange #ff6600 · gold #f2af59
   ============================================================ */

:root {
  --mcm-primary: #0097a7;
  --mcm-primary-dark: #00747f;
  --mcm-primary-darker: #005a63;
  --mcm-accent: #ff6600;
  --mcm-gold: #f2af59;
  --mcm-dark: #16323a;
  --mcm-text: #4a5568;
  --mcm-light: #f4f8f9;
  --mcm-radius: 14px;
  --mcm-shadow: 0 6px 24px rgba(22, 50, 58, .08);
  --mcm-shadow-lg: 0 14px 40px rgba(22, 50, 58, .14);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--mcm-text);
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav, .btn, .mcm-btn {
  font-family: 'Poppins', 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 { color: var(--mcm-dark); font-weight: 600; }

a { color: var(--mcm-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mcm-accent); }

img { max-width: 100%; height: auto; }

::selection { background: var(--mcm-primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn-mcm,
.button-normal a, .button-normal.green a, .button-normal.white a {
  display: inline-block;
  background: var(--mcm-primary);
  color: #fff !important;
  border: none;
  border-radius: 50rem;
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(0, 151, 167, .35);
}
.btn-mcm:hover,
.button-normal a:hover { background: var(--mcm-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,151,167,.4); }

.btn-mcm-accent { background: var(--mcm-accent); box-shadow: 0 4px 14px rgba(255,102,0,.35); }
.btn-mcm-accent:hover { background: #e05500; box-shadow: 0 8px 20px rgba(255,102,0,.4); }

.btn-mcm-outline {
  display: inline-block; background: transparent; color: #fff !important;
  border: 2px solid rgba(255,255,255,.85); border-radius: 50rem;
  padding: .6rem 1.5rem; font-weight: 600; transition: all .25s;
}
.btn-mcm-outline:hover { background: #fff; color: var(--mcm-primary) !important; }

/* ---------- Top bar ---------- */
.mcm-topbar {
  background: var(--mcm-primary-darker);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  padding: .35rem 0;
}
.mcm-topbar a { color: rgba(255,255,255,.9); }
.mcm-topbar a:hover { color: var(--mcm-gold); }
.mcm-topbar .sep { opacity: .4; margin: 0 .6rem; }

/* ---------- Navbar ---------- */
.mcm-navbar {
  background: #fff;
  box-shadow: 0 2px 18px rgba(22,50,58,.09);
  padding: .35rem 0;
}
.mcm-navbar .navbar-brand img { max-height: 62px; width: auto; }
.mcm-navbar .nav-link {
  color: var(--mcm-dark);
  font-weight: 500;
  font-size: .95rem;
  padding: .65rem .9rem !important;
  border-radius: 8px;
  transition: all .2s;
}
.mcm-navbar .nav-link:hover,
.mcm-navbar .nav-link:focus { color: var(--mcm-primary); background: rgba(0,151,167,.07); }
.mcm-navbar .nav-item.active > .nav-link,
.mcm-navbar .nav-link.active {
  color: var(--mcm-primary);
  background: rgba(0,151,167,.1);
}
.mcm-navbar .dropdown-menu {
  border: none; border-radius: 12px;
  box-shadow: var(--mcm-shadow-lg);
  padding: .5rem;
  margin-top: .35rem;
}
.mcm-navbar .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; color: var(--mcm-text); }
.mcm-navbar .dropdown-item:hover { background: rgba(0,151,167,.09); color: var(--mcm-primary); }
.mcm-navbar .navbar-toggler { border: none; font-size: 1.4rem; color: var(--mcm-primary); }
.mcm-navbar .navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero carousel ---------- */
.mcm-hero { position: relative; }
.mcm-hero .carousel-item {
  height: min(88vh, 760px);
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
.mcm-hero .carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,90,99,.82) 0%, rgba(0,90,99,.45) 45%, rgba(22,50,58,.25) 100%);
}
.mcm-hero .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-align: left;
  padding: 0 8vw;
}
.mcm-hero .carousel-caption h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  font-weight: 700;
  max-width: 18ch;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.mcm-hero .carousel-caption p {
  color: rgba(255,255,255,.92);
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  max-width: 60ch;
  margin-top: .75rem;
}
.mcm-hero .carousel-indicators [data-bs-target] {
  width: 34px; height: 4px; border-radius: 2px; background-color: #fff;
}

/* ---------- Quick action banner ---------- */
.mcm-banner {
  background: linear-gradient(120deg, var(--mcm-primary) 0%, var(--mcm-primary-dark) 100%);
  padding: 1.4rem 0;
  position: relative;
  z-index: 2;
}
.mcm-banner .banner-action {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  color: #fff; font-family: 'Poppins', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  padding: .9rem 1rem; border-radius: var(--mcm-radius);
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.mcm-banner .banner-action:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; }
.mcm-banner .banner-action i { font-size: 1.5rem; color: var(--mcm-gold); }

/* ---------- Sections & headings ---------- */
.mcm-section { padding: 4.5rem 0; }
.mcm-section.tint { background: var(--mcm-light); }

.mcm-section-head { margin-bottom: 2.5rem; }
.mcm-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: .7rem;
}
.mcm-section-head h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mcm-primary), var(--mcm-gold));
}
.mcm-section-head.text-center h2::after { left: 50%; transform: translateX(-50%); }
.mcm-section-head .tagline { color: var(--mcm-text); margin-top: .5rem; }

/* ---------- Cards ---------- */
.mcm-card {
  background: #fff;
  border: none;
  border-radius: var(--mcm-radius);
  box-shadow: var(--mcm-shadow);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  overflow: hidden;
}
.mcm-card:hover { transform: translateY(-6px); box-shadow: var(--mcm-shadow-lg); }

/* Notification card */
.mcm-notice { display: flex; flex-direction: column; padding: 1.5rem; }
.mcm-date-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mcm-primary), var(--mcm-primary-dark));
  color: #fff; border-radius: 12px;
  width: 74px; min-height: 74px;
  line-height: 1.1; padding: .5rem;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(0,151,167,.35);
}
.mcm-date-badge .d { font-size: 1.7rem; font-weight: 700; font-family: 'Poppins',sans-serif; }
.mcm-date-badge .my { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.mcm-notice h4 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.mcm-notice .desc { overflow-y: auto; max-height: 110px; font-size: .92rem; padding-right: .3rem; }

/* Event card */
.mcm-event-card .event-img { height: 210px; overflow: hidden; }
.mcm-event-card .event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mcm-event-card:hover .event-img img { transform: scale(1.06); }
.mcm-event-card .event-body { padding: 1.35rem; }
.mcm-event-card .event-date { color: var(--mcm-accent); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mcm-event-card h4 { font-size: 1.1rem; margin: .35rem 0 .5rem; }
.mcm-event-card .excerpt {
  font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Faculty card */
.mcm-teacher-card { text-align: center; padding-bottom: 1.4rem; }
.mcm-teacher-card .photo { height: 280px; overflow: hidden; background: var(--mcm-light); }
.mcm-teacher-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.mcm-teacher-card:hover .photo img { transform: scale(1.05); }
.mcm-teacher-card h4 { margin: 1rem 0 .15rem; font-size: 1.1rem; }
.mcm-teacher-card .position { color: var(--mcm-primary); font-size: .88rem; font-weight: 600; }

/* Achievement card */
.mcm-achievement { display: flex; flex-direction: column; }
.mcm-achievement .ach-img { height: 230px; overflow: hidden; }
.mcm-achievement .ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mcm-achievement:hover .ach-img img { transform: scale(1.05); }
.mcm-achievement .ach-body { padding: 1.4rem; }
.mcm-achievement .ach-body .desc { max-height: 150px; overflow-y: auto; font-size: .93rem; }

/* Stats / facility strip */
.mcm-stats {
  background:
    linear-gradient(rgba(0,90,99,.9), rgba(0,90,99,.9)),
    var(--mcm-primary-darker);
  padding: 3.5rem 0;
}
.mcm-stats .stat-item { text-align: center; color: #fff; padding: 1rem .5rem; }
.mcm-stats .stat-item img { height: 74px; width: auto; margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.mcm-stats .stat-item h4 { color: #fff; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- Page hero (inner pages) ---------- */
.mcm-page-hero {
  background: linear-gradient(115deg, var(--mcm-primary-darker) 0%, var(--mcm-primary) 70%, #00b3c6 100%);
  padding: 3.6rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.mcm-page-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.mcm-page-hero::before {
  content: "";
  position: absolute; right: 90px; bottom: -110px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(242,175,89,.16);
}
.mcm-page-hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  margin: 0;
}
.mcm-page-hero .breadcrumb { margin: .4rem 0 0; background: none; padding: 0; }
.mcm-page-hero .breadcrumb-item, .mcm-page-hero .breadcrumb-item a { color: rgba(255,255,255,.8); font-size: .88rem; }
.mcm-page-hero .breadcrumb-item.active { color: var(--mcm-gold); }
.mcm-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- Gallery ---------- */
.mcm-gallery-item {
  border-radius: var(--mcm-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--mcm-shadow);
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--mcm-light);
}
.mcm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mcm-gallery-item:hover img { transform: scale(1.07); }
.mcm-gallery-item .label {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; padding: 1.6rem .9rem .7rem;
  font-weight: 600; font-size: .95rem;
}
.mcm-gallery-item.folder .label i { color: var(--mcm-gold); margin-right: .4rem; }
.mcm-breadcrumb-bar { margin-bottom: 1.5rem; font-size: .92rem; }

/* ---------- Contact ---------- */
.mcm-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.mcm-contact-form .form-control {
  background: var(--mcm-light);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
}
.mcm-contact-form .form-control:focus {
  background: #fff; border-color: var(--mcm-primary);
  box-shadow: 0 0 0 .2rem rgba(0,151,167,.15);
}
.mcm-contact-info .info-item { display: flex; gap: .9rem; margin-bottom: 1.1rem; }
.mcm-contact-info .info-item i {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,151,167,.1); color: var(--mcm-primary); font-size: 1.05rem;
}

/* ---------- Article / DB content (legacy classes) ---------- */
.mcm-article { padding: 3rem 0; }
.mcm-article img { border-radius: var(--mcm-radius); }
.about-us { padding: 2.5rem 0; }
.heading-block h1, .heading-block h2, .heading-block h3 { font-weight: 700; }
.heading-block .tagline { color: var(--mcm-text); }
.grey-background { background: var(--mcm-light); }
.no-margin { margin: 0; }
.no-padding { padding: 0; }
.no-margin-bottom { margin-bottom: 0; }
.wow { visibility: visible !important; }
.overlay { position: absolute; inset: 0; }
.single-wrapper { display: block; }

/* ---------- Footer ---------- */
.mcm-footer {
  background: linear-gradient(160deg, #0b2b31 0%, #103a42 100%);
  color: rgba(255,255,255,.78);
  padding: 4rem 0 2.5rem;
  font-size: .93rem;
}
.mcm-footer h4 {
  color: #fff; font-size: 1.05rem; font-weight: 600;
  margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem;
}
.mcm-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 2px; background: var(--mcm-gold);
}
.mcm-footer a { color: rgba(255,255,255,.78); }
.mcm-footer a:hover { color: var(--mcm-gold); }
.mcm-footer ul { list-style: none; padding: 0; margin: 0; }
.mcm-footer ul li { margin-bottom: .5rem; }
.mcm-footer ul li a::before { content: "\2192"; margin-right: .5rem; color: var(--mcm-gold); }
.mcm-footer .contact-line { display: flex; gap: .6rem; margin-bottom: .5rem; align-items: baseline; }
.mcm-footer .contact-line i { color: var(--mcm-gold); width: 18px; text-align: center; }

.mcm-copyright {
  background: #081f24;
  color: rgba(255,255,255,.6);
  padding: 1rem 0;
  font-size: .85rem;
}
.mcm-copyright a { color: var(--mcm-gold); }
.mcm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  margin-left: .45rem; transition: all .25s;
}
.mcm-social a:hover { background: var(--mcm-primary); color: #fff; transform: translateY(-3px); }

/* ---------- Admin quick panel (offcanvas) ---------- */
.mcm-admin-fab {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 1045;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--mcm-dark); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .25s, background .25s;
}
.mcm-admin-fab:hover { background: var(--mcm-primary); transform: rotate(45deg); color: #fff; }
.mcm-admin-offcanvas { background: var(--mcm-dark); color: #fff; }
.mcm-admin-offcanvas .offcanvas-title { color: var(--mcm-gold); }
.mcm-admin-offcanvas .admin-links a {
  display: flex; align-items: center; gap: .8rem;
  color: rgba(255,255,255,.85);
  padding: .6rem .8rem; border-radius: 10px;
  font-weight: 500; font-size: .95rem;
}
.mcm-admin-offcanvas .admin-links a:hover { background: rgba(255,255,255,.09); color: #fff; }
.mcm-admin-offcanvas .admin-links a i { width: 20px; text-align: center; color: var(--mcm-gold); }
.mcm-admin-offcanvas .btn-close { filter: invert(1); }

/* ---------- Admin content pages ---------- */
.mcm-admin-page { padding: 2.5rem 0 3.5rem; background: var(--mcm-light); min-height: 55vh; }
.mcm-admin-page .table {
  background: #fff; border-radius: var(--mcm-radius);
  overflow: hidden; box-shadow: var(--mcm-shadow);
}
.mcm-admin-page h2, .mcm-admin-page h3 { margin-bottom: 1.2rem; }

/* Legacy admin page title band (grey-background + page-title) */
.grey-background .page-title { padding: 1.8rem 0 1.4rem; }
.grey-background .page-title h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--mcm-dark);
  position: relative;
  display: inline-block;
  padding-bottom: .55rem;
  margin: 0;
}
.grey-background .page-title h1::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mcm-primary), var(--mcm-gold));
}

/* Admin cards */
.card { border: none; border-radius: var(--mcm-radius); box-shadow: var(--mcm-shadow); margin-bottom: 1.5rem; }
.card-header {
  background: #fff; border-bottom: 1px solid #eceff1;
  border-radius: var(--mcm-radius) var(--mcm-radius) 0 0 !important;
  padding: 1rem 1.25rem; font-weight: 600; color: var(--mcm-dark);
}
.card-body { padding: 1.25rem; }
.card-block { overflow-x: auto; }

/* DataTables polish */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cfd8dc; border-radius: 8px; padding: .3rem .6rem; margin-left: .4rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--mcm-primary) !important; color: #fff !important;
  border-color: var(--mcm-primary) !important; border-radius: 8px;
}
table.dataTable { width: 100% !important; }

/* Generic admin table & form polish (applies everywhere) */
.table thead th {
  background: var(--mcm-primary-darker); color: #fff;
  font-weight: 600; font-size: .88rem;
  border: none; vertical-align: middle;
}
.table td { vertical-align: middle; }
.form-control, .form-select { border-radius: 10px; }
.form-control:focus, .form-select:focus {
  border-color: var(--mcm-primary);
  box-shadow: 0 0 0 .2rem rgba(0,151,167,.15);
}
label { font-weight: 600; font-size: .9rem; color: var(--mcm-dark); margin-bottom: .35rem; }

.btn-primary { background: var(--mcm-primary); border-color: var(--mcm-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--mcm-primary-dark); border-color: var(--mcm-primary-dark); }

/* ---------- Bootstrap 3/4 → 5 compatibility (legacy admin views) ---------- */
.pull-right, .float-right { float: right !important; }
.pull-left, .float-left { float: left !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.btn-default { background: #fff; border: 1px solid #cfd8dc; color: var(--mcm-dark); }
.btn-default:hover { background: var(--mcm-light); }
.btn-xs { padding: .15rem .5rem; font-size: .78rem; border-radius: 8px; }
.form-group { margin-bottom: 1rem; }
.control-label { font-weight: 600; }
.badge-primary { background: var(--mcm-primary); }
.badge-success { background: #2e7d32; }
.badge-danger { background: #c62828; }
.label {  }
.well { background: #fff; border-radius: var(--mcm-radius); box-shadow: var(--mcm-shadow); padding: 1.25rem; }
.panel { background: #fff; border-radius: var(--mcm-radius); box-shadow: var(--mcm-shadow); margin-bottom: 1.25rem; }
.panel-heading { padding: 1rem 1.25rem; border-bottom: 1px solid #eceff1; font-weight: 600; }
.panel-body { padding: 1.25rem; }
.img-responsive { max-width: 100%; height: auto; }
.hidden { display: none !important; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent; border-left: 4px solid transparent; }

/* ---------- Misc ---------- */
.mcm-scroll::-webkit-scrollbar, .mcm-notice .desc::-webkit-scrollbar, .mcm-achievement .desc::-webkit-scrollbar { width: 5px; }
.mcm-scroll::-webkit-scrollbar-thumb, .mcm-notice .desc::-webkit-scrollbar-thumb, .mcm-achievement .desc::-webkit-scrollbar-thumb {
  background: var(--mcm-primary); border-radius: 4px;
}

.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mcm-primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,151,167,.4);
}
.back-to-top:hover { background: var(--mcm-primary-dark); color: #fff; }
.back-to-top.show { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .mcm-navbar .navbar-collapse {
    background: #fff; border-radius: var(--mcm-radius);
    box-shadow: var(--mcm-shadow-lg);
    padding: .8rem; margin-top: .6rem;
  }
  .mcm-banner .banner-action { font-size: 1rem; padding: .6rem; }
  .mcm-hero .carousel-item { height: 62vh; }
}

@media (max-width: 767.98px) {
  .mcm-section { padding: 3rem 0; }
  .mcm-topbar { display: none; }
  .mcm-hero .carousel-item { height: 55vh; min-height: 360px; }
  .mcm-hero .carousel-caption { padding: 0 6vw; }
  .mcm-map iframe { height: 280px; }
  .mcm-admin-fab { left: .8rem; bottom: .8rem; width: 48px; height: 48px; }
  .mcm-teacher-card .photo { height: 320px; }
}

@media (max-width: 575.98px) {
  .mcm-banner .col-12 + .col-12 { border-top: 1px solid rgba(255,255,255,.15); }
  .mcm-copyright { text-align: center; }
  .mcm-social { margin-top: .6rem; }
}

/* Print */
@media print {
  .mcm-topbar, .mcm-navbar, .mcm-footer, .mcm-copyright, .mcm-admin-fab, .back-to-top { display: none !important; }
}
