/* Alternating Sections Styles - Compact Version */
.alternating-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.alternating-section:nth-child(even) {
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
}

.alternating-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.alternating-container.reversed {
    grid-template-columns: 1fr 1fr;
}

.alternating-content {
    padding: 30px;
}

.content-text h3 {
    font-size: 2.5rem;
    color: #4F8F84;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    position: relative;
    padding-bottom: 15px;
}

.content-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4F8F84, #F26A8D);
    border-radius: 2px;
}

.content-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
}

.vision-statement, .mission-statement {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.05), rgba(242, 106, 141, 0.05));
    border-radius: 15px;
    border-left: 4px solid #4F8F84;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.vision-statement::before, .mission-statement::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 5rem;
    color: rgba(79, 143, 132, 0.1);
    font-family: 'Georgia', serif;
    font-weight: bold;
    line-height: 1;
}

.alternating-media {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s ease;
}

.alternating-container.reversed .alternating-media {
    transform: perspective(1000px) rotateY(5deg);
}

.alternating-media:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: filter 0.3s ease;
}

.video-wrapper:hover .section-video {
    filter: brightness(1.05);
}

.video-overlay-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.15), rgba(242, 106, 141, 0.08));
    border-radius: 25px;
}

/* Key Points Styling */
.key-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.key-point {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.25s ease;
    border: 1px solid rgba(79, 143, 132, 0.1);
}

.key-point:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 143, 132, 0.12);
    border-color: #4F8F84;
}

.key-point i {
    font-size: 2.2rem;
    color: #4F8F84;
    margin-bottom: 12px;
    display: block;
    transition: all 0.25s ease;
}

.key-point:hover i {
    transform: scale(1.15);
    color: #F26A8D;
}

.key-point span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: block;
}

/* Vision Points Styling */
.vision-points {
    margin-top: 30px;
}

.vision-point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    border: 1px solid rgba(79, 143, 132, 0.1);
}

.vision-point:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(79, 143, 132, 0.08);
    border-color: #4F8F84;
}

.point-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(79, 143, 132, 0.2);
    min-width: 50px;
    transition: all 0.25s ease;
}

.vision-point:hover .point-number {
    color: #4F8F84;
}

.point-content h4 {
    color: #4F8F84;
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-family: 'Georgia', serif;
}

.point-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mission Objectives Styling */
.mission-objectives {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.objective {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    border: 1px solid rgba(79, 143, 132, 0.1);
}

.objective:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 143, 132, 0.12);
    border-color: #4F8F84;
}

.objective i {
    font-size: 1.8rem;
    color: #4F8F84;
    margin-top: 3px;
    transition: all 0.25s ease;
}

.objective:hover i {
    transform: scale(1.15);
    color: #F26A8D;
}

.objective h4 {
    color: #4F8F84;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: 'Georgia', serif;
}

.objective p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Section Icon Styling */
.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4F8F84, #7FB7AE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(79, 143, 132, 0.25);
}

/* Decorative Elements */
.alternating-section::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.05), rgba(242, 106, 141, 0.05));
    z-index: -1;
}

#about::before {
    top: -100px;
    right: -100px;
}

#vision::before {
    bottom: -100px;
    left: -100px;
}

#mission::before {
    top: -100px;
    left: -100px;
}

/* Gradient Borders */
.alternating-media::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #4F8F84, #F26A8D, #4F8F84);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.alternating-media:hover::before {
    opacity: 0.8;
}

/* Loading Animation for Videos */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8faf9, #ffffff);
    border-radius: 25px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.video-wrapper.loaded::after {
    opacity: 0;
    pointer-events: none;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -800px 0;
    }
    100% {
        background-position: 800px 0;
    }
}

.video-wrapper:not(.loaded)::after {
    background: linear-gradient(
        90deg,
        #f8faf9 0%,
        #e8f3f1 50%,
        #f8faf9 100%
    );
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Animation Effects */
.alternating-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s ease;
}

.alternating-media {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease 0.15s;
}

.alternating-container.reversed .alternating-content {
    transform: translateX(40px);
}

.alternating-container.reversed .alternating-media {
    transform: translateX(-40px);
}

.alternating-section.animated .alternating-content,
.alternating-section.animated .alternating-media {
    opacity: 1;
    transform: translateX(0);
}

/* Video Fade-in Effect */
.section-video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-wrapper.loaded .section-video {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .alternating-container {
        gap: 40px;
    }
    
    .video-wrapper {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .alternating-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .alternating-container.reversed {
        grid-template-columns: 1fr;
    }
    
    .alternating-media {
        order: -1;
        transform: none !important;
    }
    
    .alternating-container.reversed .alternating-media {
        order: -1;
        transform: none !important;
    }
    
    .alternating-content {
        padding: 15px;
    }
    
    .video-wrapper {
        height: 350px;
    }
    
    .key-points {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-objectives {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .alternating-section {
        padding: 40px 15px;
    }
    
    .content-text h3 {
        font-size: 2rem;
    }
    
    .vision-statement, .mission-statement {
        font-size: 1.15rem;
        padding: 15px;
    }
    
    .video-wrapper {
        height: 300px;
    }
    
    .key-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .key-point {
        padding: 15px;
    }
    
    .vision-point {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .point-number {
        min-width: auto;
    }
    
    .objective {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .objective i {
        margin: 0 auto 10px;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .alternating-section {
        padding: 30px 10px;
    }
    
    .content-text h3 {
        font-size: 1.6rem;
    }
    
    .content-text p {
        font-size: 1.05rem;
    }
    
    .video-wrapper {
        height: 250px;
    }
    
    .vision-statement, .mission-statement {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* Fade-in Animation for Sections */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alternating-section {
    animation: fadeInScale 0.6s ease-out;
}

/* Smooth Scrolling Anchor Offset */
.alternating-section {
    scroll-margin-top: 100px;
}

/* Focus States for Accessibility */
.video-wrapper:focus {
    outline: 3px solid #4F8F84;
    outline-offset: 3px;
}

.video-wrapper:focus .section-video {
    filter: brightness(1.1);
}

/* Print Styles */
@media print {
    .alternating-section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .alternating-media {
        display: none;
    }
    
    .alternating-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-wrapper {
        display: none;
    }
    
    .key-points,
    .vision-points,
    .mission-objectives {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .vision-statement,
    .mission-statement {
        background: #f0f0f0;
        border-left: 4px solid #000;
    }
    
    .key-point,
    .vision-point,
    .objective {
        border: 2px solid #000;
    }
    
    .alternating-media::before {
        background: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .alternating-content,
    .alternating-media,
    .section-video,
    .key-point,
    .vision-point,
    .objective {
        transition: none !important;
        animation: none !important;
    }
    
    .alternating-section {
        animation: none;
    }
    
    .alternating-content,
    .alternating-media {
        opacity: 1;
        transform: none;
    }
    
    .video-wrapper:not(.loaded)::after {
        animation: none;
    }
}