/* Custom styles for TabeerIQ - Islamic Dream Interpretation */

/* AGGRESSIVE FULL WIDTH FIX - NO GAPS */
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* All containers - FORCE full width */
main.container, .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Header container fix */
header .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Row fixes */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Center alignment only for specific elements that need it */
.text-center {
    text-align: center;
}

/* Prayer mat pattern for header background with Islamic geometric pattern overlay */
.header-bg {
    background-color: var(--bs-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23138496' fill-opacity='0.15'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Remove any default Bootstrap margins */
* {
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* Enhanced text legibility for content */
.card-title, .card-text, p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    background: none;
    padding: 0;
    margin-bottom: 10px;
}

/* Card titles and text should be extra visible */
.card-title, .card-text {
    font-weight: 500;
}

/* Improved text-dark class for better contrast */
.text-dark {
    color: #f8f9fa !important;
    background: none !important;
    border-left: none !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    padding: 0 !important;
}

/* Analysis page text contrast improvements */
.analysis-section p, 
.interpretation-section p,
.scholarly-section p,
.symbol-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: none;
    padding: 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.analysis-section h3, 
.interpretation-section h3,
.scholarly-section h3,
.symbol-section h3 {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: none;
    padding: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    background: none;
    padding: 4px 6px;
}

.list-unstyled li {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 2px solid rgba(13, 202, 240, 0.25);
}

.feature-text {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 600;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(13, 202, 240, 0.15));
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 3px solid rgba(13, 202, 240, 0.4);
}

/* Additional styles for hero section */
.hero-section {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animated header title glow effect */
.header-title {
    position: relative;
    display: inline-block;
}

.header-title .text-glow {
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(201, 168, 76, 0.3); }
    100% { text-shadow: 0 0 20px rgba(201, 168, 76, 0.8), 0 0 30px rgba(201, 168, 76, 0.5); }
}

/* Enhanced custom card styling for Islamic theme */
.card-islamic {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #c9a84c;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card-islamic:hover {
    box-shadow: 0 6px 15px rgba(201, 168, 76, 0.15);
}

/* Card headers with subtle pattern */
.card-islamic .card-header {
    background-color: rgba(201, 168, 76, 0.05);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

/* Symbol interpretation cards */
.symbol-card {
    transition: all 0.3s ease;
    border: none;
    background-color: var(--bs-dark);
}

.symbol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(201, 168, 76, 0.15);
}

.symbol-card .card-header {
    background: linear-gradient(45deg, rgba(26, 107, 60, 0.15), rgba(201, 168, 76, 0.1));
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom badge for dream source */
.badge-rahmani {
    background: linear-gradient(45deg, var(--bs-success), #20c997);
    color: white;
    box-shadow: 0 2px 5px rgba(25, 135, 84, 0.3);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.badge-nafsani {
    background: linear-gradient(45deg, var(--bs-info), #0dcaf0);
    color: white;
    box-shadow: 0 2px 5px rgba(13, 202, 240, 0.3);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.badge-shaytani {
    background: linear-gradient(45deg, var(--bs-danger), #e35d6a);
    color: white;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Quranic verse styling */
.verse-block {
    font-style: italic;
    border-right: 3px solid #c9a84c;
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(201, 168, 76, 0.06);
    border-radius: 5px;
    transition: all 0.2s ease;
}

.verse-block:hover {
    background-color: rgba(201, 168, 76, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.verse-reference {
    font-weight: bold;
    color: #c9a84c;
    letter-spacing: 0.5px;
}

/* Arabic text styling */
.arabic-text {
    direction: rtl;
    font-family: 'Traditional Arabic', 'Scheherazade', 'Amiri', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 2;
    color: #e2e2e2;
    text-shadow: 0 0 1px rgba(255,255,255,0.1);
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border-right: 3px solid #c9a84c;
}

/* Enhanced validation score indicators */
.score-indicator {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.score-value {
    height: 100%;
    background: linear-gradient(to right, #1a6b3c, #c9a84c);
    transition: width 1s ease-in-out;
}

.overall-score .progress {
    height: 15px;
    border-radius: 7px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.overall-score .progress-bar {
    background: linear-gradient(to right, #1a6b3c, #c9a84c);
    transition: width 1.5s ease-in-out;
}

/* Custom styling for print version */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    body {
        font-size: 12pt;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .interpretation-header {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Dream card styling for journal */
.dream-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 202, 240, 0.1);
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(13, 202, 240, 0.3);
}

.dream-card .card-header {
    padding: 0.75rem;
}

.dream-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(13, 202, 240, 0.1);
}

/* Dashboard stats card styling */
.border-left-primary {
    border-left: 4px solid var(--bs-info);
}

.border-left-success {
    border-left: 4px solid var(--bs-success);
}

.border-left-warning {
    border-left: 4px solid var(--bs-warning);
}

/* Button styling for toggle */
.toggle-btn {
    transition: all 0.3s ease;
}

.toggle-btn:focus {
    box-shadow: none;
}

.toggle-btn .fas {
    transition: transform 0.3s ease;
}

.toggle-btn[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .validation-scores {
        flex-direction: column;
    }

    .score-item {
        width: 100%;
        margin-bottom: 1rem;
    }

    .header-title .text-glow {
        font-size: 1.8rem;
    }

    /* Improved mobile menu items spacing and touch targets */
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 0.5rem;
        font-size: 1.05rem;
    }

    .dropdown-menu {
        width: 100%;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1.5rem;
    }

    /* Make navbar collapse more responsive */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Improve visibility of active menu items */
    .nav-link.active, 
    .nav-link:hover {
        background-color: rgba(13, 202, 240, 0.1);
        border-radius: 4px;
    }

    /* Improve the dream interpreter header for mobile */
    .navbar-brand {
        font-size: 1.1rem;
        padding: 0.25rem 0;
    }
}

/* Enhanced styling for the dream form */
.dream-form-container {
    background-color: rgba(33, 37, 41, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(13, 202, 240, 0.1);
    transition: all 0.3s ease;
}

.dream-form-container:hover {
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.1);
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    border-radius: 5px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
    transform: translateY(-2px);
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Styling for dream time significance info */
.time-significance {
    font-size: 0.875rem;
    padding: 0.7rem;
    border-left: 3px solid #c9a84c;
    background-color: rgba(201, 168, 76, 0.06);
    border-radius: 0 4px 4px 0;
}

/* Custom footer */
.footer {
    background-color: var(--bs-dark);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dream text styling in results */
.dream-text-display {
    white-space: pre-line;
    background-color: rgba(26, 107, 60, 0.05);
    padding: 1.2rem;
    border-radius: 6px;
    font-style: italic;
    border-left: 4px solid #1a6b3c;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Scholarly source badge */
.scholar-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(201, 168, 76, 0.15);
    color: #c9a84c;
    border-radius: 30px;
    margin-right: 5px;
}

/* Ibn Sirin special card */
.ibn-sirin-card {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--bs-warning);
}

/* Service Steps Styling */
.service-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.8));
}

.service-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.2);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-step:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
}

.bg-gradient-dark {
    background: linear-gradient(145deg, #212529, #343a40);
}

/* Enhanced buttons */
.btn-islamic {
    background: linear-gradient(45deg, var(--bs-info), #0dcaf0);
    border: none;
    box-shadow: 0 4px 10px rgba(13, 202, 240, 0.3);
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-icon {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.features-grid li:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(13, 202, 240, 0.2) !important;
}

.quote-box {
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 48px;
    color: rgba(13, 202, 240, 0.2);
    font-family: serif;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

.feature-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-islamic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 202, 240, 0.4);
}

/* Floating labels for form inputs with animations */
.floating-label {
    position: relative;
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label select:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:not([value=""]) + label {
    transform: translateY(-25px) scale(0.8);
    color: var(--bs-info);
}

.floating-label label {
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 15px;
    transition: 0.2s ease all;
    color: rgba(255, 255, 255, 0.6);
}

/* New scrolling animation for long content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered loading for multiple elements */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Pulse animation for card highlighting */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 202, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0);
  }
}

/* Bounce animation for badges */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Loading spinner for dream processing */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    backdrop-filter: blur(5px);
}

.prayer-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid var(--bs-info);
    border-bottom: 4px solid var(--bs-info);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Paper effect for cards */
.paper-effect {
    position: relative;
}

.paper-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z');
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Ibn Sirin's Methodology Section Styling */
.action-analysis-section, .narrative-analysis-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.methodology-header {
    position: relative;
}

.divider-islamic {
    height: 3px;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(58, 191, 248, 0.5), transparent);
    position: relative;
}

.divider-islamic:before {
    content: "●";
    color: rgba(58, 191, 248, 0.7);
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
}

/* Action Card Styling */
.action-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.action-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3ABFF8, transparent);
}

.action-impact-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dream Narrative Timeline Styling */
.narrative-timeline-container {
    position: relative;
    padding: 15px 0;
}

.narrative-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(58, 191, 248, 0.1), 
        rgba(58, 191, 248, 0.4), 
        rgba(58, 191, 248, 0.1));
    border-radius: 3px;
}

.narrative-section {
    position: relative;
    padding-left: 90px;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #1d2430;
    border: 3px solid #3ABFF8;
    box-shadow: 0 0 0 4px rgba(58, 191, 248, 0.1);
    z-index: 2;
}

.marker-dot.highlight {
    background-color: rgba(58, 191, 248, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.marker-label {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #3ABFF8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.narrative-content {
    background-color: #1d2430;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border-left: 3px solid rgba(58, 191, 248, 0.5);
}

.narrative-content p {
    margin-bottom: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    background: none;
    padding: 0;
}

.key-points-list {
    list-style-type: none;
    padding-left: 0;
}

.key-points-list li {
    padding: 5px 0;
    position: relative;
    border-bottom: 1px dotted rgba(58, 191, 248, 0.2);
}

.key-points-list li:last-child {
    border-bottom: none;
} 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.card-islamic .card-body {
    background-color: rgba(22, 28, 36, 0.95);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}

.card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* ============================================================
   MOBILE RESPONSIVENESS — Full site improvements
   ============================================================ */

/* --- Page content: add bottom padding so mobile bottom nav doesn't cover it --- */
@media (max-width: 991.98px) {
    body > main,
    body > .container,
    body > .container-fluid,
    .main-content,
    section.py-5,
    section.py-4 {
        padding-bottom: 90px !important;
    }

    /* Shrink the tall desktop navbar on mobile */
    .navbar {
        padding: 0.6rem 0 !important;
        min-height: 56px !important;
    }

    header.py-2 {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    /* Prevent logo wrapper from being clipped */
    .navbar-brand {
        flex-shrink: 0 !important;
        max-width: calc(100% - 55px) !important;
    }

    /* Ensure logo text never wraps */
    .enhanced-tabeeriq-logo {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .main-brand-text {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
    }

    /* Mobile hamburger fix — ensure it fits */
    .navbar-toggler {
        flex-shrink: 0 !important;
        margin-left: auto;
    }

    /* Mobile drop-down menu full width */
    .navbar-collapse.show {
        padding: 1rem;
    }

    /* Fix condensed text in cards on mobile */
    .card-title {
        font-size: 1.1rem !important;
    }

    .card-text, p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Hero / section headings */
    h1, .display-4, .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    /* Prevent tables from overflowing */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Badge/button groups — allow wrap */
    .btn-group {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Stats/metrics rows */
    .stats-row, .metric-cards {
        flex-direction: column;
    }

    /* Forms: full width inputs */
    .form-control, .form-select, textarea {
        font-size: 16px !important; /* prevents iOS zoom on focus */
    }

    /* Padding on containers inside sections */
    .container, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    h1, .display-4, .display-5 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .main-brand-text {
        font-size: 1rem !important;
    }

    .geometric-svg {
        width: 26px !important;
        height: 26px !important;
    }

    /* Tighter card padding */
    .card-body {
        padding: 0.85rem !important;
    }

    /* Single-column grid on tiny screens */
    .row.g-4 > .col-md-3,
    .row.g-4 > .col-md-4,
    .row.g-4 > .col-lg-3,
    .row.g-4 > .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}