/* 99 Names Block Grid */
.names-grid {
  --bg: #0e1a1a;
  --card-bg: #112222;
  --border: #d9b46a;
  --text: #e9e6dc;
  --muted: #c9c3b0;
  --accent: #f2d48a;

  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  color: var(--text);
}

.grid-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Responsive grid */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

/* Card */
.name-card {
  background: linear-gradient(180deg, rgba(17,34,34,0.92), rgba(17,34,34,0.98));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.name-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  border-color: #f6d891;
}

/* Arabic */
.name-arabic {
  font-family: "Scheherazade New", "Amiri", serif;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
}

/* English transliteration */
.name-english {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* Index badge */
.name-index {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(217, 180, 106, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Optional dark background for the whole section */
body .names-grid-wrapper {
  background: var(--bg);
}
.names-colored-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 2rem 0;
}

.names-colored-grid a {
  display: block;
  text-align: center;
  padding: 14px 10px;
  border: 2px solid #d9b46a; /* gold border */
  border-radius: 8px;
  background: #0e1a1a;       /* deep teal background */
  color: #f2f2f2;            /* light text */
  font-family: "Scheherazade New", serif;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.names-colored-grid a span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  margin-top: 6px;
  color: #d9b46a; /* gold transliteration */
}

.names-colored-grid a:hover {
  background: #1a2a2a;
  border-color: #f6d891;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #0e1a1a;
  border: 2px solid #d9b46a;
  border-radius: 10px;
  padding: 20px;
  max-width: 500px;
  color: #f2f2f2;
  font-family: "Playfair Display", serif;
}

.close {
  float: right;
  font-size: 1.4rem;
  cursor: pointer;
  color: #d9b46a;
}
.welcome h2 {
  text-align: center;
  color: #8b6f3d;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.welcome blockquote {
  background: #fffdf5;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 30px;
  max-width: 700px;
  text-align: center;
  font-style: italic;
  box-shadow: inset 0 0 12px rgba(212,175,55,0.25);
}

.welcome .divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.welcome .divider:before,
.welcome .divider:after {
  content: "";
  display: inline-block;
  width: 25%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #d4af37,
    #d4af37 6px,
    transparent 6px,
    transparent 12px
  );
  vertical-align: middle;
  margin: 0 12px;
}

.welcome .divider span {
  font-family: "Scheherazade", serif;
  font-size: 1.4rem;
  color: #8b6f3d;
  letter-spacing: 2px;
}
/* Section background with subtle pattern */
.article-aisha {
  background: #f9fbe7 url('images/patterns/islamic-pattern.png') repeat;
  background-size: 180px 180px; /* adjust tile size */
  padding: 30px;
  border-radius: 12px;
}

/* Grid container */
.prophets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual cards */
.prophet-card {
  background: #ffffff;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Title bar strip */
.prophet-card h3 {
  background-color: #008000;   /* green strip */
  margin: 0;
  padding: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

/* English names (linked or not) */
.prophet-card h3,
.prophet-card h3 a {
  color: #FFD700 !important;   /* gold text */
  text-decoration: none;       /* remove underline */
}

/* Hover effect for links */
.prophet-card h3 a:hover {
  color: #ffffff !important;   /* white on hover */
  text-decoration: underline;  /* subtle underline */
}


/* Content inside card */
.prophet-card p {
  padding: 10px;
  margin: 0;
  line-height: 1.4;
  color: #4e342e;
}

/* Arabic text styling */
.prophet-card p:first-of-type {
  font-size: 1.3em;
  font-weight: bold;
  color: #2e7d32;
  margin-top: 10px;
}

/* Hover effect */
.prophet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .prophets-grid {
    grid-template-columns: 1fr;
  }
  .prophet-card {
    font-size: 1.05em;
  }
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.article-card {
  background: #ffffff;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Thumbnail images */
.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #c8e6c9;
}

/* Title bar */
.article-card h3 {
  background-color: #008000;
  color: #FFD700 !important;
  margin: 0;
  padding: 10px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Description */
.article-card p {
  padding: 10px;
  margin: 0;
  line-height: 1.4;
  color: #4e342e;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
<style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 30px;
        }

        /* Main Content Area */
        .main-content {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

      .header {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    padding: 0px 0px;
    color: white;
    position: relative;
    overflow: visible !important;
    z-index: 10000 !important;
}
    /* CHANGE overflow: hidden; TO THIS: */
    overflow: visible !important; 
    z-index: 10000 !important; /* Keep this on top */
}
        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: rgba(255, 193, 7, 0.1);
            border-radius: 50%;
        }

        .header h1 {
            font-size: 1.5em;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
            font-weight: 700;
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }

        .content-area {
            padding: 40px;
            color: #333;
            line-height: 1.6;
        }

    /* Sidebar Menu */
        .sidebar {
            display: fle x;
            flex-direction: column;
            gap: 0;
        }

        .menu-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

        .menu-section {
            padding: 0;
        }

        .menu-section-title {
            background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%);
            color: white;
            padding: 14px 18px;
            font-size: 0.85em;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-section-title i {
            font-size: 1.1em;
            color: #0B3D2E;
        }

        .menu-items {
            padding: 8px 0;
        }

        .menu-item {
            padding: 0;
            list-style: none;
        }

        .menu-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 18px;
            color: #333;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 3px solid transparent;
            font-size: 0.95em;
            position: relative;
        }

        .menu-link i {
            font-size: 1.1em;
            color: #145A32;
            transition: transform 0.3s ease;
        }

        .menu-link:hover {
            background-color: #f8f9fa;
            border-left-color: #ffc107;
            padding-left: 22px;
            color: #145A32;
            font-weight: 500;
        }

        .menu-link:hover i {
            transform: scale(1.15);
        }

        .menu-link.active {
            background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
            border-left-color: #ffc107;
            color: #1a4d2e;
            font-weight: 600;
        }

        .menu-link.active i {
            color: #ffc107;
        }

        /* Login Card */
        .login-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            padding: 20px;
            text-align: center;
            margin-top: 20px;
        }

        .login-card h3 {
            color: #1a4d2e;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .login-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
            color: #1a4d2e;
            border: none;
            border-radius: 6px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95em;
            letter-spacing: 0.5px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
        }

        /* Stats */
        .stats {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .stat {
            flex: 1;
            text-align: center;
        }

        .stat-icon {
            font-size: 1.3em;
            color: #ffc107;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.85em;
            color: #666;
        }

        .stat-value {
            font-weight: 700;
            color: #1a4d2e;
            font-size: 1.2em;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 1.8em;
            }

            .header {
                padding: 40px 20px;
            }

            .content-area {
                padding: 20px;
            }
        }

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

        .menu-card {
            animation: slideInDown 0.5s ease;
        }

        .menu-card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .menu-card:nth-child(3) {
            animation-delay: 0.2s;
        }
    </style>
/* Islamic Messages Menu Styling */

/* Menu Title/Header */
.sidebar-right .card-header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%) !important;
    color: white !important;
    padding: 15px 18px !important;
    font-weight: 700 !important;
}

/* Menu Card Container */
.sidebar-right .card {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 20px !important;
}

/* Menu Links - Default State */
.mod-menu a {
    color: #0f7a2e !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* Menu Links - Hover State */
.mod-menu a:hover {
    background-color: #f5f5f5 !important;
    color: #0f7a2e !important;
    padding-left: 24px !important;
    border-left: 4px solid #c9a227 !important;
    font-weight: 600 !important;

}

/* Menu Links - Active State */
.mod-menu li.active > a, .mod-menu a.active {
    background: transparent !important;
    color: #0f7a2e !important;
    border-left: 4px solid #0f7a2e !important;
    font-weight: 600 !important;
}
}
/* ============================================
   CUSTOM CSS FOR ISLAMIC MESSAGES WEBSITE
   Font Display Optimization for Mobile Speed
   ============================================ */

/* Force font-display swap for Font Awesome icons */
/* This makes text visible immediately while fonts load */

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local('Font Awesome 5 Free Solid'), 
       local('FontAwesome5Free-Solid'),
       url('../webfonts/fa-solid-900.woff2') format('woff2'),
       url('../webfonts/fa-solid-900.woff') format('woff');
}

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Font Awesome 5 Free Regular'), 
       local('FontAwesome5Free-Regular'),
       url('../webfonts/fa-regular-400.woff2') format('woff2'),
       url('../webfonts/fa-regular-400.woff') format('woff');
}

@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Font Awesome 5 Brands Regular'), 
       local('FontAwesome5Brands-Regular'),
       url('../webfonts/fa-brands-400.woff2') format('woff2'),
       url('../webfonts/fa-brands-400.woff') format('woff');
}

/* Optional: Add any other custom styles below this line */
/* Remove black space from banner on mobile */
@media (max-width: 768px) {
  picture img[alt="IslamicMessages"],
  img[alt="IslamicMessages"] {
    object-fit: cover;
    object-position: center;
    max-height: 120px;
  }
}
/* Fix banner black space on mobile */
@media (max-width: 768px) {
  /* Target the banner link and picture container */
  p a picture,
  p a picture img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 80px;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }
  
  /* Remove extra space from paragraph */
  p:has(picture) {
    margin: 0;
    padding: 0;
    line-height: 0;
  }
}
@media (max-width: 768px) {
    p a img {
        width: 100%;
        height: auto;
        display: block;
    }
}
.header {
    padding: 0 !important;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}
/* Change Maximenu CK background color */
#maximenu {
  background-color: #0f7a2e !important; /* Islamic Messages green */
  background: linear-gradient(135deg, #0a5520 0%, #0f7a2e 60%, #1a9940 100%) !important; /* Gradient like your banner */
}

/* Menu bar background */
.maximenu,
.maxiMenu,
#maximenuCK {
  background-color: #0f7a2e !important;
}

/* Menu items hover color */
#maximenu .maximenu_hover,
#maximenu li:hover {
  background-color: #0a5520 !important; /* Darker green on hover */
}

/* Dropdown menus background */
#maximenu .maxipushdownck,
#maximenu .floatck {
  background-color: #0f7a2e !important;
}

/* Menu text color (make sure it's readable) */
#maximenu a {
  color: #ffffff !important; /* White text */
}
/* ============================================
   FIX CONTRAST FOR "ISLAM FOR THE JUNIOR" MENU
   White text on green background
   ============================================ */

/* Main menu item fix */
a[href*="islam-for-the-junior"] {
  color: #ffffff !important; /* White text */
  font-weight: 600 !important; /* Bold for better readability */
  background-color: #0f7a2e !important; /* Your site's green */
  padding: 8px 12px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}

/* On hover - darker green */
a[href*="islam-for-the-junior"]:hover {
  background-color: #0a5520 !important; /* Darker green */
  color: #ffffff !important;
}

/* If it's in Maximenu */
#maximenu a[href*="islam-for-the-junior"],
.maximenu a[href*="islam-for-the-junior"] {
  color: #0f7a2e !important;
  background-color: #d4af3700 !important;
}

/* If it's in sidebar card */
.sidebar-right.card a[href*="islam-for-the-junior"],
.card a[href*="islam-for-the-junior"] {
  color: #0f7a2e !important;
  background-color: #d4af3700 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}
/* This is a guess based on your screenshot's labels */
.ramadan-blessings, .ramadan-banner {
    display: none;
}
/* ===== Simple Islamic Blog Grid ===== */

.simple-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.simple-blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.simple-blog-card:hover {
    transform: translateY(-5px);
}

.simple-blog-card h3 {
    margin: 0;
    background: #116530;
    padding: 15px;
    font-size: 18px;
}

.simple-blog-card h3 a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.simple-blog-card p {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    color: #444;
}
.menu-item:hover {
  background-color: #D4AF37;
  color: white;
  transition: background-color 0.3s ease;
}
.cta-button {
  background-color: #FFEB3B;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 10px #FFEB3B;
  transition: box-shadow 0.3s ease;
}
.cta-button:hover {
  box-shadow: 0 0 20px #FFD700;
}
/* Banner */
.prophet-banner {
  background: linear-gradient(135deg, #2c3e50, #4a3c2a);
  color: #fff8f0;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 4px solid #d4af37;
  position: relative;
}
.prophet-banner h1 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  margin: 0;
}
.prophet-banner p {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  margin-top: 10px;
  color: #f9e7d2;
}

/* Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Cards */
.article-card {
  background: #fff8f0;
  border: 2px solid #e0c097;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.article-card h3 {
  font-family: 'Georgia', serif;
  color: #4a3c2a;
  margin-bottom: 10px;
}
.article-card h3::before {
  content: "☾ ";
  color: #d4af37;
}
.article-card a {
  text-decoration: none;
  color: #2c3e50;
}
.article-card a:hover {
  color: #d4af37;
}
.article-card p {
  font-family: 'Arial', sans-serif;
  color: #555;
  line-height: 1.5;
}

/* Footer */
.prophet-footer {
  background: #2c3e50;
  color: #fff8f0;
  text-align: center;
  padding: 20px;
  border-top: 4px solid #d4af37;
}
.prophet-footer p {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  margin: 0;
}
/* Prevent menu overlap */
.navbar-nav {
    flex-wrap: wrap;
}

/* Space between menu items */
.navbar-nav .nav-item {
    margin-right: 12px;
}

/* Improve readability */
.navbar-nav .nav-link {
    padding: 8px 14px;
}
/* Menu text color */
.navbar-nav .nav-link {
    color: #ffffff;
}

/* Hover color */
.navbar-nav .nav-link:hover {
    color: #ffd166;
}
/* Allow menu to wrap instead of overlapping */
.navbar-nav {
    flex-wrap: wrap;
}

/* Space between menu items */
.navbar-nav .nav-item {
    margin-right: 12px;
}

/* Improve spacing */
.navbar-nav .nav-link {
    padding: 8px 14px;
}
/* Force menu to collapse earlier on smaller screens */
@media (max-width: 1200px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }
}
/* Menu text colour */
.navbar-nav .nav-link {
    color: #ffffff;
}

/* Hover colour */
.navbar-nav .nav-link:hover {
    color: #f4c542;
}
/* Forces all links in the menu to use the same dark color, even when active */
.mod-menu a, 
.mod-menu button, 
.mod-menu .active a, 
.mod-menu .current-menu-item a {
    color: #0f7a2e !important; /* Replace this hex code with your exact dark green */
}
/* Fix mobile menu position */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Keep hamburger button on the right */
.navbar-toggler {
    margin-left: auto;
}

/* Ensure menu opens below header */
.navbar-collapse {
    width: 100%;
}
/* Custom Styles for Islam Invitation Article */
.islam-invitation {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}

.islam-invitation h1.display-4 {
    color: #00643c; /* Islamic Green */
    font-weight: 700;
    border-bottom: 3px solid #e3a53e; /* Gold Accent */
    padding-bottom: 10px;
}

.islam-invitation .card {
    transition: transform 0.3s ease;
    background-color: #fcfaf5; /* Soft Cream */
}

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

.islam-invitation .border-primary { border-color: #00643c !important; }
.islam-invitation .border-success { border-color: #d4be83 !important; }

.islam-invitation blockquote {
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
}

.islam-invitation .alert-info {
    background-color: #00643c;
    color: #fff;
    border: none;
    border-radius: 8px;
}

.islam-invitation .btn-primary {
    background-color: #00643c;
    border-color: #00643c;
}

.islam-invitation .btn-primary:hover {
    background-color: #004d2e;
}
/* Next Steps Page Styling */
.next-steps-journey .bg-emerald-light {
    background-color: #f0f7f4;
    border-top: 3px solid #00643c;
}

.next-steps-journey .bg-gold-light {
    background-color: #fdfaf2;
    border-top: 3px solid #e3a53e;
}

.next-steps-journey .btn-warning {
    background-color: #e3a53e;
    border: none;
    color: #fff;
    font-weight: bold;
}

.next-steps-journey .btn-warning:hover {
    background-color: #c98e2d;
    color: #fff;
}

.next-steps-journey .italic-text {
    font-style: italic;
    border: 1px dashed #00643c;
}
.next-steps-header {
    background: linear-gradient(rgba(0, 100, 60, 0.7), rgba(0, 100, 60, 0.7)), 
                url('/images/your-green-gold-image.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    color: #fff !important;
    padding: 100px 20px;
    border-radius: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.next-steps-header h1 {
    color: #e3a53e !important; /* Gold Title on the Image */
    font-weight: 800;
}
.community-support h3 {
    color: #00643c;
    font-weight: 700;
}
.community-support .card {
    border-radius: 15px;
}
.community-support .btn-outline-success {
    border-color: #00643c;
    color: #00643c;
}
.community-support .btn-outline-success:hover {
    background-color: #00643c;
    color: white;
}
/* Updated Hajj Facts Styling */
.hajj-facts-container .fact-card {
    background: #ffffff;
    border: 2px solid #e3a53e; /* Gold Border */
    border-radius: 15px;
    padding: 25px 20px; /* Better padding for shape */
    transition: all 0.3s ease;
    min-height: 140px; /* Ensures balanced height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hajj-facts-container .fact-card:hover {
    transform: scale(1.03);
    background-color: #fcfaf5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.hajj-facts-container .fact-card h6 {
    color: #00643c;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hajj-facts-container .fact-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.hajj-facts-container .central-image-wrapper img {
    width: 280px; /* Fixed width for better circle shape */
    height: 280px;
    object-fit: cover;
    border: 6px solid #e3a53e;
}

/* Fix for mobile view so they aren't too tall */
@media (max-width: 991px) {
    .hajj-facts-container .fact-card {
        min-height: auto;
        margin-bottom: 15px;
    }
    .hajj-facts-container .central-image-wrapper img {
        width: 180px;
        height: 180px;
    }
}
/* Final Robust Hajj Layout */
.hajj-fixed-layout .hajj-card {
    background: #ffffff;
    border: 1px solid #e3a53e;
    border-top: 5px solid #00643c; /* Thick green top bar */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 250px; /* Forces it to stay wide */
}

.hajj-fixed-layout .hajj-card:hover {
    transform: translateY(-8px);
    border-color: #00643c;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.hajj-fixed-layout .hajj-card h5 {
    color: #00643c;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.hajj-fixed-layout .hajj-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive fix for smaller tablets */
@media (max-width: 768px) {
    .hajj-fixed-layout .hajj-card {
        padding: 20px;
        min-width: 100%;
    }
}
/* Hajj Card Layout Fix */
.hajj-facts-section .hajj-card {
    background: #fff;
    border: 1px solid #e3a53e; /* Gold border */
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hajj-facts-section .hajj-card:hover {
    transform: translateY(-5px);
}

.hajj-facts-section .card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #00643c; /* Islamic Green */
}

.hajj-facts-section .hajj-card h5 {
    color: #00643c;
    font-weight: 800;
    margin-top: 10px;
    font-size: 1.2rem;
}

.hajj-facts-section .hajj-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}
/* Vertical Timeline for Joomla 6 */
.hajj-timeline-wrapper { position: relative; background: #fcfaf5; }
.hajj-timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 20px 0; }

/* The central line */
.hajj-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e3a53e; /* Gold line */
    top: 0; bottom: 0; left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

/* Individual Items */
.timeline-item { padding: 10px 40px; position: relative; width: 50%; background-color: inherit; }

/* Dots on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    right: -10px; background-color: #fff;
    border: 4px solid #00643c;
    top: 25px; border-radius: 50%; z-index: 1;
}

.right { left: 50%; }
.right::after { left: -10px; }

/* Content Boxes */
.timeline-item .content {
    padding: 25px; background-color: #fff;
    border-radius: 12px; border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.timeline-item:hover .content {
    transform: scale(1.03);
    border-color: #00643c;
    box-shadow: 0 10px 20px rgba(0, 100, 60, 0.1);
}

.day-badge {
    display: inline-block; background: #00643c;
    color: #fff; padding: 3px 12px;
    border-radius: 20px; font-weight: bold;
    margin-bottom: 10px; font-size: 0.8rem;
}

/* Responsive Fix for Mobile */
@media screen and (max-width: 768px) {
    .hajj-timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
}
/* Hajj Countdown Styling */
.hajj-countdown-section .countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #e3a53e;
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
}

.hajj-countdown-section .display-4 {
    color: #e3a53e;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hajj-countdown-section .x-small {
    font-size: 0.75rem;
    opacity: 0.8;
}
/* Nusuk Guide Styling */
.nusuk-guide-section .step-number {
    background-color: #00643c;
    color: #e3a53e;
    font-weight: 800;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e3a53e;
}
.nusuk-guide-section a {
    color: #00643c;
    text-decoration: underline;
}
/* ✅ Banner image stabilization */
.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 190; /* reserves space before load */
}

/* ✅ Hero text stabilization */
.hero-text {
  min-height: 200px; /* reserves vertical space */
  padding: 20px;
  font-display: swap; /* avoids font load jumps */
}

/* ✅ Navigation menu stabilization */
.nav-item {
  min-height: 40px;
  line-height: 40px;
  padding: 0 10px;
  display: inline-block;
}

/* ✅ General fix for images */
img {
  max-width: 100%;
  height: auto;
}
/* Reserve space for welcome message */
.welcome-section,
[class*="welcome"] {
    min-height: 200px; /* Adjust based on your content */
}

/* Prevent layout shift on homepage hero */
.site-hero,
.hero-section,
.page-header {
    min-height: 300px; /* Reserve space */
}
/* Prevent menu shift */
.mod-menu > ul > li {
    min-width: fit-content;
}

/* Reserve vertical space for dropdowns */
.mod-menu ul ul {
    position: absolute;
    min-height: 0;
}

/* Stabilize menu during load */
.mod-menu {
    min-height: 56px; /* Your menu height */
}
.main-nav {
    min-height: 50px; /* lock menu height */
}

.main-menu > li > a {
    height: 50px;
    line-height: 50px;
}
.main-menu li ul.dropdown {
    position: absolute;
    top: 50px; /* fixed position under menu */
}
.hero-banner {
    min-height: 300px; /* adjust to your design */
}
div[style=""] {
    min-height: 50px;
}
/* Add this to your user.css */
.your-header-class {
    min-height: 200px; /* Adjust this to match the actual height of that section */
}
/* Adjust the 'min-height' to the actual height of your header on desktop */
.welcome-section-class { 
    min-height: 150px; 
    contain: layout;
}
/* Mobile dropdown hidden */
@media (max-width: 1024px) {
    .dropdown {
        display: none;
    }

    .dropdown.open {
        display: block;
    }
}
/* Increase touch target size for menu links */
.mod-menu a, 
.mod-menu .nav-header,
.mod-menu .mm-toggler {
    min-height: 48px;     /* Ensures a minimum height for tapping */
    padding-top: 12px;    /* Adds space above text */
    padding-bottom: 12px; /* Adds space below text */
    display: flex;        /* Helps align text vertically */
    align-items: center;  /* Centers text in the 48px height */
    text-decoration: none;
}

/* Add spacing between the items so they don't overlap */
.mod-menu li {
    margin-bottom: 4px;   /* Creates a small gap between touch zones */
}

/* Specific fix for the toggler buttons in Joomla 6 */
button.mm-toggler {
    min-width: 48px;      /* Ensures the button itself is wide enough */
    min-height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
}
/* Force the Cassiopeia Hamburger icon to be visible and Gold */
.navbar-toggler {
    border-color: #c9a227 !important; /* Your gold color */
    background-color: rgba(255, 255, 255, 0.1); /* Slight highlight */
}

.navbar-toggler-icon {
    /* This SVG filter turns the default black icon into a gold/yellow color */
    filter: invert(72%) sepia(58%) saturate(441%) hue-rotate(5deg) brightness(92%) contrast(89%);
}

/* Ensure the menu sits on top of your Hero section */
.header-inner {
    z-index: 1000;
    position: relative;
}
/* 1. Make the dropdown background white or light gold so text stands out */
.metismenu.mod-menu .metismenu-item ul {
    background-color: #ffffff !important; /* White background for the list */
    border: 1px solid #c9a227 !important; /* Gold border to match your theme */
    padding: 10px !important;
    min-width: 200px !important;
    z-index: 9999 !important; /* Ensures it stays on top of the Breadcrumbs */
    display: none; /* Default state */
}

/* 2. Show the menu on hover/click */
.metismenu.mod-menu .metismenu-item:hover > ul,
.metismenu.mod-menu .metismenu-item.mm-show > ul {
    display: block !important;
}

/* 3. Change the text color inside the dropdown to be readable */
.metismenu.mod-menu .metismenu-item ul li a {
    color: #0a5520 !important; /* Dark green text on white background */
    padding: 8px 15px !important;
    display: block !important;
    text-decoration: none !important;
}

/* 4. Add a hover effect for the dropdown items */
.metismenu.mod-menu .metismenu-item ul li a:hover {
    background-color: #c9a227 !important; /* Gold background on hover */
    color: #ffffff !important; /* White text on hover */
}
/* Force the dropdown container to be visible and white */
.dropdown-menu {
    background-color: #ffffff !important; 
    border: 2px solid #c9a227 !important; /* Gold border */
    display: none; 
    position: absolute;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

/* Show the dropdown when hovering over the parent li */
.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0; /* Prevents a gap that closes the menu */
}

/* Fix the text color inside the dropdown */
.dropdown-menu a.dropdown-item {
    color: #0a5520 !important; /* Dark Green text */
    padding: 10px 20px !important;
    font-weight: bold !important;
    display: block !important;
}

/* Hover effect for the links */
.dropdown-menu a.dropdown-item:hover {
    background-color: #c9a227 !important; /* Gold background */
    color: #ffffff !important; /* White text */
}
/* --- 1. THE MAIN BAR --- */
.custom-main-menu {
    background: #000000; /* Black Bar */
    border-bottom: 3px solid #0a5520; /* Dark Green accent */
    position: relative;
    z-index: 1000;
}

.custom-main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

/* --- 2. TOP LEVEL LINKS --- */
.custom-main-menu ul li a, 
.custom-main-menu ul li span.nav-header {
    color: #00ff00 !important; /* Bright Green */
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.custom-main-menu ul li a:hover {
    color: #c9a227 !important; /* Gold on Hover */
    background: rgba(255,255,255,0.05);
}

/* --- 3. THE DROPDOWNS (Desktop) --- */
.custom-main-menu ul li {
    position: relative;
}

.custom-main-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; /* White background for dropdown */
    min-width: 220px;
    flex-direction: column;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    border: 1px solid #c9a227;
}

.custom-main-menu ul li:hover > ul {
    display: block; /* Show on hover */
}

/* Dropdown Links */
.custom-main-menu ul li ul li a {
    color: #0a5520 !important; /* Dark Green */
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-main-menu ul li ul li a:hover {
    background: #c9a227 !important; /* Gold Background */
    color: #ffffff !important; /* White Text */
}

/* --- 4. MOBILE HAMBURGER LOGIC --- */
@media (max-width: 991px) {
    .custom-main-menu ul {
        display: none; /* Hide links by default on mobile */
        flex-direction: column;
        background: #000000;
    }

    /* Target the checkbox hack or a simple class toggle */
    .custom-main-menu.show-menu ul {
        display: flex;
    }

    .custom-main-menu ul li ul {
        position: static; /* Stack dropdowns vertically on mobile */
        width: 100%;
        background: #111;
        border: none;
    }
    
    .custom-main-menu ul li ul li a {
        color: #ffffff !important;
        padding-left: 40px;
    }
}
/* 1. Lift the entire Header above the Homepage content */
header.header, 
.header-inner, 
.custom-navigation {
    position: relative !important;
    z-index: 1050 !important; /* Forces it to the top layer */
}

/* 2. Ensure the Dropdown Menu itself is on the "Master" layer */
.custom-navigation ul li ul {
    position: absolute !important;
    display: none; 
    z-index: 9999 !important; /* Highest possible priority */
    background: #ffffff !important; /* Solid white so it isn't transparent */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important; /* Adds a shadow to separate it from the page */
}

/* 3. Show it when you hover */
.custom-navigation ul li:hover > ul {
    display: block !important;
}
/* This forces the top area of the site to be on the highest layer possible */
#sp-header, 
header, 
.header-inner, 
.custom-navigation {
    position: relative !important;
    z-index: 10000 !important; /* Extremely high number */
}

/* This forces the homepage content to stay on a lower layer */
#sp-main-body, 
main, 
.container-main {
    position: relative !important;
    z-index: 1 !important; /* Lowest possible layer */
}
/* Ensure the inner containers don't clip the menu */
.header-inner, 
.container-header, 
.navbar, 
.custom-navigation {
    overflow: visible !important;
    position: relative !important;
}

/* Force the dropdown list to show on top of the green welcome box */
.custom-navigation ul li ul {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 99999 !important; /* Highest priority */
    background: #ffffff !important; 
}

/* Ensure the welcome section stays behind the menu */
.welcome-section, 
.hero-section, 
#sp-main-body {
    z-index: 1 !important;
    position: relative !important;
}
/* Ensure all sub-menus stay on top and are visible */
.custom-navigation ul li ul li ul {
    left: 100% !important; /* For side-opening menus */
    top: 0 !important;
}

/* Specific fix for deep menus */
.custom-navigation li, .custom-navigation ul {
    overflow: visible !important;
}

/* Make sure the white background stays solid */
.custom-navigation ul li ul {
    background-color: #ffffff !important;
    display: none;
}

.custom-navigation ul li:hover > ul {
    display: block !important;
    z-index: 999999 !important;
}
/* --- 1. RESET & BAR --- */
.custom-navigation {
    background: #000000;
    width: 100%;
    z-index: 1000;
    position: relative;
    border-bottom: 2px solid #0a5520;
}

.custom-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* --- 2. DESKTOP LINKS --- */
.custom-navigation ul li a, 
.custom-navigation ul li span.nav-header {
    color: #00ff00 !important; /* Bright Green */
    padding: 15px 25px;
    display: block;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.custom-navigation ul li a:hover {
    color: #c9a227 !important; /* Gold */
    background: rgba(255, 255, 255, 0.05);
}

/* --- 3. DESKTOP DROPDOWNS --- */
.custom-navigation ul li { position: relative; }

.custom-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid #c9a227;
}

.custom-navigation ul li:hover > ul { display: flex; }

.custom-navigation ul li ul li a {
    color: #0a5520 !important; /* Dark Green */
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.custom-navigation ul li ul li a:hover {
    background: #c9a227 !important;
    color: #ffffff !important;
}

/* --- 4. MOBILE HAMBURGER & LOGIC --- */
.menu-trigger {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.menu-trigger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #c9a227; /* Gold Bars */
    margin: 5px 0;
}

@media (max-width: 991px) {
    .menu-trigger { display: block; }

    .custom-navigation ul {
        display: none; /* Hide Menu */
        flex-direction: column;
        width: 100%;
        background: #000;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .custom-navigation.active ul {
        display: flex; /* Show Menu when Active */
    }

    .custom-navigation ul li ul {
        position: static;
        width: 100%;
        background: #111;
        box-shadow: none;
    }
}
/* If the JS isn't working, this forces the menu to show when the checkbox is checked */
.menu-trigger.is-open + .custom-navigation ul {
    display: flex !important;
}
/* This is the magic line that makes it open */
@media (max-width: 991px) {
    .custom-navigation.active ul {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: #000000; /* Matching your black theme */
        z-index: 99999;
        padding: 20px;
    }
}
/* --- Desktop Menu Refinement --- */
@media (min-width: 992px) {
    /* 1. Change the main bar from Black to White */
    .custom-navigation {
        background-color: #ffffff !important;
        border-bottom: 2px solid #0a5520; /* Keep the green bottom line */
    }

    /* 2. Reduce the Padding (Space) around the links */
    .custom-navigation ul li a, 
    .custom-navigation ul li span.nav-header {
        color: #0a5520 !important; /* Change text from Green-on-Black to Dark Green-on-White */
        padding: 8px 15px !important; /* Reduced from 15px/25px to make it thinner */
        font-size: 0.95rem; /* Slightly smaller font to fit more items */
    }

    /* 3. Hover Effect */
    .custom-navigation ul li a:hover {
        background-color: #f8f9fa !important; /* Light grey hint on hover */
        color: #c9a227 !important; /* Gold text on hover */
    }

    /* 4. Dropdown Adjustments */
    .custom-navigation ul li ul {
        top: 100% !important;
        border-top: 2px solid #c9a227; /* Gold top border for the dropdown box */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}
/* --- MOBILE ALIGNMENT FIXES --- */
@media (max-width: 768px) {
    /* Make sure all grids stack vertical on phones */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
    }

    /* Reduce the giant font sizes for mobile screens */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    p { font-size: 1rem !important; }

    /* Fix the Stats Bar (Articles/Stories/Resources) */
    div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Ensure images and boxes don't overflow the screen width */
    div, section, article {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    
    /* Make buttons full-width so they are easier to tap */
    a[style*="display: inline-block"] {
        display: block !important;
        margin: 10px 0 !important;
        text-align: center;
    }
}
/* Remove the decorative circle from header */
.header::before {
    display: none !important;
}

/* Also remove any other decorative circles that might exist */
.header::after,
.hero::before,
.hero::after,
.welcome::before,
.welcome::after,
[class*="header"]::before,
[class*="header"]::after {
    display: none !important;
}


@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap !important;
  src: url("/media/system/webfonts/fa-solid-900.woff2?v=4a6591") format("woff2");
}


