/* ============================================================
   CROWN GEM — OUR JOURNEY CSS
   ============================================================ */

.jy-hero {
    position: relative;
    height: 420px;
    background-color: var(--navy);
    background-image: url('../img/16.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to right,
    rgba(9, 18, 60, 0.72) 0%,
    rgba(9, 18, 60, 0.30) 55%,
    rgba(9, 18, 60, 0.05) 100%
  );
    /* background: rgba(9, 18, 60, 0.85); Premium navy overlay */
    z-index: 1;
}

.jy-hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.jy-hero__title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Timeline Layout */
.jy-timeline-section {
    padding: 100px 0;
    background: var(--off-white);
}

.jy-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The vertical line in the center */
.jy-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.jy-timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* Alternating placement left/right */
.jy-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.jy-timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Dots on the line */
.jy-timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.jy-timeline-item:nth-child(even)::after {
    left: -7px;
}

.jy-timeline-item:hover::after {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* Date / Year Label */
.jy-timeline-date {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

/* Content Card styling */
.jy-timeline-content {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jy-timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.jy-timeline-content h3 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 12px;
}

.jy-timeline-content p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jy-timeline-section {
        padding: 60px 0;
    }
    
    /* Line to the left side */
    .jy-timeline::after {
        left: 20px;
    }
    
    .jy-timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 30px;
    }
    
    .jy-timeline-item:nth-child(even) {
        left: 0;
    }
    
    /* Dot positioning */
    .jy-timeline-item::after {
        left: 13px !important;
        right: auto !important;
    }
}
