/* Basic Resets & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-blue: #1A237E; 
    --secondary-tan: #EFEBE9; 
    --text-dark: #333333;
    --text-light: #F5F5F5;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-tan);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
     font-family: "Georgia", serif;
    color: var(--primary-blue);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
     font-family: "Georgia", serif;
}

a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: darken(var(--primary-blue), 10%); /* This would need a CSS preprocessor, so let's simplify */
    color: #6070ff; /* Slightly darker blue */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */

:root {
    --primary: #2a4d69;
    --secondary: #4b86b4;
    --accent: #adcbe3;
    --light: #f7f9fc;
    --dark: #1b1b1b;
    --shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-header {
     background: #2a4baf;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    height: 55px;
    border-radius: 6px;
}

.btn {
    padding: 8px 14px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: 0.25s;
}

.btn-sm {
    padding: 6px 10px;
}

.btn:hover {
    background: var(--secondary);
}

/* Sidebar shared animation */
.sidebar {
    position: fixed;
    top: 0;
    z-index: 9999 !important; 
    left: -270px;
    height: 100vh;
    width: 260px;
    background: var(--primary);
    padding: 70px 20px;
    color: #fff;
    transition: left 0.35s ease-in-out;
    box-shadow: var(--shadow);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: block;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 18px;
    transition: 0.25s;
}

.sidebar ul li a:hover {
    background: var(--secondary);
    padding-left: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000 !important;
}


/* ===== Base Slider Wrapper ===== */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 450px; /* Adjust height as needed */
  overflow: hidden;
  background-color: #f2f2f2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Slider Container ===== */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* ===== Inner 2-Column Layout ===== */
.slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  height: 100%;
  gap: 1rem;
}

/* ===== Left Column: Text Content ===== */
.slide-content {
  width: 100%;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  z-index: 10;
  text-align: left;
  box-shadow: 0 4px 45px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.4); /* subtle overlay for readability */
}

.slide-content h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #fff;
}

.slide-content p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 1.2em;
  color: #fff;
}

.slide-content .btn {
  background-color: #0F2A7E;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.slide-content h3 { 
  font-size: 1.9em;
  color: #fff;
 }

.slide-content .btn:hover {
  background-color: #0C1E5A;
  transform: translateY(-3px);
}

/* ===== Right Column: Image ===== */
.slide-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 4s ease;
}

.slide.active .slide-image img {
  transform: scale(1.05); /* gentle zoom effect on desktop */
}

/* ===== Responsive: Mobile & Tablets ===== */
@media (max-width: 900px) {
  .slide-inner {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    padding: 1rem;
    height: auto; /* allow container height to fit content */
    padding-top:80px;
  }

  .slide-content {
    padding: 1rem;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
  }

  .slide-content h1 {
    font-size: 1.6em;
  }

  .slide-content p {
    font-size: 0.95em;
  }

  .slide-image {
    width: 100%;
    height: auto; /* scale height automatically */
    border-radius: 10px;
    overflow: hidden;
  }

  .slide-image img {
    width: 100%;
    height: auto; /* let image scale naturally */
    object-fit: contain; /* show entire image without cropping */
    display: block;
    transform: none; /* remove zoom effect on mobile */
  }
}




/* General Section Styling */
.section {
    padding: 60px 0;
    margin-bottom: 30px; /* Space between sections */
    background-color: var(--text-light); /* Default background for content sections */
    box-shadow: 0 4px 10px var(--shadow-light);
    border-radius: 8px;
    margin-top: 30px;
}

.section-alt {
    background-color: var(--secondary-tan);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
     font-family: "Georgia", serif;
}

.text-center{
     font-family: "Georgia", serif;
     padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}
.timeline-section {
  font-family: "Georgia", serif;
  background: linear-gradient(180deg, #fdfcfb, #f5f3ee);
  padding: 3rem 1rem;
  text-align: center;
  color: #222;
}

/* ===== Title ===== */
.timeline-title {
  font-size: 2rem;
   font-family: "Georgia", serif;
  color: #1A237E;;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

/* ===== Grid Container ===== */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* ===== Timeline Card ===== */
.timeline-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Decorative Marker ===== */
.timeline-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 12px;
  height: 12px;
  background: #1A237E;;
  border-radius: 50%;
}

/* ===== Date Tag ===== */
.timeline-date {
  display: inline-block;
  background: #1A237E;;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

/* ===== Headings and Text ===== */
.timeline-card h3 {
  font-size: 1.1rem;
  color: #1A237E;
  margin-bottom: 0.4rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

/* ===== Images ===== */
.timeline-card img {
  max-width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
}

/* ===== Quote ===== */
.timeline-quote {
  font-style: italic;
  margin-top: 3rem;
  font-size: 1.2rem;
  color: #444;
}

/* ===== Responsive Layouts ===== */
@media (max-width: 1024px) {
  .timeline-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .timeline-container {
    grid-template-columns: 1fr;
  }
  .timeline-card {
    text-align: center;
  }
}

.main-footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 -4px 8px var(--shadow-medium);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-col h4 {
    color: var(--secondary-tan);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-tan);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-tan);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col img{
    width: 50px;
    height: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        display: none; /* Hidden by default for mobile toggle */
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .auth-buttons {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-slideshow {
        height: 450px;
    }

    .slide-content h1 {
        font-size: 2.5em;
    }

    .slide-content p {
        font-size: 1.1em;
    }

    .history-timeline::before {
        left: 20px; /* Align timeline to the left on small screens */
        transform: none;
    }

    .timeline-item {
        flex-direction: column !important; /* Force column layout */
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .timeline-item-content {
        max-width: 90%;
        margin-left: 40px; /* Indent content */
    }

    .timeline-item-content::before {
        content: none !important; /* Remove arrow */
    }

    .timeline-marker {
        left: 20px;
        transform: none;
        top: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}