/* ================================================================
   style.css — WeSchool Bangalore LRC  |  Redesigned
   Aesthetic: Refined Academic — deep navy anchor, teal accent,
   warm ivory content areas, Playfair Display + Source Sans 3
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&family=Oswald:wght@400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:      #0D2B45;
  --teal:      #0088BD;
  --teal-dark: #006A94;
  --teal-lite: #E8F6FB;
  --red:       #AA0000;
  --red-soft:  #fdf0f0;
  --green:     #2E7D32;
  --green-lite:#E8F5E9;
  --ivory:     #FAFAF8;
  --warm-gray: #F4F2EE;
  --border:    #DDD9D0;
  --text:      #2C2C2C;
  --muted:     #6B6460;
  --white:     #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(13,43,69,.08);
  --shadow-md: 0 6px 24px rgba(13,43,69,.12);
  --shadow-lg: 0 16px 48px rgba(13,43,69,.16);
  --radius:    8px;
  --radius-lg: 14px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ================================================================
   RESET / BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--ivory);
  padding-top: 68px;
  line-height: 1.65;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

a             { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover,
a:focus       { color: var(--teal-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ================================================================
   NAVBAR  — dark teal, logo left, links always in one horizontal row
   ================================================================ */
.navbar-inverse {
  background: var(--navy) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1030;
  min-height: 56px;
}

/* Force the inner container to be flex so logo + links sit side-by-side */
.navbar-inverse > .container {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

/* Brand / logo */
.navbar-inverse .navbar-header {
  float: none;
  flex-shrink: 0;
}
.navbar-inverse .navbar-brand {
  padding: 8px 15px;
  height: 56px;
  display: flex;
  align-items: center;
  float: none;
}
.navbar-inverse .navbar-brand img {
  width: 200px;
  padding-top:10px;
  height: auto;
  filter: brightness(1.15);
}

/* Hide the hamburger — links always visible */
.navbar-toggle { display: none !important; }

/* Collapse is always open / always horizontal */
.navbar-collapse,
.navbar-collapse.collapse,
.navbar-collapse.in {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  height: auto !important;
  overflow: visible !important;
}

/* The <ul> itself */
.navbar-inverse .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  margin: 0;
  float: none !important;
}

/* Each nav item — inline */
.navbar-inverse .navbar-nav > li {
  float: none !important;
  display: inline-block;
}

/* Nav links */
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-nav > li.c1 a,
.navbar-inverse .navbar-nav > li.c2 a,
.navbar-inverse .navbar-nav > li.c3 a,
.navbar-inverse .navbar-nav > li.c4 a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85) !important;
  padding: 18px 16px;
  white-space: nowrap;
  background: transparent !important;
  transition: var(--transition);
}

/* Hover */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li.c1 a:hover,
.navbar-inverse .navbar-nav > li.c2 a:hover,
.navbar-inverse .navbar-nav > li.c3 a:hover,
.navbar-inverse .navbar-nav > li.c4 a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  border-radius: 4px;
}

/* Active — solid teal highlight */
.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > li.c1.active > a,
.navbar-inverse .navbar-nav > li.c2.active > a,
.navbar-inverse .navbar-nav > li.c3.active > a,
.navbar-inverse .navbar-nav > li.c4.active > a,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: #fff !important;
  background: var(--teal) !important;
  border-radius: 4px;
}

/* ================================================================
   CAROUSEL / HEADER  (#head, .carousel-box)
   ================================================================ */
#head {
  position: relative;
  overflow: hidden;
  height: auto;
  
}

.carousel-box {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(13,43,69,.55));
  pointer-events: none;
  z-index: 5;
}

.carousel-item img,
.carousel-box .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(.88);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
  transition: var(--transition);
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; background: rgba(0,136,189,.6); }

.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  margin: 0 4px;
  transition: var(--transition);
}
.carousel-indicators .active { background: var(--teal); transform: scale(1.3); }

/* ================================================================
   TAG LINE STRIP
   ================================================================ */
.tag-line {
  background: var(--navy);
  padding: 16px 0 14px;
  text-align: center;
  border-bottom: 3px solid var(--teal);
  position: relative;
  z-index: 10;
}
.tag-line h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.tag-line p {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  letter-spacing: .3px;
}
.tag-line .fa { color: var(--teal); font-size: 11px; }

/* ================================================================
   INTRO  (#features-sec, .header-line)
   ================================================================ */
#features-sec {
  background: var(--white);
  padding: 56px 15px 40px;
  border-bottom: 1px solid var(--border);
}

.header-line {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.header-line::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--red));
  border-radius: 2px;
  margin: 10px auto 0;
}

#features-sec p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 740px;
  margin: 18px auto 0;
}


/* ================================================================
   E-RESOURCES SECTION  (.collapsible, .content)
   ================================================================ */
section.container { padding: 0 15px 20px; }
section.container #res { padding-top: 10px; }
section.container h3 u {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}
section.container h3 {
  text-align: center;
}

.collapsible {
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  padding: 16px 20px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-bottom: 2px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.collapsible .fa {
  float: right;
  margin-top: 2px;
  transition: transform .3s ease;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.collapsible:hover { background: var(--teal-dark); }
.collapsible.active { background: var(--teal); border-radius: var(--radius) var(--radius) 0 0; }
.collapsible.active .fa { transform: rotate(180deg); color: #fff; }

.content {
  display: none;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.content .list-group-item {
  border: none;
  border-bottom: 1px solid var(--warm-gray);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}
.content .list-group-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.content .list-group-item:last-child { border-bottom: none; }
.content .list-group-item:hover {
  background: var(--teal-lite);
  color: var(--navy);
  padding-left: 28px;
}

/* Marquee strip */
marquee {
  background: #fff8f0;
  border-left: 4px solid var(--red);
  color: #8B0000;
  font-size: 13px;
  padding: 10px 0;
  margin: 6px 0;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
}
marquee a { color: var(--teal); }

/* ================================================================
   OPAC LINK
   ================================================================ */
.opac-link {
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted);
  background: var(--warm-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 10px 0;
}
.opac-link a { color: var(--teal); font-weight: 700; }
.opac-link a:hover { color: var(--teal-dark); }

/* ================================================================
   RESOURCE BOXES  (.resources-container, .management-box, .resource-box)
   ================================================================ */
.resources-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 36px 24px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--ivory);
}

/* Shared card */
.management-box,
.resource-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.management-box::before,
.resource-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.management-box:hover,
.resource-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal);
}

.management-box h4,
.resource-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.management-box ul,
.resource-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.management-box ul li,
.resource-box ul li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--warm-gray);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.management-box ul li::before,
.resource-box ul li::before {
  content: '›';
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  flex-shrink: 0;
}
.management-box ul li:last-child,
.resource-box ul li:last-child { border-bottom: none; }
.management-box ul li a,
.resource-box ul li a { color: var(--text); font-weight: 400; }
.management-box ul li a:hover,
.resource-box ul li a:hover { color: var(--teal); text-decoration: none; }

/* ================================================================
   FEEDBACK  (.feedback-section, .feedback-btn)
   ================================================================ */
.feedback-section {
  text-align: center;
  padding: 32px 0 24px;
  background: var(--ivory);
}
.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--green), #1B5E20);
  color: #fff;
  border-radius: 50px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(46,125,50,.35);
  transition: var(--transition);
}
.feedback-btn:hover,
.feedback-btn:focus {
  background: linear-gradient(135deg, #388E3C, var(--green));
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,125,50,.45);
}

/* ================================================================
   FOOTER  (#footer, .contact-four-columns, .contact-box, .footer-bottom)
   ================================================================ */
#footer {
  background: var(--navy);
  margin-top: 0;
  padding: 48px 0 0;
  color: rgba(255,255,255,.85);
}

#footer .container > h3 {
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .6;
}

#footer .container > h3 a#contact { color: #fff; }

#footer hr {
  border-color: rgba(255,255,255,.12);
  margin: 8px 0 32px;
}

.contact-four-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}

.contact-box {
  flex: 1 1 200px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}
.contact-box:hover {
  background: rgba(0,136,189,.15);
  border-color: rgba(0,136,189,.35);
}

ul.menu     { padding: 0; }
.menu li    { padding: 6px 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 10px; }
.menu li .fa { color: var(--teal); font-size: 13px; flex-shrink: 0; }
.menu li a  { color: rgba(255,255,255,.85); }
.menu li a:hover { color: #fff; text-decoration: underline; }

footer ul li { list-style: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  background: rgba(0,0,0,.15);
}
.footer-bottom p   { margin: 3px 0; }
.footer-bottom strong { color: rgba(255,255,255,.7); }
.footer-bottom .fa { color: var(--teal); }

/* Visit counter */
#visit-count {
  font-weight: 700;
  color: var(--teal);
}

/* ================================================================
   PAGE ENTRY ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tag-line        { animation: fadeUp .5s ease both; }
#features-sec    { animation: fadeUp .6s .1s ease both; }
#onos-finder     { animation: fadeUp .6s .2s ease both; }
.resources-container { animation: fadeUp .6s .3s ease both; }

/* ================================================================
   MISC
   ================================================================ */
.reslist { margin-bottom: 10px; }

.no-resources {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px;
}

/* Scroll margin for anchor links */
#res, #contact { scroll-margin-top: 80px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .carousel-item img,
  .carousel-box .carousel-item img { height: 380px; }
}

@media (max-width: 768px) {
  body { padding-top: 60px; }

  .carousel-item img,
  .carousel-box .carousel-item img { height: 260px; }

  .carousel-box::after { height: 60px; }

  #head.secondary { height: 80px; min-height: 80px; }

  .navbar-inverse .navbar-brand img { width: 65px; }

  .navbar-inverse .navbar-nav > li > a,
  .navbar-inverse .navbar-nav > li.c1 a,
  .navbar-inverse .navbar-nav > li.c2 a,
  .navbar-inverse .navbar-nav > li.c3 a,
  .navbar-inverse .navbar-nav > li.c4 a {
    font-size: 11px;
    padding: 14px 10px;
    letter-spacing: .6px;
  }

  .tag-line h3 { font-size: 1.1rem; }

  #features-sec { padding: 36px 15px 28px; }
  .header-line  { font-size: 1.5rem; }

  #onos-finder  { margin: 24px 12px; padding: 20px 16px; }
  #onos-q       { width: 100%; }

  .resources-container  { padding: 24px 12px; flex-direction: column; align-items: center; }
  .management-box,
  .resource-box         { max-width: 100%; }

  .contact-four-columns { flex-direction: column; gap: 16px; }
  .contact-box          { padding: 16px; }
}

@media (max-width: 480px) {
  .carousel-item img,
  .carousel-box .carousel-item img { height: 200px; }

  .header-line { font-size: 1.3rem; }

  .feedback-btn { padding: 12px 24px; font-size: 14px; }

  #footer { padding: 36px 0 0; }
}
