/**
 * G.R. Medical College, Hospital & Research Centre
 * Hero Banner & Announcements Ticker Styles (Figma Spec Matched)
 */

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.gr-hero-banner-section {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 31px;
    box-sizing: border-box;
}

.gr-hero-slider {
    position: relative;
    width: 100%;
    height: 618px;
    overflow: hidden;
    background: #0d1b2a;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Slide Wrapper & Items */
.gr-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease-out;
    transform: scale(1.02);
    z-index: 1;
}

.gr-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.gr-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Subtle gradient overlay to ensure text and UI elements pop */
.gr-slide::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
80deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.20) 35%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Banner Slide Content Overlay (Text & Button matching Figma) */
.gr-slide-content {
    position: absolute;
    left: 60px;
    bottom: 60px;
    z-index: 5;
    max-width: 520px;
    pointer-events: auto;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.gr-slide.active .gr-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.gr-slide-title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 22px 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.gr-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 158px;
    padding: 0 28px;
    background: #ffffff;
    color: #1E1E1E;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gr-slide-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gr-slide-btn:active {
    transform: translateY(0);
}

/* Slider Controls (Bottom-Right aligned matching Figma) */
.gr-slider-controls {
    position: absolute;
    right: 46px;
    bottom: 46px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.gr-slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 1);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
}

.gr-slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.gr-slider-btn:active {
    transform: translateY(0);
}

.gr-slider-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.2s ease;
}

.gr-slider-btn svg path {
    fill: #ffffff;
}

.gr-slider-btn.prev-btn:hover svg {
    transform: translateX(-2px);
}

.gr-slider-btn.next-btn:hover svg {
    transform: translateX(2px);
}

/* Progress Indicator Dots */
.gr-slider-dots {
    display: none;
}

/* ==========================================================================
   Announcements Ticker Section (Reduced Compact Size)
   ========================================================================== */
.gr-announcements-section {
    width: 100%;
    max-width: 1600px;
    margin: 18px auto 36px auto;
    padding: 0 31px;
    box-sizing: border-box;
}

.gr-announcements-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
}

/* Ticker Text Track */
.gr-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
}

.gr-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: grTickerScroll 35s linear infinite;
}

.gr-ticker-track:hover {
    animation-play-state: paused;
}

.gr-ticker-item {
    display: inline-flex;
    align-items: center;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #2b2b2b;
    line-height: 1.35;
    padding-right: 48px;
    letter-spacing: 0.01em;
}

.gr-ticker-item strong {
    font-weight: 600;
    color: #2A3EC0;
    margin-right: 4px;
}

.gr-ticker-separator {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #ED2225;
    border-radius: 50%;
    margin: 0 16px;
    flex-shrink: 0;
}

@keyframes grTickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Announcements Button / Badge */
.gr-announcements-badge {
    width: 156px;
    height: 38px;
    min-width: 156px;
    border: 1px solid #2A3EC0;
    border-radius: 0;
    background: transparent;
    color: #2A3EC0;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.gr-announcements-badge:hover {
    background: #2A3EC0;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(42, 62, 192, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1400px) {
    .gr-hero-banner-section,
    .gr-announcements-section {
        padding: 0 24px;
    }

    /* .gr-hero-slider {
        height: 520px;
    } */

    .gr-slide-title {
        font-size: 34px;
    }
}

@media (max-width: 1024px) {
    /* .gr-hero-slider {
        height: 440px;
    } */

    .gr-slide-content {
        left: 36px;
        bottom: 36px;
        max-width: 440px;
    }

    .gr-slide-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .gr-slide-btn {
        height: 40px;
        min-width: 140px;
        font-size: 15px;
        padding: 0 20px;
    }

    .gr-slider-controls {
        right: 24px;
        bottom: 24px;
    }

    .gr-announcements-container {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .gr-announcements-badge {
        width: 100%;
        min-width: unset;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* .gr-hero-slider {
        height: 360px;
    } */

    .gr-slide-content {
        left: 20px;
        bottom: 20px;
        right: 80px;
        max-width: none;
    }

    .gr-slide-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .gr-slide-btn {
        height: 36px;
        min-width: 120px;
        font-size: 14px;
        padding: 0 16px;
    }

    .gr-slider-btn {
        width: 38px;
        height: 38px;
    }

    .gr-slider-controls {
        right: 16px;
        bottom: 16px;
        gap: 8px;
    }

    .gr-hero-banner-section,
    .gr-announcements-section {
        padding: 0 16px;
    }

    .gr-ticker-item {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    /* .gr-hero-slider {
        height: 300px;
    } */

    .gr-slide-title {
        font-size: 19px;
    }

    .gr-slider-btn {
        width: 32px;
        height: 32px;
    }

    .gr-slider-btn svg {
        width: 18px;
        height: 18px;
    }
}
