
/* Horizontal Timeline Design */
.horizontal-timeline-section {
    padding: 100px 0 120px;
    background-color: #f4f7f6;
    position: relative;
    z-index: 1;
}

.timeline-title-wrap {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-title-wrap h6 {
    color: #f5a11d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.timeline-title-wrap h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0c1431;
}

.horizontal-timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* The horizontal line */
.horizontal-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
}

.horizontal-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 3px;
    background: #f5a11d;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 1.5s ease-in-out;
}

/* Trigger animation when visible via wow.js */
.wow .horizontal-timeline-line {
    width: 100%;
}

.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    min-height: 500px;
}

.horizontal-timeline .timeline-item {
    width: 18%; 
    position: relative;
}

/* Nodes on the line */
.timeline-node {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid #f5a11d;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(245, 161, 29, 0.15);
    transition: all 0.3s ease;
    z-index: 4;
}

.timeline-item:hover .timeline-node {
    background-color: #f5a11d;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(245, 161, 29, 0.25);
}

.timeline-content {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    text-align: center;
    position: absolute;
    left: 50%;
    width: 280px;
    transform: translateX(-50%);
    transition: all 0.4s ease;
    border-bottom: 3px solid #f5a11d;
    z-index: 5;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 15px 50px rgba(245, 161, 29, 0.15);
}

.timeline-item.top .timeline-content {
    bottom: 50%;
    margin-bottom: 45px; 
}

.timeline-item.top:hover .timeline-content {
    bottom: 50%;
    margin-bottom: 55px; 
}

.timeline-item.bottom .timeline-content {
    top: 50%;
    margin-top: 45px;
}

.timeline-item.bottom:hover .timeline-content {
    top: 50%;
    margin-top: 55px;
}

.timeline-step {
    display: inline-block;
    padding: 6px 16px;
    background: #fef5e8;
    color: #f5a11d;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #0c1431;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Connecting small lines from node to box */
.timeline-item.top .timeline-node::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 45px;
    background: rgba(245, 161, 29, 0.4);
    z-index: -1;
}

.timeline-item.bottom .timeline-node::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 45px;
    background: rgba(245, 161, 29, 0.4);
    z-index: -1;
}

/* Responsive: switch back to vertical on small screens */
@media screen and (max-width: 991px) {
    .horizontal-timeline-wrapper::before,
    .horizontal-timeline-line {
        top: 0;
        bottom: 0;
        left: 30px;
        width: 3px;
        height: 100%;
        transform: none;
    }
    
    .horizontal-timeline-line {
        width: 3px;
        height: 0%;
        transition: height 1.5s ease-in-out;
    }

    .wow .horizontal-timeline-line {
        height: 100%;
        width: 3px;
    }
    
    .horizontal-timeline {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
    
    .timeline-item {
        width: 100%;
        margin-bottom: 40px;
        min-height: 150px; /* Give space for content */
    }
    
    .timeline-node {
        top: 50px;
        left: 31px;
    }
    
    .timeline-content {
        position: relative;
        width: calc(100% - 70px);
        left: 70px;
        transform: none;
        margin: 0 !important;
        text-align: left;
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
    }
    
    .timeline-item.top .timeline-node::before,
    .timeline-item.bottom .timeline-node::after {
        top: 50%;
        bottom: auto;
        left: 100%;
        transform: translateY(-50%);
        width: 40px;
        height: 2px;
    }
    
    .timeline-title-wrap {
        margin-bottom: 60px;
    }
}

/* ================================
   Scholarship Flip Cards
   ================================ */
.schol-flip-card {
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.schol-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.schol-flip-card:hover .schol-flip-inner {
    transform: rotateY(180deg);
}

.schol-flip-front,
.schol-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    text-align: center;
}

/* Front side — dark navy with orange icon */
.schol-flip-front {
    background: #0c1431;
    border: 1px solid rgba(245, 161, 29, 0.15);
}

.schol-flip-front i {
    font-size: 52px;
    color: #f5a11d;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.schol-flip-front h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Back side — orange gradient */
.schol-flip-back {
    background: linear-gradient(135deg, #f5a11d 0%, #e08a10 100%);
    transform: rotateY(180deg);
}

.schol-flip-back i {
    font-size: 36px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.schol-flip-back h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.schol-flip-back p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Mobile: disable flip, stack normally */
@media screen and (max-width: 767px) {
    .schol-flip-card {
        height: auto;
        perspective: none;
    }

    .schol-flip-inner {
        transform: none !important;
        transform-style: flat;
    }

    .schol-flip-front {
        display: none;
    }

    .schol-flip-back {
        position: relative;
        transform: none;
        border-radius: 16px;
        padding: 35px 25px;
    }
}
