@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=El+Messiri:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --primary-color: #1a5e20;
    /* Deep Islamic Green */
    --primary-dark: #124116;
    --gold-color: #c5a059;
    /* Modern Muted Gold */
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
    --font-family: 'Poppins', sans-serif;
    --logo-font: 'El Messiri', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-color);
}

/* --- Section Styling --- */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* --- Navbar --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    padding: 0;
    text-decoration: none;
}

.navbar-logo-text {
    font-family: var(--logo-font);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.text-primary-gold {
    color: var(--gold-color);
    margin-left: 8px;
}

.navbar-brand:hover .navbar-logo-text {
    text-shadow: 0 0 10px rgba(26, 94, 32, 0.2);
    transform: scale(1.02);
}

/* --- Marriage Ribbon --- */
.marriage-ribbon {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--gold-color);
    border-bottom: 4px solid var(--gold-color);
}

.marriage-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--gold-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.ribbon-title {
    font-family: var(--logo-font);
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gold-icon {
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-color) 0%, #a6813d 100%);
    color: #1a1a1a !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.6);
    background: linear-gradient(135deg, #d4b47a 0%, var(--gold-color) 100%);
}

.nav-link {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(rgba(0, 0, 0, 0.384),
            rgba(0, 0, 0, 0.404)), url('../images/main-page.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding-top: 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: auto;
        min-height: 400px;
        padding: 40px 0;
    }
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Cards --- */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Service Card Images */
#courses .carousel-item img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Donate Section --- */
.donate-details {
    padding-left: 0;
    list-style-type: none;
}

.donate-details li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.donate-details li:first-child {
    padding-top: 0;
}

.donate-details li:last-child {
    border-bottom: none;
}

.donate-details strong {
    color: var(--dark-color);
    min-width: 140px;
    display: inline-block;
}

.upiqr {
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
}

.social-links a {
    font-size: 1.25rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}