/* Islamic Website Custom Styles - Updated: Navigation Spacing */

:root {
    /* New Color Palette */
    --midnight-green: #125960;
    --white: #FEFEFE;
    --midnight-green-2: #155D67;
    --alabaster: #EFEBE2;
    --chamoisee: #937F5B;
    
    /* Legacy variables mapped to new palette */
    --primary-color: var(--midnight-green);
    --secondary-color: var(--midnight-green-2);
    --accent-color: var(--chamoisee);
    --gold-color: var(--chamoisee);
    --text-dark: var(--midnight-green);
    --text-light: var(--chamoisee);
    --bg-light: var(--alabaster);
    --shadow: 0 0.125rem 0.25rem rgba(18, 89, 96, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(18, 89, 96, 0.25);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--midnight-green);
    padding-top: 76px;
    background-color: var(--white);
}

.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.custom-navbar {
    background: #FEFFFF !important;
    box-shadow: 0 2px 10px rgba(18, 89, 96, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer-style logo for header */
.footer-logo-style {
    display: flex;
    align-items: center;
    color: var(--midnight-green);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo-style:hover {
    color: var(--chamoisee);
    text-decoration: none;
}

.footer-logo-style i {
    font-size: 1.8rem;
    color: var(--chamoisee);
    transition: all 0.3s ease;
}

.footer-logo-style:hover i {
    color: var(--midnight-green);
    transform: scale(1.1);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Center the navigation menu between logo and donate button */
.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex: 1;
}

.navbar-donate {
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: var(--chamoisee) !important;
    font-size: 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--midnight-green) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.navbar-nav .nav-link.active {
    color: var(--midnight-green) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.btn-donate {
    background: linear-gradient(135deg, var(--midnight-green), var(--midnight-green-2));
    color: var(--white);
    border: 2px solid var(--chamoisee);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(18, 89, 96, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 254, 254, 0.2), transparent);
    transition: left 0.5s;
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--midnight-green-2), var(--midnight-green));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(18, 89, 96, 0.4);
}

.btn-donate:hover::before {
    left: 100%;
}

.btn-donate:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(18, 89, 96, 0.3);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--chamoisee);
    border-radius: 6px;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(147, 127, 91, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28147, 127, 91, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg_11zon.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content-overlay {
    background: rgba(239, 235, 226, 0.45);
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /*backdrop-filter: blur(10px);*/
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-text-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--midnight-green);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

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

.btn-primary-hero {
    background: var(--midnight-green);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 89, 96, 0.3);
}

.btn-primary-hero:hover {
    background: var(--midnight-green-2);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 89, 96, 0.4);
}

.btn-secondary-hero {
    background: var(--white);
    color: var(--midnight-green);
    border: 2px solid var(--midnight-green);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: var(--midnight-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 89, 96, 0.3);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--chamoisee);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--midnight-green), var(--midnight-green-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--midnight-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--chamoisee);
    line-height: 1.6;
}

/* Quick Access Cards */
.quick-access-card {
    display: block;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: inherit;
    text-decoration: none;
    border-color: var(--chamoisee);
}

.quick-access-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--chamoisee), var(--midnight-green-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.quick-access-card h5 {
    color: var(--midnight-green);
    font-weight: 600;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--midnight-green) !important;
}

.footer h5, .footer h6 {
    color: var(--chamoisee);
    font-weight: 600;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--chamoisee) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(254, 254, 254, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--chamoisee);
    color: var(--midnight-green) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-spacer {
        max-width: 150px;
    }
    
    .navbar-donate {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .hero-content-overlay {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary-hero, .btn-secondary-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .prayer-times-card {
        padding: 1.2rem;
        margin: 0;
    }
    
    .prayer-title {
        font-size: 1.1rem;
    }
    
    .current-time {
        font-size: 1.6rem;
    }
    
    .content-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .content-item {
        flex-direction: column;
        text-align: center;
    }
    
    .content-image {
        width: 100%;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .content-meta {
        gap: 1rem;
        justify-content: center;
    }
    
    .meta-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .location-help-text p {
        font-size: 0.8rem;
    }
    
    .disclaimer-text {
        font-size: 0.65rem !important; /* Even smaller on mobile */
    }
    
    /* Quran sections responsive */
    .quran-verse-card, .quran-search-card {
        padding: 1.5rem;
    }
    
    .verse-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .arabic-text {
        font-size: 1.4rem;
        line-height: 2;
    }
    
    .search-form .input-group {
        flex-direction: column;
    }
    
    .btn-search {
        border-radius: 0 0 10px 10px;
    }
    
    .search-input {
        border-radius: 10px 10px 0 0;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .feature-card, .quick-access-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile navbar adjustments */
    .navbar-collapse {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .navbar-donate {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .btn-donate {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .arabic-text {
        font-size: 1.8rem;
    }
    
    .english-text {
        font-size: 0.9rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-icon {
        font-size: 6rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Utility Classes */
.text-primary-custom {
    color: var(--midnight-green) !important;
}

.bg-primary-custom {
    background-color: var(--midnight-green) !important;
}

.border-primary-custom {
    border-color: var(--midnight-green) !important;
}

.text-accent-custom {
    color: var(--chamoisee) !important;
}

.bg-accent-custom {
    background-color: var(--chamoisee) !important;
}

.bg-alabaster {
    background-color: var(--alabaster) !important;
}

.text-chamoisee {
    color: var(--chamoisee) !important;
}

.text-midnight-green {
    color: var(--midnight-green) !important;
}

.text-midnight-green-2 {
    color: var(--midnight-green-2) !important;
}

.bg-midnight-green {
    background-color: var(--midnight-green) !important;
}

.bg-midnight-green-2 {
    background-color: var(--midnight-green-2) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Prayer Times Section - Two Column Layout */
.prayer-content-section {
    background-color: #FEFFFF;
    min-height: 80vh;
    padding: 3rem 0;
}

.prayer-times-card {
    background: rgba(239, 235, 226, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.prayer-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.prayer-title {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--midnight-green);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.current-time-display {
    margin-bottom: 0.8rem;
}

.current-time {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--midnight-green);
    margin-bottom: 0.2rem;
    font-family: 'Inter', sans-serif;
}

.current-date {
    font-size: 0.9rem;
    color: var(--chamoisee);
    font-weight: 500;
}


.prayer-times-list {
    margin-bottom: 1.5rem;
}

.prayer-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(147, 127, 91, 0.2);
    position: relative;
}

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

.prayer-item.current-prayer {
    background: rgba(18, 89, 96, 0.1);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin: 0 -1rem;
}

/* Next upcoming prayer indicator */
.prayer-item.next-prayer {
    background: rgba(147, 127, 91, 0.08);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    margin: 0 -1rem;
}

.prayer-item.next-prayer .prayer-icon {
    color: var(--chamoisee);
}

.prayer-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    color: var(--chamoisee);
    font-size: 1.1rem;
}

.prayer-item.current-prayer .prayer-icon {
    color: var(--midnight-green);
}

.prayer-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--midnight-green);
}

.prayer-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--midnight-green);
    margin-right: 1rem;
}

.prayer-status {
    color: var(--midnight-green);
    font-size: 1rem;
}

/* Adhan Controls */
.adhan-controls {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(18, 89, 96, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.adhan-toggle {
    margin-bottom: 0.8rem;
}

.adhan-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--midnight-green);
    font-weight: 500;
}

.adhan-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(18, 89, 96, 0.1);
    border: 2px solid var(--midnight-green);
    border-radius: 4px;
    margin-right: 0.6rem;
    position: relative;
    transition: all 0.3s ease;
}

.adhan-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--midnight-green);
}

.adhan-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.adhan-label {
    user-select: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.volume-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--midnight-green);
    font-weight: 500;
    min-width: 70px;
}

.volume-label i {
    color: var(--chamoisee);
    font-size: 0.9rem;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(18, 89, 96, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--midnight-green);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--midnight-green-2);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--midnight-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--midnight-green-2);
    transform: scale(1.1);
}

.volume-value {
    font-size: 0.8rem;
    color: var(--midnight-green);
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.stop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 6px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.stop-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.stop-btn i {
    font-size: 0.8rem;
}

/* Content Item Overlays */
.content-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 89, 96, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.content-item:hover .content-overlay {
    background: rgba(18, 89, 96, 0.6);
}

.overlay-icon {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Links */
.content-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.content-link:hover {
    text-decoration: none;
    color: inherit;
}

.content-image .content-link {
    display: block;
    width: 100%;
    height: 100%;
}

.content-title .content-link {
    color: var(--midnight-green);
    font-weight: 600;
}

.content-title .content-link:hover {
    color: var(--midnight-green-2);
    text-decoration: none;
}

/* Features Section */
.features-section {
    background-image: url('../images/features_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.features-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.features-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Carousel Container */
.features-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--midnight-green);
    color: white;
    border-color: var(--midnight-green);
}

.carousel-nav-left {
    left: 0;
}

.carousel-nav-right {
    right: 0;
}

/* Carousel */
.features-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

.feature-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-card-title a:hover {
    color: var(--midnight-green);
}

.feature-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
    flex-grow: 1;
}

/* Feature Button */
.btn-feature {
    background: var(--midnight-green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 auto;
    margin-top: auto;
}

.btn-feature:hover {
    background: var(--midnight-green-2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(18, 89, 96, 0.3);
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    border: 1px solid var(--midnight-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--midnight-green);
}

.pagination-dot:hover {
    background: var(--midnight-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-title {
        font-size: 2.2rem;
    }
    
    .features-subtitle {
        font-size: 1rem;
    }
    
    .features-carousel-container {
        padding: 0 50px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-image {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .feature-card-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}



.prayer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid rgba(147, 127, 91, 0.2);
    flex-wrap: wrap;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    min-width: 100px;
    background: rgba(18, 89, 96, 0.05);
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.action-item:hover {
    background: rgba(18, 89, 96, 0.15);
    border-color: var(--midnight-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(18, 89, 96, 0.15);
}

.action-item i {
    font-size: 1.2rem;
    color: var(--chamoisee);
    margin-bottom: 0.3rem;
}

/* Location Help Text */
.location-help-text {
    margin-top: 1rem;
    text-align: center;
}

.location-help-text p {
    font-size: 0.85rem;
    color: var(--chamoisee);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.8;
}

.location-help-text p:last-child {
    margin-bottom: 0;
}

/* Disclaimer Text */
.disclaimer-text {
    font-size: 0.7rem !important; /* 3px smaller than 0.85rem */
    color: #B85450 !important; /* Reddish color that complements the color scheme */
    font-weight: 500 !important;
    font-style: normal !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
}

/* Quran Verse Section */
.quran-verse-section {
    background: linear-gradient(135deg, rgba(18, 89, 96, 0.05) 0%, rgba(239, 235, 226, 0.1) 100%);
}

.quran-verse-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(18, 89, 96, 0.1);
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(18, 89, 96, 0.1);
}

.verse-title {
    color: var(--midnight-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verse-title i {
    color: var(--chamoisee);
    font-size: 1.3rem;
}

.refresh-verse-btn {
    background: var(--midnight-green);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-verse-btn:hover:not(:disabled) {
    background: var(--midnight-green-2);
    transform: translateY(-1px);
}

.refresh-verse-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verse-loading {
    text-align: center;
    padding: 2rem;
    color: var(--chamoisee);
}

.verse-content {
    text-align: center;
}

.verse-arabic {
    margin-bottom: 1.5rem;
}

.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.8rem;
    line-height: 2.5;
    color: var(--midnight-green);
    margin: 0;
    direction: rtl;
    text-align: right;
}

.verse-translation {
    background: rgba(18, 89, 96, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--midnight-green);
}

.translation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--chamoisee);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.verse-reference {
    font-size: 0.9rem;
    color: var(--midnight-green);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verse-error {
    text-align: center;
    padding: 2rem;
    color: var(--chamoisee);
}

/* Quran Search Section */
.quran-search-section {
    background: var(--alabaster);
}

.quran-search-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(18, 89, 96, 0.1);
    border: 1px solid rgba(18, 89, 96, 0.1);
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-title {
    color: var(--midnight-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-title i {
    color: var(--chamoisee);
    font-size: 1.3rem;
}

.search-subtitle {
    color: var(--chamoisee);
    font-size: 1rem;
    margin: 0;
}

.search-form {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(18, 89, 96, 0.1);
}

.search-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: var(--white);
    color: var(--midnight-green);
    flex: 1;
}

.search-input:focus {
    box-shadow: none;
    border-color: var(--midnight-green);
}

.btn-search {
    background: var(--midnight-green);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover:not(:disabled) {
    background: var(--midnight-green-2);
}

.btn-search:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--chamoisee);
}

.search-results {
    margin-top: 1rem;
}

.results-header h4 {
    color: var(--midnight-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: rgba(18, 89, 96, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--midnight-green);
}

.result-arabic .arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.4rem;
    line-height: 2;
    color: var(--midnight-green);
    margin: 0 0 1rem 0;
    direction: rtl;
    text-align: right;
}

.result-translation .translation-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--chamoisee);
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.result-translation .verse-reference {
    font-size: 0.85rem;
    color: var(--midnight-green);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.results-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(18, 89, 96, 0.1);
}

.more-results {
    color: var(--chamoisee);
    font-size: 0.9rem;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--chamoisee);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-tip {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.search-suggestions {
    text-align: center;
    padding: 1rem;
}

.search-suggestions h5 {
    color: var(--midnight-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-tag {
    background: rgba(18, 89, 96, 0.1);
    color: var(--midnight-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(18, 89, 96, 0.2);
}

.suggestion-tag:hover {
    background: var(--midnight-green);
    color: var(--white);
    transform: translateY(-1px);
}

.action-item span {
    font-size: 0.8rem;
    color: var(--midnight-green);
    font-weight: 500;
}

.loading-prayer-times {
    text-align: center;
    padding: 2rem 0;
}

.loading-prayer-times .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Content Tabs Section */
.content-tabs-section {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-tabs {
    background: var(--alabaster);
    border-bottom: 2px solid var(--chamoisee);
    margin: 0;
    padding: 0;
}

.content-tabs .nav-link {
    color: var(--midnight-green);
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.content-tabs .nav-link:hover {
    color: var(--chamoisee);
    background: rgba(147, 127, 91, 0.1);
}

.content-tabs .nav-link.active {
    color: var(--white);
    background: var(--midnight-green);
    border: none;
}

.content-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--chamoisee);
}

.tab-content {
    padding: 2rem;
    min-height: 400px;
}

/* Content Items */
.content-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 127, 91, 0.1);
    background: var(--white);
}

.content-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--chamoisee);
}

.content-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img,
.content-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-text {
    flex: 1;
}

.content-title {
    color: var(--midnight-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.content-description {
    color: var(--chamoisee);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Content Metadata */
.content-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--chamoisee);
    background: rgba(147, 127, 91, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(147, 127, 91, 0.2);
    color: var(--midnight-green);
}

.meta-item i {
    font-size: 0.75rem;
    color: var(--midnight-green);
}

.meta-item span {
    font-weight: 500;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--midnight-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--midnight-green-2);
    transform: translateY(-2px);
}

/* Location Modal Styles */
.location-item {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: center;
}

.location-item:hover {
    background: var(--alabaster);
    border-color: var(--midnight-green);
    transform: translateX(4px);
}

.location-item.selected {
    background: var(--midnight-green);
    color: white;
    border-color: var(--midnight-green);
}

.location-item.selected i {
    color: white;
}

.location-search input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.location-search input:focus {
    border-color: var(--midnight-green);
    box-shadow: 0 0 0 0.2rem rgba(18, 89, 96, 0.25);
}

.location-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
}

.selected-location {
    border: 2px solid var(--midnight-green);
    background: var(--alabaster) !important;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--midnight-green);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-primary {
    background: var(--midnight-green);
    border-color: var(--midnight-green);
}

.btn-primary:hover {
    background: var(--midnight-green-2);
    border-color: var(--midnight-green-2);
}

.btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
}
