/* MCD Home Page Specific Styles */

/* Banner Slider Styles */
.banner-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-slides {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-indicators .indicator.active {
    background-color: #E91E63;
    transform: scale(1.2);
}

.slider-indicators .indicator:hover {
    background-color: rgba(233, 30, 99, 0.8);
}

/* Slider Navigation Arrows */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-wrapper:hover .slider-navigation {
    opacity: 1;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.slider-nav-btn:hover {
    background-color: rgba(233, 30, 99, 0.25);
    border-color: rgba(233, 30, 99, 0.5);
    color: #fff;
    transform: scale(1.1);
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

.slider-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Welcome Section */
.welcome-section {
    padding: 4.5rem 0;
    text-align: center;
    background-color: #fff;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #E2188F;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-section .section-text {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
}

.values-buttons {
    margin-top: 2rem;
}

.values-buttons .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

/* Show desktop button by default, hide mobile button */
.values-buttons-mobile {
    display: none;
}

.values-buttons-desktop {
    display: block;
}

.gbs-excellence-section {
    padding: 4.5rem 0;
}

.gbs-excellence-section .section-title {
    color: #E2188F;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.gbs-excellence-section .gbs-description {
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: center;
}

.gbs-infographic-container {
    text-align: center;
    margin-top: 3.5rem;
    padding: 0 1rem;
}

.gbs-infographic-desktop {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.gbs-infographic-mobile {
    display: none;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.gbs-mobile-dimensions {
    display: none;
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.gbs-mobile-dimensions .dimension-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.08);
}

.gbs-mobile-dimensions .dimension-item h3 {
    color: #E2188F;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.gbs-mobile-dimensions .dimension-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.highlighted-initiatives-section {
    padding: 4.5rem 0;
}

.highlighted-initiatives-section .section-title {
    color: #E2188F;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.initiative-card {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 12px;
    background-color: #fff;
}

.initiative-card-reverse {
    background-color: #f5f5f5;
    margin-top: 3rem;
}

.initiative-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.initiative-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.initiative-title {
    color: #E2188F;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.initiative-logo {
    margin-bottom: 1.5rem;
}

.initiative-logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.initiative-description {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

.initiative-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.initiative-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.1);
}

.initiative-button {
    text-align: center;
    margin-top: 3rem;
}

/* Video Messages Section */
.video-messages-section {
    padding: 4.5rem 0;
    background-color: #f9fafb;
}

.video-messages-section .section-title {
    color: #E2188F;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-align: center;
}

.video-messages-section .section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
    margin: 0;
    padding: 0;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

/* Student video thumbnails - reduced height */
.video-column-right .video-thumbnail {
    position: relative;
    padding-bottom: calc(50% + 27px);
    height: 0;
    overflow: hidden;
}

.video-column-right .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-column-left h3,
.video-column-left p {
    text-align: left;
    margin-top: 1rem;
}

.video-column-left h3 {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
    color: #E2188F;
    font-weight: 700;
}

.video-column-left p {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 0;
}

/* Director Info - Above Video */
.director-info {
    margin-bottom: 1.5rem;
    text-align: left;
}

.director-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
    color: #E2188F;
    font-weight: 700;
}

.director-info p {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 0;
}

/* Student Video Captions */
.student-video-container {
    display: flex;
    flex-direction: column;
}

.student-video-container h3 {
    text-align: left;
    margin-top: 1rem;
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #E2188F;
    font-weight: 700;
}

/* Full Width Director Video */
.video-row-full {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.video-row-full .video-wrapper {
    margin-bottom: 0;
}

/* Video embed base styles */
.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
    margin: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
}

/* Director Video - 1278x580 */
.video-row-full .video-embed {
    padding-bottom: 45.38%; /* 580/1278 = 0.4538 */
}

/* Rector Video - 818x580 */
.video-column-left .video-embed {
    padding-bottom: 70.9%; /* 580/818 = 0.709 */
}

/* Student Videos - Reduced to account for captions */
.video-column-right .video-embed {
    padding-bottom: calc(50% + 27px); /* Reduced from 63.64% to accommodate captions, +27px height */
}

/* Two Column Layout */
.video-row-split {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-column-left {
    display: flex;
    flex-direction: column;
}

.video-column-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Left Column - Rector Video (Larger) */
.video-column-left .video-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Right Column - Two Stacked Videos (Smaller) */
.video-column-right .video-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 0 1 auto;
}

.video-half {
    margin: 0;
}

/* Full Width Banner */
.full-width-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.full-width-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.news-section {
    padding: 4.5rem 0;
}

.news-section .section-title {
    color: #E2188F;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding: 0 1rem;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 30, 99, 0.08);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #E2188F;
    font-weight: 700;
}

.news-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.news-content p {
    color: #4b5563;
    line-height: 1.6;
}

.news-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Visual Stories Section */
.visual-stories-section {
    padding: 4.5rem 0;
    background-color: #fafafa;
}

.visual-stories-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.visual-stories-section .section-title {
    color: #E2188F;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.visual-stories-carousel-wrapper {
    position: relative;
    margin-top: 3.5rem;
    padding: 0 60px 3rem;
    width: 100%;
}

.visual-stories-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.1);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
    display: block;
}

.visual-stories-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

.visual-stories-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #E2188F;
    color: #E2188F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
    pointer-events: auto;
}

.visual-stories-nav-btn:hover {
    background-color: #E91E63;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}

.visual-stories-nav-btn:active {
    transform: scale(0.95);
}

.visual-stories-nav-btn svg {
    width: 24px;
    height: 24px;
}

.cta-section {
    padding: 5rem 0;
    background: #E91E63;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: #E91E63;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.cta-links {
    margin-top: 2rem;
}

.cta-links a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cta-links a:hover {
    opacity: 0.8;
}

/* Media Queries for Responsive Design */

/* Tablet and medium screens */
@media (max-width: 1200px) {
    .visual-stories-carousel-wrapper {
        padding: 0 50px 3rem;
    }

    .visual-stories-carousel {
        max-width: 700px;
        height: 500px;
    }

    .visual-stories-nav-btn {
        width: 46px;
        height: 46px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    /* Slider Navigation - Mobile */
    .slider-navigation {
        padding: 0 10px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }

    .slider-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Hide desktop-only banner on mobile */
    .desktop-only-banner {
        display: none;
    }

    .gbs-infographic-desktop {
        display: none;
    }

    .gbs-infographic-mobile {
        display: block;
    }

    .gbs-mobile-dimensions {
        display: block;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .visual-stories-section .container {
        padding: 0 10px;
    }

    .visual-stories-carousel-wrapper {
        padding: 0 15px 3rem;
        margin-top: 2.5rem;
    }

    .visual-stories-carousel {
        max-width: 100%;
        width: 100%;
        height: 400px;
        border-radius: 12px;
    }

    .carousel-item {
        padding: 15px;
    }

    .carousel-item img {
        border-radius: 8px;
    }

    .visual-stories-nav-btn {
        width: 44px;
        height: 44px;
    }

    .visual-stories-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .initiative-card {
        padding: 2rem 1.5rem;
    }

    .initiative-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    /* Reverse order for Art of Parenting on mobile - logo before image */
    .initiative-card-reverse .initiative-columns {
        flex-direction: column-reverse;
    }

    .initiative-logo img {
        max-width: 180px;
    }

    .initiative-title {
        font-size: 1.5rem;
    }

    .initiative-description {
        font-size: 1rem;
    }

    /* Video Section Responsive */
    .video-row-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-column-left h3 {
        font-size: 1.2rem;
    }

    .video-column-left p {
        font-size: 0.95rem;
    }

    .student-video-container h3 {
        font-size: 1.2rem;
    }

    .video-column-right {
        gap: 1rem;
    }

    .video-messages-section .section-title {
        font-size: 1.8rem;
    }

    .video-messages-section .section-subtitle {
        font-size: 1rem;
    }

    .play-button svg {
        width: 60px !important;
        height: 60px !important;
    }

    .video-half .play-button svg {
        width: 40px !important;
        height: 40px !important;
    }

    /* Director Info - Mobile */
    .director-info h3 {
        font-size: 1.2rem;
    }

    .director-info p {
        font-size: 0.95rem;
    }

    .welcome-section {
        padding: 3rem 0;
    }

    .welcome-section .section-text {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* Show mobile button before logo, hide desktop button after logo on mobile */
    .values-buttons-mobile {
        display: block;
    }

    .values-buttons-desktop {
        display: none;
    }

    .gbs-excellence-section {
        padding: 3rem 0;
    }

    .gbs-description p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .highlighted-initiatives-section {
        padding: 3rem 0;
    }

    .news-section {
        padding: 3rem 0;
    }

    .visual-stories-section {
        padding: 3rem 0;
    }

    .visual-stories-section .section-text {
        padding: 0 20px;
        font-size: 1rem;
    }
}

/* Medium mobile screens */
@media (max-width: 640px) and (min-width: 481px) {
    .visual-stories-carousel {
        height: 350px;
    }
}

/* Extra small screens for home page */
@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.75rem;
    }

    .gbs-excellence-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    .highlighted-initiatives-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    .video-messages-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    /* Director Info - Extra Small Screens */
    .director-info h3 {
        font-size: 1.1rem;
    }

    .director-info p {
        font-size: 0.9rem;
    }

    .news-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    .visual-stories-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    /* Visual Stories Carousel - Extra Small Screens */
    .visual-stories-carousel {
        height: 300px;
    }

    .carousel-item {
        padding: 10px;
    }

    .visual-stories-nav-btn {
        width: 40px;
        height: 40px;
    }

    .visual-stories-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}
