* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #A9A9A9;
    min-height: 100vh;
}

/* Top bar */
.top-bar {
    background-color: #000;
    height: 60px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hamburger menu icon - hidden on desktop */
.hamburger {
    display: none;
    background-color: #000;
    padding: 15px;
    cursor: pointer;
}

.hamburger-icon {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    margin: 3px 0;
}

/* Button container */
.button-container {
    background-color: #000;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button-container a {
    margin: 7.5px;
}

/* Buttons */
.nav-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Main content / body */
.main-content {
    padding: 60px 40px;
    text-align: center;
    background-color: #A9A9A9;
}

.header {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.subtext {
    font-size: 20px;
    color: #666;
    margin-top: 10px;
}

/* YouTube-style Content Grid (2x3) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* YouTube-style Content Cards */
.content-card {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Thumbnail area */
.card-thumbnail {
    width: 100%;
    position: relative;
    aspect-ratio: 16/9; /* keeps 16:9 shape */
    overflow: hidden;
}

.thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 60px;
}

/* Card info section */
.card-info {
    padding: 12px 16px 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category {
    font-size: 12px;
    color: #606060;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
}

.card-description {
    font-size: 14px;
    color: #606060;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet view - 2 columns */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile view - 1 column */
@media (max-width: 600px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .button-container {
        display: none;
        flex-direction: column;
    }
    
    .button-container a {
        margin: 0;
    }
    
    .button-container.active {
        display: flex;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
        border-radius: 0;
        padding: 15px;
        border-bottom: 1px solid #333;
    }
    
    .nav-button:hover {
        transform: none;
    }
}
