:root {
    --primary: #198754; /* Islamic Green */
    --secondary: #F1C152; /* Gold Accent */
    --light: #F8F9FA;
    --dark: #121212;
    --gray: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(25, 135, 84, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #444;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #146c43;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
.sticky-top {
    top: -100px;
    transition: 0.5s;
}

.sticky-top.shadow-sm {
    top: 0;
}

.navbar .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 1rem 1.2rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10rem 0 6rem 0;
    margin-bottom: 4rem;
}

.hero-header-inner {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Activities Item */
.activities-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activities-item:hover {
    background: var(--primary);
    color: var(--white);
}

.activities-item:hover h4 {
    color: var(--white);
}

.activities-item:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* News/Blog Item */
.blog-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
}

.blog-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-item:hover .blog-img img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #0A0F3D !important;
}

.footer .btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.btn-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    margin-right: 10px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .hero-header {
        padding: 8rem 0 4rem 0;
    }
}

/* Custom Styles for Mosque App */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }

/* Image Hover Effects */
.img-hover {
    overflow: hidden;
    border-radius: 15px;
}

.img-hover img {
    transition: var(--transition);
}

.img-hover:hover img {
    transform: scale(1.1);
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

/* Modern Form Controls */
.form-control {
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.1);
    border-color: var(--primary);
}

/* Slider Overlays */
.carousel-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

.slider-content {
    background: transparent !important;
    padding: 0 !important;
}

.slider-content h3 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before {
    display: none;
}

.section-title.text-start::after {
    left: 100%;
    margin-left: 10px;
}

/* Breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: var(--secondary) !important;
}

@media (max-width: 768px) {
    .slider-content h3 {
        font-size: 2.5rem;
    }
}
