/* ========= BIHS base styles (keep it simple) ========= */

/* 1) Reset + sensible defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.6; color: #0b1a2b; background: #fff; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #0b4dcc; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 2px solid #0b4dcc; outline-offset: 2px; }

/* 2) Design tokens (easy to tweak later) */
:root {
  --bihs-navy: #003366;
  --bihs-navy-900: #022649;
  --bihs-gold: #c79a2b;
  --bihs-sky: #e9f2ff;
  --text: #0b1a2b;
  --muted: #5a6a7a;
  --maxw: 1024px;
  --pad: 1.25rem;
}

/* 3) Layout helpers */
.container { max-width: var(--maxw); margin: 0 auto; padding: var(--pad); }
.section { padding: 2.5rem var(--pad); }
.center { text-align: center; }

/* 4) Typography */
h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .75rem; font-weight: 700; color: var(--bihs-navy-900); }
h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.4rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + .9rem, 1.8rem); }
h3 { font-size: clamp(1.2rem, 1vw + .8rem, 1.4rem); }
p { margin: 0 0 1rem; color: var(--text); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* 5) Header + nav (global, identical on every page) */
.site-header {
  background: var(--bihs-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0; /* Added padding for breathing room */
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* 5a) Header Logo & Right Side */
.site-logo a {
  display: block;
}
.site-logo img {
  max-height: 95px; /* Adjust height as needed */
  width: auto;
}

/* Container for nav and social links */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligns this block to the right */
  gap: 0.5rem;
}

/* Social icon styles */
.social-nav {
  display: flex;
  gap: 1rem;
}
.social-nav a {
  color: #fff;
  opacity: 0.2;
  text-decoration: none;
  font-size: 1.2rem; /* Example size for icon fonts */
}
.social-nav a:hover,
.social-nav a:focus {
  opacity: 1;
  text-decoration: none;
}

/* 5b) Main Navigation */
.site-nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-nav a {
  color: #fff;
  padding: .4rem .6rem;
  border-radius: .4rem;
  font-size: 1.1rem; /* Slightly larger like screenshot */
}
.site-nav a:hover,
.site-nav a:focus { background: rgba(255,255,255,.14); text-decoration: none; }
.site-nav a.active { background: #fff; color: var(--bihs-navy); font-weight: 600; }

/* 5c) Hero Section */
.hero {
  position: relative;
  background:
    /* FIX: Faded from .35 to .55 opacity */
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55)),
    /* FIX: Added missing / after .. */
    url("../img/BI.front.house.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem var(--pad);
}

/* Styles for text inside the hero */
.hero-content {
  max-width: 800px; /* Constrain text width */
}
.hero-content .hero-intro {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin: 0;
  color: rgba(255,255,255,0.9);
}
.hero-content h1 {
  color: #fff; /* OVERRIDE: default dark heading color */
  font-family: Georgia, "Times New Roman", serif; /* CHANGED: serif font */
  font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem); /* CHANGED: larger font */
  margin: 0.5rem 0 1rem;
}
.hero-content .hero-tagline {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.95);
  margin: 0;
  font-weight: 300;
}

/* 5d) Mobile Stacking */
@media (max-width: 700px){
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    align-items: flex-start;
    margin-top: 1rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem); /* Adjust H1 for mobile */
  }
  .hero-content .hero-tagline {
    font-size: 1.1rem;
  }
}

/* 6) Main content spacing */
main { padding: 1rem 0; }
main .container > *:last-child { margin-bottom: 0; }

/* 7) Buttons (optional) */
.btn { display: inline-block; padding: .6rem 1rem; border-radius: .5rem; font-weight: 600; }

.btn.primary { background: var(--bihs-sky); color: var(--bihs-navy-900); }
.btn.secondary { background: var(--bihs-navy); color: #fff; }
.btn:hover { filter: brightness(0.95); text-decoration: none; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Mobile fix */
@media (max-width: 700px) {
  .button-row {
    flex-direction: column;
    align-items: center;
  }

  .button-row .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
/* 8) Footer */
.site-footer {
  /* CONFIRMED: This uses the correct variable */
  background: var(--bihs-navy);
  color: #c9d4e6;
  padding: 1rem 2rem;
  text-align: center;
}
.site-footer a {
  color: #c9d4e6;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* 9) Simple grid helpers (use if you want) */
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* add this line */
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* and update media query to include .four */
@media (max-width: 800px){
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
}


/* 10) Footer Social Icons */
.site-footer .social-nav {
  justify-content: center; /* Center the icons */
  margin-bottom: 1rem; /* Add space below them */
  font-size: 2.5rem; /* Make them a bit bigger */
}


.site-footer .social-nav a:hover {
  color: #fff; /* Brighten on hover */
}


/* 11) Standardize Image Sizes */
.summary-image img {
  width: 100%;
  height: 290px;    /* CHANGED: Was 350px, now 250px */
  object-fit: cover; /* This prevents any deforming */
}

/* 12) Responsive Video Embeds */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: .5rem; /* Optional: matches your button/image style */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 15) NEW Modern Article Header */
.article-header-modern {
  position: relative; /* Needed for the overlay */
  padding: 5rem 1.5rem; /* Lots of space */
  min-height: 40vh; /* At least 40% of the screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff; /* White text */
  background-size: cover; /* The image covers the whole area */
  background-position: center;
}

/* This adds the dark overlay so the text is readable */
.article-header-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Black, 60% transparent */
  z-index: 1;
}

/* This keeps your text on top of the overlay */
.article-header-modern .container {
  position: relative;
  z-index: 2;
}

.article-header-modern h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem); /* Big title */
  margin-bottom: 0.5rem;
}
.article-header-modern h2 {
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.article-header-modern .author {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

/* This is still your main article content */
.article-content {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  line-height: 1.7;
  font-size: 1.1rem;
}
.article-content p {
  margin-bottom: 1.5rem;
}
/* We don't need the floating speaker image anymore */
.article-speaker-img {
  display: none;
}

.more-articles-link {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}


/* 17) Add Rounded Corners to soften the site */
.btn,
.btn.primary[style*="background: var(--bihs-navy)"] {
  border-radius: .5rem; 
}
.summary-image img {
  border-radius: 8px; 
}
.video-wrapper {
  border-radius: 8px;
}


/* 18) Add Subtle Shadows for depth */
.summary-image img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.video-wrapper {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* This makes your article cards "pop" */
.article-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 19) Modernize Typography (Lighter headings) */
h1, h2 {
  font-weight: 600; /* 700 is bold, 600 is "semi-bold" */
}




/* =================================== */
/* Modern "Fat Footer" Styles          */
/* =================================== */

/* This overrides the old, simple text-align: center */
.site-footer {
  text-align: left;
  padding: 4rem 2rem 2rem; /* More spacing */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 2.5rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* On tablets and desktops, go to 3 columns */
@media (min-width: 600px) {
  .footer-grid {
    /* This creates a 2fr / 1fr / 1fr layout */
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff; /* White heading */
  margin-top: 0;
  margin-bottom: 1rem;
}
.footer-col p {
  color: #c9d4e6; /* Lighter text for the blurb */
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Style the link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #c9d4e6; /* Lighter link color */
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff; /* Bright white on hover */
  text-decoration: underline;
}

/* Style the social icons in the footer */
.site-footer .social-nav {
  justify-content: flex-start; /* Align left */
  margin-bottom: 1rem;
  font-size: 3rem;
  gap: 1.5rem;
}
.site-footer .social-nav a {
  color: #c9d4e6;
  opacity: 1;
}
.site-footer .social-nav a:hover {
  color: #fff;
}

/* The copyright text at the very bottom */
.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #c9d4e6;
  font-size: 0.9rem;
}
.footer-copyright p {
  margin: 0;
}
/* --- Book Cover Fix (for Library/Ethics page) --- */
#books .summary-image {
  max-width: 300px; /* Sets a nice max width */
  margin: 0 auto;   /* Centers it in the column */
}

#books .summary-image img {
  height: auto;         /* Lets the height be natural (portrait) */
  width: 100%;          /* Fit the container width */
  object-fit: contain;  /* THIS IS THE FIX: Show the whole image */
  box-shadow: none;     /* Removes the shadow, which can look odd on a book */
}

/*
  Improves spacing in the Mission/Vision block
*/
.feature-block h2 {
  margin-bottom: 1rem;
}
/* --- Light-Blue Title Sections --- */
/* This is the short padding you want */
.feature-block {
  background: var(--bihs-sky);
  padding: 1.5rem var(--pad); 
}

/* --- White Content Sections --- */
/* This is the tall, modern padding */
.summary-block {
  background: #fff;
  padding: 1.5rem var(--pad); 
}
/* =================================== */
/* FIX: Course Page Image (Text Wrap)  */
/* =================================== */

/* This rule makes the image float to the left */
#courses-page .summary-image {
  float: left;
  max-width: 400px; /* Adjust this width as needed */
  margin-right: 1.5rem; /* Space between image and text */
  margin-bottom: 0.5rem; /* Space below image */
}

/* This rule makes the image inside it look good */
#courses-page .summary-image img {
  height: auto; /* Lets the height be natural */
  object-fit: cover; /* This makes it look sharp */
  border-radius: 8px; /* Keeps the modern corner */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Keeps the shadow */
}

/* This is a helper to stop the wrap */
.clear-float {
  clear: both;
}


/* 14) Article List Page Style */
.article-entry {
  padding-bottom: 1rem; /* Space under the button */
  margin-bottom: 1rem; /* Space before the next line */
  border-bottom: 1px solid #e0e0e0; /* A clean separator line */
}
/* Prevents a double line on the last article */
.article-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* =================================== */
/* Modern Article Card Styles          */
/* For use on specific pages only      */
/* =================================== */

.article-card-grid {
  display: grid;
  /* This creates 1 column on mobile, 2 on tablets, and 3 on desktops */
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 1.5rem auto 0; /* Adds space above the grid */
}

/* NEW 2-COLUMN RULE:
  On any screen wider than 550px, it will be a 2-column grid.
*/
@media (min-width: 550px) {
  .article-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* The Card Itself */
.modern-article-card {
  background: #F0FFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Modern shadow */
  overflow: hidden; /* Keeps the image corners rounded */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.modern-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 1. The Main Image */
.card-image-wrap {
  position: relative; /* This is the key to placing elements on top */
  width: 100%;
  height: 200px; /* All cards have a consistent image height */
  background-size: cover;
  background-position: center;
}


/* 2. The Author Picture */
.card-author-img {
  position: absolute;
  bottom: -30px; /* Pulls the image down so it overlaps */
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  z-index: 2; /* Sits on top of everything */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* 3. The "Tag" Word */
.card-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 51, 102, 0.8); /* Your Navy color, semi-transparent */
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
/* The Text Content */
.card-content {
  padding: 20px;
  padding-top: 45px; /* CRITICAL: Adds space for the author pic */
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bihs-navy-900);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1; /* Ensures all blurbs take same space */
}
.card-content .btn {
  margin-top: auto; /* Pushes the button to the bottom */
}
/* =================================== */
/* FIX: Course Page Image (No Crop)    */
/* =================================== */
#courses-page .summary-image img { /* <-- THIS LINE HAS A TYPO */
  height: auto;
  object-fit: contain;
  box-shadow: none;
}
/* =================================== */
/* Team Profile Card Styles            */
/* =================================== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.profile-card {
  text-align: center; /* Centers the text and image */
}

.profile-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bihs-navy-900);
  margin-bottom: 0.25rem;
}
.profile-card p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}
.profile-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  display: block;       /* <-- ADD THIS LINE */
  margin-left: auto;   /* <-- ADD THIS LINE */
  margin-right: auto;  /* <-- ADD THIS LINE */
}


.course-brochure {
  padding: 3rem 1.5rem;
  background: #ffffff;
}

.course-brochure .container {
  max-width: 900px;
  margin: 0 auto;
}

.course-brochure-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.course-brochure-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--bihs-navy);
}

.course-brochure-header h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.course-brochure-header .course-subtitle {
  font-style: italic;
  color: #4b5563;
}

.course-section {
  margin-bottom: 2rem;
}

.course-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--bihs-navy);
}

.course-section h4 {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.course-section p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.course-section ul {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0.75rem;
}

.course-section ul li {
  margin-bottom: 0.35rem;
}

.course-unit {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #90aeea;
  border-radius: 8px;
  background: #e6efff;
}

.course-unit h4 span {
  font-weight: 400;
  font-size: 0.95rem;
  color: #777777;
}

.course-faculty {
  margin-bottom: 0.5rem;
  color: #374151;
}

.course-brochure-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.9rem;
  color: #4b5563;
}

.course-brochure-footer a {
  color: var(--bihs-navy);
  text-decoration: none;
}

.course-brochure-footer a:hover {
  text-decoration: underline;
}

.course-brochure-footer .course-tagline {
  margin-top: 0.5rem;
  font-style: italic;
}
.enroll-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* ========================================= */
/* HERO BANNER (With Background Image)       */
/* ========================================= */

.hero-banner {
  position: relative;
  
  /* 1. This creates the Dark Blue Overlay (85% opacity) */
  /* Change 0.85 to 0.70 if you want the image brighter */
  background-image: 
    linear-gradient(rgba(11, 26, 43, 0.65), rgba(11, 26, 43, 0.55)),
    url('../img/BoldMinds.jpeg'); 
    
  background-size: cover;   /* Ensures image covers the whole area */
  background-position: center top; /* Centers the lamp/book */
  background-repeat: no-repeat;
  
  color: #ffffff;
  padding: 9rem 1.5rem 3rem 1.5rem; /* Adjusted spacing */
  text-align: center;
  overflow: hidden;
}

/* This adds a subtle glow behind the text to make it pop against the image */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Stronger shadow for readability */
}

/* ... Keep the rest of your button styles the same ... */
.hero-content h1 {
  font-family: Georgia, "Times New Roman", serif; 
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff; /* white */
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: #e9f2ff;
  margin-bottom: 1.5rem;
}

.hero-content .course-subtitle {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
}

/* The New 'Enroll' Button Style */
.btn-hero {
  display: inline-block;
  background-color: #eebb4d; 
  color: #001f3f; 
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 50px; 
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-hero:hover {
  transform: translateY(-3px); 
  background-color: #f0c565; 
  box-shadow: 0 10px 25px rgba(238, 187, 77, 0.4);
}

.hero-date {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ========================================= */
/* FIX: Push text down ONLY on Computers     */
/* ========================================= */

@media (min-width: 1024px) {
  .hero-banner {
    /* Increases top space to 13rem on big screens */
    /* You can change 13rem to 15rem if you need it even lower */
    padding-top: 13rem !important; 
  }
}
/* ========================================= */
/* COURSE DETAILS GRID (Format/Schedule)     */
/* ========================================= */

.course-details-grid {
  display: grid;
  /* Auto-fit creates columns that stack automatically on mobile */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.detail-card {
  background: #f8fbff; /* Very light blue/white */
  border: 1px solid #e1eaf7;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: #cce0ff;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--bihs-navy); /* Uses your navy variable */
  margin-bottom: 1rem;
}

.detail-card h4 {
  color: var(--bihs-navy-900);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eebb4d; /* Gold underline */
  display: inline-block;
  padding-bottom: 5px;
}

.detail-card ul {
  list-style: none; /* Remove standard bullets */
  padding: 0;
  margin: 0;
  text-align: left; /* Keep text readable */
}

.detail-card ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  color: #4b5563;
}

/* Custom Gold Bullet Points */
.detail-card ul li::before {
  content: "•";
  color: #eebb4d; /* Gold */
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Price Styling */
.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bihs-navy);
}
.price-tag-small {
  font-size: 1.4rem;
  font-weight: 600;
  color: #5a6a7a;
  margin-top: 0.5rem;
}
.price-sub {
  display: block;
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  text-transform: uppercase;
}
/* ========================================= */
/* FIXES: Spacing & 3-Column Layout          */
/* ========================================= */

/* 1. Reduce the gap between Hero and Content */
.hero-banner {
  padding-bottom: 2rem !important; /* Reduced from 5rem */
}
.course-at-a-glance {
  padding-top: 2rem !important; /* pulls content up */
}

/* 2. Force 3 Cards on one line for Computers */
@media (min-width: 900px) {
  .course-details-grid {
    /* This forces exactly 3 equal columns on wide screens */
    grid-template-columns: repeat(3, 1fr) !important; 
  }
}
/* ========================================= */
/* FIX: Gap & False Bottom                   */
/* ========================================= */

/* 1. Tighten the space */
.hero-banner {
  padding-bottom: 1.5rem !important; /* Shorter blue section */
}

.course-at-a-glance {
  padding-top: 2rem !important; /* Pulls the white section up */
}

/* Remove extra top margin from the "Course At a Glance" title */
.course-at-a-glance h3 {
  margin-top: 0 !important;
}

/* 2. Bouncing Scroll Arrow */
.scroll-indicator {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6); /* Faded white */
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
/* ========================================= */
/* FACULTY CARDS STYLING                     */
/* ========================================= */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faculty-card {
  background: #fff;
  border: 1px solid #e1eaf7;
  border-radius: 12px;
  overflow: hidden; /* Keeps corners rounded */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.faculty-header {
  background: #f8fbff; /* Light blue top */
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #edf2f7;
}

.faculty-img {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Makes it a circle */
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faculty-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.faculty-meta h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--bihs-navy-900);
}

.unit-date {
  display: block;
  font-size: 0.85rem;
  color: #eebb4d; /* Gold */
  font-weight: 700;
  text-transform: uppercase;
}

.faculty-name {
  display: block;
  font-weight: 600;
  color: #5a6a7a;
}

.faculty-body {
  padding: 1.5rem;
}

.faculty-body ul {
  padding-left: 1.2rem;
  margin: 0;
}

.faculty-body li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}
/* ========================================= */
/* FACULTY CARDS (Hybrid + Blue Ring Look)   */
/* ========================================= */

.faculty-hybrid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.hybrid-card {
  position: relative; /* Needed for positioning the photo */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 1px solid #e1eaf7;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Keeps corners neat */
}

/* The Colored Header Bar */
.hybrid-header-pattern {
  height: 80px; 
  background: linear-gradient(135deg, var(--bihs-navy) 0%, #001f3f 100%);
  width: 100%;
}

/* Gold Header for Unit 5 */
.highlight-pattern {
  background: linear-gradient(135deg, #c79a2b 0%, #a0781a 100%);
}

/* THE PHOTO STYLE (Round + Blue Ring) */
.card-author-img {
  position: absolute;
  top: 35px; /* Positions it half-on/half-off the header */
  left: 20px;
  width: 90px;  /* Size of the circle */
  height: 90px;
  border-radius: 50%; /* Makes it perfectly round */
  object-fit: cover;  /* Prevents stretching */
  z-index: 2;
  
  /* THE FLYER TRICK: */
  border: 4px solid #fff; /* The inner white gap */
  box-shadow: 
      0 0 0 4px var(--bihs-navy), /* The outer Blue Ring */
      0 6px 12px rgba(0,0,0,0.15); /* Drop Shadow */
}

/* Content Area */
.card-content {
  padding: 20px;
  padding-top: 55px; /* Extra space so text doesn't hit the photo */
  flex-grow: 1;
}

.unit-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #eebb4d; /* Gold */
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.highlight-badge {
  color: var(--bihs-navy);
}

.hybrid-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  color: var(--bihs-navy-900);
}

.faculty-name-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a6a7a;
  margin-bottom: 1rem;
  font-style: italic;
}

.hybrid-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.hybrid-card li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* ========================================= */
/* LIBRARY HERO (Short & Classy)             */
/* ========================================= */

.library-hero {
  position: relative;
  /* Placeholder for your library photo - change filename later */
  background-image: url('../img/Library.jpg'); 
  background-size: cover;
  background-position: center;
  
  /* This creates a fixed, shorter height */
  min-height: 350px; 
  display: flex;
  align-items: center; /* Centers text vertically */
  justify-content: center;
}

/* Dark elegant tint so white text is readable */
.library-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 20, 10, 0.75); /* dark brown , 75% opacity */
}

.library-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.library-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
 text-shadow: 0 2px 10 px rgba(0,0,0,0,5);
  color: #ffffff;
}

.library-hero p {
  font-size: 1.2rem;
  font-style: italic;
  color: #eebb4d; /* Gold */
  margin-bottom: 1.5rem;
  font-family: serif;
}

.library-hero h2 {
  font-size: 2rem;
  color: #ffffff; /* white */
  margin-bottom: 1.5rem;
  font-family: serif;
}
/* A sophisticated, smaller button */
.btn-library {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 25px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-library:hover {
  background: #fff;
  color: #0b1a2b; /* Navy */
}

/* 2. The Donor Plaque (Framed Wall Style) */
.donor-plaque {
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
  border: 10px solid #2c1a12; /* Thick Dark Wood Frame */
  border-radius: 4px;
  outline: 2px solid #eebb4d; /* Inner Gold Line */
  outline-offset: -12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding-bottom: 2rem;
}

.plaque-header {
  background: #2c1a12; /* Dark Header */
  color: #ffffff; /* Text color */
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
} /* <--- This closing bracket was missing! */

/* Now this rule stands on its own and will work: */
.plaque-header h3 {
  color: #ffffff !important; /* Forces the title to be White */
  margin-top: 0;
}
/* 2. Force the Paragraph (P) in the header to be White */
.plaque-header p {
  color: rgba(255, 255, 255, 0.9) !important; /* Slightly softer white */
  margin: 0;
}

/* 3. Force the Subtitles (H4) in the BODY to be Dark Brown */
/* WARNING: Do not make these white, or they will vanish on the white background! */
.plaque-section h4 {
  color: #2c1a12 !important; 
}
.plaque-section {
  padding: 1rem 2rem;
  text-align: center;
}

.plaque-section h4 {
  font-family: Georgia, serif;
  color: #2c1a12;
  border-bottom: 1px solid #eebb4d;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 1.5rem;
}

.donor-row {
  margin-bottom: 1.5rem;
}

.donor-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}


/* ========================================= */
/* ===== Partners section ===== */
/* ========================================= */
.summary-block {
  padding: 3rem 0;
  background: var(--bihs-sky); /* light blue background */
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 1.25rem 1.25rem;
  min-height: 86px;

  background: #fff;
  border: 1px solid rgba(2, 38, 73, 0.18);
  border-radius: 14px;

  box-shadow: 0 6px 18px rgba(2, 38, 73, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(2, 38, 73, 0.12);
  border-color: rgba(2, 38, 73, 0.28);
  text-decoration: none;
}

.partner-card:focus-visible {
  outline: 3px solid rgba(199, 154, 43, 0.55); /* BIHS gold glow */
  outline-offset: 3px;
}

.partner-card strong {
  font-size: 1.05rem;
  color: var(--bihs-navy-900);
  line-height: 1.25;
  letter-spacing: 0.2px;
}

/* Optional: make very long names wrap nicely */
.partner-card strong {
  max-width: 34ch;
}

.list-anchor { height: 1px; }

#Guidelines {
  scroll-margin-top: 160px;
}
/* Mobile header is often taller (menu wraps / different padding) */
@media (max-width: 768px) {
  #Guidelines {
    scroll-margin-top: 220px; /* phone */
  }
}
:root { --header-offset: 0px; }
html { scroll-padding-top: var(--header-offset); }
