*, *::before, *::after {
    box-sizing: border-box;
}
.video-page-header {
    background-color: #000000 !important; 
    padding: 15px 20px;
    text-align: center;
    width: 100%;
    /* Ensure no stray margins are pushing it */
    margin-left: 0;
    margin-right: 0;
    /* This prevents the text from touching the screen edges on tiny phones */
    word-wrap: break-word; 
}

.video-page-header h1 {
    color: #ffffff !important; 
    font-size: 1.8rem; /* Scaled down to fit the slim bar */
    text-transform: uppercase;
    margin: 0;
    font-family: 'Arial Black', sans-serif;
    line-height: 1.2;
}

.video-page-header p {
    color: #ffffff !important; /* Changed from grey to white for better visibility */
    font-size: 1rem;
    margin: 5px 0 0 0;
    font-weight: bold;         /* This makes the text bold */
    letter-spacing: 0.5px;     /* Adds a little "automotive" spacing */
}

.title-divider {
    width: 60px; 
    height: 2px;
    background-color: #e30613;
    margin: 8px auto 0 auto; /* Tighter spacing for the red accent */
}

/* 2. THE GRID */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* 3. THE CARDS */
.video-card {
    width: 350px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* THE BOX INSIDE THE CARD */
.video-title {
    background-color: #e30613 !important; /* Red box for individual projects */
    color: #ffffff !important;            /* White text */
    margin: 0 !important;
    padding: 15px !important;
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-description {
    color: #333333;
    font-size: 0.95rem;
    margin: 0;
}
/* STACKED VIDEO LIST STYLES */

.video-stack-area {
    max-width: 900px; 
    margin: 40px auto;
    padding: 0 20px;
}

.video-entry {
    margin-bottom: 80px; /* Large gap between different videos */
}

.video-header-group {
    margin-bottom: 15px;
    border-left: 4px solid #e30613; /* Your signature red accent */
    padding-left: 15px;
}

.video-entry-title {
    color: #111010;
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
    /* Add these two lines */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.video-entry-description {
    color: #555;
    font-size: 1.05rem;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.main-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}