/*
 * Govt. Model College, Balipara - theme on top of Orbit (assets/orbit/css/main.css)
 * Colours are taken from the college logo (navy + red).
 */

:root {
  --background-color: #f4f6fb;
  --default-color: #44506a;
  --heading-color: #16214a;
  --accent-color: #1f3c88;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --gmc-red: #c8102e;
  --gmc-gold: #f2b233;

  --nav-color: #1e2a4a;
  --nav-hover-color: #1f3c88;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #1e2a4a;
  --nav-dropdown-hover-color: #c8102e;
}

body { font-size: 16px; }
img { max-width: 100%; }

/* ---------- Top bar ---------- */
.gmc-topbar {
  background: #16214a;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  padding: 7px 0;
}
.gmc-topbar a { color: rgba(255, 255, 255, .92); }
.gmc-topbar a:hover { color: var(--gmc-gold); }
.gmc-topbar i { color: var(--gmc-gold); margin-right: 6px; }
.gmc-topbar .topbar-item { margin-right: 22px; white-space: nowrap; }
.gmc-topbar .topbar-login {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 30px;
  padding: 2px 14px;
}

/* ---------- Brand bar (logo) ---------- */
.gmc-brand { background: #fff; padding: 10px 0; }
.gmc-brand .brand-logo img { max-height: 92px; width: auto; }
.gmc-brand .brand-side { gap: 14px; }
.gmc-brand .azadi { max-height: 70px; width: auto; }
.btn-admission {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gmc-red); color: #fff !important;
  font-weight: 700; padding: 10px 20px; border-radius: 50px;
  box-shadow: 0 6px 18px rgba(200, 16, 46, .28);
  animation: gmc-pulse 2.2s infinite;
}
.btn-admission:hover { background: #a50d25; }
@keyframes gmc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); }
  70% { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-admission { animation: none; } }
@media (max-width: 767px) {
  .gmc-brand .brand-logo img { max-height: 60px; }
  .gmc-brand .azadi { display: none; }
}

/* ---------- Main navigation ---------- */
.header { background: #fff; padding: 0; box-shadow: 0 2px 14px rgba(22, 33, 74, .08); }
.header .container { min-height: 56px; }
.header .home-mini { display: none; }
@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus { padding: 17px 11px; font-size: 15px; font-weight: 600; }
  .navmenu > ul > li > a.active::after,
  .navmenu > ul > li > a:hover::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px;
    height: 2px; background: var(--gmc-red);
  }
  .navmenu .dropdown ul { border-top: 3px solid var(--accent-color); }
  /* sub-menu (Departments) opens to the right */
  .navmenu .dropdown .dropdown ul { left: 100%; top: 0; }
  .navmenu .dropdown .dropdown:hover > ul { left: 100%; top: 0; }
}
@media (max-width: 1199px) {
  .header .home-mini { display: inline-flex; font-weight: 700; color: var(--heading-color); }
  .header .container { justify-content: space-between; }
}

/* ---------- Page title (inner pages) ---------- */
.page-title {
  position: relative;
  padding: 46px 0 40px;
  background: linear-gradient(120deg, rgba(22, 33, 74, .93), rgba(31, 60, 136, .86)), url("../../frontend/img/main_building.jpg") center / cover no-repeat;
  color: #fff;
}
.page-title .title-wrapper h1 { color: #fff; }
.page-title .title-wrapper p { color: rgba(255, 255, 255, .85); }
.page-title .breadcrumbs .breadcrumb .breadcrumb-item,
.page-title .breadcrumbs .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .75); }
.page-title .breadcrumbs .breadcrumb .breadcrumb-item.active { color: var(--gmc-gold); }
.page-title .breadcrumbs .breadcrumb .breadcrumb-item a:hover { color: #fff; }

/* ---------- Home hero ---------- */
.gmc-hero { padding: 50px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--background-color) 100%); }
.gmc-hero .hero-headline { font-size: 2.6rem; }
@media (max-width: 767px) { .gmc-hero .hero-headline { font-size: 1.9rem; } }
.gmc-hero .hero-slider {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 45px rgba(22, 33, 74, .18);
  background: #dfe5f1;
}
.gmc-hero .hero-slider .swiper-slide { position: relative; aspect-ratio: 31 / 13; }
.gmc-hero .hero-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmc-hero .hero-slider .slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 12px; color: #fff; font-weight: 600;
  background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent);
}
.gmc-hero .hero-slider .swiper-pagination-bullet-active { background: #fff; }
.gmc-hero .hero-slider .swiper-button-next,
.gmc-hero .hero-slider .swiper-button-prev { color: #fff; transform: scale(.7); }

.gmc-facts { margin-top: 34px; }
.gmc-facts .fact {
  background: var(--surface-color); border-radius: 14px; padding: 18px;
  display: flex; align-items: center; gap: 14px; height: 100%;
  box-shadow: 0 8px 24px rgba(22, 33, 74, .07);
}
.gmc-facts .fact i {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color); font-size: 22px;
}
.gmc-facts .fact strong { display: block; color: var(--heading-color); font-size: 1.05rem; }
.gmc-facts .fact span { font-size: .9rem; }

/* ---------- Notice board ---------- */
.notice-card {
  background: var(--surface-color); border-radius: 16px; height: 100%;
  box-shadow: 0 10px 30px rgba(22, 33, 74, .08); overflow: hidden;
  display: flex; flex-direction: column;
}
.notice-card .notice-head {
  background: var(--accent-color); color: #fff; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.notice-card .notice-head h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.notice-card .notice-head a { color: #fff; font-size: .85rem; border: 1px solid rgba(255,255,255,.5); padding: 3px 12px; border-radius: 20px; }
.notice-card .notice-head a:hover { background: #fff; color: var(--accent-color); }
.notice-scroll { height: 360px; overflow: hidden; position: relative; }
.notice-scroll ul { list-style: none; margin: 0; padding: 0; }
.notice-scroll.is-animated ul { animation: notice-up var(--notice-duration, 40s) linear infinite; }
.notice-scroll:hover ul, .notice-scroll:focus-within ul { animation-play-state: paused; }
@keyframes notice-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .notice-scroll { overflow-y: auto; }
  .notice-scroll.is-animated ul { animation: none; }
}
.notice-list li { border-bottom: 1px dashed #dde3ee; }
.notice-list li a {
  display: flex; gap: 12px; padding: 12px 20px; color: var(--default-color); align-items: flex-start;
}
.notice-list li a:hover { background: #f5f7fc; color: var(--accent-color); }
.notice-list .n-date {
  flex: 0 0 54px; text-align: center; border-radius: 8px; line-height: 1.1;
  background: color-mix(in srgb, var(--gmc-red), transparent 90%); color: var(--gmc-red); padding: 6px 2px;
  font-weight: 700; font-size: 1.1rem;
}
.notice-list .n-date small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.notice-list .n-title { font-size: .95rem; line-height: 1.4; }
.notice-list .badge-new {
  background: var(--gmc-red); color: #fff; font-size: .65rem; padding: 2px 6px;
  border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.notice-list .n-file { color: var(--gmc-red); font-size: .8rem; margin-top: 3px; display: block; }

/* ---------- Generic content ---------- */
.content-box {
  background: var(--surface-color); border-radius: 16px; padding: 32px;
  box-shadow: 0 10px 30px rgba(22, 33, 74, .06);
}
@media (max-width: 575px) { .content-box { padding: 20px; } }
.content-box h2, .content-box h3, .content-box h4 { color: var(--heading-color); }
.content-box h3 { font-size: 1.35rem; margin-top: 1.4rem; }
.content-box h3:first-child { margin-top: 0; }
.content-box p { text-align: justify; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 6px;
  color: var(--accent-color);
}
.info-note {
  border-left: 4px solid var(--gmc-gold); background: #fff9ea; padding: 12px 16px;
  border-radius: 6px; font-size: .95rem;
}
.gmc-table { width: 100%; border-collapse: collapse; background: #fff; }
.gmc-table th {
  background: var(--accent-color); color: #fff; font-weight: 600; padding: 12px 14px; text-align: left;
}
.gmc-table td { padding: 11px 14px; border-bottom: 1px solid #e6eaf2; vertical-align: middle; }
.gmc-table tbody tr:nth-child(even) td { background: #f7f9fd; }
.gmc-table tbody tr:hover td { background: #eef2fb; }
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(22, 33, 74, .06); }

.side-menu { background: var(--surface-color); border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(22,33,74,.06); }
.side-menu h4 { font-size: 1rem; padding: 10px 12px 6px; margin: 0; }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--default-color); }
.side-menu a:hover, .side-menu a.active { background: color-mix(in srgb, var(--accent-color), transparent 90%); color: var(--accent-color); font-weight: 600; }

/* ---------- Team / faculty cards ---------- */
.team .team-card .member-img { aspect-ratio: 4 / 5; overflow: hidden; background: #e8edf5; }
.team .team-card .member-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team .team-card .member-info .member-meta { font-size: .88rem; text-align: left; margin-top: 10px; }
.team .team-card .member-info .member-meta div { padding: 3px 0; border-top: 1px dashed #e3e8f1; }
.team .team-card .member-info .member-meta b { color: var(--heading-color); font-weight: 600; }

/* ---------- Department cards on home ---------- */
.services .service-card h3 a { color: inherit; }

/* ---------- Gallery / events ---------- */
.portfolio .project-card .image-wrapper { aspect-ratio: 4 / 3; }
.portfolio .project-card .image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.event-card { background: var(--surface-color); border-radius: 16px; overflow: hidden; height: 100%; box-shadow: 0 10px 30px rgba(22,33,74,.07); }
.event-card .event-img { aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.event-card .event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-img img { transform: scale(1.05); }
.event-card .event-body { padding: 16px 18px; }
.event-card .event-body h4 { font-size: 1.05rem; margin: 0; }

/* ---------- Links / quick links ---------- */
.quick-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface-color);
  border-radius: 14px; color: var(--heading-color); font-weight: 600; height: 100%;
  box-shadow: 0 8px 22px rgba(22, 33, 74, .06); transition: .3s;
}
.quick-link i { font-size: 24px; color: var(--accent-color); }
.quick-link:hover { transform: translateY(-3px); color: var(--accent-color); }

/* ---------- Pagination ---------- */
.gmc-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.gmc-pagination a, .gmc-pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; color: var(--heading-color); box-shadow: 0 3px 10px rgba(22,33,74,.08);
}
.gmc-pagination .current { background: var(--accent-color); color: #fff; }

/* ---------- Contact ---------- */
.contact .alert { border-radius: 12px; }
.contact .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: 16px; display: block; }

/* ---------- Footer ---------- */
.footer { background: #16214a; color: rgba(255, 255, 255, .8); }
.footer .footer-top { padding-top: 56px; }
.footer h4, .footer .sitename { color: #fff; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: var(--gmc-gold); }
.footer .footer-links ul li { padding: 5px 0; }
.footer .footer-links ul a { color: rgba(255, 255, 255, .8); }
.footer .footer-contact i { color: var(--gmc-gold); width: 22px; display: inline-block; }
.footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; }
.footer .footer-map iframe { width: 100%; height: 200px; border: 0; border-radius: 12px; }
.footer .copyright p { margin: 0; }
.footer .visitor img { vertical-align: middle; }

/* accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gmc-gold); outline-offset: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }
.footer .footer-bottom .row { margin-left: 0; margin-right: 0; }

/* ---------- Staff details pop-up (Teaching Staff page) ---------- */
.staff-trigger { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.staff-name-btn { font-weight: 700; color: var(--accent-color); font-size: inherit; }
.staff-name-btn:hover, .staff-name-btn:focus-visible { color: var(--gmc-red); text-decoration: underline; }
.staff-photo-btn img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; display: block; transition: transform .2s, box-shadow .2s; }
.staff-photo-btn:hover img, .staff-photo-btn:focus-visible img { transform: scale(1.06); box-shadow: 0 4px 12px rgba(22, 33, 74, .25); }

.staff-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 25px 60px rgba(22, 33, 74, .35); }
.staff-modal .modal-backdrop, .modal-backdrop.show { opacity: .6; }
.staff-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background-color: #fff; border-radius: 50%; padding: 10px; opacity: .9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.staff-modal-photo { background: #e8edf5; min-height: 280px; }
.staff-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; max-height: 460px; }
.staff-modal-body { padding: 30px 30px 24px; }
.staff-modal-badge {
  display: inline-block; background: color-mix(in srgb, var(--gmc-red), transparent 88%); color: var(--gmc-red);
  font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.staff-modal-body h3 { font-size: 1.6rem; margin: 0 0 4px; color: var(--heading-color); padding-right: 30px; }
.staff-modal-desig { color: var(--accent-color); font-weight: 600; margin-bottom: 18px; }
.staff-modal-list { margin: 0; }
.staff-modal-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: #7a869e; font-weight: 600; margin-top: 12px; }
.staff-modal-list dt i { color: var(--gmc-red); margin-right: 4px; }
.staff-modal-list dd { margin: 2px 0 0; color: var(--heading-color); font-size: 1rem; }
@media (max-width: 767px) {
  .staff-modal-photo { min-height: 0; }
  .staff-modal-photo img { max-height: 300px; }
  .staff-modal-body { padding: 22px 20px 20px; }
  .staff-modal-body h3 { font-size: 1.35rem; }
}
