/* House Debates Page Styles - Working with Original HTML Structure */

/* Hero Section */
#intro {
    background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)  
        ),
        url('../images/fitzchamber.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: white; 
    text-align: center;
    height: 25em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

#intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

/* Introduction Text Section */
#introtext {
    max-width: 1200px;
    margin: 60px auto;
    padding: 50px 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

#introtext p {
    margin-bottom: 1.5rem;
}

#introtext p:last-child {
    margin-bottom: 0;
}

/* Recent Debates Section */
#recentdebates {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

#recentdebate-container {
    background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)  
        ),
        url('../images/debate.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#recentdebate-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Posters Container - Card Style */
#recentposters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 50px 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.poster {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.poster:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.poster img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.poster:hover img {
    transform: scale(1.02);
}

/* Add overlay effect to posters */
.poster::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(186, 27, 24, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.poster::after {
    content: '\f24e'; /* FontAwesome balance-scale icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    z-index: 2;
}

/* Get Involved Section */
#getinvolved {
    max-width: 1200px;
    margin: 60px auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, #ba1b18, #8b1415);
    color: white;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#getinvolved h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
}

#getinvolved p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

#getinvolved p:last-child {
    margin-bottom: 0;
}

#getinvolved a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

#getinvolved a:hover {
    color: #f4f4f4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #intro {
        height: 20em;
    }
    
    #intro h2 {
        font-size: 2.5rem;
    }
    
    #introtext {
        margin: 40px auto;
        padding: 40px 25px;
        font-size: 1.1rem;
    }
    
    #recentdebates {
        margin: 40px auto;
    }
    
    #recentdebate-container {
        padding: 60px 20px;
    }
    
    #recentdebate-container h2 {
        font-size: 2.2rem;
    }
    
    #recentposters-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 25px;
    }
    
    .poster img {
        height: 250px;
    }
    
    #getinvolved {
        margin: 40px auto;
        padding: 40px 25px;
    }
    
    #getinvolved h2 {
        font-size: 2.2rem;
    }
    
    #getinvolved p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #intro {
        height: 18em;
    }
    
    #intro h2 {
        font-size: 2rem;
    }
    
    #introtext {
        padding: 30px 20px;
        margin: 30px auto;
        font-size: 1rem;
    }
    
    #recentdebate-container {
        padding: 50px 15px;
    }
    
    #recentdebate-container h2 {
        font-size: 1.8rem;
    }
    
    #recentposters-container {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .poster img {
        height: 200px;
    }
    
    #getinvolved {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    #getinvolved h2 {
        font-size: 1.8rem;
    }
}
