@keyframes toastIn { from { transform:translateX(100%);opacity:0; } to { transform:translateX(0);opacity:1; } }

:root {
  --blue: #1a237e;
  --blue-light: #283593;
  --blue-dark: #0d1442;
  --gold: #d4a843;
  --gold-light: #e8c76a;
  --gold-dark: #b8912e;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #222222;
  --danger: #dc3545;
  --success: #28a745;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar a { color: var(--gold); margin-left: 15px; }
.top-bar a:hover { color: var(--white); }

/* Header/Nav */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.logo img { height: 50px; }
.logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--blue);
  padding: 10px;
}
.nav { display: flex; align-items: center; gap: 5px; }
.nav a {
  padding: 25px 15px;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.05);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 80%; }

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--blue);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 5px;
}
.search-btn:hover { background: rgba(26,35,126,0.08); color: var(--gold); }

.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    padding-top: 80px;
}
.search-overlay.open { display: block; }

.search-modal {
    background: #fff;
    width: 600px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}
.search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 6px 0;
    background: transparent;
}
.search-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}
.search-close:hover { color: #333; }

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 6px 0;
}
.search-loading, .search-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}
.search-group { padding: 0; }
.search-group-title {
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4a843;
    background: #f8f9fa;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #f8f9fa; }
.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.search-item-info { min-width: 0; flex: 1; }
.search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
}
.search-item-excerpt { font-size: 12px; color: #999; margin-top: 1px; }
.search-item-date { font-size: 11px; color: #999; margin-top: 1px; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 12px; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}
.hero h1 { font-size: 48px; margin-bottom: 15px; position: relative; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; position: relative; }
.hero .buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Hero Slider */
.hero-slider { position: relative; }
.hero-slide {
  display: none;
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}
.hero-slide.active { display: block; animation: fadeIn 0.8s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide h1 { font-size: 48px; margin-bottom: 15px; }
.hero-slide h1 span { color: var(--gold); }
.hero-slide p { font-size: 18px; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slider-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active { background: var(--gold); transform: scale(1.2); }

/* Section */
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title h2 span { color: var(--gold); }
.section-title p { color: var(--gray); max-width: 500px; margin: 0 auto; }
.section.bg-white { background: var(--white); }
.section.bg-light { background: var(--light); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 10px; color: var(--blue); }
.card-body p { color: var(--gray); font-size: 14px; margin-bottom: 15px; }
.card-meta { font-size: 13px; color: var(--gray); display: flex; gap: 15px; margin-bottom: 10px; }
.card-meta i { margin-right: 5px; color: var(--gold); }
.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { opacity: 0.9; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; }

/* Alert */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Footer */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer h3 { color: var(--gold); margin-bottom: 20px; font-size: 18px; }
.footer p, .footer a { font-size: 14px; line-height: 2; }
.footer a { color: rgba(255,255,255,0.7); display: block; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}
.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--white); }

/* Sermon/Audio Player */
.audio-player {
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
  margin: 15px 0;
}
.audio-player audio { width: 100%; }

/* Detail Page */
.detail-header {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
}
.detail-header .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.8));
}
.detail-header .info {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  color: var(--white);
  z-index: 1;
}
.detail-content { padding: 40px 0; }
.detail-content .content { max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* Comments */
.comment { padding: 20px; border-left: 3px solid var(--gold); margin-bottom: 15px; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; }
.comment .meta { font-size: 13px; color: var(--gray); margin-bottom: 5px; }
.comment .meta strong { color: var(--blue); }

/* Like Button */
.btn-like {
  background: none;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
  font-size: 14px;
}
.btn-like:hover, .btn-like.liked { border-color: var(--danger); color: var(--danger); }
.btn-like.liked { background: #fff5f5; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  color: var(--dark);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px;
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}
.gallery-item:hover .overlay { transform: translateY(0); }

/* Events */
.event-card { display: flex; gap: 20px; align-items: center; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; transition: var(--transition); }
.event-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.event-date { text-align: center; min-width: 80px; padding: 10px; background: var(--blue); color: var(--white); border-radius: var(--radius); }
.event-date .day { font-size: 28px; font-weight: 700; display: block; }
.event-date .month { font-size: 14px; text-transform: uppercase; }
.event-info h3 { color: var(--blue); margin-bottom: 5px; }
.event-info p { color: var(--gray); font-size: 14px; }
.event-info i { color: var(--gold); margin-right: 5px; }

/* Modal/Lightbox */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal img { max-width: 90%; max-height: 85vh; border-radius: 5px; }
.modal .close {
  position: absolute;
  top: 20px; right: 30px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
}

/* Profile */
.profile-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 30px;
}
.profile-header img {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin-bottom: 15px;
  object-fit: cover;
}
.profile-header h2 { margin-bottom: 5px; }
.profile-header p { opacity: 0.8; }

/* About Cards */
.about-card { text-align: center; padding: 30px; }
.about-card .icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--white);
}
.about-card h3 { color: var(--blue); margin-bottom: 10px; }

/* Team Slider */
.team-slider {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.team-track-wrapper {
  overflow: hidden;
  flex: 1;
  padding: 20px 0;
}
.team-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}
.team-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 250px;
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  margin-bottom: 15px;
}
.team-card h4 {
  color: var(--blue);
  margin-bottom: 5px;
  font-size: 18px;
}
.team-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}
.team-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--blue);
  transition: var(--transition);
  font-size: 16px;
}
.team-social a:hover {
  background: var(--gold);
  color: var(--white);
}
.team-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 2;
}
.team-arrow:hover {
  background: var(--gold);
  color: var(--white);
}
.team-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.team-arrow:disabled:hover {
  background: var(--white);
  color: var(--gold);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide h1, .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .team-card { flex: 0 0 calc(50% - 15px); min-width: 200px; }
  .team-track { gap: 20px; }
  .team-arrow { width: 36px; height: 36px; font-size: 14px; }
  .team-card img { width: 120px; height: 120px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; border-bottom: 1px solid #eee; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slide h1, .hero h1 { font-size: 28px; }
  .hero-slide p, .hero p { font-size: 16px; }
  .section-title h2 { font-size: 28px; }
  .event-card { flex-direction: column; text-align: center; }
  .page-header h1 { font-size: 28px; }
  .detail-header { height: 250px; }
  .top-bar .container { justify-content: center; gap: 10px; }
  .search-overlay { padding-top: 40px; }
}

@media (max-width: 480px) {
  .team-card { flex: 0 0 100%; min-width: 0; }
  .team-slider { gap: 8px; }
}

/* Error Pages */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 120px; color: var(--blue); margin-bottom: 10px; line-height: 1; }
.error-page h1 span { color: var(--gold); }
.error-page h2 { font-size: 24px; color: var(--dark); margin-bottom: 15px; }
.error-page p { color: var(--gray); margin-bottom: 30px; font-size: 16px; }

/* Admin Layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--blue-dark); color: #fff;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: width 0.3s ease;
}
.sidebar-inner {
  display: flex; flex-direction: column; height: 100%;
  overflow-y: auto; overflow-x: hidden;
}
.collapse-btn-top {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0; color: rgba(255,255,255,0.7);
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  transition: all 0.3s; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.collapse-btn-top:hover { color: #fff; background: rgba(255,255,255,0.05); }
.collapse-btn-top i { font-size: 16px; transition: transform 0.3s; }
.sidebar-header {
  padding: 20px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0; transition: padding 0.3s;
}
.sidebar-header img { height: 40px; transition: height 0.3s; }
.sidebar-header span {
  display: block; color: var(--gold); font-size: 18px; font-weight: 700;
  margin-top: 5px; white-space: nowrap; transition: all 0.3s;
}
.admin-sidebar nav { flex: 1; padding: 5px 0; }
.admin-sidebar nav a, .sidebar-footer a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,0.7);
  transition: all 0.3s; font-size: 14px; border-left: 3px solid transparent; white-space: nowrap;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active, .sidebar-footer a:hover, .sidebar-footer a.active {
  background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--gold);
}
.admin-sidebar nav a i, .sidebar-footer a i { min-width: 20px; text-align: center; font-size: 16px; }

/* Dropdown groups */
.nav-group { display: flex; flex-direction: column; }
.dropdown-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,0.7);
  transition: all 0.3s; font-size: 14px; border-left: 3px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.dropdown-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dropdown-btn i:first-child { min-width: 20px; text-align: center; font-size: 16px; }
.dropdown-arrow { margin-left: auto; font-size: 11px !important; transition: transform 0.3s; min-width: auto !important; }
.dropdown-btn.open .dropdown-arrow { transform: rotate(180deg); }
.submenu { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; background: rgba(0,0,0,0.15); }
.submenu.open { max-height: 500px; }
.submenu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 55px; color: rgba(255,255,255,0.6);
  font-size: 13px; transition: all 0.3s; white-space: nowrap;
}
.submenu a:hover, .submenu a.active { color: #fff; background: rgba(255,255,255,0.05); }
.submenu a i { min-width: 16px; text-align: center; font-size: 13px; }

/* Collapsed: hide dropdown extras */
.admin-sidebar.collapsed .nav-group { position: relative; }
.admin-sidebar.collapsed .dropdown-btn span,
.admin-sidebar.collapsed .dropdown-arrow { display: none; }
.admin-sidebar.collapsed .submenu { max-height: 0 !important; display: none; }
.admin-sidebar.collapsed .dropdown-btn { padding: 12px 0; justify-content: center; border-left: none; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.admin-main { margin-left: 260px; flex: 1; background: #f4f6f9; min-height: 100vh; transition: margin-left 0.3s ease; }

/* Sidebar collapsed */
.admin-sidebar.collapsed { width: 60px; }
.admin-sidebar.collapsed .sidebar-header { padding: 15px 0; }
.admin-sidebar.collapsed .sidebar-header span { display: none; }
.admin-sidebar.collapsed .sidebar-header img { height: 30px; }
.admin-sidebar.collapsed .collapse-btn-top { padding: 16px 0; }
.admin-sidebar.collapsed .collapse-btn-top i { transform: rotate(180deg); }
.admin-sidebar.collapsed nav a, .admin-sidebar.collapsed .sidebar-footer a { padding: 12px 0; justify-content: center; border-left: none; }
.admin-sidebar.collapsed nav a span, .admin-sidebar.collapsed .sidebar-footer a span { display: none; }
.admin-sidebar.collapsed ~ .admin-main { margin-left: 60px; }
.admin-sidebar.collapsed nav a i, .admin-sidebar.collapsed .sidebar-footer a i { font-size: 18px; }
.admin-header {
  background: #fff; padding: 15px 30px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 50;
}
.admin-header h2 { font-size: 20px; color: var(--blue); }
.admin-header .user-info { display: flex; align-items: center; gap: 15px; font-size: 14px; }
.admin-content { padding: 30px; }
.stat-card {
  background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 20px;
}
.stat-card .icon {
  width: 60px; height: 60px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.stat-card .info h3 { font-size: 28px; margin-bottom: 5px; }
.stat-card .info p { color: var(--gray); font-size: 13px; margin: 0; }
.table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px 15px; text-align: left; font-size: 14px; }
.table-wrap th { background: #f8f9fa; color: var(--gray); font-weight: 600; text-transform: uppercase; font-size: 12px; }
.table-wrap tr:not(:last-child) td { border-bottom: 1px solid #f0f0f0; }
.table-wrap tr:hover td { background: #f8f9fa; }
.badge { padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.page-title { margin-bottom: 25px; }
.page-title h1 { font-size: 24px; color: var(--blue); }

/* Admin Mobile Toggle + Responsive */
.admin-toggle { display: none; }
@media (max-width: 768px) {
  .admin-sidebar { width: 260px; transform: translateX(-100%); transition: transform 0.3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar.collapsed { width: 260px; }
  .admin-sidebar.collapsed .collapse-btn-top i { transform: none; }
  .admin-sidebar.collapsed .sidebar-header span { display: block; }
  .admin-sidebar.collapsed .sidebar-header img { height: 40px; }
  .admin-sidebar.collapsed nav a, .admin-sidebar.collapsed .sidebar-footer a { padding: 12px 20px; justify-content: flex-start; border-left: 3px solid transparent; }
  .admin-sidebar.collapsed nav a span, .admin-sidebar.collapsed .sidebar-footer a span { display: inline; }
  .admin-sidebar.collapsed nav a i, .admin-sidebar.collapsed .sidebar-footer a i { font-size: 16px; }
  .admin-sidebar.collapsed .dropdown-btn span,
  .admin-sidebar.collapsed .dropdown-arrow { display: inline; }
  .admin-sidebar.collapsed .dropdown-btn { padding: 12px 20px; justify-content: flex-start; border-left: 3px solid transparent; }
  .admin-sidebar.collapsed .submenu { max-height: none; display: block; }
  .admin-sidebar.collapsed .submenu a { padding: 10px 20px 10px 55px; }
  .admin-sidebar nav a span, .sidebar-footer a span, .submenu a span { display: inline; }
  .admin-sidebar nav a, .sidebar-footer a, .dropdown-btn { justify-content: flex-start; padding: 12px 20px; }
  .admin-sidebar.collapsed .submenu a { padding: 10px 20px 10px 55px; }
  .admin-sidebar.collapsed ~ .admin-main { margin-left: 0; }
  .admin-main { margin-left: 0; }
  .admin-header h2 { font-size: 16px; }
  .admin-content { padding: 15px; }
  .admin-toggle { display: block; position: fixed; top: 15px; left: 15px; z-index: 101; background: var(--blue); color: #fff; border: none; width: 40px; height: 40px; border-radius: 8px; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  .admin-header { padding: 15px 15px 15px 55px; }
  .admin-content { padding: 15px; }
  .stat-card { padding: 15px; }
  .stat-card .icon { width: 45px; height: 45px; font-size: 18px; }
  .stat-card .info h3 { font-size: 22px; }
  .table-wrap { overflow-x: auto; }
  .table-wrap th, .table-wrap td { padding: 8px 10px; }
  .page-title { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .page-title form { width: 100%; }
  .page-title input[type="text"] { width: 100% !important; }
}

.placeholder-img { background: #e0e0e0; display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px; }

/* Admin form grid fix */
@media (max-width: 768px) {
  .admin-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .admin-content [style*="display:grid"] { grid-template-columns: 1fr !important; }
}

/* Animations au scroll */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}
.stagger-children > .animate-in:nth-child(1) { transition-delay: 0s; }
.stagger-children > .animate-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .animate-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > .animate-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > .animate-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > .animate-in:nth-child(6) { transition-delay: 0.5s; }
.stagger-children > .animate-in:nth-child(7) { transition-delay: 0.6s; }
.stagger-children > .animate-in:nth-child(8) { transition-delay: 0.7s; }

/* Hero fallback animation */
.hero h1, .hero p, .hero .buttons {
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
}
.hero p { animation-delay: 0.3s; }
.hero .buttons { animation-delay: 0.6s; }
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode */
[data-theme="dark"] {
  --blue: #1a237e;
  --blue-dark: #0d0d1a;
  --white: #1e1e2e;
  --light: #16162a;
  --gray: #b0b0c0;
  --dark: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.4);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.5);
}
[data-theme="dark"] body { background: var(--light); color: #fff; }
[data-theme="dark"] p, [data-theme="dark"] li, [data-theme="dark"] span, [data-theme="dark"] div:not([class*="alert"]) { color: #fff; }
[data-theme="dark"] .top-bar { background: #0d0d1a; }
[data-theme="dark"] .top-bar .nav a { color: #fff; }
[data-theme="dark"] .top-bar .nav a:hover,
[data-theme="dark"] .top-bar .nav a.active { color: var(--gold); }
[data-theme="dark"] .top-bar .search-btn,
[data-theme="dark"] .search-btn { color: #fff; }
[data-theme="dark"] .top-bar .search-btn:hover,
[data-theme="dark"] .search-btn:hover { color: var(--gold); }
[data-theme="dark"] .hero,
[data-theme="dark"] .hero-slider { background: #0d0d1a !important; }
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero .buttons .btn-primary { color: #fff; }
[data-theme="dark"] .section { background: var(--white); }
[data-theme="dark"] .section-alt { background: var(--light); }
[data-theme="dark"] a,
[data-theme="dark"] .btn-link { color: #fff; }
[data-theme="dark"] .section-title h2,
[data-theme="dark"] .section-title h3,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--gold); }
[data-theme="dark"] .section-title span { color: var(--gold); }
[data-theme="dark"] .card,
[data-theme="dark"] .sermon-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .modal-content { background: #3a3a5c; color: #fff; }
[data-theme="dark"] .card h3, [data-theme="dark"] .card h4,
[data-theme="dark"] .sermon-card h3, [data-theme="dark"] .sermon-card h4,
[data-theme="dark"] .blog-card h3, [data-theme="dark"] .blog-card h4,
[data-theme="dark"] .event-card h3 { color: var(--gold); }
[data-theme="dark"] .card p,
[data-theme="dark"] .sermon-card p,
[data-theme="dark"] .blog-card p,
[data-theme="dark"] .event-card p { color: #ddd; }
[data-theme="dark"] .card i, [data-theme="dark"] .sermon-card i,
[data-theme="dark"] .blog-card i, [data-theme="dark"] .event-card i { color: #fff; }
[data-theme="dark"] .card .card-meta span,
[data-theme="dark"] .card .card-meta i { color: #ccc; }
[data-theme="dark"] .card .btn-blue { background: var(--gold); color: #0d0d1a; }
[data-theme="dark"] .event-info h3 a { color: var(--gold) !important; }
[data-theme="dark"] .event-date { background: var(--gold); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .card-footer { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .card-footer span[style*="gold"] { color: var(--gold) !important; }
[data-theme="dark"] .footer { background: #0d0d1a; }
[data-theme="dark"] .footer h3 { color: var(--gold); }
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer i { color: #fff; }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control { background: var(--white); color: #fff; border-color: #3a3a5c; }
[data-theme="dark"] .form-control::placeholder { color: #999; }
[data-theme="dark"] .detail-header { background: #0d0d1a; }
[data-theme="dark"] .detail-header h1 { color: var(--gold); }
[data-theme="dark"] .detail-meta span,
[data-theme="dark"] .detail-meta i { color: #fff; }
[data-theme="dark"] .page-header h1 { color: var(--gold); }
[data-theme="dark"] .search-modal { background: var(--white); }
[data-theme="dark"] .search-item, [data-theme="dark"] .search-item-title { color: #fff; }
[data-theme="dark"] .search-item-excerpt { color: #ccc; }
[data-theme="dark"] .search-item:hover { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #0d0d1a; }
[data-theme="dark"] .btn-primary:hover { background: var(--gold-light); }
[data-theme="dark"] .btn-outline { border-color: #fff; color: #fff; }
[data-theme="dark"] .btn-outline:hover { background: #fff; color: #0d0d1a; }
[data-theme="dark"] .btn-gold { background: var(--gold); color: #0d0d1a; }
[data-theme="dark"] .btn-blue { color: #fff; }
[data-theme="dark"] .top-bar .btn-primary { background: var(--gold); color: #0d0d1a; }
[data-theme="dark"] .top-bar .btn-primary:hover { background: var(--gold-light); }
[data-theme="dark"] .comment { background: #3a3a5c; border-color: #555; }
[data-theme="dark"] .comment-content { color: #fff; }
[data-theme="dark"] .comment .meta strong { color: var(--gold); }
[data-theme="dark"] .comment i { color: #fff; }
[data-theme="dark"] #themeBtn { color: var(--gold); }
[data-theme="dark"] #pushBtn { color: #fff; }
[data-theme="dark"] #pushBtn.push-active { color: var(--gold) !important; }
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a { color: #fff; }
[data-theme="dark"] .alert-success { background: #1b3a1b; color: #a8e6a3; }
[data-theme="dark"] .alert-danger { background: #3a1b1b; color: #f8a0a0; }
[data-theme="dark"] .alert-info { background: #1b2a3a; color: #a0c8f8; }
[data-theme="dark"] .table-wrap { background: var(--white); }
[data-theme="dark"] .table-wrap th { background: #0d0d1a; color: #fff; }
[data-theme="dark"] .table-wrap td { color: #fff; border-color: #3a3a5c; }
[data-theme="dark"] .table-wrap tr:hover td { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .stat-card { background: var(--white); }
[data-theme="dark"] .stat-card .info h3 { color: var(--gold); }
[data-theme="dark"] .stat-card .icon i { color: #fff; }
[data-theme="dark"] .emoji-grid button { background: var(--white); }
[data-theme="dark"] .about-card { background: #3a3a5c; color: #fff; }
[data-theme="dark"] .about-card i { color: var(--gold); }
[data-theme="dark"] .about-card h3 { color: var(--gold); }
[data-theme="dark"] .contact-info { background: #3a3a5c !important; }
[data-theme="dark"] .contact-info h3 { color: var(--gold) !important; }
[data-theme="dark"] .contact-info p,
[data-theme="dark"] .contact-info i { color: #fff !important; }
[data-theme="dark"] .comment-count { color: #fff; }
[data-theme="dark"] .team-card { background: #3a3a5c; color: #fff; }
[data-theme="dark"] .team-card h4 { color: var(--gold); }
[data-theme="dark"] .team-card p { color: #fff; }
[data-theme="dark"] .team-card i { color: #fff; }
[data-theme="dark"] .team-social a { background: rgba(255,255,255,0.1); color: #fff; }
[data-theme="dark"] .team-arrow { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); }
[data-theme="dark"] .team-arrow i { color: #fff; }
[data-theme="dark"] .team-arrow:hover { background: var(--gold); color: #0d0d1a; }
[data-theme="dark"] .team-arrow:hover i { color: #0d0d1a; }
[data-theme="dark"] .schedule-card { background: #3a3a5c !important; }
[data-theme="dark"] .schedule-card strong:not([style*="gold"]) { color: #fff !important; }
[data-theme="dark"] .slider-dots span { background: rgba(255,255,255,0.3); }
[data-theme="dark"] .slider-dots span.active { background: var(--gold); }
[data-theme="dark"] button[onclick*="shareEvent"] { color: #fff !important; border-color: #555 !important; }
[data-theme="dark"] button[onclick*="shareEvent"] i { color: #fff; }

/* Comment section wrapper - gray background in dark mode */
.comment-section {
    margin-top: 40px;
    padding: 25px;
    border-radius: var(--radius);
}
[data-theme="dark"] .comment-section {
    background: #3a3a5c;
}
[data-theme="dark"] .comment-section h3 { color: var(--gold); }
[data-theme="dark"] .comment-section button[onclick*="toggleEmoji"] { color: #fff; border-color: #555 !important; }
[data-theme="dark"] .comment button { color: #fff !important; }

/* Override inline color:var(--blue) on detail page headings - becomes invisible in dark mode */
[data-theme="dark"] h1[style*="var(--blue)"],
[data-theme="dark"] h3[style*="var(--blue)"] { color: var(--gold) !important; }

/* Override inline #eee/#ddd/#ccc borders - invisible on dark backgrounds */
[data-theme="dark"] [style*="border-top:1px solid #eee"] { border-top-color: #555 !important; }
[data-theme="dark"] [style*="border-bottom:1px solid #eee"] { border-bottom-color: #555 !important; }
[data-theme="dark"] [style*="border:1px solid #eee"] { border-color: #555 !important; }
[data-theme="dark"] [style*="border:1px solid #ddd"] { border-color: #555 !important; }
[data-theme="dark"] [style*="border:1px solid #ccc"] { border-color: #555 !important; }

/* Emoji grid - light background fix */
[data-theme="dark"] .emoji-grid { background: #3a3a5c !important; border-color: #555 !important; }
[data-theme="dark"] .emoji-grid span:hover { background: rgba(255,255,255,0.1) !important; }

/* Live description text - invisible #555 in dark mode */
[data-theme="dark"] [style*="color:#555"] { color: #fff !important; }

/* Like button dark mode */
[data-theme="dark"] .btn-like { border-color: #3a3a5c; color: #ddd; }
[data-theme="dark"] .btn-like:hover,
[data-theme="dark"] .btn-like.liked { border-color: var(--danger); color: var(--danger); }
[data-theme="dark"] .btn-like.liked { background: rgba(220,53,69,0.2); }

/* Filter buttons on events & lives pages */
[data-theme="dark"] #event-filters a,
[data-theme="dark"] #live-filters a { background: #3a3a5c !important; color: #ddd !important; }
/* Search modal borders in dark mode */
[data-theme="dark"] .search-header { border-bottom-color: #3a3a5c; }
[data-theme="dark"] .search-item { border-bottom-color: #3a3a5c; }

[data-theme="dark"] #event-filters a[style*="var(--blue)"],
[data-theme="dark"] #event-filters a[style*="#28a745"],
[data-theme="dark"] #event-filters a[style*="#17a2b8"],
[data-theme="dark"] #event-filters a[style*="#6c757d"],
[data-theme="dark"] #live-filters a[style*="var(--blue)"],
[data-theme="dark"] #live-filters a[style*="#28a745"],
[data-theme="dark"] #live-filters a[style*="#6c757d"] { background: var(--blue) !important; color: #fff !important; }

/* Push notification button */
#pushBtn.push-active { color: var(--gold) !important; }

