/*
Theme Name: KNB Arts Theme
Theme URI: http://localhost/knbarts
Author: Antigravity
Author URI: http://localhost/knbarts
Description: Rebuilt clean UI for Krantiveer Navalbhau Arts College, Navalnagar.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knb-theme
*/

/* --- Design Tokens --- */
:root {
  --primary-color: #21446b;
  --primary-dark: #16304d;
  --primary-light: #2c598a;
  --accent-color: #f0a020;
  --accent-red: #b32d29;
  --bg-color: #f4f6f9;
  --card-bg: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.25s ease-in-out;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #f0f4f8;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-red);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Header & Top Banner --- */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 3px solid var(--primary-color);
  position: relative;
  z-index: 100;
}

.top-banner {
  background: linear-gradient(to right, #dbf8f6, #dbf3fd);
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-banner-link {
  display: block;
  width: 100%;
}

.header-banner-img {
  max-width: 1420px;
  width: 100%;
  height: 155px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.header-logo-left, .header-logo-right {
  flex-shrink: 0;
}

.header-logo-left img, .header-logo-right img {
  display: block;
  max-height: 110px;
  width: auto;
}

.header-title-container {
  flex-grow: 1;
  text-align: left;
  padding-left: 10px;
}

.header-title-marathi-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 2px;
}

.header-title-marathi-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}

.header-title-english-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #21446b;
  margin-top: 2px;
  line-height: 1.2;
}

/* --- Navigation --- */
.navigation-bar {
  background-color: var(--primary-color);
  position: relative;
  z-index: 1000;
}

.menu-toggle {
  display: none;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 10px 16px;
  color: var(--text-white);
  font-family: 'Poppins', var(--font-family);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: capitalize;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

/* Hover & Active States — Yellow Gold */
.main-navigation a:hover,
.main-navigation li:hover > a,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a,
.main-navigation li.current-menu-parent > a,
.main-navigation li.current-menu-ancestor > a {
  background-color: #facf31 !important;
  color: #0e0303 !important;
}

/* ===== LEVEL 2 — First Dropdown ===== */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 230px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  border-top: 3px solid #facf31;
  border-radius: 0 0 4px 4px;
}

.main-navigation ul ul li {
  width: 100%;
  position: relative;
}

.main-navigation ul ul a {
  color: #e8edf3 !important;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background-color: transparent !important;
  white-space: nowrap;
  line-height: 1.4;
}

.main-navigation ul ul li:last-child > a {
  border-bottom: none;
}

/* Hover for level 2 items */
.main-navigation ul ul li:hover > a {
  background-color: rgba(255,255,255,0.12) !important;
  color: #facf31 !important;
  padding-left: 24px;
}

/* ===== LEVEL 3 — Sub-submenu (opens RIGHT) ===== */
.main-navigation ul ul ul {
  position: absolute;
  top: 0;                    /* align with parent item top */
  left: 100%;                /* open to the RIGHT */
  border-top: 3px solid #facf31;
  border-radius: 0 4px 4px 4px;
  z-index: 1002;
  box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.3);
  display: none;
  min-width: 220px;
}

/* If near right edge — flip to open LEFT */
.main-navigation ul ul li:hover > ul {
  display: flex;
}

/* ===== SHOW dropdowns on hover ===== */
.main-navigation li:hover > ul {
  display: flex;
}

/* ===== ARROWS ===== */
/* Level 1 items with children — down arrow ▾ */
.main-navigation ul li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.75rem;
  vertical-align: middle;
  opacity: 0.85;
}

/* Level 2 items with children — right arrow ▸ */
.main-navigation ul ul li.menu-item-has-children > a::after {
  content: ' ▸';
  font-size: 0.75rem;
  float: right;
  margin-left: 8px;
  opacity: 0.85;
}


/* ============================================
   HERO SECTION — 2-Column Split Hero Card
   ============================================ */
.hero-section {
  padding: 30px 0;
  background-color: #f0f4f8;
}

/* Outer wrapper that makes both panels appear as ONE connected card */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background-color: #172033;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  min-height: 480px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  min-height: 480px;
}

/* ===== SLIDER ===== */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* All slides stacked absolutely */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 1;
}

/* Active slide */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Real college building photo fills the left panel */
.hero-building-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content-box {
  color: var(--text-white);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-college-name {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.hero-headline {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-description {
  color: #bdc3c7;
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Solid filled button — HRSP's orange primary button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  background-color: var(--accent-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 40px;
  border: 2px solid var(--accent-red);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.btn-hero-primary:hover {
  background-color: #92201c;
  border-color: #92201c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 45, 41, 0.45);
}

/* Dark ghost button — HRSP's semi-dark secondary button */
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background-color: rgba(30, 30, 30, 0.65);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* ===== SLIDER ARROWS ===== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ===== SLIDER DOTS ===== */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.25);
}

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


.btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
}

/* Red button matching screenshot 1 */
.btn-accent {
  background-color: var(--accent-red);
  color: var(--text-white);
}

.btn-accent:hover {
  background-color: #92201c;
  transform: translateY(-1px);
}

/* Transparent outline button matching screenshot 1 */
.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--text-white);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: #162433;
  transform: translateY(-1px);
}

/* --- Main Content Section --- */
.main-content-section {
  padding: 20px 0 20px 0;
  background-color: #f0f4f8;
}

.main-content-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 25px;
}

.notice-events-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
}

/* --- Content Cards --- */
.content-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e1e8ed;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #21446b;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

/* --- Principal Desk --- */
.principal-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principal-avatar {
  width: 140px;
  height: 160px;
  border: 1px solid #cbd5e0;
  background-color: #f7fafc;
  overflow: hidden;
  flex-shrink: 0;
}

.principal-bio {
  font-size: 0.95rem;
  color: #333333;
}

.principal-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #21446b;
  margin-top: 12px;
}

.principal-title {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.read-more-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-red);
  font-size: 0.9rem;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* --- Notice Board --- */
.notice-list {
  list-style: none;
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.notice-item:first-child {
  padding-top: 0;
}

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

.notice-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  display: block;
  margin-bottom: 2px;
}

.notice-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.notice-badge {
  display: inline-block;
  background-color: var(--accent-red);
  color: var(--text-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
}

.view-all-link {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-red);
  font-size: 0.85rem;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* --- News and Events --- */
.news-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* --- Quick Links --- */
.quick-links-section {
  padding: 20px 0 30px 0;
  background-color: #e8edf3;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.quick-link-card {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 18px 15px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #c8d4e0;
  font-weight: 700;
  font-size: 1rem;
  color: #21446b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quick-link-card:hover {
  border-color: var(--accent-color);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* --- Campus Life & Flowchart --- */
.campus-life-section {
  padding: 25px 0 40px 0;
  background-color: #f0f4f8;
}

.campus-life-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.campus-life-label {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.campus-life-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #21446b;
  margin-bottom: 15px;
}

.flowchart-container {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #cbd5e0;
}

/* --- Footer --- */
.site-footer {
  background-color: #13273d;
  color: #ecf0f1;
  padding: 50px 0 0 0;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
  align-items: start;
}

/* -- Column shared -- */
.footer-column {
  display: flex;
  flex-direction: column;
}

/* -- Header wrap: logo + title side by side (Column 1) -- */
.footer-header-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 14px;
}

/* -- Header wrap: text only (Columns 2 & 3) -- */
.footer-header-text-only {
  min-height: 80px;
  align-items: flex-end;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #facf31;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

/* Small caption above title */
.footer-title-marathi {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
  font-style: italic;
}

.footer-title-block {
  display: flex;
  flex-direction: column;
}

.footer-title-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
  margin: 0;
}

/* -- Body text -- */
.footer-text {
  font-size: 0.88rem;
  color: #aab8c4;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-affiliation {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}

.footer-affil-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* -- Quick Links list -- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #aab8c4;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

/* -- Contact list with icons -- */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #aab8c4;
  line-height: 1.6;
}

.footer-contact-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

/* -- Bottom copyright bar -- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #8fa5b8;
  margin: 0;
}

.footer-bottom-sub {
  font-size: 0.75rem !important;
  color: #5d7a8f !important;
  margin-top: 4px !important;
}

.footer-bottom a {
  color: #aab8c4;
  text-decoration: underline;
}



/* --- Subpages --- */
.page-header-banner {
  background: transparent;
  color: var(--primary-color);
  padding: 30px 0 5px 0;
  text-align: left;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.page-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
}

.page-breadcrumbs a {
  color: var(--primary-light);
}

.page-content-wrapper {
  padding: 40px 0;
}

.content-rich-text p {
  margin-bottom: 15px;
}

.content-rich-text h3 {
  margin: 20px 0 10px 0;
  color: var(--primary-color);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form-group {
  margin-bottom: 15px;
}

.contact-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.contact-input, .contact-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-input:focus, .contact-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-fullwidth {
    height: 400px;
  }
  .hero-overlay-content {
    width: 90%;
    padding: 0 20px;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .main-content-grid {
    grid-template-columns: 1fr;
  }
  .notice-events-home-grid {
    grid-template-columns: 1fr;
  }
  .campus-life-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-header-text-only {
    min-height: auto;
  }

  /* Mobile nav */
  .nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    position: relative;
    width: 100%;
  }
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
  }
  .menu-toggle .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  .menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .main-navigation {
    display: none;
    width: 100%;
    background-color: var(--primary-dark);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  .main-navigation.is-active {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }
  .main-navigation li {
    width: 100%;
  }
  .main-navigation a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13.5px;
    padding: 12px 18px;
    white-space: normal;
  }
  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background-color: #13263d !important;
    display: none !important;
    width: 100%;
    border-left: 3px solid var(--accent-color);
  }
  .main-navigation ul ul.is-active {
    display: flex !important;
  }
  .main-navigation ul ul a {
    padding-left: 24px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
  .main-navigation ul ul a::before {
    content: '• ';
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.85rem;
  }
  .main-navigation ul ul a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    padding-left: 28px !important;
  }
  /* Level 3 deep sub-menus on mobile */
  .main-navigation ul ul ul {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-left: 3px solid rgba(250, 207, 49, 0.6) !important;
  }
  .main-navigation ul ul ul a {
    padding-left: 38px !important;
    font-size: 12.5px !important;
  }
  .main-navigation ul ul ul a::before {
    content: '↳ ';
    color: var(--accent-color);
    margin-right: 6px;
  }
  .main-navigation ul ul ul a:hover {
    padding-left: 42px !important;
  }
  .main-navigation li.menu-item-has-children > a::after {
    float: right;
    margin-right: 5px;
    transition: transform 0.2s;
  }
  .main-navigation li.menu-item-has-children.is-active > a::after {
    transform: rotate(180deg);
  }
  .main-navigation li:hover > ul {
    display: none !important;
  }
  .main-navigation li:hover > ul.is-active {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .hero-fullwidth {
    height: 320px;
  }
  .hero-overlay-content {
    width: 100%;
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }
  .hero-headline {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .hero-description {
    display: none;
  }
  .hero-college-name {
    font-size: 0.72rem;
    margin-bottom: 6px;
    letter-spacing: 2px;
  }
  .hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .hero-buttons a {
    width: auto;
    flex: 1;
    max-width: 180px;
    padding: 10px 12px;
    font-size: 0.8rem;
    text-align: center;
    box-sizing: border-box;
  }
  .slider-btn {
    display: none !important;
  }
  .top-banner {
    flex-direction: column;
    text-align: center;
  }
  .header-logo-left, .header-logo-right {
    margin: 5px 0;
  }
  .header-title-marathi-main {
    font-size: 1.4rem;
  }
  .header-title-english-main {
    font-size: 1.2rem;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .principal-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-header-wrap {
    justify-content: center;
  }
  .footer-contact-list li {
    justify-content: center;
  }
  .footer-links a {
    padding-left: 0 !important;
  }

  /* Hero card stacks on mobile */
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 240px;
  }
  .hero-building-photo {
    object-position: center 30%; /* show upper part of building on mobile */
  }
  
  /* Responsive Notice & Event Lists */
  .event-archive-item, .notice-archive-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .event-archive-item > div:last-child, .notice-archive-item > div:last-child {
    width: 100%;
  }
  .event-archive-item > div:last-child a, .notice-archive-item > div:last-child a {
    display: flex !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* --- Ticker / Marquee Ticker --- */
.ticker-wrap {
  display: flex;
  align-items: center;
  background-color: #f0f4f8;
  border-bottom: 2px solid #e2e8f0;
  overflow: hidden;
  height: 40px;
}

.ticker-label {
  background-color: #facf31;
  color: #0e0303;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 10;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.ticker-content-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-holder {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 100%;
}

.ticker-holder:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: var(--accent-red);
}

.ticker-new-badge {
  background-color: var(--accent-red);
  color: var(--text-white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
  text-transform: uppercase;
  animation: pulse-badge 1.5s infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes pulse-badge {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* ===== TABLES ===== */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background-color: var(--text-white);
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
  text-align: left;
}

/* Ensure tables have a minimum width on mobile to enable horizontal scrolling instead of squishing */
@media (max-width: 768px) {
  table {
    min-width: 600px;
  }
}

table th, table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

table th {
  background-color: var(--primary-dark);
  color: var(--text-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f1f5f9;
}


