:root {
    --samaaj-primary: #995413;
    --samaaj-primary-dark: #7a420f;
    --samaaj-primary-light: #f5ebe0;
    --samaaj-secondary: #1e3a5f;
    --samaaj-accent: #d4a017;
    --samaaj-text: #1a1a2e;
    --samaaj-text-muted: #5c6370;
    --samaaj-bg: #faf8f5;
    --samaaj-white: #ffffff;
    --samaaj-border: #e8e2da;
    --samaaj-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
    --samaaj-shadow-lg: 0 12px 40px rgba(30, 58, 95, 0.12);
    --samaaj-radius: 16px;
    --samaaj-radius-sm: 10px;
    --samaaj-font: 'Poppins', sans-serif;
    --samaaj-font-display: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--samaaj-font);
    color: var(--samaaj-text);
    background: var(--samaaj-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--samaaj-text);
}

.display-title { font-family: var(--samaaj-font-display); font-weight: 700; }

.samaaj-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--samaaj-border);
    padding: 0.75rem 0;
    transition: box-shadow 0.3s ease;
}

.samaaj-navbar.scrolled { box-shadow: var(--samaaj-shadow); }
.samaaj-navbar .navbar-brand img { height: 48px; width: auto; }

.samaaj-navbar .nav-link {
    color: var(--samaaj-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

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

.samaaj-btn-primary {
    background: var(--samaaj-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.samaaj-btn-primary:hover {
    background: var(--samaaj-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(153, 84, 19, 0.3);
}

.samaaj-btn-outline {
    background: transparent;
    border: 2px solid var(--samaaj-primary);
    color: var(--samaaj-primary);
    font-weight: 600;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    transition: all 0.2s;
}

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

.samaaj-btn-secondary {
    background: var(--samaaj-secondary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
}

.samaaj-btn-secondary:hover { background: #152a45; color: #fff; transform: translateY(-1px); }

.hero-section { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-item { height: 85vh; background-size: cover; background-position: center; }
.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(153, 84, 19, 0.75) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0 4rem; }
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--samaaj-font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, 0.9); max-width: 600px; margin-bottom: 2rem; }
.hero-fallback { background: linear-gradient(135deg, var(--samaaj-secondary) 0%, var(--samaaj-primary) 100%); min-height: 85vh; }

.stats-bar {
    background: var(--samaaj-white);
    border-radius: var(--samaaj-radius);
    box-shadow: var(--samaaj-shadow-lg);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    padding: 2rem;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--samaaj-primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--samaaj-text-muted); margin-top: 0.35rem; font-weight: 500; }

.section-padding { padding: 5rem 0; }
.section-title { font-family: var(--samaaj-font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--samaaj-text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 3rem; }

.feature-card {
    background: var(--samaaj-white);
    border: 1px solid var(--samaaj-border);
    border-radius: var(--samaaj-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--samaaj-shadow-lg); border-color: var(--samaaj-primary-light); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.feature-icon.members { background: #e8f4fd; color: #2563eb; }
.feature-icon.events { background: #fef3e2; color: #d97706; }
.feature-icon.business { background: #ecfdf5; color: #059669; }
.feature-icon.matrimony { background: #fce7f3; color: #db2777; }
.feature-icon.health { background: #f0fdf4; color: #16a34a; }
.feature-icon.governance { background: #ede9fe; color: #7c3aed; }
.feature-icon.communication { background: #fff7ed; color: #ea580c; }
.feature-icon.welfare { background: #fef2f2; color: #dc2626; }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--samaaj-text-muted); font-size: 0.9rem; margin: 0; }

.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--samaaj-primary); color: #fff;
    font-weight: 800; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}

.portal-card { background: var(--samaaj-white); border-radius: var(--samaaj-radius); padding: 2rem; border: 1px solid var(--samaaj-border); height: 100%; transition: box-shadow 0.3s; }
.portal-card:hover { box-shadow: var(--samaaj-shadow-lg); }
.portal-card .portal-icon { font-size: 2rem; color: var(--samaaj-primary); margin-bottom: 1rem; }

.service-card { border-radius: var(--samaaj-radius); overflow: hidden; background: var(--samaaj-white); box-shadow: var(--samaaj-shadow); transition: transform 0.3s, box-shadow 0.3s; height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--samaaj-shadow-lg); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.15rem; margin-bottom: 0; }
.service-card-body a { color: var(--samaaj-text); text-decoration: none; transition: color 0.2s; }
.service-card-body a:hover { color: var(--samaaj-primary); }

.about-section { background: var(--samaaj-white); }
.about-content { color: var(--samaaj-text-muted); font-size: 1.05rem; line-height: 1.8; }

.cta-section {
    background: linear-gradient(135deg, var(--samaaj-secondary) 0%, var(--samaaj-primary) 100%);
    border-radius: var(--samaaj-radius);
    padding: 4rem 2rem;
    color: #fff;
    text-align: center;
}
.cta-section h2 { color: #fff; font-family: var(--samaaj-font-display); }
.cta-section p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 2rem; }

.samaaj-footer { background: var(--samaaj-secondary); color: rgba(255, 255, 255, 0.85); padding-top: 4rem; }
.samaaj-footer h5 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.samaaj-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; font-size: 0.9rem; }
.samaaj-footer a:hover { color: #fff; }
.samaaj-footer .footer-links li { margin-bottom: 0.6rem; }
.samaaj-footer .social-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 0.5rem; transition: background 0.2s;
}
.samaaj-footer .social-link:hover { background: var(--samaaj-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 0; margin-top: 3rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.contact-info-card { background: var(--samaaj-white); border-radius: var(--samaaj-radius); padding: 1.25rem 1rem; text-align: center; border: 1px solid var(--samaaj-border); height: 100%; }
.contact-info-card h5 { margin-bottom: 0.5rem; font-size: 1rem; }
.contact-info-card p { font-size: 0.9rem; line-height: 1.5; }
.contact-info-card .icon-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--samaaj-primary-light); color: var(--samaaj-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 0.75rem;
}
.contact-form-card { background: var(--samaaj-white); border-radius: var(--samaaj-radius); padding: 1.75rem; border: 1px solid var(--samaaj-border); box-shadow: var(--samaaj-shadow); }
.contact-form-card .form-control { border: 1px solid var(--samaaj-border); border-radius: var(--samaaj-radius-sm); padding: 0.75rem 1rem; }
.contact-form-card .form-control:focus { border-color: var(--samaaj-primary); box-shadow: 0 0 0 3px rgba(153, 84, 19, 0.15); }

.page-hero { background: linear-gradient(135deg, var(--samaaj-secondary) 0%, var(--samaaj-primary) 100%); padding: 4rem 0 2.5rem; color: #fff; text-align: center; }
.contact-page-body { padding: 2.5rem 0 4rem; }
.page-hero h1 { color: #fff; font-family: var(--samaaj-font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-content-card { background: var(--samaaj-white); border-radius: var(--samaaj-radius); padding: 2.5rem; margin-top: -2rem; position: relative; z-index: 2; box-shadow: var(--samaaj-shadow-lg); margin-bottom: 3rem; }
.page-content-card img { max-width: 100%; border-radius: var(--samaaj-radius-sm); }

.bg-samaaj-light { background: var(--samaaj-primary-light); }
.text-samaaj-primary { color: var(--samaaj-primary); }

@media (max-width: 991px) {
    .hero-section, .hero-carousel .carousel-item { min-height: 70vh; height: 70vh; }
    .stats-bar { margin-top: -2rem; }
    .section-padding { padding: 3.5rem 0; }
}
