/* Contact Page Styling */

/* Section 1: Header Image */
.contact-header {
    width: 100%;
    margin-bottom: 0;
}

.header-image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 40px 20px;
    text-align: center;
}

.header-overlay h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section 2: Current Board */
.current-board-section {
    background-color: #e1eaf0;
    padding: 60px 20px;
}

.board-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.board-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.board-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.board-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #999;
}

.board-card-content {
    padding: 25px;
}

.board-card-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.board-card-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.board-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.board-contact {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.board-contact p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.board-contact a {
    color: #2c5aa0;
    text-decoration: none;
}

.board-contact a:hover {
    text-decoration: underline;
}

.board-contact i {
    margin-right: 8px;
    color: #2c5aa0;
}

.no-board-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2rem;
}

/* Section 3: Divider */
.section-divider {
    background-color: #a9c8d0;
    padding: 40px 20px;
    text-align: center;
}

.section-divider h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/* Section 4: Previous Boards */
.previous-boards-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.previous-boards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.previous-board-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.previous-board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.previous-board-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.previous-board-info {
    padding: 20px;
    text-align: center;
}

.previous-board-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 8px;
}

.previous-board-info p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .board-container {
        grid-template-columns: 1fr;
    }
    
    .previous-boards-grid {
        grid-template-columns: 1fr;
    }
    
    .header-overlay h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1025px) {
    /* First row: 2 cards */
    .board-card.card-first-row:nth-child(1),
    .board-card.card-first-row:nth-child(2) {
        grid-column: span 1;
    }
    
    /* Following rows: 3 cards per row */
    .board-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .board-card.card-first-row:nth-child(1) {
        grid-column: 1 / 2;
    }
    
    .board-card.card-first-row:nth-child(2) {
        grid-column: 2 / 3;
    }
    
    /* Make first two cards span across for better layout */
    .board-container > .board-card:nth-child(1),
    .board-container > .board-card:nth-child(2) {
        grid-column: auto / span 1;
    }
}

@media (max-width: 768px) {
    .header-image-container {
        height: 250px;
    }
    
    .header-overlay h1 {
        font-size: 1.5rem;
    }
    
    .board-card-content h2 {
        font-size: 1.3rem;
    }
    
    .section-divider h2 {
        font-size: 1.5rem;
    }
}
