:root {
  --crimson: #b91c1c;
  --crimson-2: #9f1239;
  --burgundy: #5c1a1f;
  --burgundy-2: #7a242b;
  --ink: #1f1a1a;
  --muted: #6b6464;
  --line: #e8e0e0;
  --soft: #f7f3f2;
  --soft-2: #fff8f7;
  --white: #ffffff;
  --gold: #c9a227;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(92, 26, 31, 0.08);
  --shadow-sm: 0 6px 18px rgba(92, 26, 31, 0.06);
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(185, 28, 28, 0.06), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--soft) !important;
  border-top: 3px solid var(--crimson) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--crimson) !important;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(.22, 1, .36, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}
a:hover, a:focus { color: var(--crimson-2) !important; text-decoration: none !important; }

h1, h2, h3, h4, h5, h6,
.widget-title,
.event-title,
.blog-list-title,
.event-small-title,
.gallery-title,
.footer-widget-title,
.page-title h6 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  color: var(--burgundy) !important;
  text-transform: none !important;
}

img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

/* -------------------------------------------------------------------------- */
/* Header — same structure, modern skin                                       */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 8px 28px rgba(31, 26, 26, 0.05);
  font-size: 14px !important;
}

.site-header .logo {
  margin: 18px auto 14px !important;
  text-align: center;
}

.site-header .logo a {
  display: inline-block;
}

.site-header .logo img {
  width: min(920px, 100%) !important;
  height: auto !important;
  max-height: 92px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.main-navigation {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
}

.nav-bar-main {
  background: linear-gradient(180deg, var(--soft-2), #fff);
  border-top: 1px solid var(--line);
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.main-menu > li {
  float: none !important;
  border-right: 0 !important;
  position: relative;
}

.main-menu > li > a {
  color: var(--burgundy) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 14px 11px !important;
  position: relative;
  border-radius: 10px;
}

.main-menu > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
}

.main-menu > li.active > a,
.main-menu > li > a:hover {
  color: var(--crimson) !important;
  background: rgba(185, 28, 28, 0.06);
}

.main-menu > li.active > a::after,
.main-menu > li > a:hover::after {
  transform: scaleX(1);
}

.main-menu li ul {
  width: 240px !important;
  top: calc(100% - 2px) !important;
  padding: 8px 0 !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-top: 0 !important;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-menu li ul li {
  border-bottom: 0 !important;
}

.main-menu li ul li a {
  color: var(--ink) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
}

.main-menu li ul li a:hover {
  background: var(--soft) !important;
  color: var(--crimson) !important;
}

.social-icons li a {
  color: var(--muted) !important;
}

/* Mobile menu */
.menu-toggle-btn {
  background: var(--crimson) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.25);
}

.responsive_menu {
  background: var(--burgundy) !important;
}

.responsive_menu a,
.main_menu a {
  color: #fff !important;
}

.main_menu,
.main_menu li {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* -------------------------------------------------------------------------- */
/* Content shell                                                              */
/* -------------------------------------------------------------------------- */
body > .container,
.site-header + .container {
  padding-top: 28px;
  padding-bottom: 40px;
}

.widget-main,
.widget-item,
.box-content-inner,
.list-event-item .box-content-inner,
.gallery-content,
.blog-post-inner,
.course-details,
.contact-page-content,
.event-container,
.page-title {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}

.widget-main,
.widget-item {
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease;
}

.widget-main:hover,
.widget-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.widget-main-title {
  background: linear-gradient(180deg, var(--soft-2), #fff) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 16px 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.widget-main-title .widget-title {
  font-size: 18px !important;
  margin: 0 !important;
}

.widget-main-title a .widget-title,
.widget-main-title h6.widget-title {
  font-family: var(--font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
  color: var(--crimson) !important;
  margin: 0 !important;
}

.widget-inner {
  padding: 16px 18px 18px !important;
}

.widget-item {
  padding: 22px 24px !important;
}

.widget-item p,
.widget-item strong {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

/* News / books lists — keep left thumb + right text */
.blog-list-post,
.event-small-list,
.prof-list-item {
  border-color: var(--line) !important;
  padding: 12px 0 !important;
  transition: background 0.25s ease;
}

.blog-list-post:hover,
.event-small-list:hover {
  background: rgba(185, 28, 28, 0.03);
}

.blog-list-thumb img,
.calendar-small img,
.thumb-small-gallery img,
.gallery-thumb img,
.list-event-thumb img,
.prof-details img {
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(31, 26, 26, 0.08);
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease;
}

.calendar-small img {
  width: 65px !important;
  height: 65px !important;
  object-fit: cover;
}

.blog-list-thumb a:hover img,
.calendar-small a:hover img,
.thumb-small-gallery a:hover img,
.gallery-item:hover .gallery-thumb img,
.list-event-thumb a:hover img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 28px rgba(92, 26, 31, 0.16);
}

.blog-list-title a,
.event-small-title a,
.event-title a {
  color: var(--burgundy) !important;
  font-size: 15px;
}

.blog-list-title a:hover,
.event-small-title a:hover,
.event-title a:hover {
  color: var(--crimson) !important;
}

.blog-list-meta,
.event-small-meta,
.event-date {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.calendar-small {
  background: var(--soft) !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Campus logos row */
.our-campus ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 6px 0;
}

.our-campus li {
  list-style: none;
}

.our-campus img {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease;
}

.our-campus a:hover img {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Sidebar professor banners */
.prof-details {
  text-align: center;
}

.prof-details img {
  width: 100% !important;
  max-width: 280px;
  height: auto !important;
  margin: 0 auto 12px;
}

/* Gallery grid */
.gallery-item {
  margin-bottom: 22px;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-thumb {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.gallery-thumb img {
  width: 100%;
  height: 160px !important;
  object-fit: cover;
}

.gallery-content {
  border-radius: 0 0 14px 14px !important;
  border-top: 0 !important;
  padding: 12px 10px !important;
}

.gallery-title {
  font-size: 14px !important;
  margin: 0 !important;
}

.thumb-small-gallery {
  overflow: hidden;
  border-radius: 10px;
}

/* News list cards */
.list-event-item {
  margin-bottom: 18px;
}

.list-event-item .box-content-inner {
  padding: 18px !important;
}

.lightBtn,
.mainBtn,
.view-details .lightBtn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  background: var(--crimson) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.2);
}

.lightBtn:hover,
.mainBtn:hover,
.view-details .lightBtn:hover {
  background: var(--crimson-2) !important;
  color: #fff !important;
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
  background:
    linear-gradient(180deg, rgba(92, 26, 31, 0.96), rgba(61, 14, 18, 0.98)) !important;
  color: rgba(255, 245, 245, 0.82) !important;
  border-top: 0 !important;
  margin-top: 20px;
  padding-top: 42px;
}

.footer-widget-title {
  color: #fff !important;
  font-size: 16px !important;
  margin-bottom: 14px !important;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.site-footer a {
  color: rgba(255, 245, 245, 0.88) !important;
}

.site-footer a:hover {
  color: #fff !important;
}

.list-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-links li {
  margin-bottom: 8px;
}

.list-links a {
  font-size: 13px;
}

.bottom-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin-top: 28px;
  padding-top: 18px;
  padding-bottom: 24px;
}

.bottom-footer .small-text,
.footer-nav a {
  color: rgba(255, 245, 245, 0.7) !important;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.footer-nav li {
  display: inline-block;
  margin-left: 14px;
}

.footer-nav li:not(:first-child):before {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* -------------------------------------------------------------------------- */
/* Motion                                                                     */
/* -------------------------------------------------------------------------- */
@keyframes tdauia-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.site-header {
  animation: tdauia-rise 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

.col-md-8 > .row > .col-md-12 > .widget-item,
.widget-main {
  animation: tdauia-rise 0.65s cubic-bezier(.22, 1, .36, 1) both;
}

.col-md-8 .widget-main:nth-child(1) { animation-delay: 0.05s; }
.col-md-8 .widget-main:nth-child(2) { animation-delay: 0.12s; }
.col-md-4 .widget-main:nth-child(1) { animation-delay: 0.1s; }
.col-md-4 .widget-main:nth-child(2) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .widget-main:hover,
  .widget-item:hover,
  .gallery-item:hover,
  .blog-list-thumb a:hover img,
  .our-campus a:hover img {
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Responsive polish                                                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-header .logo img {
    max-height: 64px;
  }
  .main-menu > li > a {
    padding: 12px 8px !important;
    font-size: 12px !important;
  }
  .footer-nav {
    text-align: left;
    margin-top: 12px;
  }
  .footer-nav li {
    margin-left: 0;
    margin-right: 12px;
  }
}

@media (max-width: 767px) {
  body > .container {
    padding-top: 18px;
  }
  .widget-main-title {
    flex-wrap: wrap;
  }
  .our-campus img {
    width: 78px !important;
    height: 78px !important;
  }
}
