
.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);
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.video-overlay p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s;
}

.video-overlay h2.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-overlay p.revealed {
    opacity: 1;
    transform: translateY(0);
}


.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(--accent-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 {
    padding: 80px 0;
    background-color: var(--white);
}

.info-cards {
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background-color: transparent;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
    border-radius: 0;
    text-align: left;
    box-shadow: none;
    transition: none;
    border-top: none;
    border-bottom: 2px solid var(--gray-light);
}

.info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-card:hover {
    box-shadow: none;
    border-top-color: transparent;
}

.card-icon {
    display: none;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}


.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%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
    animation: continuousZoomIn 10s linear infinite;
}

@keyframes continuousZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}


.slide.fading-out img {
    animation: zoomIn 6s ease-in-out forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}


.slide:not(.active) img {
    transform: scale(1.05); 
}

.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 {
    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;
}


.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;
}


.social-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.social-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.social-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.social-embeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-embed {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.social-embed h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.social-embed h3 a {
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.social-embed h3 a:hover {
    opacity: 0.8;
}

.facebook-link {
    color: #1877F2;
}

.instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.video-overlay h2 {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.video-overlay p {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s;
}

.video-overlay h2.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-overlay p.revealed {
    opacity: 1;
    transform: translateY(0);
}


.section-title,
.subsection-title,
.headteacher-message h2,
.info-card h3,
.headteacher-image,
.card-info h4 {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.revealed,
.subsection-title.revealed,
.headteacher-message h2.revealed,
.info-card h3.revealed,
.headteacher-image.revealed,
.card-info h4.revealed {
    opacity: 1;
    transform: translateX(0);
}


.section-subtitle,
.info-card p,
.headteacher-message p,
.card-info .date,
.card-info p,
.btn {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-subtitle.revealed,
.info-card p.revealed,
.headteacher-message p.revealed,
.card-info .date.revealed,
.card-info p.revealed,
.btn.revealed {
    opacity: 1;
    transform: translateX(0);
}


.headteacher-content,
.calendar-card,
.social-embed {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.headteacher-content.revealed,
.calendar-card.revealed,
.social-embed.revealed {
    opacity: 1;
    transform: translateY(0);
}


@media (min-width: 1025px) {
    .social-embeds {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .social-embeds {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@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;
    }
    
    .fb-page-wrapper {
        max-width: calc(100vw - 80px);
        overflow: hidden;
    }
    
    .fb-page-wrapper iframe {
        width: 100% !important;
        max-width: 100%;
        height: 500px !important;
        transform: scale(0.98);
        transform-origin: top center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .fb-page-wrapper {
        max-width: calc(100vw - 60px);
    }
    
    .fb-page-wrapper iframe {
        height: 450px !important;
        transform: scale(0.95);
    }
}

@media (max-width: 1024px) {
    .social-embeds {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fb-page-wrapper iframe {
        max-width: 450px;
    }
    
    .social-embed blockquote {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .social-section {
        padding: 60px 20px;
    }
    
    .social-section .section-title {
        font-size: 2rem;
    }
    
    .social-embed {
        padding: 20px;
    }
    
    .social-embed h3 {
        font-size: 1.3rem;
    }
    
    .fb-page-wrapper iframe {
        max-width: 380px;
        height: 500px !important;
    }
    
    .social-embed blockquote {
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .fb-page-wrapper iframe {
        max-width: 320px;
        height: 450px !important;
    }
    
    .social-embed blockquote {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .fb-iframe {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    .fb-iframe {
        width: 100%;
        max-width: 300px;
        height: 450px;
    }
    
    .instagram-embed blockquote {
        max-width: 300px !important;
    }
}
