/* public/assets/css/pages/home.css */

/* Home Page Specific Background */
/* Home Page Specific Background */
/* Home Page Specific Background */
body.page-home {
    /* Dark overlay to match About Page style */
    background-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%), 
                      url('../../images/background-images/Background-image-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-position: center;
    background-repeat: no-repeat;
}

/* Remove default footer gap for seamless design */
body.page-home .site-footer {
    margin-top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: left; /* Left Align */
    height: 100vh; /* Full Viewport Height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left Align */
    padding-left: 8%; /* Offset from left edge */
    padding-right: 5%;
    
    background: transparent !important; /* Force removal */
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #fff; /* White base color */
    overflow: hidden;
}

.divine-overlay-pattern {
    display: none !important;
}

/* Wrapper for Hero Text */
.hero-content {
    max-width: 650px; /* Restrict width to left side (~50-60%) */
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem; /* Increased to match About Title */
    color: var(--color-colorado-gold) !important; 
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9); /* Stronger shadow */
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-section .lead {
    font-family: var(--font-body); 
    font-size: 1.2rem;
    max-width: 100%; /* Allow full width of wrapper */
    margin: 0 0 1.5rem 0; /* Left align margin */
    position: relative;
    z-index: 2;
    color: #f0f0f0; 
    font-weight: 500; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    margin-top: var(--spacing-lg);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- 2. Sacred Grid Layout (3-Column Row) --- */
.sacred-grid-container {
    margin-top: -5rem; /* The Float Effect */
    position: relative;
    z-index: 10;
    margin-bottom: var(--spacing-xl);
}

.divine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for Events, History, Gallery */
    gap: 2rem;
}

/* --- 3. Divine Tablet (Card) Styling --- */
/* --- 3. Divine Tablet (Card) Styling --- */
.divine-card {
    background: rgba(255, 255, 255, 0.9); /* Slightly more opaque for clean look */
    border: 3px solid var(--color-colorado-gold); /* Full gold border */
    border-radius: 50%; /* Make it circular */
    aspect-ratio: 1 / 1; /* Force perfect circle */
    width: 100%;
    max-width: 320px; /* Adjusted to 320px as requested */
    margin: 0 auto; /* Center in grid column */
    
    padding: var(--spacing-md); /* Reduced padding for smaller size */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    position: relative;
    overflow: visible; /* Allow connectors to show */
    
    /* Centering Content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1; /* Ensure cards are above connectors if needed */
}

.divine-card:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Distinct Card Colors */
/* Cleaned up: All cards now use default gold border */

/* Connector Arrows (Desktop Only) */
/* Connector Arrows Removed */

/* Om Watermark */
.divine-card .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    color: var(--color-colorado-gold);
    opacity: 0.1; 
    pointer-events: none;
    font-family: 'Noto Sans Devanagari', sans-serif;
    line-height: 1;
    z-index: -1;
}

/* Card Header - Centered & Clean */
/* Card Header - Centered & Clean */
.card-header h2 {
    color: var(--color-rust-red);
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Increased to fill space */
    margin: 0 0 var(--spacing-sm) 0;
    text-align: center;
    font-weight: 700;
    border-bottom: none; 
}

/* Card Body */
.card-body {
    flex-grow: 0; /* Don't stretch, stay centered */
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Inner Content Styles */
.mini-events-list, .mini-gallery-grid {
    font-size: 0.95rem; /* Increased base font size */
    width: 100%;
}

.history-snippet {
    font-size: 1.05rem; /* Increased for better readability and fill */
    line-height: 1.4;
    padding: 0 10px; /* Slight horizontal padding to keep text safe */
}

.mini-event-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.5rem; /* Added horizontal padding to keep text off edges */
    border-bottom: 1px dashed #eee;
    width: 100%; /* Use full width with padding */
    box-sizing: border-box; /* Ensure padding doesn't break width */
}

.event-date {
    color: var(--color-paradiso);
    font-weight: bold;
}

/* Gallery Image Flow */
.mini-gallery-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-left: 18px; /* Offset the negative overlap to center visual mass */
}

.gallery-thumb-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: -18px; /* High overlap for tighter stack */
    transition: transform 0.3s ease, z-index 0s;
}

/* Ensure the first one doesn't pull left */
.gallery-thumb-wrapper:first-child {
    margin-left: 0;
}

.gallery-thumb-wrapper img {
    width: 70px; /* Increased to 70px */
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-colorado-gold); /* Gold border as requested */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.2s;
    background: #fff; /* Prevent transparent overlaps */
}

/* Hover Effect: Pop out */
.gallery-thumb-wrapper:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10; /* Bring to front on hover */
}

.gallery-thumb-wrapper img:hover {
    border-color: var(--color-colorado-gold);
}

/* Corner Decorations (Removed as requested) */

/* Highlight Card (Donate) */
.divine-card.highlight {
    background: linear-gradient(to bottom, #fff, #FFFDF5);
    border: 2px solid var(--color-rust-red);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .divine-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
    
    .hero-title {
        font-size: 1.8rem; /* Scaled down proportionally */
        word-wrap: break-word; /* Prevent overflow */
        padding: 0 10px;
    }
    
    .sacred-grid-container {
        margin-top: -3rem;
    }

    /* Reset Alignment for Mobile */
    .hero-section {
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-section .lead {
        margin: 0 auto 1.5rem auto;
    }
}
