@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #ff6600; /* Royal Blue */
  --primary-hover: #5e361b;
  --secondary-color: #F59E0B; /* Amber/Gold Accent */
  --secondary-hover: #D97706;
  --bg-color: #F8FAFC;
  --surface-color: #FFFFFF;
  --text-primary: #400404;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.5rem;
  --body-size: 1rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--body-size);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: 3rem; } /* Made significantly bigger */
h3 { font-size: var(--h3-size); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==========================================================================
   Layouts & Grid
   ========================================================================== */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.section-padding {
  padding: var(--space-xl) 0;
}

/* ==========================================================================
   Modern UI Components
   ========================================================================== */

/* Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-modern:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

/* Cards */
.modern-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.custom-sidebar-list a:hover i {
    transform: translateX(3px);
}

/* Ensure the right-side div aligns exactly with the same height as the left section */
.about-top {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.about-top .span_1_of_a {
    margin: 0 !important;
    box-sizing: border-box;
}
.about-top .span_2_of_a {
    margin: 0 !important;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .about-top {
        flex-direction: column;
    }
    .about-top .span_1_of_a, .about-top .span_2_of_a {
        width: 100% !important;
    }
}

/* ==========================================================================
   Elegant Timeline Architecture (Events Page)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* The vertical center line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(30, 58, 138, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}
/* Stagger timeline items so they appear side-by-side but slightly offset */
.timeline-container .timeline-item ~ .timeline-item {
    margin-top: -340px;
}

/* Reset stagger on mobile since they stack in a single column */
@media (max-width: 992px) {
    .timeline-container .timeline-item ~ .timeline-item {
        margin-top: 0;
    }
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-left {
    justify-content: flex-start;
}

/* Timeline Nodes */
.timeline-node {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--surface-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8), 0 0 15px rgba(30, 58, 138, 0.2);
    z-index: 10;
    transition: transform var(--transition-normal);
}

.timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.3);
    border-color: var(--secondary-color);
}

.timeline-node-inner {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.timeline-item:hover .timeline-node-inner {
    opacity: 1;
}

/* Timeline Cards */
.timeline-content {
    width: calc(50% - 40px);
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 35px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-left .timeline-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--surface-color);
}

.timeline-right .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Custom Scrollbar for Timeline Description */
.timeline-desc::-webkit-scrollbar {
    width: 6px;
}
.timeline-desc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}
.timeline-desc::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.2);
    border-radius: 4px;
}
.timeline-desc::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.about_desc ul li {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ==========================================================================
   Lightbox Gallery UI
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-next {
        right: 10px;
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-close {
        top: -50px;
        right: 0;
    }
}

.timeline-btn {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 3px;
}

.timeline-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.timeline-btn:hover::after {
    width: 100%;
}

/* Elegant Collage Gallery */
.timeline-gallery {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    height: 180px;
}

.gallery-collage {
    height: 220px;
}

.timeline-img-wrap {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 3px solid #fff;
    background: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.timeline-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Positions in Collage */
.img-pos-0 {
    width: 60%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

.img-pos-1 {
    width: 45%;
    height: 60%;
    right: 0;
    top: 0;
    z-index: 1;
}

.img-pos-2 {
    width: 45%;
    height: 45%;
    right: 10%;
    bottom: 0;
    z-index: 3;
}

.timeline-gallery .timeline-img-wrap:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.timeline-more-photos {
    position: absolute;
    right: -10px;
    bottom: -10px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

/* Responsive Timeline */
@media (max-width: 992px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-node {
        left: 20px;
    }
    .timeline-item {
        justify-content: flex-end;
    }
    .timeline-content {
        width: calc(100% - 60px);
    }
    .timeline-left .timeline-content::before,
    .timeline-right .timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--surface-color) transparent transparent;
    }
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.modern-card img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.modern-card:hover img {
  transform: scale(1.03);
}



.modern-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.modern-card .card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Features Grid (4 Columns, No Image Padding)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.feature-card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-card .card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.feature-card .card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

/* ==========================================================================
   Navigation Menu (Modern Redesign)
   ========================================================================== */
.top-bar {
  background: var(--primary-color);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.top-bar a:hover {
  color: var(--secondary-color);
}
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-bar-contact .divider {
  color: rgba(255, 255, 255, 0.3);
}
.top-bar-contact i {
  font-size: 1.1rem;
  margin-right: 4px;
  vertical-align: middle;
}
.top-bar-social {
  display: flex;
  gap: 15px;
}
.top-bar-social i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .top-bar-contact {
    justify-content: center;
  }
  .top-bar-social {
    justify-content: center;
  }
}
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.modern-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modern-logo img {
  height: 80px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 400;
  padding: 0.5rem 0;
  display: block;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hover Underline Effect */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-links > li > a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-color);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s;
  list-style: none;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
  z-index: 100;
}

.nav-links li:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown li {
  width: 100%;
  position: relative;
}

.nav-dropdown a {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.nav-dropdown a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding-left: 1.5rem; /* Indent on hover */
}

.nav-dropdown a::after {
  display: none; /* No underline in dropdown */
}

/* Nested Dropdowns */
.nav-dropdown .nav-dropdown {
  top: 0;
  left: 100%;
  transform: translateX(10px) scale(0.98);
  transform-origin: left top;
}

.nav-dropdown li:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  background: none;
  border: none;
  z-index: 2001;
  position: relative;
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: var(--surface-color);
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right var(--transition-normal);
    overflow-y: auto;
    z-index: 2000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
    display: none;
  }
  
  .nav-links li.active > .nav-dropdown {
    display: block;
  }
  
  .nav-links li:hover > .nav-dropdown {
    /* Prevent hover open on mobile, require click */
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.modern-footer {
  clear: both;
  width: 100%;
  position: relative;
  display: block;
  background-color: rgba(0, 28, 50, 0.85);
  color: #fff;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-col p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ==========================================================================
   Page Headers (Inner Pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
  margin-bottom: var(--space-xl);
  border-radius: 0 0 2rem 2rem;
  box-shadow: var(--shadow-md);
}

.page-header h1 {
  color: white;
  margin: 0;
  font-size: var(--h1-size);
}

.content-box {
  background: var(--surface-color);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}



/* Lists in content */
.content-box ul {
  list-style: none;
  padding-left: 0;
}

.content-box ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* ==========================================================================
   Events Section UI
   ========================================================================== */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  padding: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--secondary-color);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.event-reversed {
  flex-direction: row-reverse;
  border-top-color: var(--primary-color);
}

.event-content {
  flex: 1;
}

.event-date {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary-hover);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.event-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.event-btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.event-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

.event-gallery-wrapper {
  flex: 1.2;
}

.event-gallery {
  display: grid;
  gap: 15px;
}

/* Grid Layouts depending on image count */
.grid-3, .grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
}

.grid-masonry {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 120px;
}

.gallery-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 138, 0.7); /* Primary color overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .event-card, .event-reversed {
    flex-direction: column;
    padding: 2rem;
  }
  .grid-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .grid-3, .grid-4, .grid-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

/* ==========================================================================
   Horizontal Scrolling Gallery (For 30+ Photos)
   ========================================================================== */
.event-gallery-horizontal {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px; /* space for scrollbar */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Custom horizontal scrollbar */
.event-gallery-horizontal::-webkit-scrollbar {
  height: 8px;
}
.event-gallery-horizontal::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.event-gallery-horizontal::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}
.event-gallery-horizontal::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.gallery-item-hz {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 0 0 250px; /* fixed width for gallery tiles */
  height: 250px;
  scroll-snap-align: start;
}

.gallery-item-hz img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-hz:hover img {
  transform: scale(1.1);
}

.gallery-item-hz:hover .gallery-overlay {
  opacity: 1;
}

@media (max-width: 576px) {
  .gallery-item-hz {
    flex: 0 0 280px; /* Wider tiles on mobile to take up most of the screen */
    height: 220px;
  }
}

/* ==========================================================================
   Timeline Filter Buttons
   ========================================================================== */
.event-filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.event-filter-fixed {
    position: fixed;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 993px) {
    .event-filter-fixed {
        top: 50%;
        left: 30px;
        transform: translateY(-50%);
        flex-direction: column;
        padding: 20px 15px;
        border-radius: 30px;
        margin-bottom: 0;
        width: auto;
    }
}

@media (max-width: 992px) {
    .event-filter-fixed {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 10px 15px;
        border-radius: 50px;
        width: max-content;
        max-width: 95%;
        justify-content: center;
    }
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(250, 98, 16, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 98, 16, 0.3);
}

.hidden-event {
    display: none !important;
}

/* ==========================================================================
   Modern Table Design
   ========================================================================== */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    font-family: 'Fira Sans', sans-serif;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background-color: #fff;
}
.modern-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}
.modern-table th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modern-table th,
.modern-table td {
    padding: 15px 20px;
}
.modern-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.2s ease;
}
.modern-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}
.modern-table tbody tr:hover {
    background-color: rgba(1, 66, 121, 0.05);
}
.modern-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}
@media (max-width: 768px) {
    .modern-table th, .modern-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}
