/* ----------------------------------
   CSS Variables
------------------------------------- */
:root {
  /* Green palette (Institution Base) */
  --primary: #115e3b;          /* Forest Green */
  --primary-light: #1c925b;    /* Lighter Green */
  --primary-dark: #0a3d24;     /* Deep Green */
  
  /* Additional Colors */
  --accent: #d2a132;           /* Subtle Gold for highlighting */
  --bg-light: #f4f7f6;         /* Off-white for section bg */
  --bg-white: #ffffff;
  
  /* Text */
  --text-main: #2d3748;
  --text-muted: #4a5568;
  --text-light: #e2e8f0;
  
  /* Utilities */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ----------------------------------
   Reset & Basics
------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

.text-center { text-align: center; }

/* ----------------------------------
   Top Bar
------------------------------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--text-light);
}

.top-bar a:hover {
  color: var(--bg-white);
}

.top-bar-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-bar-left i { margin-right: 5px; color: var(--accent); }
.divider { opacity: 0.3; }

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-link.highlight {
  background-color: var(--accent);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.top-link.highlight:hover {
  background-color: #e5b035;
  color: var(--primary-dark);
}

/* ----------------------------------
   Main Header
------------------------------------- */
.main-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 5px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
  color: var(--primary-dark);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.main-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.82rem;
  position: relative;
  padding: 10px 7px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-arrow { font-size: 0.75em; margin-left: 3px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--bg-white);
  min-width: 250px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.dropdown-item i { width: 20px; color: var(--primary-light); }
.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}

/* ----------------------------------
   Button Styles
------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-main);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}

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

/* ----------------------------------
   Hero Section
------------------------------------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.05);
  animation: bgZoom 20s infinite alternate;
}

@keyframes bgZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.1); }
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 15s infinite;
}

.hero-slider .slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider .slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slider .slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes slideFade {
  0% { opacity: 0; transform: scale(1.05); }
  10% { opacity: 1; transform: scale(1.06); }
  33% { opacity: 1; transform: scale(1.08); }
  43% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 61, 36, 0.9) 0%, rgba(10, 61, 36, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--bg-white);
  max-width: 800px;
}

.hero-subtitle {
  display: inline-block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  color: var(--bg-white);
  font-size: 4rem;
  margin-bottom: 25px;
  text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-actions { display: flex; gap: 20px; }

/* ----------------------------------
   Stats Bar
------------------------------------- */
.stats-bar {
  background-color: var(--bg-white);
  padding: 40px 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
}

.stat-number { font-size: 2rem; color: var(--primary-dark); margin-bottom: -5px; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}

/* ----------------------------------
   Sections
------------------------------------- */
.section { padding: 90px 0; }
.section-light { background-color: var(--bg-light); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }

.section-header { margin-bottom: 50px; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; }

.title-separator {
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.title-separator-left {
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}
.section-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto;}

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

/* ----------------------------------
   Feature Cards
------------------------------------- */
.card-feature {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-feature:hover .card-img { transform: scale(1.1); }

.card-overlay {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body .card-title { font-size: 1.4rem; margin-bottom: 15px; font-family: var(--font-heading); color: var(--primary-dark); }
.card-body .card-text { color: var(--text-muted); margin-bottom: 25px; flex-grow: 1;}
.card-link { color: var(--primary-light); font-weight: 600; display: flex; align-items: center; gap: 8px;}
.card-feature:hover .card-link { color: var(--primary); }
.card-link i { transition: transform var(--transition-fast); }
.card-feature:hover .card-link i { transform: translateX(5px); }

/* ----------------------------------
   News Cards
------------------------------------- */
.news-card {
  display: flex;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

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

.news-date {
  background: var(--primary);
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 25px;
  min-width: 100px;
}
.date-day { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 5px; }
.date-month { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

.news-content { padding: 25px; }
.news-category { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.news-title { font-size: 1.25rem; margin-bottom: 10px; }
.news-title a { color: var(--primary-dark); }
.news-title a:hover { color: var(--primary-light); }
.news-excerpt { color: var(--text-muted); font-size: 0.95rem; }


/* Gallery Teaser */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 15px;
}

/* Mega Gallery */
.mega-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px 0;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery-item:nth-child(3n) {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-item {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-overlay {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(17, 94, 59, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mosaic-item:hover .mosaic-overlay { opacity: 1; }
.mosaic-overlay i { color: white; font-size: 2.5rem; }

/* ----------------------------------
   Footer
------------------------------------- */
.main-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-top: 5px solid var(--accent);
}

.footer-top { padding: 80px 0 50px; }
.grid-footer { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; gap: 50px; }

.footer-logo { height: 70px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-title { color: var(--bg-white); font-size: 1.5rem; margin-bottom: 15px; }
.footer-desc { color: rgba(255,255,255,0.7); margin-bottom: 25px; max-width: 400px;}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  color: var(--bg-white);
  border-radius: 50%;
  margin-right: 15px;
  transition: all var(--transition-fast);
}

.social-icons a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px);}

.footer-heading { color: var(--bg-white); font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content:''; position: absolute; bottom:0; left:0; width:40px; height:3px; background:var(--accent); }

.contact-list li { margin-bottom: 15px; display: flex; gap: 10px; color: rgba(255,255,255,0.8); }
.contact-list i { color: var(--accent); margin-top: 5px; }

.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 10px; }
.footer-nav a:hover { color: var(--accent); transform: translateX(5px); }

.footer-bottom { background-color: #072a19; padding: 25px 0; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }


/* ----------------------------------
   Responsive
------------------------------------- */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-footer { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .menu-toggle { display: block; }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-nav.show { max-height: 500px; padding: 20px 0; }
  .main-nav .nav-list { flex-direction: column; gap: 0; align-items: flex-start; }
  .nav-item { width: 100%; }
  .nav-link { padding: 15px 20px; display: block; border-bottom: 1px solid var(--bg-light); }
  
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 20px; display: none; transform:none; }
  .nav-item.dropdown.active .dropdown-menu { display: block; }
  
  .hero-title { font-size: 2.2rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  
  .stats-bar { padding: 30px 20px; border-radius: 0; }
  .stats-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; }
  .grid-footer { grid-template-columns: 1fr; }
}

/* ----------------------------------
   Lightbox Modal
------------------------------------- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 1.2rem;
}
