/* Reset basic margins and set global fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* Navigation Bar Styling */
nav {
    background-color: #0b2240; /* Deep athletic navy blue */
    color: white;
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    color: #ff4757; /* Action red accent */
}

/* Hero Section */
.hero {
    background-color: #1e375a;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.btn {
    background-color: #ff4757;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: #e84118;
}

/* Base Sections */
section.overview {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #0b2240;
    color: white;
    margin-top: 50px;
}

/* Stats Layout */
.stats-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.stats-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #0b2240;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Stack vertically on phones */
    }
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card h3 {
    color: #0b2240;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff4757;
    padding-bottom: 5px;
}

.bio-card ul {
    list-style: none;
}

.bio-card ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8fafc;
    color: #475569;
}

/* Video Gallery Section */
.video-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.video-section h2 {
    color: #0b2240;
    margin-bottom: 10px;
    font-size: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Side-by-side on desktop */
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* Stacked on mobile screens */
    }
}

.video-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.video-card h4 {
    margin: 15px 0 5px 0;
    color: #0b2240;
    font-size: 1.2rem;
}

.video-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Aspect Ratio Box to keep videos widescreen 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

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

/* Contact & Schedule Layout */
.contact-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-container h1 {
    text-align: center;
    color: #0b2240;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Schedule gets slightly more space */
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacks on mobile devices */
    }
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-card h3 {
    color: #0b2240;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Schedule Timeline Styling */
.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.game-date {
    background-color: #ff4757;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 100px;
    margin-right: 20px;
    font-size: 0.9rem;
}

.game-details {
    display: flex;
    flex-direction: column;
}

.game-location {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Contact Info Items */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item strong {
    color: #0b2240;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 1.1rem;
    color: #334155;
    margin-top: 2px;
}

/* PG Profile Layout */
.profile-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Master Scout Card Design */
.pg-scout-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #ff4757; /* Accent strip down the side */
    margin-bottom: 30px;
}

.pg-card-hero {
    display: flex;
    flex-wrap: wrap;
}

/* Photo Settings */
.player-photo-box {
    flex: 1 1 300px;
    max-width: 320px;
    background-color: #0b2240;
}

.player-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vitals Settings */
.player-vitals-box {
    flex: 2 1 400px;
    padding: 35px;
    background: #ffffff;
}

.player-vitals-box h2 {
    font-size: 2.4rem;
    color: #0b2240;
    margin: 10px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.badge {
    background-color: #0b2240;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

@media (max-width: 550px) {
    .vitals-grid {
        grid-template-columns: 1fr;
    }
}

.vital-item {
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.vital-item strong {
    color: #64748b;
    font-weight: 600;
}

.vital-item span {
    color: #0b2240;
    font-weight: 700;
}

/* Scout Report Box */
.scout-report-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.scout-report-section h3 {
    color: #0b2240;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.report-body p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
}

/* --- Mobile Responsive Fix --- */
@media (max-width: 650px) {
    /* 1. Stack the navigation items vertically instead of horizontally */
    .nav-container ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 8px; /* Adds clean spacing between links */
    }

    /* 2. Center the logo title at the top */
    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    /* 3. Kill horizontal scrolling and white borders */
    body, html {
        width: 100%;
        overflow-x: hidden;
    }
}