/* ============================================================
   Rotary Club of Tacloban – Custom Stylesheet
   Blue: #003F8A  |  Gold: #F7A81B
   ============================================================ */

:root {
  --rotary-blue:       #003F8A;
  --rotary-blue-dark:  #002966;
  --rotary-blue-light: #1E5FAD;
  --rotary-gold:       #F7A81B;
  --rotary-gold-dark:  #D4880E;
  --rotary-gold-light: #FFC84A;
  --font-heading:      'Playfair Display', Georgia, serif;
  --font-body:         'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--rotary-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rotary-blue-dark); }

/* ── Typography ── */
.font-heading { font-family: var(--font-heading); }
.text-rotary-blue { color: var(--rotary-blue); }
.text-rotary-gold { color: var(--rotary-gold); }
.bg-rotary-blue { background-color: var(--rotary-blue); }
.bg-rotary-blue-dark { background-color: var(--rotary-blue-dark); }
.bg-rotary-gold { background-color: var(--rotary-gold); }

/* ── Gradient ── */
.bg-rotary-gradient {
  background: linear-gradient(135deg, #003F8A 0%, #1E5FAD 50%, #002966 100%);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rotary-blue); color: #fff;
  padding: .625rem 1.5rem; border-radius: .5rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .25s;
  text-decoration: none; font-size: .9rem;
  box-shadow: 0 4px 15px rgba(0,63,138,.25);
}
.btn-primary:hover { background: var(--rotary-blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,63,138,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rotary-gold); color: var(--rotary-blue-dark);
  padding: .625rem 1.5rem; border-radius: .5rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .25s;
  text-decoration: none; font-size: .9rem;
  box-shadow: 0 4px 15px rgba(247,168,27,.35);
}
.btn-gold:hover { background: var(--rotary-gold-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--rotary-blue); color: var(--rotary-blue);
  padding: .5625rem 1.5rem; border-radius: .5rem; font-weight: 600;
  background: transparent; cursor: pointer; transition: all .25s;
  text-decoration: none; font-size: .9rem;
}
.btn-outline:hover { background: var(--rotary-blue); color: #fff; }

.btn-white-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid #fff; color: #fff;
  padding: .5625rem 1.5rem; border-radius: .5rem; font-weight: 600;
  background: transparent; cursor: pointer; transition: all .25s;
  text-decoration: none; font-size: .9rem;
}
.btn-white-outline:hover { background: #fff; color: var(--rotary-blue); }

/* ── Gold Divider ── */
.gold-divider {
  width: 4rem; height: .25rem;
  background: var(--rotary-gold); border-radius: 9999px;
  margin: .75rem 0;
}
.gold-divider-center { margin: .75rem auto; }

/* ── Section Padding ── */
.section-padding { padding: 5rem 1rem; }

/* ── Cards ── */
.card-hover {
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,63,138,.15);
}

/* ── Badge ── */
.badge-blue {
  display: inline-block; background: var(--rotary-blue); color: #fff;
  font-size: .7rem; font-weight: 600; padding: .15rem .6rem; border-radius: 9999px;
}
.badge-gold {
  display: inline-block; background: var(--rotary-gold); color: var(--rotary-blue-dark);
  font-size: .7rem; font-weight: 700; padding: .15rem .6rem; border-radius: 9999px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.navbar-top {
  background: var(--rotary-blue-dark); color: #fff;
  font-size: .75rem; padding: .375rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.navbar-main {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: 4rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.navbar-brand-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--rotary-blue); display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.navbar-brand:hover .navbar-brand-icon { background: var(--rotary-gold); }
.navbar-links {
  display: flex; align-items: center; gap: .25rem; list-style: none;
}
.navbar-link {
  color: var(--rotary-blue); font-size: .85rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: .375rem; text-decoration: none;
  transition: all .2s; display: flex; align-items: center; gap: .25rem;
  white-space: nowrap; position: relative;
}
.navbar-link:hover, .navbar-link.active { color: var(--rotary-gold); background: #EFF6FF; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: .75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.15); border: 1px solid #f0f0f0;
  min-width: 14rem; padding: .5rem 0; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: block; padding: .625rem 1rem; color: #374151;
  font-size: .85rem; text-decoration: none; transition: all .15s;
}
.dropdown-item:hover { color: var(--rotary-blue); background: #EFF6FF; }

/* Mobile Menu */
.navbar-toggle {
  display: none; cursor: pointer; padding: .5rem;
  background: none; border: none; color: var(--rotary-blue);
}
.mobile-menu {
  display: none; background: #fff; border-top: 1px solid #f0f0f0;
  max-height: 80vh; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .875rem 1.25rem; color: var(--rotary-blue);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid #f9f9f9; transition: background .15s;
}
.mobile-menu a:hover { background: #EFF6FF; color: var(--rotary-gold); }
.mobile-submenu a { padding-left: 2rem; font-size: .85rem; color: #555; }

@media (max-width: 1199px) {
  .navbar-links, .navbar-right { display: none !important; }
  .navbar-toggle { display: flex; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative; width: 100%;
  height: 88vh; min-height: 520px; overflow: hidden;
  background: var(--rotary-blue-dark);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity .8s ease, transform .8s ease;
  opacity: 0; transform: scale(1.03);
}
.slide.active { opacity: 1; transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,41,102,.88) 0%, rgba(0,63,138,.72) 50%, rgba(30,95,173,.6) 100%);
}
.slide-content {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.slide-inner { max-width: 700px; padding: 0 2rem 0 4rem; }
.slide-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(247,168,27,.2); border: 1px solid rgba(247,168,27,.4);
  color: var(--rotary-gold); padding: .25rem .875rem; border-radius: 9999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
}
.slide-tag::before {
  content: ''; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--rotary-gold); animation: blink 1.5s infinite;
}
.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.slide-subtitle {
  color: rgba(200,215,255,.9); font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6; margin-bottom: 2rem; max-width: 560px;
}
.slide-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.slide-gold-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--rotary-gold); z-index: 2;
}

/* Slider Nav */
.slider-arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%); transition: all .25s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--rotary-gold); border-color: var(--rotary-gold); color: #fff; }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* Dots */
.slider-dots {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10;
}
.slider-dot {
  height: .625rem; border-radius: 9999px;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: all .3s;
}
.slider-dot:hover { background: rgba(255,255,255,.8); }
.slider-dot.active { background: var(--rotary-gold); width: 1.875rem; }
.slider-dot:not(.active) { width: .625rem; }

/* Counter */
.slide-counter {
  position: absolute; top: 2rem; right: 2rem; color: rgba(255,255,255,.6);
  font-size: .85rem; z-index: 10;
}
.slide-counter span.current { color: var(--rotary-gold); font-weight: 700; font-size: 1.2rem; }

/* Play/Pause */
.slider-play {
  position: absolute; bottom: 1.75rem; right: 5rem; z-index: 10;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: all .25s;
}
.slider-play:hover { background: var(--rotary-gold); }

@media (max-width: 768px) {
  .slide-inner { padding: 0 1.5rem; }
  .hero-slider { height: 70vh; min-height: 400px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--rotary-blue); padding: 1.5rem 1rem;
}
.stats-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-item { display: flex; align-items: center; gap: .875rem; }
.stat-icon {
  width: 3rem; height: 3rem; border-radius: .75rem;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--rotary-gold); }
.stat-label { font-size: .75rem; color: rgba(200,215,255,.8); }

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

/* ============================================================
   MEMBER CARDS
   ============================================================ */
.member-card {
  background: #fff; border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); border: 1px solid #f3f4f6;
  transition: all .3s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,63,138,.15); }
.member-photo {
  height: 18rem; overflow: hidden; background: var(--rotary-blue);
  position: relative;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member-card:hover .member-photo img { transform: scale(1.05); }
.member-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #003F8A, #1E5FAD);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700; color: #fff;
}
.member-info { padding: 1rem; }
.member-name { font-weight: 700; color: #1e3a5f; font-size: .95rem; }
.member-class { color: var(--rotary-gold); font-size: .78rem; font-weight: 600; margin-top: .15rem; }

/* ============================================================
   AREA OF FOCUS CARDS
   ============================================================ */
.area-card {
  background: #fff; border-radius: 1.25rem; padding: 1.5rem;
  border: 1px solid #f3f4f6; transition: all .3s; cursor: pointer;
  text-decoration: none; display: block;
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,63,138,.15); }
.area-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
  transition: transform .3s;
}
.area-card:hover .area-icon { transform: scale(1.1); }

/* ============================================================
   FORMS (Admin)
   ============================================================ */
.form-input {
  width: 100%; padding: .625rem 1rem; border: 1px solid #d1d5db;
  border-radius: .5rem; font-size: .9rem; transition: all .2s;
  background: #fff; color: #374151;
}
.form-input:focus { outline: none; border-color: var(--rotary-blue); box-shadow: 0 0 0 3px rgba(0,63,138,.1); }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .375rem; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; padding-right: 2.5rem; }

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 15rem; background: var(--rotary-blue-dark);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-logo {
  padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
}
.sidebar-nav { flex: 1; padding: .75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: .5rem; color: rgba(200,215,255,.8);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: all .2s; margin-bottom: .125rem;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--rotary-blue); color: #fff;
}
.sidebar-link.active .sidebar-icon { color: var(--rotary-gold); }
.sidebar-icon { font-size: .875rem; flex-shrink: 0; }
.admin-content { flex: 1; overflow-x: hidden; background: #f8fafc; }
.admin-header {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
}
.admin-body { padding: 1.5rem; }

/* ============================================================
   TABLE
   ============================================================ */
.rotary-table { width: 100%; border-collapse: collapse; }
.rotary-table th {
  background: var(--rotary-blue); color: #fff;
  padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 600;
}
.rotary-table th:first-child { border-radius: .5rem 0 0 0; }
.rotary-table th:last-child  { border-radius: 0 .5rem 0 0; }
.rotary-table td { padding: .75rem 1rem; border-bottom: 1px solid #f3f4f6; font-size: .875rem; }
.rotary-table tr:hover td { background: #f0f7ff; }

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot-wrapper {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
}
.chatbot-toggle {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--rotary-blue); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(247,168,27,.5);
  transition: all .3s; animation: pulseBtn 2s ease-in-out infinite;
}
.chatbot-toggle:hover { background: var(--rotary-gold); color: var(--rotary-blue-dark); transform: scale(1.05); }

.chatbot-window {
  position: absolute; bottom: 4.5rem; right: 0;
  width: min(22rem, 95vw); background: #fff; border-radius: 1.25rem;
  box-shadow: 0 10px 50px rgba(0,0,0,.2); overflow: hidden;
  display: none; flex-direction: column; height: 28rem;
  border: 1px solid #e5e7eb;
}
.chatbot-window.open { display: flex; animation: slideUpFade .3s ease; }

.chatbot-header {
  background: var(--rotary-gradient, linear-gradient(135deg, #003F8A, #002966));
  padding: .875rem 1rem; display: flex; align-items: center; justify-content: space-between;
}
.chatbot-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--rotary-gold); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--rotary-blue-dark); flex-shrink: 0;
}
.chatbot-status { width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: .875rem; display: flex;
  flex-direction: column; gap: .75rem; background: #f9fafb;
}
.chat-msg { display: flex; gap: .5rem; max-width: 85%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: .625rem .875rem; border-radius: 1rem; font-size: .85rem; line-height: 1.5;
}
.chat-msg.bot .chat-bubble { background: #fff; color: #374151; border: 1px solid #e5e7eb; border-radius: 1rem 1rem 1rem .25rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.chat-msg.user .chat-bubble { background: var(--rotary-blue); color: #fff; border-radius: 1rem 1rem .25rem 1rem; }

.chat-suggestions {
  padding: .5rem .875rem; display: flex; flex-wrap: wrap; gap: .375rem;
  background: #fff; border-top: 1px solid #f3f4f6;
}
.chat-suggestion {
  font-size: .75rem; padding: .25rem .625rem; border-radius: 9999px;
  background: #eff6ff; color: var(--rotary-blue); border: 1px solid #bfdbfe;
  cursor: pointer; transition: all .2s;
}
.chat-suggestion:hover { background: var(--rotary-blue); color: #fff; }

.chatbot-input-area {
  padding: .75rem; border-top: 1px solid #f3f4f6; background: #fff;
  display: flex; gap: .5rem;
}
.chatbot-input {
  flex: 1; padding: .5rem .875rem; border: 1px solid #e5e7eb;
  border-radius: 9999px; font-size: .85rem; resize: none; height: 2.5rem;
  outline: none; transition: border-color .2s;
}
.chatbot-input:focus { border-color: var(--rotary-blue); }
.chatbot-send {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--rotary-blue); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .2s; flex-shrink: 0;
}
.chatbot-send:hover { background: var(--rotary-gold); color: var(--rotary-blue-dark); }
.chatbot-send:disabled { opacity: .5; cursor: not-allowed; }

.typing-dots span {
  display: inline-block; width: .375rem; height: .375rem; border-radius: 50%;
  background: var(--rotary-blue); animation: typingDot .9s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,168,27,.5); }
  50%       { box-shadow: 0 0 0 .75rem rgba(247,168,27,0); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(1); opacity: .6; }
  40%            { transform: scale(1.3); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp .65s ease forwards; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
.anim-delay-4 { animation-delay: .4s; }

/* Intersection observer classes */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MISC
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--rotary-gold); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--rotary-blue-dark); }

.banner-header {
  background: linear-gradient(135deg, #003F8A, #002966); color: #fff;
  padding: 4rem 1rem; text-align: center;
}
.banner-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.page-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.page-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.page-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .page-grid-4 { grid-template-columns: repeat(2, 1fr); } .page-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .page-grid-4, .page-grid-3, .page-grid-2 { grid-template-columns: 1fr; } }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Status badges */
.status-upcoming  { background: #dbeafe; color: #1d4ed8; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-planned   { background: #fef9c3; color: #854d0e; }
.status-ongoing   { background: #dbeafe; color: #1e40af; }

/* Pagination */
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: 1.5rem 0; }
.page-btn {
  padding: .375rem .875rem; border-radius: .375rem; font-size: .875rem; font-weight: 500;
  border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--rotary-blue); color: #fff; border-color: var(--rotary-blue); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 5000; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%; max-width: 42rem; max-height: 90vh; overflow-y: auto;
  animation: slideUpFade .3s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #f3f4f6;
}
.modal-close { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 1.25rem; }
.modal-close:hover { color: #374151; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #f3f4f6; display: flex; justify-content: flex-end; gap: .75rem; }

/* Grid Form */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-col-2  { grid-column: span 2; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } .form-col-2 { grid-column: span 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--rotary-blue-dark); color: #fff; }
.footer-wave { background: #fff; }
.footer-top { padding: 3.5rem 1rem; }
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-h { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--rotary-gold); margin-bottom: 1rem; }
.footer-link { display: flex; align-items: center; gap: .375rem; color: rgba(200,215,255,.8); font-size: .875rem; text-decoration: none; margin-bottom: .5rem; transition: color .2s; }
.footer-link:hover { color: var(--rotary-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 1rem;
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(200,215,255,.7); flex-wrap: wrap; gap: .5rem;
}
.social-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  color: rgba(200,215,255,.8); transition: all .25s; text-decoration: none;
}
.social-btn:hover { background: var(--rotary-gold); color: var(--rotary-blue-dark); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* Print */
@media print { .no-print { display: none !important; } }