/* ==========================================================================
   Jeevan Anand Sanstha - Professional Stylesheet
   ========================================================================== */

/* 1. Global Variables & Base Setup */
:root {
    --primary-color: #1a365d; /* Deep Trust Blue */
    --accent-color: #e8541a; /* Warm Gold/Amber */
    --text-main: #2d3748; /* Charcoal Body Text */
    --text-muted: #718096; /* Muted Gray */
    --bg-light: #f7fafc; /* Soft Background Off-White */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jas-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.6;
}

/* 2. Hero Grid Layout (Sidebar + Main Video) */
.jas-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .jas-hero-grid {
        grid-template-columns: 350px 1fr;
    }
}

/* Sidebar Card Styling */
.jas-sidebar-card {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jas-info-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e63329;
    margin: 0 0 0.35rem 0;
}

.jas-info-group p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.jas-info-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

    .jas-info-group a:hover {
        color: var(--accent-color);
    }

/* Premium Social Media Icons Layout */
.jas-social-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--text-muted);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
}

    .social-link i {
        font-size: 1.1rem;
    }

    /* Brand specific coloring on hover */
    .social-link.facebook:hover {
        background-color: #1877f2;
        color: #ffffff;
        border-color: #1877f2;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    }

    .social-link.twitter:hover {
        background-color: #1da1f2;
        color: #ffffff;
        border-color: #1da1f2;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
    }

    .social-link.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: #ffffff;
        border-color: transparent;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
    }

    .social-link.youtube:hover {
        background-color: #ff0000;
        color: #ffffff;
        border-color: #ff0000;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    }

/* Featured Video Pane */
.jas-video-pane {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #000;
}

.jas-video-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

    .jas-video-ratio iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* 3. Story / About Block */
.jas-story-block {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.jas-story-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 700;
}

    .jas-story-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 60px;
        height: 4px;
        background-color: #e63329;
        border-radius: 2px;
    }

.jas-story-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .jas-story-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.jas-story-text p {
    margin: 0 0 1.5rem 0;
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: justify;
}

    .jas-story-text p:last-child {
        margin-bottom: 0;
    }

/* 4. Media Gallery Updates Section */
.jas-gallery-section {
    margin-bottom: 2rem;
}

.jas-section-heading {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.jas-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .jas-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .jas-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.jas-gallery-item {
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

    .jas-gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

.jas-media-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Keeps 16:9 box shape crisp */
    background-color: #1a202c;
}

    /* Targets HTML5 video elements safely inside the relative box container */
    .jas-media-box video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures video fills box properly without bars */
        background-color: #000;
    }
