:root {
    --sw-primary: #16233f;
    --sw-primary-light: #2b3d68;
    --sw-accent: #dd7a34;
    --sw-accent-dark: #b85e21;
    --sw-bg: #f8f6f1;
    --sw-surface-tint: #eef1f7;
    --sw-text: #262b36;
}

body {
    background-color: var(--sw-bg);
    color: var(--sw-text);
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
}

.text-accent {
    color: var(--sw-accent);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sw-accent);
    margin-bottom: 8px;
}

.hero .eyebrow {
    color: #ffd8bd;
}

/* Header */
.site-header .navbar {
    background-color: var(--sw-primary);
    transition: box-shadow 0.2s ease, padding 0.2s ease;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-header .navbar.scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand span {
    color: var(--sw-accent);
}

.nav-link {
    position: relative;
}

.nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--sw-accent);
    border-radius: 2px;
}

.nav-link-admin {
    background-color: var(--sw-accent);
    border: 1px solid var(--sw-accent);
    border-radius: 4px;
    padding: 4px 12px !important;
    margin-left: 8px;
    color: #fff !important;
}

.nav-link-admin:hover {
    background-color: var(--sw-accent-dark);
    border-color: var(--sw-accent-dark);
    color: #fff !important;
}

/* Hero */
.hero {
    background-color: var(--sw-primary);
    background-image: linear-gradient(180deg, rgba(22,35,63,0.6), rgba(15,22,40,0.82)), url('../Images/jagannath_temple.png');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    color: #fff;
    padding: 130px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(221,122,52,0.18), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .hero {
        padding: 90px 0;
    }
}

.hero .container {
    position: relative;
}

.hero h1 {
    font-weight: 700;
    font-size: 2.8rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-cta {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Blog cards */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.blog-card-img {
    width: 100%;
    height: 230px;
    object-fit: fill;
    background: #dfe3ea;
}

.blog-banner-img {
    width: 100%;
    height: 400px;
    object-fit: fill;
    background: #dfe3ea;
    display: block;
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card-body .meta {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.blog-card-body p {
    color: #555;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.card-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sw-surface-tint);
    color: var(--sw-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.share-btn-sm:hover {
    background: var(--sw-accent);
    color: #fff;
}

.btn-accent {
    background-color: var(--sw-accent);
    border-color: var(--sw-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--sw-accent-dark);
    border-color: var(--sw-accent-dark);
    color: #fff;
}

/* Blog details */
.blog-details h1 {
    font-weight: 700;
}

.blog-details .content-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.comment-item {
    border-bottom: 1px solid #e6e6e6;
    padding: 14px 0;
}

.comment-item .comment-name {
    font-weight: 600;
}

.comment-item .comment-date {
    font-size: 0.78rem;
    color: #999;
}

/* Forms */
.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Footer */
.site-footer {
    background: var(--sw-primary);
    color: #d9dce3;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
}

.site-footer .footer-links a {
    color: #d9dce3;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: var(--sw-accent);
}

.site-footer hr {
    border-color: rgba(255,255,255,0.15);
    margin: 20px 0;
}

.site-footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #d9dce3;
}

.site-footer .footer-contact li i {
    color: var(--sw-accent);
    margin-top: 3px;
}

.site-footer .footer-contact a {
    color: #d9dce3;
    text-decoration: none;
}

.site-footer .footer-contact a:hover {
    color: var(--sw-accent);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
    background: var(--sw-accent);
    transform: translateY(-2px);
}

.footer-social-light a {
    background: var(--sw-surface-tint);
    color: var(--sw-primary);
}

.footer-social-light a:hover {
    background: var(--sw-accent);
    color: #fff;
}

.copyright {
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

/* Admin panel */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--sw-primary);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar .brand {
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.admin-sidebar a {
    display: block;
    color: #d9dce3;
    text-decoration: none;
    padding: 12px 20px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left: 3px solid var(--sw-accent);
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sw-primary);
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.stat-card-link:hover,
.stat-card-link:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    color: inherit;
    text-decoration: none;
}

.stat-card-link:hover .text-muted {
    color: var(--sw-accent) !important;
}

/* ===== Dashboard charts ===== */
.chart-card {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
}

.chart-card h5 {
    color: var(--sw-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.chart-canvas-wrap {
    position: relative;
    height: 260px;
}

.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== Section header ===== */
.section-header {
    margin-bottom: 10px;
}

.section-header h2 {
    font-weight: 700;
    margin-bottom: 6px;
}

.section-sub {
    color: #6b6b6b;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

/* ===== Feature cards ===== */
.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 24px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(221,122,52,0.12);
    color: var(--sw-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* ===== Featured post ===== */
.featured-section {
    background: #fff;
    padding: 20px 0 10px;
}

.featured-post {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    background: var(--sw-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.featured-post-media {
    flex: 1 1 380px;
    align-self: stretch;
}

.featured-post-media img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.featured-post-body {
    flex: 1 1 320px;
    padding: 10px 30px 10px 0;
}

.featured-post-body .meta {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.featured-post-body h3 {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.featured-post-body p {
    color: #555;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .featured-post-body {
        padding: 0 20px 24px;
    }
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-light));
    color: #fff;
    padding: 70px 0;
    margin-top: 60px;
    text-align: center;
}

.newsletter-icon {
    font-size: 2.4rem;
    color: var(--sw-accent);
    margin-bottom: 14px;
    display: inline-block;
}

.newsletter-section h2 {
    font-weight: 700;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    max-width: 300px;
}

/* ===== Quote card (About) ===== */
.quote-card {
    background: var(--sw-primary);
    color: #fff;
    border-radius: 14px;
    padding: 36px 30px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--sw-accent);
    margin-bottom: 10px;
    display: inline-block;
}

.quote-card p {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 0;
}

/* ===== Author card (About) ===== */
.author-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.author-avatar {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 3px solid var(--sw-accent);
}

.author-info .author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 2px;
}

.author-info .author-role {
    color: var(--sw-accent);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.author-info .author-bio {
    margin-bottom: 10px;
}

.author-info .author-bio:last-child {
    margin-bottom: 0;
}

.author-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.author-meta i {
    color: var(--sw-accent);
    margin-right: 6px;
}

@media (max-width: 767.98px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
}

/* ===== Stats strip ===== */
.stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 30px;
    margin-top: 50px;
    text-align: center;
}

.stat-item {
    flex: 1 1 160px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sw-primary);
}

.stat-value i {
    color: var(--sw-accent);
}

.stat-label {
    color: #777;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===== CTA band ===== */
.cta-band {
    background: var(--sw-accent);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-band h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-band .btn {
    background: #fff;
    color: var(--sw-primary);
    border-color: #fff;
    font-weight: 600;
}

.cta-band .btn:hover {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
}

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: #888;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--sw-accent);
}

.breadcrumb-nav i {
    font-size: 0.7rem;
    margin: 0 4px;
}

.breadcrumb-nav span {
    color: var(--sw-text);
    font-weight: 600;
}

/* ===== Share buttons ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sw-bg);
    color: var(--sw-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.share-btn:hover {
    background: var(--sw-accent);
    color: #fff;
}

/* ===== Map ===== */
.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.map-wrapper iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* ===== FAQ accordion ===== */
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(221,122,52,0.08);
    color: var(--sw-primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(221,122,52,0.3);
}

.faq-accordion .accordion-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

/* ===== Blog search toolbar ===== */
.blog-toolbar {
    max-width: 420px;
    margin: 0 auto 10px;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sw-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--sw-accent);
}

/* ===== Donation page ===== */
.donation-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
}

.donation-card h4 {
    font-weight: 700;
    margin-bottom: 18px;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
}

.bank-table tr {
    border-bottom: 1px solid #eee;
}

.bank-table tr:last-child {
    border-bottom: none;
}

.bank-table th,
.bank-table td {
    padding: 10px 6px;
    text-align: left;
    vertical-align: top;
}

.bank-table th {
    width: 42%;
    color: #7a7a7a;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bank-table td {
    font-weight: 600;
    color: var(--sw-text);
    word-break: break-word;
}

.qr-card {
    text-align: center;
}

.qr-card img,
.qr-card svg {
    width: 200px;
    height: 200px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.qr-card .upi-id {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--sw-surface-tint);
    color: var(--sw-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.donate-note {
    background: var(--sw-surface-tint);
    border-radius: 10px;
    padding: 16px 20px;
    color: #555;
    font-size: 0.9rem;
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
