/* ==================== Hero Video Section ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.video-overlay h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==================== Headteacher's Message ==================== */
.headteacher-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

.headteacher-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.headteacher-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent-color);
}

.headteacher-message h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.message-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 25px;
}

.headteacher-message p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.headteacher-message .signature {
    color: var(--primary-color);
    font-style: italic;
    margin-top: 20px;
    font-weight: 600;
}

.read-more-btn {
    margin-top: 20px;
    padding: 10px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
}

.read-more-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* ==================== Info Cards Section ==================== */
.info-cards-section {
    padding: 80px 0;
    background-color: var(--white);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== Photo Slideshow Section ==================== */
.slideshow-section {
    padding: 0;
    background-color: var(--white);
}

.slideshow-container-full {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.slideshow {
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slide-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--white);
}

/* ==================== Calendar Section ==================== */
.calendar-section {
    padding: 80px 0;
    background-color: var(--white);
}

.calendar-subsection {
    margin-bottom: 60px;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
}

.calendar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.calendar-btn-container {
    text-align: center;
    margin-top: 40px;
}

.calendar-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-light);
}

.calendar-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.calendar-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 25px;
}

.card-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.card-info .date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== Schedule Appointment Section ==================== */
.appointment-section {
    padding: 80px 0;
    background-color: var(--off-white);
    text-align: center;
}

.appointment-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.appointment-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.appointment-content .btn {
    margin-top: 10px;
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 968px) {
    .hero-section {
        margin-top: -90px;
        padding-top: 90px;
    }
}

@media (max-width: 768px) {
    .video-overlay h2 {
        font-size: 1.8rem;
    }
    
    .video-overlay p {
        font-size: 1rem;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .headteacher-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .headteacher-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .info-cards,
    .calendar-cards {
        grid-template-columns: 1fr;
    }
    
    .slideshow-container-full {
        height: 50vh;
        min-height: 300px;
    }

    .slide-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: -70px;
        padding-top: 70px;
    }
}
