/* =========================================
   APSA India - Homepage (index.css)
   ========================================= */

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    background-color: #ffffff;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
}

.hero-slide__content {
    color: var(--white);
    padding: 0 60px;
    max-width: 600px;
}

.hero-slide__content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-slide__content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(155, 1, 1, 0.8);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--primary-red);
}

.slider-btn--prev {
    left: 16px;
}

.slider-btn--next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #84848480;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.slider-dot.active {
    background: var(--primary-red);
}

/* ---- Welcome Section ---- */
.welcome-section {
    padding: 40px 0;
    background-color: var(--white);
}

.welcome-section__grid {
    display: grid;
    grid-template-columns: 4fr 2fr;
    gap: 50px;
    align-items: start;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-grey);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.welcome-section__text h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.welcome-section__text>p {
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.welcome-section__text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

.welcome-section__text ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-grey);
    font-size: 14px;
}

.welcome-section__text ul li::before {
    content: "";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .welcome-section__text ul {
        grid-template-columns: 1fr;
    }
}

/* ---- Sidebar (Notifications + Events) ---- */
.welcome-section__sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-block__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.sidebar-block__title i {
    font-size: 1rem;
}

/* Notifications Accordion */
.notif-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}


.notif-accordion__header {
    width: 100%;
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.notif-accordion__item+.notif-accordion__item .notif-accordion__header {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.notif-accordion__header:hover {
    background: #e6a800;
}

.notif-accordion__body {
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s;
    line-height: 1.3;
}

.download-btn:hover {
    background: #7a0101;
    color: #fff;
}

.download-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.download-label {
    font-size: 0.78rem;
    color: var(--text-grey);
    margin: 0;
    padding-left: 2px;
}

/* Events Carousel */
.events-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    aspect-ratio: 4/3;
}

.events-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.events-carousel__item {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.events-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.events-carousel__caption p {
    margin: 0;
    color: #fff;
}

.events-carousel__prev,
.events-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(155, 1, 1, 0.8);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}

.events-carousel__prev:hover,
.events-carousel__next:hover {
    background: var(--primary-red);
}

.events-carousel__prev {
    left: 8px;
}

.events-carousel__next {
    right: 8px;
}

/* ---- Stats Bar ---- */
.stats-bar {
    background-color: var(--primary-red);
    padding: 30px 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item__number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Team Section (Homepage) ---- */
.team-section {
    padding: 40px 0;
    background-color: var(--dark-bg);
}

.team-section__title {
    color: var(--accent-yellow);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-section__subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.team-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin: auto;
}

.team-photos-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.team-member-card {
    background-color: #9b010193;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #fff;
    text-decoration: none;
}

.team-member-card:hover {
    transform: translateY(-4px);
}

.team-member-card img {
    width: 50%;
    height: 175px;
    object-fit: cover;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    margin-top: 20px;
}

.team-member-card__info {
    padding: 14px 10px;
}

.team-member-card__name {
    color: var(--accent-yellow);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-member-card__role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.team-section__btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.team-section__btn {
    background-color: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.team-section__btn:hover {
    background-color: #e6d800;
}

/* ---- About Section (Homepage) ---- */
.about-home-section {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.about-home-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-home-section__image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-home-section__content h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.about-home-section__content h3 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-grey);
}

.about-list li i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ---- Why Choose Us ---- */
.why-choose-section {
    padding: 70px 0;
    background-color: var(--white);
}

.why-choose-section__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
}

.why-choose-section__image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.why-choose-section__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-grey);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.why-choose-section__heading {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 28px;
    line-height: 1.3;
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-grey);
}

.why-choose-list li i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Leadership Succession ---- */
.leadership-section {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.leadership-section__heading {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

.leadership-table-wrap {
    overflow-x: auto;
}

.leadership-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #fff;
}

.leadership-table thead th {
    background-color: #18469d;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 16px 20px;
    border: 2px solid #fff;
}

.leadership-table tbody td {
    background-color: #b9e5fa;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 16px 20px;
    border: 2px solid #fff;
    line-height: 1.7;
}

.leadership-table__alt td {
    background-color: #dcdddf;
}

/* ---- Gallery Carousel ---- */
.gallery-preview-section {
    padding: 70px 0;
    background-color: var(--white);
}

.gal-carousel {
    position: relative;
    margin-top: 40px;
    padding: 0 28px;
}

.gal-carousel__viewport {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
    gap: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.gal-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.gal-carousel__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.gal-carousel__slide {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 8px);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.gal-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.gal-carousel__slide:hover img {
    transform: scale(1.06);
}

.gal-carousel__btn {
    position: absolute;
    top: calc(50% - 12px);
    transform: translateY(-50%);
    background: rgba(155, 1, 1, 0.85);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1;
}

.gal-carousel__btn:hover {
    background: var(--primary-red);
}

.gal-carousel__btn--prev {
    left: -6px;
}

.gal-carousel__btn--next {
    right: -6px;
}

.gal-carousel__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.gal-carousel__progress {
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 14px;
    overflow: hidden;
}

.gal-carousel__progress-bar {
    height: 100%;
    background: var(--primary-red);
    border-radius: 2px;
    transition: width 0.25s ease;
    width: 0%;
}

/* ---- Press Release Preview ---- */
.press-preview-section {
    padding: 70px 0;
    background-color: var(--light-bg);
}

.press-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.press-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.press-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.press-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ---- CTA Section ---- */
.cta-section {
    background-color: var(--primary-red);
    padding: 50px 0;
    text-align: center;
}

.cta-section h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-red);
    font-weight: 700;
}

.cta-section .btn:hover {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-slide__content h1 {
        font-size: 2rem;
    }

    .hero-slide__content {
        padding: 0 40px;
    }

    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-photos-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-section__grid,
    .about-home-section__grid,
    .why-choose-section__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gal-carousel__slide {
        flex: 0 0 calc(50% - 6px);
    }

    .press-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-slider {
        height: 200px;
    }

    .hero-slide__content h1 {
        font-size: 1.4rem;
    }

    .hero-slide__content {
        padding: 0 20px;
    }

    .hero-slide__content p {
        display: none;
    }

    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-photos-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-member-card img {
        height: 105px;
    }

    .gal-carousel__slide {
        flex: 0 0 85%;
    }

    .press-preview-grid {
        grid-template-columns: 1fr 1fr;
    }
}