/* =============================================
   HERO MEDIA SLIDER — Desktop & Mobile Optimised
   ============================================= */

/* ----- Section ----- */
.hero-slider-section {
    position: relative;
    padding: 110px 0 48px;
    background: #050c17;
    overflow: hidden;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(195,0,9,.15), transparent);
    pointer-events: none;
}

/* ----- Container ----- */
.slider-container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ----- Main Display ----- */
.main-display {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5.45;       /* ~10% taller than before on desktop */
    border-radius: 16px;
    overflow: hidden;
    background: #18181b;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.65);
}

/* glass-border */
.main-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* ----- Slides ----- */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .6s ease, transform .6s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Slide Info Overlay ----- */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity .4s ease .15s, transform .4s ease .15s;
    z-index: 5;
}

.slide.active .slide-info {
    transform: translateY(0);
    opacity: 1;
}

.slide-category {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #ff4d56;
    margin-bottom: .45rem;
}

.slide-title {
    font-size: clamp(1.1rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: .01em;
    margin: 0;
}

.slide-desc {
    color: rgba(255,255,255,.6);
    font-size: clamp(.75rem, 1.4vw, .9rem);
    margin-top: .4rem;
    line-height: 1.45;
}

/* ----- Video Overlay ----- */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.28);
    opacity: 1;
    transition: opacity .3s ease;
    cursor: pointer;
    z-index: 6;
}

.slide.playing .video-overlay { opacity: 0; }
.slide.playing .video-overlay:hover { opacity: 1; }

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    flex-shrink: 0;
}

.play-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-left: 3px;
}

.play-btn:hover {
    background: #C30009;
    border-color: #C30009;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(195,0,9,.45);
}

/* ----- Navigation Arrows ----- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    min-width: 44px;   /* WCAG touch target */
    min-height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 20;
}

.nav-arrow svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2.2;
    fill: none;
    pointer-events: none;
}

.nav-arrow:hover {
    background: #C30009;
    border-color: #C30009;
    box-shadow: 0 0 20px rgba(195,0,9,.4);
}

.nav-arrow.prev { left: 1rem; }
.nav-arrow.next { right: 1rem; }

/* ----- Slide Counter ----- */
.slide-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    padding: .35rem .85rem;
    border-radius: 20px;
    z-index: 15;
    line-height: 1.4;
    user-select: none;
}

.slide-counter span { color: #fff; font-weight: 700; }

/* ----- Progress Bar ----- */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #C30009;
    width: 0;
    z-index: 15;
    transition: width .1s linear;
}

/* ----- Pagination Dots (Mobile) ----- */
.pagination-dots {
    display: none;  /* hidden on desktop */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.pagination-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #C30009;
    box-shadow: 0 0 8px rgba(195,0,9,.4);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
    .hero-slider-section { padding: 95px 0 40px; }
    .slider-container { padding: 0 1.75rem; }
    .main-display { aspect-ratio: 16 / 8.8; }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
    .hero-slider-section { padding: 80px 0 32px; }
    .slider-container { padding: 0 1.25rem; }
    .main-display { aspect-ratio: 16 / 9; border-radius: 12px; }

    .slide-info { padding: 3rem 1.25rem 1.25rem; }
    .slide-desc { display: none; }   /* hide desc, show on hover not needed on touch */

    .nav-arrow { width: 42px; height: 42px; }
    .nav-arrow svg { width: 19px; height: 19px; }
    .nav-arrow.prev { left: .6rem; }
    .nav-arrow.next { right: .6rem; }

    .play-btn { width: 58px; height: 58px; }
    .play-btn svg { width: 24px; height: 24px; }

    .pagination-dots { display: flex; }  /* show dots on tablet/mobile */
    .progress-bar { display: none; }     /* hide progress bar on mobile */
}

/* Mobile (≤640px) — Full-Width Horizontal Slider */
@media (max-width: 640px) {
    .hero-slider-section { padding: 65px 0 24px; }
    .slider-container { padding: 0; }          /* edge-to-edge */
    .main-display {
        aspect-ratio: 16 / 9;                  /* landscape, full image */
        border-radius: 0;                      /* flush to screen edges */
        box-shadow: none;
        width: 100vw;
    }

    .slide img,
    .slide video { object-fit: cover; }

    .slide-info {
        padding: 2.5rem 1rem 1rem;
        background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
    }
    .slide-category { font-size: .65rem; letter-spacing: .12em; }
    .slide-title { font-size: clamp(.95rem, 4.5vw, 1.3rem); line-height: 1.3; }

    /* Hide arrows — swipe to navigate */
    .nav-arrow { display: none; }

    .play-btn { width: 54px; height: 54px; }
    .play-btn svg { width: 22px; height: 22px; }

    .slide-counter {
        top: .75rem;
        right: .75rem;
        font-size: .68rem;
        padding: .28rem .65rem;
        background: rgba(0,0,0,.65);
    }

    .pagination-dots { margin-top: .85rem; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .hero-slider-section { padding: 60px 0 20px; }
    .slider-container { padding: 0; }
    .main-display {
        aspect-ratio: 16 / 9;
        border-radius: 0;
        width: 100vw;
    }

    .slide-title { font-size: clamp(.9rem, 4vw, 1.15rem); }
    .slide-info { padding: 2rem .85rem .85rem; }
    .slide-category { font-size: .58rem; }

    .play-btn { width: 46px; height: 46px; }
    .play-btn svg { width: 19px; height: 19px; margin-left: 2px; }

    .slide-counter { font-size: .62rem; padding: .22rem .55rem; top: .55rem; right: .55rem; }
}

/* Extra-small (≤360px) */
@media (max-width: 360px) {
    .slider-container { padding: 0; }
    .main-display { aspect-ratio: 16 / 9; border-radius: 0; width: 100vw; }
    .slide-title { font-size: .88rem; }
    .slide-info { padding: 1.8rem .7rem .7rem; }
    .slide-category { font-size: .55rem; }
    .slide-counter { top: .45rem; right: .45rem; font-size: .58rem; padding: .18rem .45rem; }
    .play-btn { width: 42px; height: 42px; }
    .play-btn svg { width: 17px; height: 17px; }
}

/* =============================================
   NAV STICKY BORDER
   ============================================= */
nav.stickyadd {
    border-bottom: 2px solid rgba(255,255,255,.1);
    transition: border-bottom .3s ease;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: 4rem 0;
    border-top: 2px solid rgba(156,163,175,.12);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-container { order: 1; }

.about-image-box {
    max-width: 456px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    order: 2;
    text-align: center;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #c30009;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .75rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.about-badge svg { width: 16px; height: 16px; }

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #6b7280;
    margin-bottom: 2.5rem;
    text-align: justify;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.about-info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(156,163,175,.2);
}

.about-info-label {
    font-size: .875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.about-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.about-link {
    color: #c30009;
    text-decoration: none;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.about-link:hover {
    color: #a00007;
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .about-section { padding: 6rem 0; }
    .about-info-grid { grid-template-columns: repeat(2,1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 456px 1fr;
        gap: 4rem;
        align-items: start;
    }
    .about-image-container { order: 1; }
    .about-content { order: 2; text-align: left; padding-top: 1rem; }
    .about-image-box { margin: 0; }
    .about-title { font-size: 2.5rem; }
    .about-info-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 1280px) {
    .about-info-grid { grid-template-columns: repeat(5,1fr); }
}

/* =============================================
   PROFESSIONAL JOURNEY TIMELINE
   ============================================= */
.journey-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.journey-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.timeline-item { position: relative; }

.timeline-line {
    display: none;          /* hidden on mobile, shown on desktop */
    width: 2px;
    background: url('../images/dot-line.svg') center/cover;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}

.timeline-dot {
    display: none;          /* hidden on mobile, shown on desktop */
    background: radial-gradient(circle, #C30009, #430108);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    animation: heartPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(195,0,9,.7);
}

@keyframes heartPulse {
    0%,100% { transform: translateY(-50%) scale(1);   box-shadow: 0 0 0 0   rgba(195,0,9,.7); }
    25%,75%  { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 5px rgba(195,0,9,0);  }
    50%      { transform: translateY(-50%) scale(1);   box-shadow: 0 0 0 0   rgba(195,0,9,0);  }
}

.timeline-content {
    position: relative;
    z-index: 10;
    padding-left: 28px;
}

.timeline-text { margin-bottom: 20px; }

.timeline-text ul {
    margin-left: 1.25rem;
    padding-left: 0;
    list-style: disc outside;
}

.timeline-text ul li {
    margin-bottom: .5rem;
    line-height: 1.6;
}

.timeline-img { margin-top: 20px; margin-bottom: 30px; }

@media (min-width: 768px) {
    .timeline-line { display: block; left: 50%; transform: translateX(-50%); }
    .timeline-dot  { display: block; left: 50%; transform: translate(-50%,-50%); }

    .timeline-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
        padding-left: 0;
    }

    .timeline-odd .timeline-text  { grid-column:1; text-align:right; padding-right:30px; }
    .timeline-odd .timeline-img   { grid-column:2; padding-left:30px; margin-top:0; }

    .timeline-even .timeline-text { grid-column:2; grid-row:1; text-align:left; padding-left:30px; }
    .timeline-even .timeline-img  { grid-column:1; grid-row:1; padding-right:30px; margin-top:0; display:flex; justify-content:flex-end; }

    .journey-image { height: 300px; }
}
