/* --- Vision, Mission & Values Styling --- */

/* Custom Soft Colors for Icon Backgrounds */
.bg-soft-primary {
    background-color: rgba(10, 49, 97, 0.1);
}

.bg-soft-orange {
    background-color: rgba(255, 107, 0, 0.1);
}

.text-orange {
    color: var(--color-orange);
}

/* Vision & Mission Cards */
.vm-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Core Value Cards */
.transition-all {
    transition: all 0.3s ease;
}

.value-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Icon Hover Animation inside Value Cards */
.value-card i {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.value-card:hover i {
    transform: scale(1.15);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .vm-card {
        padding: 2.5rem !important;
    }

    .vm-card h2 {
        font-size: 1.75rem;
    }
}

/* --- Principal's Message Section Styling --- */

/* Parallax Background Utility */
.bg-parallax {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Glassmorphism Nameplate overlapping the image */
.principal-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    transform: translateX(40px);
}

/* Editorial Typography for the text */
.message-content {
    line-height: 1.8;
}

.message-content p {
    font-weight: 400;
}

/* Stylized opening paragraph */
.message-content .lead-quote {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    font-style: italic;
    border-left: 4px solid var(--color-orange);
    padding-left: 1.5rem;
    /* Soft gradient background behind the quote */
    background: linear-gradient(90deg, rgba(10, 49, 97, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {

    /* Disable parallax on mobile for better scrolling performance */
    .bg-parallax {
        background-attachment: scroll;
    }

    /* Reset the badge position so it fits on mobile */
    .principal-badge {
        transform: translateX(0);
        left: 50%;
        right: auto;
        bottom: -25px !important;
        transform: translateX(-50%);
        width: 85%;
        justify-content: center;
    }

    .principal-message-section .image-wrapper {
        margin-bottom: 2rem;
    }

    /* Ensure the quote icon doesn't overlap text on small screens */
    .principal-message-section .bi-quote {
        top: -10px;
        left: 0;
    }
}

/* --- Premium Glass Timeline Styling --- */

.timeline {
    max-width: 1050px;
}

/* Gradient Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    /* Beautiful gradient tracing the timeline */
    background: linear-gradient(to bottom, var(--color-primary), var(--color-orange), var(--color-teal), #e11d48);
    top: 30px;
    bottom: 30px;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
    opacity: 0.5;
}

/* Timeline Item Layout */
.timeline-item {
    padding: 0 60px;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item.left-side {
    left: 0;
}

.timeline-item.right-side {
    left: 50%;
}

/* Central Dots */
.timeline-dot {
    position: absolute;
    width: 54px;
    height: 54px;
    background-color: var(--color-primary);
    border: 4px solid #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 1.2rem;
}

.left-side .timeline-dot {
    right: -27px;
}

.right-side .timeline-dot {
    left: -27px;
}

/* The Glass Card */
.timeline-card {
    position: relative;
    height: 380px;
    /* Fixed height for beautiful image display */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-bg-img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.85);
    /* Slightly darkens image so white text pops */
}

.timeline-card:hover .timeline-bg-img {
    transform: scale(1.1);
}

/* The Frosted Glass Text Panel */
.timeline-glass-box {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    /* Adding actual glass blur to the bottom area */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 60%;
    /* Takes up bottom half of the image */
    transition: height 0.4s ease;
}

.timeline-card:hover .timeline-glass-box {
    height: 70%;
    /* Rises up slightly on hover */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
}

/* Subtle Glowing Pulse Animations for the dots */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 49, 97, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(10, 49, 97, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(10, 49, 97, 0);
    }
}

.pulse-primary {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseOrange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.pulse-orange {
    animation: pulseOrange 2.5s infinite;
    animation-delay: 0.5s;
}

@keyframes pulseTeal {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 184, 148, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

.pulse-teal {
    animation: pulseTeal 2.5s infinite;
    animation-delay: 1s;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.pulse-red {
    animation: pulseRed 2.5s infinite;
    animation-delay: 1.5s;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 991px) {
    .timeline::after {
        left: 40px;
        /* Move line to the left edge */
    }

    .timeline-item {
        width: 100%;
        padding-left: 90px;
        padding-right: 15px;
        margin-bottom: 3rem;
    }

    .timeline-item.right-side {
        left: 0%;
    }

    .timeline-item.left-side {
        margin-top: 0 !important;
    }

    /* Realign dots to the left line */
    .left-side .timeline-dot,
    .right-side .timeline-dot {
        left: 13px;
        right: auto;
        top: 40px;
        /* Move dot to top alignment with card */
        transform: none;
    }

    .timeline-card {
        height: 320px;
        /* Slightly shorter cards on mobile */
    }
}

/* Custom Soft Background matching Primary Color */
.bg-soft-primary {
    background-color: rgba(10, 49, 97, 0.08);
    /* 8% opacity of var(--color-primary) */
}

/* Glassmorphism Floating Experience Card */
.glass-experience-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Pushes it slightly outside the image container on desktop */
    transform: translateX(25px);
}

/* Feature Icon Box Hover Animation */
.icon-box {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.about-section .row.g-4>div:hover .icon-box {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(10, 49, 97, 0.3) !important;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 991px) {
    .about-section .ps-lg-5 {
        padding-left: 0 !important;
        /* Remove desktop padding */
        margin-top: 2rem;
    }

    /* Re-position the floating card so it doesn't break out of the screen on mobile */
    .glass-experience-card {
        position: relative !important;
        transform: translateX(0);
        margin: -50px auto 0 auto !important;
        /* Pulls it up to overlap the bottom of the image */
        width: 85%;
        justify-content: center;
    }
}

/* --- Modern Glass Grid FAQ Styling --- */
.glass-faq-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.glass-faq-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

/* The Plus Icon Wrapper */
.faq-icon-wrap {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

/* State when the collapse is expanded */
.glass-faq-card[aria-expanded="true"] {
    background: rgba(0, 184, 148, 0.05);
    /* Slight teal tint */
    border-color: rgba(0, 184, 148, 0.4);
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.15);
    /* Neon teal glow */
}

.glass-faq-card[aria-expanded="true"] .faq-icon-wrap {
    background: var(--color-teal);
    border-color: var(--color-teal);
    transform: rotate(135deg);
    /* Spins the plus into an X */
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.4);
}

/* Smooth collapse animation override */
.glass-faq-card .collapse,
.glass-faq-card .collapsing {
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .glass-faq-card {
        padding: 1.5rem;
    }

    .glass-faq-card h5 {
        font-size: 1.1rem;
    }

    .faq-icon-wrap {
        width: 35px;
        height: 35px;
    }
}