/* ==========================================================================
   SAILS — Sri Aurobindo Institute for Legal Studies
   Authoritative Academic & Legal Institution Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy-primary: #0f2342;
  --navy-dark: #09162b;
  --navy-light: #1c3966;
  --gold-accent: #b48a3e;
  --gold-light: #d4af6a;
  --gold-tint: #fbf8f1;
  --ivory-bg: #faf9f6;
  --white: #ffffff;
  --slate-text: #2c3545;
  --muted-text: #5a6578;
  --border-color: #e2e6ed;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(15, 35, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 35, 66, 0.09);
  --shadow-lg: 0 16px 40px rgba(15, 35, 66, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-text);
  background-color: var(--ivory-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--navy-primary);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   Empty Image Tag Styling (Ready for Manual Image Placement)
   ========================================================================== */
img {
  display: block;
  max-width: 100%;
  background-color: #e9edf4;
  border: 1px dashed #b8c2d4;
  min-height: 180px;
  position: relative;
}

img[src]:not([src=""]) {
  background-color: transparent;
  border: none;
  min-height: unset;
}

.img-placeholder-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #eef2f7;
}

.img-placeholder-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Top Institutional Bar & Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(180, 138, 62, 0.3);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
}

.top-bar-contact a:hover {
  color: var(--gold-light);
}

.site-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--gold-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-primary);
  padding: 0.4rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-accent);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--gold-accent);
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-navy {
  background-color: var(--navy-primary);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 64px;
  height: 3px;
  background-color: var(--gold-accent);
  margin: 1rem auto 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
}

.btn-primary:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
}

.btn-gold {
  background-color: var(--gold-accent);
  color: var(--white);
  border-color: var(--gold-accent);
}

.btn-gold:hover {
  background-color: #9c742e;
  border-color: #9c742e;
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.btn-outline:hover {
  background-color: var(--navy-primary);
  color: var(--white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--navy-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   Hero & Page Banners
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 5.5rem 0;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-accent);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
  border: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(180, 138, 62, 0.2);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  font-size: 3.35rem;
  margin-bottom: 1.25rem;
}

.hero-motto {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
}

.page-banner {
  position: relative;
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 4px solid var(--gold-accent);
  overflow: hidden;
}

.page-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  border: none;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Cards & Grid Layouts
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Featured Blocks (Home & About)
   ========================================================================== */
.highlight-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.journal-banner {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 3rem;
  border: 1px solid rgba(180, 138, 62, 0.4);
  box-shadow: var(--shadow-lg);
}

.journal-banner h2,
.journal-banner h3 {
  color: var(--white);
}

.journal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.journal-detail-item strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.founder-photo-card {
  background-color: var(--white);
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.founder-photo-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.founder-credentials {
  font-size: 0.85rem;
  color: var(--muted-text);
  font-weight: 600;
}

/* ==========================================================================
   Aims & Objectives List (Preserving Exact Approved Text)
   ========================================================================== */
.objectives-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2.25rem;
}

.objectives-list li {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--navy-primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Quote Block (Ambedkar Quote)
   ========================================================================== */
.quote-banner {
  background-color: var(--gold-tint);
  border-top: 1px solid rgba(180, 138, 62, 0.35);
  border-bottom: 1px solid rgba(180, 138, 62, 0.35);
  padding: 3rem 0;
}

.quote-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.quote-portrait {
  width: 130px;
  height: 150px;
  min-height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-accent);
  flex-shrink: 0;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--navy-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-accent);
  text-transform: uppercase;
}

/* ==========================================================================
   Articles & Long-Form Reading Layout
   ========================================================================== */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3.5rem 4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted-text);
  font-weight: 500;
}

.article-featured-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--slate-text);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.paste-guide-box {
  background-color: var(--gold-tint);
  border: 1px dashed var(--gold-accent);
  padding: 2rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* ==========================================================================
   Events & Footage
   ========================================================================== */
.event-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 380px 1fr;
}

.event-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.event-content {
  padding: 2.25rem;
}

.event-date-badge {
  display: inline-block;
  background-color: var(--navy-primary);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Contact Form & Map
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-info-card {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 2.75rem;
  border-radius: var(--radius-md);
}

.contact-info-card h2,
.contact-info-card h3 {
  color: var(--white);
}

.contact-item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.contact-form-card {
  background-color: var(--white);
  padding: 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid #cbd3e1;
  border-radius: var(--radius-sm);
  background-color: var(--ivory-bg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-primary);
  background-color: var(--white);
}

.map-wrapper {
  margin-top: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--gold-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 960px) {
  .founder-grid,
  .event-item,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .objectives-list,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .article-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .quote-flex {
    flex-direction: column;
    text-align: center;
  }
}

    /* Overlay Background */
    .maintenance-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(3px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      opacity: 1;
      transition: opacity 0.3s ease;
    }

    /* Hidden state */
    .maintenance-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }

    /* Modal Box */
    .maintenance-modal {
      background: #ffffff;
      color: #333333;
      max-width: 420px;
      width: 90%;
      padding: 30px 25px;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      text-align: center;
      position: relative;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    /* Top-right Close (X) Button */
    .close-icon {
      position: absolute;
      top: 12px;
      right: 15px;
      background: none;
      border: none;
      font-size: 24px;
      color: #888;
      cursor: pointer;
      line-height: 1;
    }

    .close-icon:hover {
      color: #000;
    }

    /* Icon & Typography */
    .maintenance-icon {
      font-size: 40px;
      margin-bottom: 10px;
    }

    .maintenance-modal h2 {
      margin: 0 0 10px;
      font-size: 22px;
      color: #111;
    }

    .maintenance-modal p {
      margin: 0 0 22px;
      font-size: 15px;
      line-height: 1.5;
      color: #555;
    }

    /* Primary Action Button */
    .continue-btn {
      background-color: #2563eb;
      color: #ffffff;
      border: none;
      padding: 12px 24px;
      font-size: 15px;
      font-weight: 600;
      border-radius: 6px;
      cursor: pointer;
      width: 100%;
      transition: background-color 0.2s ease;
    }

    .continue-btn:hover {
      background-color: #1d4ed8;
    }
