/* home.css - Specific styles for the Home Page */

/* Hero Section (Overrides background from main.css if needed) */
.hero-section {
    /* Specific background for homepage hero */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.pexels.com/photos/3184338/pexels-photo-3184338.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center / cover;
    background-position: center;
    background-size: cover;
    padding-top: 90px; /* Adjust for fixed navbar height */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.hero-section h1 {
    color: #1E90FF; /* VOCI Blue */
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero-section p.lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px; /* Add some space below the heading */
}
.hero-section p {
    
    font-size: 1.3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations for hero section */
.hero-section .animate__animated {
    opacity: 0; /* Hidden by default, animations.js will handle visibility */
}

/* About Section - Teaser Specific Adjustments */
#about-section .about-img {
    height: 450px; /* Fixed height for consistency */
    position: relative; /* Ensure positioning context for stats-box */
    /* Added subtle blue overlay to the about section image */
    overflow: hidden; /* Ensure overlay respects rounded corners */
}

#about-section .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

#about-section .about-img img:hover {
    transform: scale(1.05); /* Slightly zoom on hover */
}

/* Updated overlay for the about section image */
#about-section .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 144, 255, 0.2); /* VOCI Blue with 20% opacity */
    border-radius: inherit; /* Inherit border-radius from parent */
    transition: background 0.3s ease;
}

#about-section .about-img:hover .img-overlay {
    background: rgba(30, 144, 255, 0.35); /* Slightly more opaque on hover */
}


#about-section .stats-box {
    /* Positioning for desktop, adjusted for better fit */
    position: absolute;
    bottom: 30px;
    left: auto; /* Remove specific left, let right control */
    right: -40px; /* Adjusted to fit better without cutting text */
    width: 300px; /* Fixed width to control overflow */
    padding: 20px !important; /* Ensure padding inside */
    flex-wrap: wrap; /* Ensure content wraps */
    justify-content: center; /* Center items if wrapped */
    background-color: rgba(26, 42, 68, 0.98); /* Make background more opaque for visibility */
    /* Refined shadow for a softer look */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); /* Softer shadow */
    border: 2px solid var(--voci-gold); /* Added gold border for professionalism */
    display: flex; /* Ensure flexbox properties apply consistently */
    align-items: center; /* Vertically align items in the center */
}

#about-section .stats-box .stat-item {
    flex: 1 1 auto; /* Allow items to grow/shrink based on content */
    min-width: 120px; /* Minimum width for each stat item */
}

.core-values-grid .value-card {
    background-color: white;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%; /* Ensure cards are same height in grid */
    /* Refined shadow for value cards */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Lighter initial shadow */
}
.core-values-grid .value-card:hover {
    background-color: var(--voci-light-blue);
    border-color: var(--voci-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Slightly stronger hover shadow */
}
.core-values-grid .value-card i {
    font-size: 1.8rem;
    color: var(--voci-blue); /* Default icon color, can be overridden by specific classes */
}
.core-values-grid .value-card span {
    font-size: 1rem;
    color: var(--voci-dark-blue);
    font-weight: 600;
}


/* Programs Section - Teaser Specific Adjustments */
#programs-section .program-card {
    min-height: 450px; /* Ensure cards have minimum height for content */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
    align-items: center;
    padding-top: 50px;
    padding-bottom: 30px;
    /* Refined shadow for program cards */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Lighter initial shadow */
}
#programs-section .program-icon-circle {
    /* Additional styling for the circles in this section */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
#programs-section .program-card:hover .program-icon-circle {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
#programs-section .program-features {
    padding-left: 0;
    width: 100%;
    margin-top: 20px;
    text-align: left;
}
#programs-section .program-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}
#programs-section .program-features li i {
    position: absolute;
    left: 0;
    top: 5px;
}


/* Events Section - Teaser Specific Adjustments */
#events-section .event-item {
    padding: 20px;
    /* Refined shadow for event items in list */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Lighter initial shadow */
    transition: all 0.3s ease;
}
#events-section .event-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Slightly stronger hover shadow */
    transform: translateY(-3px);
}
#events-section .event-date-sm {
    font-size: 1.5rem; /* Smaller font for small date */
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    font-weight: 700;
}
#events-section .event-date-sm small {
    font-size: 0.65rem;
}
#events-section .event-info h4 a {
    font-size: 1.1rem;
}

/* Event Card image overlay */
#events-section .event-card.featured { /* Targeting the featured event card specifically */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Slightly stronger shadow for featured card */
    transition: all 0.3s ease;
}
#events-section .event-card.featured:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.25); /* More pronounced hover shadow for featured */
    transform: translateY(-5px);
}

#events-section .event-card .event-img-wrapper {
    position: relative;
    overflow: hidden;
}

#events-section .event-card .event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

#events-section .event-card .event-img-wrapper:after { /* Use ::after for overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 144, 255, 0.25); /* VOCI Blue with 25% opacity */
    transition: background 0.3s ease;
    border-radius: inherit; /* Inherit border-radius from parent */
}

#events-section .event-card .event-img-wrapper:hover img {
    transform: scale(1.05); /* Slightly zoom on hover */
}

#events-section .event-card .event-img-wrapper:hover:after {
    background: rgba(30, 144, 255, 0.4); /* More opaque on hover */
}


/* Testimonials Section Specific Adjustments */
/* Reduced vertical spacing in testimonial items */
.testimonial-item {
    padding: 25px !important; /* Reduced padding */
    min-height: 260px; /* Adjusted min-height to reduce overall vertical space further */
    display: flex !important; /* Ensure flexbox for vertical centering */
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    /* Refined shadow for testimonial items */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Lighter initial shadow */
    transition: all 0.3s ease;
}
.testimonial-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); /* Slightly stronger hover shadow */
    transform: translateY(-5px);
}

.testimonial-item .testimonial-img {
    margin-bottom: 8px; /* Reduced margin */
}
.testimonial-item .testimonial-text {
    margin-bottom: 8px; /* Reduced margin */
}
.testimonial-item .testimonial-text p.lead { /* Target the specific paragraph with lead class */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 8px; /* Keep a small bottom margin */
    font-size: 1.05rem; /* Slightly smaller font for compactness */
    line-height: 1.4; /* Adjusted line height for better compactness */
}
.testimonial-item .testimonial-text .fa-quote-left {
    margin-bottom: 5px; /* Reduce margin below quote icon */
}
.testimonial-item .testimonial-text .fa-quote-right {
    margin-top: 5px; /* Reduce margin above quote icon */
}
.testimonial-author {
    margin-top: 0; /* Adjust margin if needed */
}


/* Resources Section - Teaser Specific Adjustments */
#articles .resource-card { /* Changed from #resources-section to #articles as per HTML ID */
    min-height: 400px; /* Ensure consistent height for resource cards */
    /* Refined shadow for resource cards */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Lighter initial shadow */
    transition: all 0.3s ease;
}
#articles .resource-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); /* Slightly stronger hover shadow */
    transform: translateY(-5px);
}
#articles .resource-img-wrapper { /* Changed from #resources-section to #articles */
    height: 200px;
    position: relative; /* For overlay positioning */
    overflow: hidden; /* For image overflow */
}

#articles .resource-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

#articles .resource-img-wrapper:after { /* Overlay for resource images */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 144, 255, 0.2); /* VOCI Blue with 20% opacity */
    transition: background 0.3s ease;
    border-radius: inherit;
}

#articles .resource-card:hover .resource-img-wrapper img {
    transform: scale(1.05);
}

#articles .resource-card:hover .resource-img-wrapper:after {
    background: rgba(30, 144, 255, 0.35); /* More opaque on hover */
}

#articles .resource-content h3 { /* Changed from #resources-section to #articles */
    min-height: 60px; /* Ensure title lines don't cause layout shifts */
}
.resource-category {
    opacity: 1 !important; /* Ensure full opacity for text visibility */
    /* background-color is set per color in main.css */
    /* Adding specific overrides here for clarity if needed, but main.css should handle */
}
/* Specific overrides for resource category colors to be solid and visible */
.resource-card .resource-img-wrapper .bg-voci-red {
    background-color: var(--voci-red) !important;
    color: white !important; /* Ensure text is white */
}
.resource-card .resource-img-wrapper .bg-voci-blue {
    background-color: var(--voci-blue) !important;
    color: white !important;
}
.resource-card .resource-img-wrapper .bg-voci-gold {
    background-color: var(--voci-gold) !important;
    color: white !important; /* Ensure text is white */
}


/* Responsive adjustments specific to home page */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    #about-section .about-img {
        height: auto; /* Allow image to scale naturally */
    }
    #about-section .stats-box {
        right: 50%;
        transform: translateX(50%);
        width: calc(100% - 30px); /* Adjust width for mobile */
        gap: 15px;
        flex-direction: row; /* Keep items in a row if possible, allow wrap */
        justify-content: space-around; /* Distribute space */
        bottom: 15px; /* Adjust bottom position for mobile */
        left: 15px; /* Ensure it stays within bounds */
        right: 15px;
        border-width: 1px; /* Thinner border on mobile */
        /* Further refined for small screens */
        padding: 15px !important; /* Slightly less padding on very small screens */
        bottom: 10px; /* Closer to the bottom of the image */
    }
    #about-section .stats-box .stat-item {
        flex: 1 1 45%; /* Two items per row on small screens */
        min-width: unset; /* Remove min-width constraint */
    }
    #about-section .stats-box .stat-number {
        font-size: 2rem !important; /* Smaller numbers for better fit */
    }
    #about-section .stats-box .stat-label {
        font-size: 0.75rem; /* Smaller label text */
    }
    .core-values-grid .value-card {
        padding: 10px; /* Smaller padding on mobile */
        margin-bottom: 10px; /* Space between value cards */
    }
    .core-values-grid .value-card i {
        font-size: 1.2rem; /* Smaller icons on mobile */
    }
    .core-values-grid .value-card span {
        font-size: 0.8rem; /* Smaller text on mobile */
    }
    #programs-section .program-card {
        min-height: auto;
        padding: 30px 15px;
    }
    #programs-section .program-features {
        margin-top: 15px;
    }
    #events-section .event-card .event-img-wrapper {
        height: 200px;
    }
    #events-section .event-list .event-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    #events-section .event-date-sm {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    #events-section .event-info {
        margin-bottom: 15px;
    }
    #events-section .event-meta span {
        display: block;
        margin: 5px 0 !important;
    }
    #events-section .event-action {
        width: 100%;
        margin-top: 10px;
    }
    #articles .resource-card { /* Changed from #resources-section to #articles */
        min-height: auto;
    }
    #articles .resource-img-wrapper { /* Changed from #resources-section to #articles */
        height: 180px; /* Fixed height for image wrappers on mobile */
        overflow: hidden;
    }
    #articles .resource-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .core-values-grid .value-card {
        padding: 10px; /* Smaller padding on mobile */
        margin-bottom: 10px; /* Space between value cards */
    }
    .core-values-grid .value-card i {
        font-size: 1.2rem; /* Smaller icons on mobile */
    }
    .core-values-grid .value-card span {
        font-size: 0.8rem; /* Smaller text on mobile */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #about-section .stats-box {
        right: -30px; /* Slight overlap on tablets */
        gap: 20px;
        padding: 20px;
        width: auto; /* Allow width to be determined by content + gap */
        min-width: 280px; /* Ensure it doesn't get too small */
    }
}
