/**
 * Lake City Ultrabots Team 8041 - FIRST Page CSS
 * Styles specific to first.html
 */

/* Ensure variables from styles.css are available or define them here if needed */
/* :root {
  --primary: #cc0000;
  --secondary: #000000;
  --dark: #333333;
  --light: #f8f8f8;
  --gray: #6c757d;
} */

/* ------------------------------
   FIRST OVERVIEW SECTION
------------------------------ */
.first-overview-section {
    background-color: #ffffff; /* White background for contrast if needed */
    padding: 40px 0;
}

.first-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* Center items on mobile */
}

.first-overview-text {
    flex: 1;
    max-width: 600px; /* Limit text width for readability */
    text-align: left; /* Align text to left on mobile too for this block */
}
.first-overview-text .first-logo-small {
    max-width: 250px;
    margin-bottom: 20px;
    background-color: var(--secondary); /* If it's a reverse logo, give it a dark background */
    padding: 10px;
    border-radius: 5px;
}


.first-overview-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.first-overview-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--darkgray);
}

.first-overview-text .btn {
    margin-top: 10px;
}

.first-overview-media {
    flex: 1;
    width: 100%;
    max-width: 560px; /* Max width for the video container */
}

/* Responsive video container (already in index.css, but good to have context) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 769px) {
    .first-overview-section {
        padding: 60px 0;
    }
    .first-overview-grid {
        flex-direction: row;
        gap: 40px; /* Larger gap on desktop */
        align-items: flex-start; /* Align items to the top */
    }
    .first-overview-text {
        text-align: left;
    }
    .first-overview-text h2 {
        font-size: 2rem;
    }
}

/* ------------------------------
   FIRST IMPACT SECTION (Uses .core-values-section from styles.css)
------------------------------ */
.first-impact-section {
    background-color: var(--light); /* Or alternate background */
}
/* Styles for .core-value-card are in styles.css and index.css, 
   can be further customized here if needed for the first.html page */
.first-impact-section .core-value-card {
    /* Example customization:
    border-left: 4px solid var(--primary); */
}
.first-impact-section .core-value-card h3 {
    font-size: 1.2rem; /* Slightly smaller if needed for content */
}

/* ------------------------------
   TEAM STATISTICS SECTION
------------------------------ */
.team-stats-section {
    padding: 40px 0;
    background-color: #ffffff; /* Or var(--light) */
}

.team-stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 20px;
}

.team-stat-item {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden; /* To contain the image */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.stat-item-img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
}

.stat-item-content {
    padding: 20px;
    text-align: center;
}

.stat-item-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.stat-item-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (min-width: 576px) { /* Small devices (landscape phones, etc.) */
    .team-stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        gap: 25px;
    }
}

@media (min-width: 992px) { /* Medium devices (tablets, small desktops) */
    .team-stats-section {
        padding: 60px 0;
    }
    .team-stats-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns on larger screens */
        gap: 30px;
    }
    .stat-item-img {
        height: 180px; /* Adjust height for more columns */
    }
    .stat-item-content h3 {
        font-size: 1.2rem;
    }
}