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

/* ---
Design System
- Primary Color (Dark Blue): #0a192f
- Accent Color (Gold): #ffd700
- Text Color (Light Slate): #ccd6f6
- Text Color (Darker Slate): #8892b0
- Background Color (Light Navy): #112240
- White: #ffffff
- Font: 'Poppins', sans-serif
--- */

:root {
  --primary-color: #003366;  /* Deep Blue from Logo */
  --accent-color: #E31B6D;   /* Pink/Magenta from Logo */
  --text-light: #ecf0f1;    /* Light Gray for text on dark backgrounds */
  --text-dark: #34495e;     /* Dark Gray for text on light backgrounds */
  --bg-light: #ecf0f1;     /* Light Gray */
  --bg-dark: #f8f9fa;       /* Very Light Gray */
  --bg-card: #ffffff;       /* White */
  --font-main: 'DM Sans', sans-serif;
  --font-headings: 'Playfair Display', serif;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; color: #003366; }
h4 { font-size: 1.2rem; color: #E31B6D; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-light);
}

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

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

/* --- Navigation --- */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: rgba(0, 51, 102, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--bg-card);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 75%;
}

/* --- Hero Section --- */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
  background-image: url('images/placeholder-glance.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.7);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero .section-tag {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.page-hero .section-sub {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Split Hero Section --- */
.page-hero-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr !important;
  min-height: 35vh !important;
  padding: 0 !important;
  margin-top: 60px !important;
  background: none !important;
  background-image: none !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  text-align: left !important;
}

.page-hero-split::before {
  display: none !important;
}

.page-hero-split .page-hero-split-image {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.page-hero-split .page-hero-split-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.page-hero-split .page-hero-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 2rem !important;
  text-align: left !important;
  background: rgba(0, 51, 102, 0.85) !important;
  position: relative !important;
  z-index: 2 !important;
  max-width: none !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.page-hero-split h1 {
  font-size: 2rem !important;
  margin-bottom: 0.8rem !important;
  text-align: left !important;
  color: var(--text-light) !important;
}

.page-hero-split .section-tag {
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
  color: var(--accent-color) !important;
}

.page-hero-split .section-sub {
  font-size: 0.95rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  color: var(--text-light) !important;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 14px rgba(227, 27, 109, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: #f72c84;
  border-color: #f72c84;
  box-shadow: 0 8px 22px rgba(227, 27, 109, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: rgba(227, 27, 109, 0.05);
  box-shadow: 0 8px 22px rgba(227, 27, 109, 0.1);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* --- Page Sections --- */
.page-section {
  padding: 6rem 2rem;
}

.section-title-container {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-container h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
  font-size: 2.2rem;
  color: #003366;
}

.section-title-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* --- Grids --- */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-grid-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.page-grid-text div {
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.page-grid-text div:first-child {
  padding: 0.75rem;
}

.page-grid-text div:first-child h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.page-grid-text div:first-child p {
  font-size: 0.95rem;
}

.page-grid-text div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.1);
}

.page-grid-text p {
  line-height: 1.8;
  color: var(--text-dark);
}

.page-grid-text ul {
  text-align: left;
  line-height: 2;
  color: var(--text-dark);
}

.page-grid-text h3 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.page-grid-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* --- Content Cards --- */
.content-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.02), 
              0 2px 4px rgba(0, 51, 102, 0.01);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  text-align: center;
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 51, 102, 0.08), 
              0 8px 16px rgba(0, 51, 102, 0.04);
}

.content-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.content-card h4 {
  color: #E31B6D;
  margin-bottom: 0.5rem;
}

.content-card p {
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* --- Executives Page --- */
.exec-card {
  background: #ffffff;
  border: 1px solid rgba(0, 51, 102, 0.05);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  box-shadow: 0 4px 18px rgba(0, 51, 102, 0.03);
}

.exec-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 27, 109, 0.2);
  box-shadow: 0 16px 32px rgba(0, 51, 102, 0.08);
}

.exec-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(227, 27, 109, 0.05));
  border: 2px dashed rgba(0, 51, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--primary-color);
  font-size: 2.2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.exec-card:hover .exec-avatar-placeholder {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(227, 27, 109, 0.15));
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(227, 27, 109, 0.15);
}

.exec-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background-color: rgba(227, 27, 109, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  margin: 0;
  transition: all 0.3s ease;
}

.exec-card:hover .exec-role {
  background-color: var(--accent-color);
  color: #ffffff;
}
.exec-group {
  margin-bottom: 4rem;
}

.exec-group h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

/* --- Executive Page Segment Tabs (iOS Style Segment Control) --- */
.exec-tabs {
  display: inline-flex;
  justify-content: center;
  background-color: rgba(0, 51, 102, 0.04);
  padding: 6px;
  border-radius: 100px;
  margin: 0 auto 3rem;
  border: 1px solid rgba(0, 51, 102, 0.03);
  box-shadow: inset 0 2px 8px rgba(0, 51, 102, 0.03);
}

.tab-link {
  background-color: transparent;
  border: none;
  padding: 10px 28px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 100px;
  border-bottom: none;
  opacity: 0.7;
}

.tab-link.active {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.15);
  opacity: 1;
}

.tab-link:hover:not(.active) {
  opacity: 1;
  background-color: rgba(0, 51, 102, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  padding: 4rem 2rem 2rem;
  text-align: center;
  color: var(--text-light);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-light);
}

.footer-socials a:hover {
  color: var(--accent-color);
}

.footer-locations {
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.footer-locations p {
  margin: 0;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  padding: 4rem 2rem;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter-content p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.newsletter-form {
  margin: 2rem 0;
}

.mc-embedded-subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mc-field-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
}

.mc-field-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.3s;
}

.mc-field-group input:focus {
  box-shadow: 0 0 0 3px rgba(227, 27, 109, 0.2);
}

.mc-field-group input::placeholder {
  color: #999;
}

.newsletter-btn {
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
  font-size: 0.95rem;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 1rem;
}

.response {
  font-size: 0.9rem;
  margin-top: 1rem;
}

#mce-error-response {
  color: #ffcccc;
}

#mce-success-response {
  color: #ccffcc;
}

/* --- Devotional Sidebar Layout --- */
.devotional-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.devotional-main-content {
  flex: 1;
}

.devotional-sidebar {
  position: sticky;
  top: 100px;
}

.devotional-sidebar .newsletter-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 2rem;
  border-radius: 12px;
  color: var(--text-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.6s ease-out 0.3s both;
}

.devotional-sidebar .newsletter-content {
  max-width: 100%;
  text-align: center;
}

.devotional-sidebar .newsletter-content h2 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.devotional-sidebar .newsletter-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.devotional-sidebar .mc-embedded-subscribe-form {
  flex-direction: column;
}

.devotional-sidebar .mc-field-group {
  flex-direction: column;
  max-width: 100%;
}

.devotional-sidebar .mc-field-group input {
  width: 100%;
  margin-bottom: 0.5rem;
}

.devotional-sidebar .newsletter-btn {
  width: 100%;
}

.devotional-sidebar .newsletter-note {
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1rem; }
  
  /* Navigation */
  .main-nav {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .logo img {
    height: 32px;
    width: 32px;
  }
  
  .nav-links {
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .nav-links li {
    margin-left: 0;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
    padding-bottom: 0.2rem;
  }

  /* Hero Section */
  .page-hero {
    min-height: 50vh;
    padding: 3rem 1.5rem 2rem;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .page-hero .section-tag {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .page-hero .section-sub {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .page-hero-inner {
    max-width: 100%;
  }

  /* Split Hero */
  .page-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
    margin-top: 60px;
  }
  
  .page-hero-split .page-hero-inner {
    padding: 1.5rem;
    background: rgba(0, 51, 102, 0.9);
  }
  
  .page-hero-split .page-hero-split-image {
    height: 220px;
    order: -1;
  }
  
  .page-hero-split .page-hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-hero-split h1 {
    font-size: 1.8rem;
  }

  .page-hero-split .section-sub {
    font-size: 0.95rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Page Sections */
  .page-section {
    padding: 3rem 1.5rem;
  }
  
  .section-title-container {
    margin-bottom: 2rem;
  }
  
  .section-title-container h2 {
    font-size: 1.6rem;
    padding-bottom: 0.75rem;
  }

  /* Grid */
  .page-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Content Card */
  .content-card {
    padding: 1rem;
  }
  
  .content-card img {
    height: 150px;
    margin-bottom: 0.75rem;
  }
  
  .content-card p {
    font-size: 0.85rem;
  }

  /* Tabs */
  .exec-tabs {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .tab-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .exec-group {
    margin-bottom: 2rem;
  }

  /* Modal */
  .modal-content {
    margin: 30% auto;
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .close {
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 1.5rem 1rem;
  }
  
  .footer-socials {
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .footer-socials a {
    font-size: 1.2rem;
  }

  /* Newsletter */
  .newsletter-section {
    padding: 3rem 1.5rem;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .mc-field-group {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  /* Devotional Sidebar */
  .devotional-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .devotional-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  /* Typography for very small screens */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  
  body {
    font-size: 13px;
  }

  /* Navigation */
  body {
    padding-top: 55px;
  }
  
  .main-nav {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .logo {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .logo img {
    height: 28px;
    width: 28px;
  }
  
  .nav-links {
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.25rem;
  }
  
  .nav-links li {
    margin: 0;
  }
  
  .nav-links a {
    font-size: 0.7rem;
    padding: 0.25rem 0.3rem;
  }

  /* Hero */
  .page-hero {
    min-height: 40vh;
    padding: 2rem 1rem 1.5rem;
    margin-top: 10px;
  }
  
  .page-hero h1 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .page-hero .section-tag {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .page-hero .section-sub {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  /* Split Hero */
  .page-hero-split .page-hero-split-image {
    height: 160px;
  }
  
  .page-hero-split .page-hero-inner {
    padding: 1rem;
  }

  /* Sections */
  .page-section {
    padding: 1.5rem 1rem;
  }
  
  .section-title-container {
    margin-bottom: 1.5rem;
  }
  
  .section-title-container h2 {
    font-size: 1.2rem;
  }

  /* Layout for upcoming programs title + button */
  #upcoming-programs .section-title-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }

  #upcoming-programs .section-title-container h2 {
    flex: 1 1 auto;
    margin-bottom: 0;
  }

  #upcoming-programs .section-title-container .section-sub {
    flex-basis: 100%;
    margin-top: 0.5rem;
    color: var(--text-dark);
  }

  #upcoming-programs .section-title-container .upcoming-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: none;
  }

  #upcoming-programs .section-title-container .upcoming-btn:hover {
    background: var(--accent-color);
    color: #fff;
  }

  @media (max-width: 768px) {
    #upcoming-programs .section-title-container {
      display: block;
    }
    #upcoming-programs .section-title-container .upcoming-btn {
      margin: 0.5rem 0 0 0;
    }
  }

  /* Upcoming Events button and hidden state for LTC */
  .upcoming-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 1rem;
    font-weight: 600;
  }

  .upcoming-btn:hover { opacity: 0.95; }

  .hidden { display: none !important; }

  /* Grid */
  .page-grid {
    gap: 1rem;
  }

  /* Content Card */
  .content-card {
    padding: 0.75rem;
  }
  
  .content-card img {
    height: 100px;
    margin-bottom: 0.5rem;
  }
  
  .content-card h4 {
    font-size: 0.85rem;
  }
  
  .content-card p {
    font-size: 0.75rem;
  }

  /* Buttons */
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Tabs */
  .exec-tabs {
    padding: 0.4rem;
    gap: 0.2rem;
    margin-bottom: 1rem;
  }
  
  .tab-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Modal */
  .modal-content {
    margin: 50% auto;
    padding: 1rem;
    max-width: 98%;
  }
  
  .devotional-content h3 {
    font-size: 0.95rem;
    margin-top: 0.75rem;
  }
  
  .devotional-content p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  /* Footer */
  .footer-logo {
    font-size: 1.3rem;
  }
  
  .footer-copyright {
    font-size: 0.7rem;
  }

  /* Newsletter */
  .newsletter-section {
    padding: 2rem 1rem;
  }

  .newsletter-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .newsletter-content p {
    font-size: 0.9rem;
  }

  .mc-field-group input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .newsletter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* --- Devotional Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--bg-card);
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--accent-color);
}

.devotional-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
}

.devotional-header h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.devotional-header .devotional-meta {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.devotional-content {
  line-height: 1.8;
  color: var(--text-dark);
}

.devotional-content h3 {
  color: var(--accent-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.devotional-content p {
  margin-bottom: 1rem;
}

.devotional-content em {
  font-style: italic;
  color: var(--primary-color);
}

.devotional-content strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* ==========================================================================
   NIFES FUTMinna Premium Animation System (Apple & Google Style)
   ========================================================================== */

:root {
  --transition-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-duration: 0.9s;
}

/* 1. Remove conflict-causing static load animations */
.page-section, .page-grid, .page-grid-text, .page-grid-text div, .content-card {
  animation: none !important;
}

/* 2. Glassmorphic Sticky Navbar Transition */
.main-nav {
  transition: padding 0.5s var(--transition-apple), 
              background-color 0.5s var(--transition-apple), 
              box-shadow 0.5s var(--transition-apple), 
              backdrop-filter 0.5s var(--transition-apple), 
              border-bottom 0.5s var(--transition-apple);
}

.main-nav.nav-scrolled {
  padding: 0.85rem 2rem;
  background-color: rgba(0, 51, 102, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3. Hero Sequential Entrance keyframe & class */
.hero-anim-item {
  opacity: 0;
  transform: translateY(28px);
  animation: heroSequentialFadeIn 1.2s var(--transition-apple) forwards;
  will-change: transform, opacity;
}

@keyframes heroSequentialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Single-element Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.97) rotateX(4deg);
  transform-origin: top center;
  transition: opacity var(--transition-duration) var(--transition-apple), 
              transform var(--transition-duration) var(--transition-apple);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

/* 5. Grid Staggered Reveal */
.reveal-grid > * {
  opacity: 0;
  transform: translateY(40px) scale(0.95) rotateX(6deg);
  transform-origin: top center;
  transition: opacity var(--transition-duration) var(--transition-apple), 
              transform var(--transition-duration) var(--transition-apple),
              box-shadow 0.4s var(--transition-apple),
              border-color 0.4s ease;
  will-change: transform, opacity;
}

.reveal-grid.revealed > * {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

/* 6. Active Nav Link Bubble Highlight effect (Micro-interaction) */
.nav-links a::after {
  height: 3px;
  border-radius: 2px;
  background-color: var(--accent-color);
  transition: width 0.4s var(--transition-apple);
}

/* ==========================================================================
   NIFES FUTMinna 3D Card Flip (Home Page Features)
   ========================================================================== */

.flip-card-container {
  perspective: 1200px;
}

.flip-card {
  width: 100%;
  height: 470px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border: 1px solid rgba(0, 51, 102, 0.05);
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-front img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.flip-card-front h4 {
  color: #E31B6D;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.flip-card-front p {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #003366, #112240);
  color: white;
  z-index: 1;
  justify-content: center;
}

.flip-card-back h4 {
  color: #ffd700 !important; /* Gold title for back */
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.flip-card-back p {
  color: #ecf0f1 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

.click-to-reveal {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.flip-card-back .click-to-reveal {
  color: #ffd700;
}

.flip-card:hover .click-to-reveal {
  opacity: 1;
}

/* --- Premium Gallery Styles --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.filter-btn {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid rgba(0, 51, 102, 0.1);
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.filter-btn:hover {
  background: rgba(0, 51, 102, 0.05);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.gallery-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: var(--bg-card);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(0, 51, 102, 0.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 51, 102, 0.85) 40%, rgba(0, 51, 102, 0));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
  text-align: left;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* --- Premium Lightbox Modal --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 102, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-top: 1.25rem;
  font-weight: 500;
  text-align: center;
  font-family: var(--font-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.08);
}

/* --- Typewriter Effect --- */
.typewriter-paragraph {
  position: relative;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  min-height: 24px; /* prevents layout shifts */
}

.typewriter-cursor {
  font-weight: 300;
  color: var(--accent-color);
  animation: typewriterBlink 0.8s infinite;
  display: inline-block;
  margin-left: 2px;
  transition: opacity 0.5s ease;
}

.typewriter-cursor.fade-out {
  opacity: 0;
  animation: none;
}

@keyframes typewriterBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Premium Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.2), 
              0 8px 30px rgba(0, 51, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease,
              box-shadow 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(227, 27, 109, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.98);
}

/* --- Premium Skeleton Screen Loader --- */
.skeleton-card {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 51, 102, 0.05) !important;
  box-shadow: 0 4px 18px rgba(0, 51, 102, 0.02) !important;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 51, 102, 0.03) 20%,
    rgba(0, 51, 102, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeletonPulse 1.6s infinite ease-in-out;
}

@keyframes skeletonPulse {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(0, 51, 102, 0.04);
  margin: 0 auto 1.2rem;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background-color: rgba(0, 51, 102, 0.04);
  border-radius: var(--border-radius);
  margin-bottom: 1.2rem;
}

.skeleton-line {
  height: 12px;
  background-color: rgba(0, 51, 102, 0.04);
  border-radius: 4px;
  margin: 0.6rem auto;
}

.skeleton-line-title {
  width: 65%;
  height: 18px;
  margin-bottom: 1rem;
}

.skeleton-line-subtitle {
  width: 50%;
  height: 20px;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}
