/* ==========================================================================
   THEME REFRESH — BLDEA's Basaveshwar Arts & Commerce College
   A modern layer on top of style.css, loaded AFTER it so these rules win.

   Palette: deep burgundy/maroon + warm gold — a distinct, heritage-academic
   look, deliberately different from the navy/gold used on the Nursing
   Institute site so the two colleges don't look like copies of each other.
   ========================================================================== */

:root{
  --maroon:       #7a1f2b;
  --maroon-dark:  #52141d;
  --maroon-light: #9c2c3b;
  --gold:         #c9962e;
  --gold-light:   #e0b25a;
  --ink:          #241417;
  --muted:        #6b5a5d;
  --bg-soft:      #faf6f2;
  --white:        #ffffff;
  --radius:       14px;
  --shadow-sm:    0 4px 14px rgba(122,31,43,.10);
  --shadow-md:    0 10px 30px rgba(122,31,43,.16);
  --shadow-lg:    0 20px 48px rgba(122,31,43,.24);
}

/* -------------------------------------------------- Base type & headings */
body{ color: var(--ink); -webkit-font-smoothing: antialiased; }

h1, h2, h3,
.about-title, .title-default-left, .title-default-center,
.legacy h2{
  font-family: 'Playfair Display', 'Roboto', serif;
  color: var(--maroon);
}

.title-default-left, .title-default-center{
  font-weight: 700;
  position: relative;
  padding-bottom: 14px;
}
.title-default-left::after{
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  border-radius: 3px;
}
.title-default-center::after{
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  border-radius: 3px;
}

/* -------------------------------------------------- Masthead — kept LIGHT
   so the logo (which needs a pale background) stays fully visible. Do not
   put a dark/colored background on .header-top-area — it wraps the logo
   row, not just a thin utility strip. */
.header2-area .header-top-area{
  background: var(--white) !important;
}
.header2-area .header-top-area .header-top-left ul li a,
.header2-area .header-top-area .header-top-right ul li a{
  color: var(--maroon) !important;
  transition: color .2s ease;
}
.header2-area .header-top-area .header-top-left ul li:hover a,
.header2-area .header-top-area .header-top-right ul li a:hover{
  color: var(--gold) !important;
}

.logo-txt h3{
  font-family: 'Playfair Display', serif;
  color: var(--maroon);
}
.logo-dist{ color: var(--gold) !important; }

/* -------------------------------------------------- Main navigation */
.main-menu-area.bg-primary{
  background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-light) 100%) !important;
  box-shadow: 0 4px 16px rgba(122,31,43,.20);
}

nav#desktop-nav ul li a{
  color: #fbeeee !important;
  font-weight: 500;
  transition: color .2s ease;
}
nav#desktop-nav ul li a:hover,
nav#desktop-nav ul li .active a{
  color: var(--gold-light) !important;
}
nav#desktop-nav ul li > ul{
  background: var(--white) !important;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: none !important;
}
nav#desktop-nav ul li > ul > li > a{
  color: var(--ink) !important;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
nav#desktop-nav ul li > ul > li:hover a,
nav#desktop-nav ul li > ul > li .active a{
  background: var(--bg-soft) !important;
  color: var(--maroon) !important;
  padding-left: 22px !important;
}
nav#desktop-nav ul li > ul > li:hover a:before,
nav#desktop-nav ul li > ul > li .active a:before{
  border-color: var(--gold) !important;
}

/* Mobile / meanmenu */
.mean-container .mean-bar,
.mean-container .mean-nav{
  background: var(--maroon) !important;
}
.mean-container .mean-nav ul li a{
  color: #fbeeee !important;
  border-top-color: rgba(255,255,255,.10) !important;
}
.mean-container .mean-nav ul li a:hover{ color: var(--gold-light) !important; }
.meanmenu-reveal span{ background: #fff !important; }

/* -------------------------------------------------- Buttons / CTAs */
.view-all-accent-btn{
  display: inline-block;
  background: var(--maroon) !important;
  color: #fff !important;
  border-radius: 30px !important;
  padding: .6rem 1.6rem !important;
  font-weight: 600;
  border: none !important;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-sm);
}
.view-all-accent-btn:hover{
  background: var(--gold) !important;
  color: var(--maroon-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary{
  background: var(--maroon) !important;
  border-color: var(--maroon) !important;
  border-radius: 30px !important;
  font-weight: 600;
  padding: .55rem 1.6rem !important;
  transition: background .25s ease, transform .2s ease;
}
.btn-primary:hover{
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--maroon-dark) !important;
  transform: translateY(-2px);
}

/* -------------------------------------------------- About section */
.about1-area{ padding-top: 50px !important; }
.about-title{ font-weight: 700; }
.about-sub-title{ color: var(--muted) !important; line-height: 1.75; max-width: 900px; margin: 0 auto; }

/* -------------------------------------------------- Video / BLDE Association section */
.video-section{ background: var(--bg-soft) !important; }
.video-area iframe{
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.video-area img{
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.video-sub-title{ color: var(--muted) !important; line-height: 1.7; }

/* -------------------------------------------------- News & Events gallery */
.gallery-box{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-box:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.gallery-box:before{
  background-color: rgba(122,31,43,.80) !important;
}
.gallery-box .gallery-content a{
  background-color: var(--gold) !important;
}
.gallery-box .gallery-content a i{ color: var(--maroon-dark) !important; }

/* -------------------------------------------------- Legacy section */
.legacy{ background: var(--white) !important; }
.legacy h2{ font-weight: 700; }
.legacy-p{ color: var(--muted); line-height: 1.75; }
.legacy-p a{ color: var(--maroon); font-weight: 600; }
.legacy-p a:hover{ color: var(--gold); }
.legacy img{
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.legacy img:hover{ transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-md); }
.legacy p b{ color: var(--maroon); }

/* -------------------------------------------------- Footer */
.footer-form-box{ background: var(--maroon-dark) !important; padding-top: 55px; }
.footer-box h3{
  color: var(--gold-light) !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.footer-box h3::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--gold-light);
  border-radius: 3px;
}
.footer-about p{ color: #f3e4e6 !important; line-height: 1.7; }
.footer-about strong{ color: var(--gold-light) !important; }

.footer-area-top .featured-links > li ul li a{
  color: #f3e4e6 !important;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-area-top .featured-links > li ul li a:hover{
  color: var(--gold-light) !important;
  padding-left: 4px;
}

.footer-social li a{
  background: rgba(255,255,255,.10) !important;
  transition: background .2s ease, transform .2s ease;
}
.footer-social li a:hover{
  background: var(--gold-light) !important;
  transform: translateY(-3px);
}
.footer-social li a:hover i{ color: var(--maroon-dark) !important; }

.footer-box iframe{
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.footer-area-bottom{ background: var(--maroon-dark) !important; border-top: 1px solid rgba(255,255,255,.10); }
.footer-area-bottom p{ color: #efdfe1 !important; }
.footer-area-bottom p a{ color: var(--gold-light) !important; }

/* -------------------------------------------------- Notifications modal */
#notificationModal .modal-header{
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light)) !important;
}

/* -------------------------------------------------- Reveal-on-scroll */
.reveal-up{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HOMEPAGE REDESIGN — hero caption, about highlight card, feature cards,
   bento news grid, legacy timeline
   ========================================================================== */

/* ---- Hero overlay caption ---- */
.slider1-area{ position: relative; }
.hero-caption{
  position: absolute;
  left: 0; right: 0;
  bottom: 8%;
  z-index: 20;
  text-align: center;
  padding: 0 20px;
}
.hero-eyebrow{
  display: inline-block;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.hero-title{
  font-family: 'Playfair Display', serif;
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
  max-width: 820px;
  margin: 0 auto 26px;
}
.hero-cta{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn-outline{
  display: inline-block;
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 30px;
  padding: .55rem 1.7rem;
  font-weight: 600;
  transition: background .25s ease, transform .2s ease, border-color .2s ease;
}
.hero-btn-outline:hover{
  background: #fff;
  color: var(--maroon) !important;
  border-color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
@media (max-width: 767px){
  .hero-caption{ bottom: 5%; }
  .hero-eyebrow{ font-size: 11px; padding: 5px 14px; margin-bottom: 12px; }
}

/* ---- About: elevated highlight card ---- */
.about-card{
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--gold);
  padding: 48px 50px;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.about-card-icon{
  position: absolute;
  top: 18px;
  right: 30px;
  font-size: 64px;
  color: var(--bg-soft);
  z-index: 0;
}
.about-card .about-title,
.about-card .about-sub-title,
.about-card .news-btn-holder{
  position: relative;
  z-index: 1;
}
.about-card .about-title{ text-align: left; margin-bottom: 18px; }
.about-card .about-sub-title{ text-align: left; max-width: none; margin: 0 0 24px; }
.about-card .news-btn-holder{ text-align: left; }

/* ---- Feature cards (BLDE Association columns) ---- */
.video-area .feature-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  height: 100%;
  transition: box-shadow .3s ease, transform .3s ease;
  counter-increment: feature-counter;
  position: relative;
}
.video-area .feature-card:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.video-area .feature-card::before{
  content: counter(feature-counter, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  opacity: .55;
}
.video-area .row{ counter-reset: feature-counter; }
.video-area .feature-card img{
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

/* ---- News & Events: bento grid ---- */
.bento-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.bento-gallery > div{
  width: auto;
  padding: 0;
  min-height: 0;
}
.bento-gallery .gallery-box{ height: 100%; margin-bottom: 0; }
.bento-gallery .gallery-box img{ height: 100% !important; }
.bento-gallery > div:first-child{
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 991px){
  .bento-gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .bento-gallery > div:first-child{ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 575px){
  .bento-gallery{ grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-gallery > div:first-child{ grid-column: span 1; }
}

/* ---- Legacy: timeline strip ---- */
.timeline-row{ position: relative; }
.timeline-row .text-center img{
  border: 4px solid var(--white);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
@media (min-width: 768px){
  .timeline-row .col-md-4 > .text-center::before{
    content: "";
    position: absolute;
    top: 60px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
    z-index: -1;
  }
  .timeline-row .col-md-4:first-child .text-center::before{ display: none; }
}

/* -------------------------------------------------- Responsive tweaks */
@media (max-width: 991px){
  .logo-txt h3{ font-size: 19px !important; }
}
