/* Surat Kapol Samaj — Public website (clean / normal layout) */

:root {
    --color-primary: #0f766e;
    --color-primary-dark: #0d5c56;
    --color-blue: #003366;
    --color-gold: #b8860b;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;
    --container-max: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.site-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-page > .site-footer {
    margin-top: auto;
}
.site-page {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.site-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(184, 134, 11, 0.05) 0px, transparent 50%);
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }

.hero-section.animate-on-scroll.visible .site-logo-hero {
    animation: heroLogoIn 0.8s ease forwards;
}

.hero-section.animate-on-scroll.visible .shreenathji-photo {
    animation: heroImageIn 0.9s ease 0.15s forwards;
}

@keyframes heroLogoIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes heroImageIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* —— Navbar —— */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-blue) !important;
    text-decoration: none;
}

.site-logo-nav {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.site-navbar .nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--color-primary) !important;
}

.site-navbar .nav-link-portal {
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 6px;
    padding: 0.45rem 1rem !important;
    margin-left: 0.35rem;
}

.site-navbar .nav-link-portal:hover,
.site-navbar .nav-link-portal.active {
    background: var(--color-primary-dark);
    color: #fff !important;
}

/* —— Hero —— */
.hero-section {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 48px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-logo-area {
    text-align: center;
}

.site-logo-hero {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 8px;
}

.hero-text .subtitle {
    font-size: 1rem;
    color: var(--color-gold);
    font-weight: 600;
}

.hero-image-area {
    text-align: center;
}

.shreenathji-photo {
    max-width: 100%;
    width: 320px;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* —— Sections —— */
.about-section,
.events-section {
    padding: 48px 0;
}

.about-section {
    background: #fff;
}

.events-section {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* —— Activity cards (5 items: 3 top + 2 centered bottom) —— */
.events-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}


.events-grid > * {
    min-width: 0;
}

/* Row 1: three cards */
.events-grid > *:nth-child(1) { grid-column: 1 / 3; }
.events-grid > *:nth-child(2) { grid-column: 3 / 5; }
.events-grid > *:nth-child(3) { grid-column: 5 / 7; }
/* Row 2: two cards centered */
.events-grid > *:nth-child(4) { grid-column: 2 / 4; }
.events-grid > *:nth-child(5) { grid-column: 4 / 6; }

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.event-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.event-image {
    height: 200px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-info {
    padding: 18px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 76px;
}

.event-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-blue);
    margin: 0;
}

.event-info .card-link-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Business Forum card + modal form */
.event-card--bf {
    border-color: var(--color-primary);
}

.event-info .bf-click-here {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.event-info .bf-click-here:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.bf-total-hint {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.bf-inline-form small.text-muted {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
}

.bf-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.bf-modal-content .modal-header {
    background: var(--color-blue);
    color: #fff;
}

.bf-modal-content .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.bf-modal-content .modal-title {
    font-weight: 700;
}

.bf-card-event {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.bf-inline-form .bf-field {
    margin-bottom: 14px;
}

.bf-inline-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.bf-inline-form .form-control {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    padding: 10px 12px;
}

.bf-inline-form .btn-site-primary {
    margin-top: 6px;
    padding: 10px 16px;
}

/* —— Inner pages —— */
.page-header-banner {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-header-banner h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-blue);
    margin: 0 0 8px;
}

.page-header-banner .lead {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 1rem;
}

/* Events listing page */
.event-detail-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.event-detail-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-detail-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.event-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.event-card-link-wrapper:hover .event-title {
    color: var(--color-primary);
}

.event-detail-image {
    height: 200px;
    overflow: hidden;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-content {
    padding: 16px;
    flex-grow: 1;
}

.event-date-badge {
    display: inline-block;
    background: #e6f7f5;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 8px;
}

/* Search page */
.search-header {
    padding: 40px 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.result-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.result-card:hover {
    border-color: var(--color-primary);
}

.result-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.type-member { background: #e8f5e9; color: #2e7d32; }
.type-business { background: #e3f2fd; color: #1565c0; }
.result-title { font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
.result-meta { color: var(--color-text-muted); font-size: 0.9rem; }

/* —— Footer —— */
.site-footer {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 24px;
    margin-top: 64px;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-gold);
    text-align: left;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.25s ease;
}

.site-footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    padding-left: 4px;
}

.site-footer strong {
    color: var(--color-gold);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 15px;
    display: block;
}

.footer-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--color-gold);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact-list .contact-label {
    color: var(--color-gold);
    font-weight: 600;
    min-width: 65px;
    display: inline-block;
}

.footer-contact-list a:hover {
    padding-left: 0; /* Keep contact links steady */
    color: #fff;
}

/* Newsletter Subscriber Area */
.footer-subscribe-box {
    margin-top: 10px;
}

.footer-subscribe-box p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.subscribe-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.subscribe-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.25);
}

.subscribe-btn {
    background: var(--color-gold);
    border: none;
    color: #002244;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscribe-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscribe-status {
    font-size: 0.82rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.subscribe-status.success {
    color: #4ade80;
    display: block;
}

.subscribe-status.error {
    color: #f87171;
    display: block;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    text-align: center;
}

.visitor-badge {
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--color-gold);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}


/* —— Buttons (shared) —— */
.btn-site-primary {
    background: var(--color-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
}

.btn-site-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.event-meta-item {
    margin-bottom: 4px;
}

.no-events {
    text-align: center;
    padding: 48px 20px;
}

.event-single-header {
    background: var(--color-blue);
    color: #fff;
    padding: 32px 0;
    text-align: center;
}

.event-single-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.event-meta-banner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.content-section {
    padding: 40px 0;
}

.main-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.gallery-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-blue);
    text-align: center;
    margin: 32px 0 20px;
}

.gallery-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.gallery-image-wrapper {
    height: 200px;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imageModal .modal-body.p-0 {
    background: #000;
}

#modalImage {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* —— Responsive —— */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .site-logo-nav {
        height: 40px;
    }

    .shreenathji-photo {
        width: 100%;
        max-width: 280px;
    }
}

/* Activity cards — tablet: 2 columns */
@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 640px;
        gap: 20px;
    }

    .events-grid > *:nth-child(1) { grid-column: 1 / 3; }
    .events-grid > *:nth-child(2) { grid-column: 3 / 5; }
    .events-grid > *:nth-child(3) { grid-column: 1 / 3; }
    .events-grid > *:nth-child(4) { grid-column: 3 / 5; }
    .events-grid > *:nth-child(5) {
        grid-column: 2 / 4;
    }

    .event-image {
        height: 170px;
    }
}

/* Activity cards — mobile: 1 column */
@media (max-width: 575px) {
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .events-grid > *:nth-child(n) {
        grid-column: 1 / -1;
    }

    .event-image {
        height: 190px;
    }
}
