/*
Theme Name: IGMG Herford Premium
Theme URI: https://www.igmg-herford.de/
Author: Süleyman Akata
Description: Ultra premium, modern, and highly usable WordPress theme for Islamische Gemeinschaft Millî Görüş Ortsverein Herford. Features luxury glassmorphism, gold/emerald accents, Islamic geometric patterns, and a built-in Gebetskalender UI.
Version: 2.4.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: igmgherford
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  /* Colors */
  --primary: #00b388; /* Glowing Emerald Green */
  --primary-light: #33ccaa;
  --primary-dark: #008f6b;
  
  --gold: #d4af37; /* Luxury Gold */
  --gold-light: #aa8c2c;
  --gold-dark: #8c701b;
  
  --bg-color: #f8faf9; /* Light Soft Gray/Green */
  --surface-color: #ffffff; /* Pure White Container */
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-glass-dark: rgba(245, 248, 246, 0.98);
  
  --text-main: #1a2b23; /* Dark Emerald text */
  --text-muted: #5a6b62; /* Muted Sage text */
  --text-inverse: #ffffff; /* White text on dark buttons */

  --border-light: rgba(0, 0, 0, 0.06);
  --border-color: rgba(212, 175, 55, 0.25); /* Gold borders */
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(0, 179, 136, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Spacing */
  --container-max: 1280px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: url('images/bg.gif');
  background-repeat: repeat;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Islamic Geometric Pattern utility */
.pattern-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 15-15 15L15 15 30 0zm0 60l15-15-15-15-15 15 15 15zm30-30l15 15-15 15-15-15 15-15zM0 30l15 15-15 15-15-15 15-15z' fill='%23d4af37' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif; /* Classic, elegant serif for headings */
}

h1 { font-size: 4rem; letter-spacing: -0.02em; }
h2 { font-size: 3rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; font-family: 'Outfit', sans-serif; }

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 300;
}

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

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

/* Header (Premium Solid/Clean White) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff; /* Solid White for compatibility with logo background */
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-logo img.default-logo,
.mobile-menu-header img.default-logo {
  filter: brightness(0) saturate(100%) invert(10%) sepia(15%) saturate(1500%) hue-rotate(110deg) !important;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  z-index: 1001;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: height var(--transition-normal);
}

.site-header.scrolled .nav-wrapper {
  height: 70px;
}

.site-logo img {
  height: 34px; /* Reduced from 45px to be more delicate and elegant */
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.site-logo:hover img {
  transform: scale(1.05);
}

.main-navigation {
  display: block;
  position: relative;
  right: auto;
  top: auto;
  width: auto;
  height: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  border-left: none;
  max-width: none;
  z-index: auto;
}

.main-navigation .mobile-menu-btn {
  display: none !important;
}

.main-navigation ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
  color: var(--gold) !important;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-normal);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item > a::after {
  width: 100%;
}

/* WordPress Dropdown Submenus */
.main-navigation ul li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-glass-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  min-width: 220px;
  border-radius: 4px;
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-navigation .sub-menu li {
  width: 100%;
}

.main-navigation .sub-menu a {
  padding: 0.6rem 1.5rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-main);
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.main-navigation .sub-menu a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  padding-left: 1.75rem;
}

.main-navigation .sub-menu a::after {
  display: none; /* Hide standard underline on submenus */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu-header, .mobile-menu-footer {
  display: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-inverse) !important;
  box-shadow: 0 10px 20px rgba(0, 143, 107, 0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes btnShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btnShimmer 4s infinite linear;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 143, 107, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white !important;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

/* Layout */
.site-content {
  padding-top: 90px; 
  min-height: 80vh; 
}

/* Hero Section */
.hero {
  padding: 220px 0 140px;
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Gebetskalender (Prayer Times) Section - Ultra Premium */
.igmg-gk-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.igmg-gk-container {
    background: linear-gradient(145deg, #0a1912, #112a1e);
    border-radius: 4px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
    transition: padding var(--transition-normal), border-radius var(--transition-normal);
}

@media (max-width: 768px) {
    .igmg-gk-container {
        padding: 2rem;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .igmg-gk-container {
        padding: 1.5rem;
        border-radius: 4px;
    }
}

.igmg-gk-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.igmg-gk-header h2 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.igmg-gk-date-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.igmg-gk-date-miladi {
    color: #f3e5ab;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.igmg-gk-date-hicri {
    color: #a0b0a8;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.igmg-gk-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.igmg-gk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.igmg-gk-item {
    background: rgba(20, 35, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 15px rgba(0,0,0,0.2);
}

.igmg-gk-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.igmg-gk-item.active {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-color: #d4af37;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 10;
    position: relative;
}

@keyframes activePulseTheme {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.igmg-gk-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    animation: activePulseTheme 2s infinite;
    pointer-events: none;
}

.igmg-gk-name {
    display: block;
    font-size: 1.1rem;
    color: #a0b0a8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.igmg-gk-item:hover .igmg-gk-name {
    color: #f3e5ab;
}

.igmg-gk-item.active .igmg-gk-name {
    color: #d4af37;
    font-weight: 600;
}

.igmg-gk-time {
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    display: block;
    line-height: 1;
    letter-spacing: -0.5px;
}

.igmg-gk-item.active .igmg-gk-time {
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Gebetskalender Responsive */
@media (max-width: 1024px) {
    .igmg-gk-time { font-size: 1.9rem; }
    .igmg-gk-name { font-size: 1rem; }
}

@media (max-width: 768px) {
    .igmg-gk-header h2 { font-size: 2.2rem; }
    .igmg-gk-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .igmg-gk-item { padding: 1.5rem 0.5rem; }
    .igmg-gk-time { font-size: 2rem; }
}

@media (max-width: 480px) {
    .igmg-gk-header { margin-bottom: 2rem; }
    .igmg-gk-header h2 { font-size: 1.8rem; }
    .igmg-gk-date-miladi { font-size: 1.1rem; }
    .igmg-gk-date-hicri { font-size: 0.95rem; }
    .igmg-gk-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .igmg-gk-item { padding: 1.75rem 0.5rem; }
    .igmg-gk-time { font-size: 2.1rem; }
    .igmg-gk-item.active { transform: translateY(-5px) scale(1.02); }
}

@media (max-width: 360px) {
    .igmg-gk-header h2 { font-size: 1.6rem; }
    .igmg-gk-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .igmg-gk-item { padding: 1.25rem; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
    .igmg-gk-name { margin-bottom: 0; font-size: 1.1rem; }
    .igmg-gk-time { font-size: 1.8rem; }
    .igmg-gk-item.active { transform: scale(1.02); }
}

/* Grid */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Page Card (Seiten) */
.page-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.page-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06), var(--shadow-glow);
  background: #ffffff;
  border-color: var(--gold);
}

.page-card:hover::before {
  opacity: 1;
}

.page-card h3 {
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.page-card:hover h3 {
  color: var(--gold);
}

.page-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,143,107,0.1), rgba(212,175,55,0.1));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-normal);
}

.page-card:hover .page-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(0, 143, 107, 0.2);
}

/* Post Card (Beiträge) */
.post-card {
  background: var(--surface-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--gold);
}

.post-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-image {
  transform: scale(1.08);
}

.post-image-wrapper {
  overflow: hidden;
  position: relative;
  display: block;
}

.post-category {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  z-index: 10;
  border: 1px solid var(--border-light);
}

.post-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-date {
  font-size: 0.9rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-title a {
  color: var(--text-main);
  background: linear-gradient(to right, var(--gold), var(--gold)) no-repeat;
  background-size: 0px 2px;
  background-position: 0% 100%;
  transition: background-size 0.3s ease, color 0.3s ease;
  display: inline;
}

.post-card:hover .post-title a {
  color: var(--gold);
  background-size: 100% 2px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.post-excerpt {
  margin-bottom: 2rem;
  flex: 1;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1rem;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-card:hover .post-read-more {
  color: var(--gold) !important;
}

/* Footer */
.site-footer {
  background: #050c09; /* Premium dark emerald green */
  color: #ffffff;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 15-15 15L15 15 30 0zm0 60l15-15-15-15-15 15 15 15zm30-30l15 15-15 15-15-15 15-15zM0 30l15 15-15 15-15-15 15-15z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-branding p {
  color: #a3b6ab; /* Muted sage text */
  font-size: 1.05rem;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff; /* White title */
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; width: 40px; height: 2px;
  background: var(--gold);
}

.footer-links li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.footer-links a {
  color: #a3b6ab; /* Muted sage links */
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.footer-links a::before {
  content: '\f105'; /* FontAwesome Chevron Right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Contact Details Widget */
.footer-contact-widget li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #a3b6ab; /* Muted sage text */
  font-weight: 300;
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.footer-contact-widget li i {
  color: var(--gold);
  margin-top: 0.25rem;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.footer-contact-widget li a {
  color: #a3b6ab; /* Muted sage links */
  transition: color var(--transition-fast);
}

.footer-contact-widget li a:hover {
  color: var(--gold);
}

.footer-contact-widget .footer-social-strip {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-social-strip a {
  color: #a3b6ab;
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-social-strip a:hover {
  color: var(--gold);
  transform: translateY(-3px) scale(1.1);
}

/* Footer CTA Card */
.footer-cta-card {
  background: rgba(9, 25, 19, 0.6); /* Darker semi-transparent box */
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-cta-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), var(--shadow-glow);
}

.footer-cta-card h4 {
  font-size: 1.25rem;
  color: #ffffff; /* White title */
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.footer-cta-card p {
  font-size: 0.95rem;
  color: #a3b6ab; /* Muted sage text */
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-cta-card .btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Dark subtle border */
  color: #a3b6ab;
  font-weight: 300;
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Single Pages & Posts */
.page-header {
  padding: 50px 0 25px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,143,107,0.03), transparent);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.entry-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.page-header .entry-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.entry-header .entry-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem 0 0;
  border-radius: 2px;
}

.single-content {
  background: var(--surface-color);
  padding: 3rem 4rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  margin-bottom: 5rem;
  border: 1px solid var(--border-color);
}

.thumbnail-header img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Global Content Styles */
.entry-content img,
.entry-content iframe,
.entry-content video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.entry-content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.entry-content th {
  background-color: rgba(0, 143, 107, 0.02);
  font-weight: 600;
}


/* Mobile Navigation Elements */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal), background-color var(--transition-normal);
}

/* Toggle state for mobile hamburger */
.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--gold);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--gold);
}

/* Prevent body scrolling when mobile menu is active */
body.mobile-menu-active {
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

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

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: 160px 0 90px;
    min-height: auto;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Hamburger Menu implementation */
  .mobile-nav-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 110px 2rem 3rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
    z-index: 1050;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .main-navigation.open {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
  }

  /* Link slide-in staggered animation */
  @keyframes fadeInUpMenu {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-navigation.open ul > li {
    animation: fadeInUpMenu 0.4s ease forwards;
    opacity: 0;
  }

  .main-navigation.open ul > li:nth-child(1) { animation-delay: 0.05s; }
  .main-navigation.open ul > li:nth-child(2) { animation-delay: 0.1s; }
  .main-navigation.open ul > li:nth-child(3) { animation-delay: 0.15s; }
  .main-navigation.open ul > li:nth-child(4) { animation-delay: 0.2s; }
  .main-navigation.open ul > li:nth-child(5) { animation-delay: 0.25s; }
  .main-navigation.open ul > li:nth-child(6) { animation-delay: 0.3s; }
  .main-navigation.open ul > li:nth-child(7) { animation-delay: 0.35s; }
  .main-navigation.open ul > li:nth-child(8) { animation-delay: 0.4s; }

  .main-navigation a {
    font-size: 1.25rem;
    display: flex;
    width: 100%;
    padding: 0.5rem 0;
    justify-content: space-between;
    align-items: center;
  }

  .header-actions {
    display: none; /* Hide in main header, will be in mobile menu drawer */
  }

  .main-navigation .mobile-menu-btn {
    display: inline-flex !important;
    margin-top: 2rem;
    width: 100%;
  }

  /* Accordion mobile submenu styling */
  .main-navigation .sub-menu {
    position: static;
    transform: none;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-left: 2px solid var(--gold);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 0.5rem 0 0.5rem 1.25rem;
    min-width: 100%;
    border-radius: 0;
    margin-top: 0.25rem;
    gap: 0.25rem;
  }

  .main-navigation .sub-menu.open {
    display: flex;
  }

  .main-navigation .sub-menu a {
    font-size: 1.05rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
  }

  .main-navigation .sub-menu a:hover {
    background: none;
    color: var(--gold);
    padding-left: 0.25rem;
  }

  /* Dropdown indicator icons on mobile */
  .main-navigation .menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--gold);
    transition: transform var(--transition-fast);
    margin-left: 0.5rem;
  }

  .main-navigation .menu-item-has-children.open-submenu > a::after {
    transform: rotate(180deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-contact-widget li,
  .footer-links li {
    justify-content: center;
  }

  .footer-contact-widget .footer-social-strip {
    justify-content: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .single-content {
    padding: 2.5rem 1.5rem;
    border-radius: 6px;
  }

  .summary-box {
    padding: 1.25rem;
  }

  .entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-header img {
    height: 300px;
    margin-bottom: 2rem;
  }

  .mobile-menu-header {
    display: block !important;
  }
  
  .mobile-menu-footer {
    display: block !important;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 3.5rem; }
}

/* ==========================================================================
   Homepage Overhaul Styles (Inspired by igmg.org)
   ========================================================================== */

/* Hero Compact */
.hero-compact {
  padding: 180px 0 100px;
  min-height: auto;
}

.section-main-grid {
  padding: 20px 0 80px;
}

.homepage-unified-card {
  background: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 3.5rem;
  margin-bottom: 4rem;
}

.homepage-main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.homepage-main-content {
  border-right: 1px solid var(--border-light);
  padding-right: 3.5rem;
}

/* Left Column: Recent Articles List */
.recent-articles-section {
  margin-top: 2rem;
}

.section-title-premium {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.section-title-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title-premium::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-light);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.article-row-card {
  display: flex;
  gap: 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.article-row-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(212, 175, 55, 0.3);
}

.article-row-thumb {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.article-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-row-card:hover .article-row-thumb img {
  transform: scale(1.08);
}

.article-row-placeholder {
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
}

.article-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.article-row-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-row-category {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-row-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
}

.article-row-title {
  font-size: 1.45rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-row-title a {
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.article-row-card:hover .article-row-title a {
  color: var(--gold);
}

.article-row-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.article-row-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary) !important;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.article-row-card:hover .article-row-more {
  color: var(--gold) !important;
}

.view-all-posts-btn-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

.no-posts-found {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

/* Right Column: Sidebar Widgets */
.homepage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.homepage-sidebar .sidebar-widget {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0 0 3.5rem 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.homepage-sidebar .sidebar-widget::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.homepage-sidebar .sidebar-widget:last-child {
  padding-bottom: 0;
}

.homepage-sidebar .sidebar-widget:last-child::after {
  display: none;
}

.widget-title {
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  letter-spacing: 1.5px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background-color: var(--gold);
  border-radius: 2px;
}

/* Search Widget */
.search-form-premium {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 179, 136, 0.15);
}

.search-field-premium {
  border: none;
  background: none;
  outline: none;
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  width: 100%;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
}

.search-submit-premium {
  border: none;
  background: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-submit-premium:hover {
  color: var(--primary);
}

/* Prayer Widget (Sidebar) */
.sidebar-prayer-dates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  background: rgba(212, 175, 55, 0.04);
  padding: 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.sidebar-prayer-date-miladi {
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sidebar-prayer-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.sidebar-prayer-date-hicri {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

.sidebar-prayer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-prayer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
}

.sidebar-prayer-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.sidebar-prayer-item .prayer-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.sidebar-prayer-item .prayer-time {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 300;
}

.sidebar-prayer-item.active {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02)) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15) !important;
  transform: translateY(-2px);
}

.sidebar-prayer-item.active .prayer-name {
  color: var(--gold);
  font-weight: 600;
}

.sidebar-prayer-item.active .prayer-time {
  font-weight: 600;
}

.sidebar-prayer-error {
  text-align: center;
  color: var(--gold-dark);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.95rem;
}

/* Selbstdarstellung Widget */
.brochure-card-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.brochure-cover-img {
  width: 100%;
  max-width: 170px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-md), 0 10px 20px rgba(0,0,0,0.4);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brochure-card-premium:hover .brochure-cover-img {
  transform: scale(1.04) rotate(1deg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.brochure-download-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brochure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  background: rgba(0, 0, 0, 0.03);
}

.brochure-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-inverse) !important;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

/* Publications Widget */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pub-grid-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  aspect-ratio: 1 / 1;
  background: #f1f5f3;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pub-grid-item a {
  display: block;
  width: 100%; height: 100%;
}

.pub-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.pub-grid-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.pub-hover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(5, 12, 9, 0.95) 0%, rgba(5, 12, 9, 0.3) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  transition: opacity var(--transition-normal);
}

.pub-grid-item:hover .pub-hover-overlay {
  opacity: 1;
}

.pub-hover-text {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Institutional Banners widget */
.banners-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-link {
  display: block;
  position: relative;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
  padding: 1.35rem;
  text-decoration: none;
  background: #091913; /* Solid dark green background for light theme contrast */
  transition: all var(--transition-normal);
}

.banner-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  transition: width var(--transition-normal), opacity var(--transition-normal);
  z-index: 1;
}

.banner-link:hover::before {
  width: 100%;
  opacity: 0.08;
}

.banner-link:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), var(--shadow-glow);
  transform: translateY(-2px);
  background: #050c09;
}

.hasene-banner::before { background: var(--primary); }
.ukba-banner::before { background: var(--gold); }
.halal-banner::before { background: #00a4db; }

.banner-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff; /* White title text */
  letter-spacing: 0.8px;
  position: relative;
  z-index: 2;
}

.banner-sub {
  display: block;
  font-size: 0.8rem;
  color: #a3b6ab; /* Muted sage green text */
  margin-top: 0.2rem;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

/* Irfan Evleri Logo Widget */
.widget-irfan {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.irfan-logo-img {
  max-height: 48px;
  width: auto;
  opacity: 0.75;
  transition: all var(--transition-fast);
}

.irfan-logo-link:hover .irfan-logo-img {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}

/* ==========================================================================
   Homepage Responsive Grid Overrides
   ========================================================================== */
@media (max-width: 1024px) {
  .homepage-unified-card {
    padding: 2rem;
  }

  .homepage-main-content {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 3rem;
    margin-bottom: 1rem;
  }

  .homepage-main-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  
  .homepage-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .widget-irfan {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .homepage-unified-card {
    padding: 1.5rem;
    border-radius: 6px;
  }

  .hero-compact {
    padding: 140px 0 80px;
  }
  
  .article-row-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .article-row-thumb {
    width: 100%;
    height: 200px;
  }
  
  .homepage-sidebar {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .widget-irfan {
    grid-column: span 1;
  }
}


/* Dynamic Active Prayer Pulsing Indicator */
.active-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--gold);
  border-radius: 50%;
  margin-left: 10px;
  position: relative;
  vertical-align: middle;
}

.active-pulse-dot::after {
  content: '';
  position: absolute;
  top: -4.5px;
  left: -4.5px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  animation: active-prayer-pulse-glow 1.8s infinite ease-in-out;
  opacity: 0;
  box-sizing: border-box;
}

@keyframes active-prayer-pulse-glow {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Premium Wizard Card & Step Indicator */
.igmg-wizard-card {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  z-index: 5;
  overflow: hidden;
}

.wizard-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  z-index: 1;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  height: 4px;
  background: var(--border-light);
  width: 0%;
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.4s;
}

.progress-step.active .step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 0 15px rgba(0, 179, 136, 0.4);
}

.progress-step.active .step-label {
  color: var(--primary);
}

/* Wizard Form Steps */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: slideFadeIn 0.5s ease-out;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 1.85rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: #d9534f;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Outfit', sans-serif;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-main);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 179, 136, 0.15);
}

.form-group input.input-invalid {
  border-color: #d9534f;
  background-color: rgba(217, 83, 79, 0.02);
}

.form-group input.input-valid {
  border-color: var(--primary);
  background-color: rgba(0, 179, 136, 0.02);
}

/* Preset Monatsbeitrag Buttons */
.contribution-preset-wrap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.preset-btn {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  padding: 0.65rem 0;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preset-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

/* SEPA Legal Container */
.sepa-legal-container {
  height: 160px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  background: rgba(248, 250, 249, 0.6);
  padding: 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sepa-legal-container p {
  margin-bottom: 0.75rem;
}

.sepa-legal-container p:last-child {
  margin-bottom: 0;
}

/* Checkbox Container styling */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Buttons */
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.wizard-buttons button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-buttons .btn-submit {
  margin-left: auto;
}

/* Success Screen */
.wizard-success-screen {
  text-align: center;
  padding: 2rem 0;
  animation: slideFadeIn 0.6s ease-out;
}

.success-icon {
  font-size: 4.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: successPulse 1s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.wizard-success-screen h2 {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.wizard-success-screen p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

.summary-box {
  background: rgba(248, 250, 249, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.summary-box h4 {
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0;
  width: 35%;
  font-size: 0.9rem;
}

.summary-table td {
  color: var(--text-main);
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.summary-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.summary-table tr:last-child {
  border-bottom: none;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Alert Boxes */
.wizard-alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-danger {
  background-color: rgba(217, 83, 79, 0.05);
  border: 1px solid #d9534f;
  color: #c9302c;
}

/* Responsive wizard layout */
@media (max-width: 768px) {
  .igmg-wizard-card {
    padding: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-group.span-2 {
    grid-column: span 1;
  }
  .wizard-progress {
    margin-bottom: 2.5rem;
  }
  .step-label {
    display: none;
  }
  .success-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Print styles for Mitgliedsantrag */
@media print {
  body * {
    visibility: hidden;
  }
  #wizard-success-screen,
  #wizard-success-screen *,
  #summary-box,
  #summary-box * {
    visibility: visible;
  }
  #wizard-success-screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .success-actions,
  .success-icon {
    display: none !important;
  }
  .summary-box {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .summary-box h4 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .summary-table th,
  .summary-table td {
    padding: 10px 0;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Membership Wizard Payment Methods
   ========================================================================== */
.payment-methods-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.payment-method-card i {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.payment-method-card .method-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.payment-method-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.payment-method-card:hover i {
  color: var(--gold);
}

.payment-method-card.active {
  border-color: var(--primary);
  background: rgba(0, 143, 107, 0.03);
  box-shadow: var(--shadow-glow);
}

.payment-method-card.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.payment-method-card.active .method-title {
  color: var(--primary);
}

@media (max-width: 576px) {
  .payment-methods-wrap {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .payment-method-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .payment-method-card i {
    margin-bottom: 0;
  }
}

