/* Start2Pray Custom Styles - Modern Ibadi-Inspired Design */

:root {
    /* Ibadi-Inspired Color Palette */
    --primary-color: #1d4e89;       /* Deep blue (inspired by Omani architecture) */
    --secondary-color: #0d9b6a;     /* Teal green (inspired by Omani landscape) */
    --accent-color: #c19434;        /* Gold (inspired by traditional Omani crafts) */
    --dark-color: #1f2937;          /* Dark gray */
    --light-color: #f9fafb;         /* Off-white */
    --ibadi-sand: #e6d7b8;          /* Sand color (inspired by Omani deserts) */
    --ibadi-stone: #8c857b;         /* Stone color (inspired by traditional Ibadi mosques) */
    --text-color: #374151;          /* Dark gray for text */
    --text-light: #6b7280;          /* Light gray for secondary text */
    --danger-color: #ef4444;        /* Red */
    --success-color: #10b981;       /* Green */
    --warning-color: #f59e0b;       /* Amber */
    --info-color: #3b82f6;          /* Blue */
    
    /* UI Elements */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: none;
    --transition: none;
    --transition-slow: none;
}

/* Typography */
body {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.display-1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.display-2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-muted { color: var(--text-light) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

/* Layout */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button Styling */
.btn {
    border-radius: var(--border-radius);
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    transition: none;
    z-index: -1;
}

.btn:hover::after {
    transform: none;
}

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


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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    transform: none;
    box-shadow: var(--box-shadow-md);
}

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

.btn-accent:hover,
.btn-accent:focus {
    background-color: darken(var(--accent-color), 10%);
    border-color: darken(var(--accent-color), 10%);
    transform: none;
    box-shadow: var(--box-shadow-md);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
    transform: none;
}

.btn-link {
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: none;
}

.btn-link:hover::after {
    width: 0;
}

.btn-link:hover {
    text-decoration: none;
    transform: none;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: none;
    overflow: hidden;
   
    background-color: white;
}

.card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Prayer Cards */
.prayer-card {
    transition: none;
    border: none;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative; /* Ensure proper stacking context */
}

.prayer-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
}

.prayer-card .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.25rem;
    border-bottom: none;
    position: relative; /* Ensure proper stacking context */
    z-index: 1;
}

.prayer-card .card-footer {
    position: relative; /* Ensure links are clickable */
    z-index: 2; /* Higher than other elements */
    background-color: transparent;
}

.prayer-card a {
    position: relative; /* Ensure links are clickable */
    z-index: 5; /* Higher than any potential overlays */
}

.prayer-card .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), transparent);
    z-index: -1; /* Keep this below the content */
    pointer-events: none; /* This ensures clicks pass through this element */
}

.prayer-card .card-img-top {
    height: 200px;
    object-fit: contain;
}

/* Feature Cards */
.feature-card {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.feature-card .card-body {
    position: relative;
    z-index: 1;
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    transition: none;
}

.feature-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: none;
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: none;
}

.feature-card:hover .feature-icon {
    color: white;
    transform: none;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(128, 128, 128, 0.8), rgba(126, 126, 126, 0.9)), url('/img/placeholder-bg.jpg');
    background-size: contain;
    background-position: right;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--light-color), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Arabic Text */
.arabic-text {
    font-family: 'Amiri', serif;
    line-height: 1.8;
}

.arabic-medium {
    font-size: 1.5rem;
}

.arabic-large {
    font-size: 2rem;
}

/* Ibadi-Specific Styling */
.ibadi-quote {
    background-color: var(--ibadi-sand);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    position: relative;
}

.ibadi-quote::before {
    content: '"';
    font-family: 'Amiri', serif;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
}

.ibadi-scholar {
    font-weight: 600;
    color: var(--primary-color);
}

.ibadi-pattern {
    background-image: url('/images/ibadi-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-gradient-primary {
    background-image: linear-gradient(to right, var(--primary-color), #2563eb);
}

.bg-primary-light {
    background-color: rgba(29, 78, 137, 0.1);
}

/* Prayer Card Styling */
.prayer-card {
    transition: none;
    border: none;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative; /* Ensure proper stacking context */
}

.prayer-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
}

.prayer-card .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.25rem;
    border-bottom: none;
    position: relative; /* Ensure proper stacking context */
    z-index: 1;
}

.prayer-card .card-footer {
    position: relative; /* Ensure links are clickable */
    z-index: 2; /* Higher than other elements */
    background-color: transparent;
}

.prayer-card a {
    position: relative; /* Ensure links are clickable */
    z-index: 5; /* Higher than any potential overlays */
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-section-sm {
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/ibadi-mosque-pattern.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.05;
    z-index: 0;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Footer Styling */
.footer {
    background-color: var(--primary-color);
    color: white;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/ibadi-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: none;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer h5 {
    color: white;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--accent-color);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 2rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: contain; /* This will maintain the video's aspect ratio */
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .custom-video-controls {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    
    margin-bottom: 10px;
    border-radius: 5px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    border-radius: 5px;
}

.controls-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play-pause-btn, .volume-btn, .speed-btn, .fullscreen-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.play-pause-btn:hover, .volume-btn:hover, .speed-btn:hover, .fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.time-display {
    font-size: 14px;
    margin: 0 10px;
}

.volume-container {
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 60px;
    height: 5px;
    margin-left: 5px;
    transition: none;
    opacity: 1;
}

.volume-container:hover .volume-slider {
    width: 60px;
    opacity: 1;
}

.speed-btn {
    font-size: 14px;
    padding: 2px 5px;
    border-radius: 3px;
    width: auto;
    height: auto;
}

/* Video Controls */
.video-controls {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
}

.video-controls .btn {
    margin-right: 0.5rem;
}

/* Prayer Times Section */
.prayer-times-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.prayer-time-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: none;
}

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

.prayer-time-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.prayer-time-item .time {
    font-weight: 700;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(var(--primary-color-rgb), 0.1);
    line-height: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Animation Classes - Disabled */
.fade-in {
    animation: none;
}

.slide-up {
    animation: none;
}

.slide-in-right {
    animation: none;
}

.slide-in-left {
    animation: none;
}

/* Keyframes definitions kept for reference but not used */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .feature-card .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-card .feature-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

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

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

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

.border-light {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.bg-gradient-primary {
    background-image: linear-gradient(to right, var(--primary-color), #2563eb);
}

.bg-gradient-secondary {
    background-image: linear-gradient(to right, var(--secondary-color), #06b6d4);
}

.bg-gradient-accent {
    background-image: linear-gradient(to right, var(--accent-color), #fb923c);
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.overlay-dark > * {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Add CSS variables for RGB values for opacity manipulation */
:root {
    --primary-color-rgb: 29, 78, 137;
    --secondary-color-rgb: 13, 155, 106;
    --accent-color-rgb: 193, 148, 52;
    --dark-color-rgb: 31, 41, 55;
}

/* Video Modal Styling */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling on small screens */
    padding: 0; /* Remove padding to allow full-width on mobile */
}

.modal-backdrop {
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2001;
}

.video-modal .modal-content {
    position: relative;
    z-index: 2002;
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 20px auto; /* Center the modal and add some margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-height: calc(100% - 40px); /* Ensure it doesn't exceed viewport height */
}

.video-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    color: var(--text-color);
    border-bottom: 1px solid #e9ecef;
}

.video-modal .modal-title {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

.video-modal .close-video {
    background: transparent;
    border: none;
    color: #052c65;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: none;
    z-index: 2003;
    cursor: pointer;
}

.video-modal .modal-body {
    padding: 0;
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    object-fit: contain; /* This will maintain the video's aspect ratio */
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-modal {
        align-items: flex-start; /* Align to top on mobile */
        padding: 0;
    }
    
    .video-modal .modal-content {
        width: 100%; /* Full width on mobile */
        max-width: 100%;
        margin: 0; /* No margin on mobile */
        height: 100vh; /* Full height on mobile */
        max-height: 100vh;
        border-radius: 0; /* No border radius on mobile */
        display: flex;
        flex-direction: column;
    }
    
    .video-modal .modal-body {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .video-container {
        flex: 1;
        min-height: 40vh; /* Minimum height */
    }
    
    .rakaat-navigation {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .rakaat-nav-btn {
        width: 100%;
        min-width: unset;
        padding: 0.5rem;
    }
    
    .video-modal .modal-header {
        padding: 0.75rem;
    }
    
    .video-modal .modal-title {
        font-size: 1rem;
    }
    
    .d-flex.justify-content-center.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.justify-content-center.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    .video-quality-selector {
        padding: 0.5rem;
    }
    
    .quality-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Small phones */
@media (max-width: 576px) {
    .video-modal .modal-header {
        padding: 0.5rem;
    }
    
    .video-modal .close-video {
        font-size: 1.25rem;
        padding: 0.25rem;
    }
    
    .video-modal .modal-title {
        font-size: 0.875rem;
        max-width: calc(100% - 30px);
    }
    
    .rakaat-navigation {
        padding: 0.5rem;
    }
    
    .rakaat-nav-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .video-container {
        min-height: 30vh;
    }
}

/* Rakaat Navigation Styling */
.rakaat-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.rakaat-nav-btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rakaat-indicator {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Button styling for video buttons */
.prayer-video-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    transition: none;
    z-index: 10;
    position: relative;
}

/* Fix for clickable links */
.btn, 
a.btn,
.card a,
.prayer-card a,
.card-footer a {
    position: relative;
    z-index: 2 !important; /* Increased z-index for better priority */
    pointer-events: auto !important; /* Force pointer events to be enabled */
}

/* Ensure no overlays block clicks */
.card::before,
.card::after,
.prayer-card::before,
.prayer-card::after {
    pointer-events: none !important; /* Make sure overlays don't block clicks */
}

/* Fix for video player and interaction elements */
video, 
.video-container,
video controls,
.btn,
a,
button,
input,
select,
.list-group-item,
.list-group-item a {
    position: relative;
    z-index: 5 !important; /* Higher z-index for video and controls */
    pointer-events: auto !important;
}

/* Remove any potential invisible overlays */
body::before,
body::after,
.container::before,
.container::after,
.row::before,
.row::after,
main::before,
main::after {
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Ensure AOS animations don't block interaction */
[data-aos] {
    pointer-events: none !important;
}
[data-aos] * {
    pointer-events: auto !important;
}

/* Fix cursor appearance throughout the site */
body, 
.container, 
.card, 
.row, 
section,
main,


a, 
.btn, 
button, 
input[type="button"], 
input[type="submit"],
select,
.card-footer a,
.prayer-card a,
.list-group-item a,
.nav-link,
.link,
.navbar-brand {
   
}

video,
.video-container video {
    cursor: default;
}


/* CRITICAL FIX: Make ALL elements in the page directly clickable without interference */
* {
    pointer-events: auto !important;
}

/* Only disable pointer events on pure decorative elements */
.card::before,
.card::after,
.prayer-card::before,
.prayer-card::after,
[data-aos]::before,
[data-aos]::after {
    pointer-events: none !important;
}

/* Fix for video playback specifically */
.video-container {
    position: relative;
    z-index: 1000 !important; /* Extreme z-index to ensure it's above everything */
}

video, 
video::after,
video::before,
.video-container video,
video[controls],
.video-container video[controls] {
 
    z-index: 1001 !important; /* Even higher z-index */
    pointer-events: auto !important;
}

/* Fix any interference from animations */
[data-aos] {
    z-index: 0 !important;
}

/* Video loading indicator */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: var(--primary-color);
}

.video-quality-selector {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.quality-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.25rem;
}

.quality-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 576px) {
    .video-quality-selector {
        padding: 0.5rem;
    }
    
    .quality-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}
