/* ============================================================
   Phase 2: Homepage Redesign — per Figma wireframes
   Colors: heading #012169, subtitle #666666, card bg #ffffff,
           page bg #f6f6f6, arrow #15256c
   ============================================================ */

.hs-homepage {
    background: #f6f6f6;
    padding-top: 0;
    min-height: 60vh;
}

/* --- Hero Banner --- */
.hs-hero {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.hs-hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.hs-hero-slider .slick-dots {
    bottom: 20px;
}
.hs-hero-slider .slick-dots li button {
    background: #ffffff;
    opacity: 0.5;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.hs-hero-slider .slick-dots .slick-active button {
    opacity: 1;
}

/* --- Carousel Sections Container --- */
.hs-carousels {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Individual Carousel Section --- */
.hs-carousel-section {
    padding: 10px 0 2px;
}

/* --- Section Header: Title + Subtitle --- */
.hs-section-header {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.hs-section-title {
    font-family: 'Gibson', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #012169;
    margin: 0 !important;
    padding: 0;
    line-height: 1.2;
}

.hs-section-subtitle {
    font-family: 'Gibson', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

/* --- Carousel Row --- */
.hs-carousel-row {
    position: relative;
}

/* --- Slick overrides for homepage --- */
.hs-slick.slick-slider {
    margin: 0 -6px;
}

.hs-slick .slick-slide {
    padding: 0 6px;
}

/* Carousel arrows */
.hs-slick .slick-prev,
.hs-slick .slick-next {
    width: 20px;
    height: 40px;
    background: none;
    z-index: 10;
}

.hs-slick .slick-prev:hover,
.hs-slick .slick-next:hover {
    background: none;
}

.hs-slick .slick-prev { left: -4px; }
.hs-slick .slick-next { right: -4px; }

.hs-slick .slick-prev:before,
.hs-slick .slick-next:before {
    font-size: 22px;
    color: #15256c;
    opacity: 0.6;
}

.hs-slick .slick-prev:hover:before,
.hs-slick .slick-next:hover:before {
    opacity: 1;
}

/* --- Content Cards --- */
.hs-card-wrap {
    padding: 0;
}

.hs-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    aspect-ratio: 16 / 11;
    position: relative;
}

.hs-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

/* Text-only card (for forum topics) */
.hs-card.hs-card-text {
    aspect-ratio: auto;
    min-height: 120px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #e1f4fd;
}

.hs-card-forum-title {
    font-size: 14px;
    font-weight: 600;
    color: #15256c;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-card-forum-meta {
    font-size: 11px;
    color: #666666;
    display: flex;
    justify-content: space-between;
}

/* Placeholder card (for blogs without images) */
.hs-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #e1f4fd;
    text-align: center;
}

.hs-card-placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: #15256c;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty section message */
.hs-empty-msg {
    color: #aeaeae;
    font-size: 14px;
    font-style: italic;
    padding: 8px 0;
}

/* --- Links reset --- */
.hs-card-wrap a,
.hs-card-wrap a:hover {
    text-decoration: none;
    color: inherit;
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .hs-carousels {
        padding: 0 16px;
    }

    .hs-carousel-section {
        padding: 8px 0 2px;
    }

    .hs-section-title {
        font-size: 17px;
    }

    .hs-section-subtitle {
        font-size: 12px;
    }

    .hs-section-header {
        flex-direction: column;
        gap: 2px;
    }

    .hs-slick .slick-prev,
    .hs-slick .slick-next {
        width: 26px;
        height: 26px;
    }

    .hs-slick .slick-prev:before,
    .hs-slick .slick-next:before {
        font-size: 13px;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .hs-section-title {
        font-size: 18px;
    }
}


/* === NUCLEAR OVERRIDES — eliminate ALL inherited spacing === */
.hs-homepage,
.hs-homepage * {
    box-sizing: border-box;
}

.hs-homepage .slick-track {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.hs-homepage .slick-slider {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-homepage .slick-list {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-homepage .slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}

.hs-homepage .slick-slide {
    margin: 0;
}

.hs-homepage .tile {
    margin-right: 0 !important;
}

.hs-homepage h2,
.hs-homepage h3,
.hs-homepage h4,
.hs-homepage p {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-homepage .hs-hero {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-homepage .hs-carousels {
    padding: 0 40px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}
@media (min-width: 1400px) {
    .hs-homepage .hs-carousels {
        padding: 0 60px !important;
    }
}
@media (min-width: 1800px) {
    .hs-homepage .hs-carousels {
        padding: 0 80px !important;
    }
}

.hs-homepage .hs-carousel-section {
    padding: 24px 0 0 !important;
    margin: 0 !important;
}

.hs-homepage .hs-section-header {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.hs-homepage .hs-carousel-row {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-homepage .hs-slick.slick-slider {
    margin: 0 -6px !important;
}

.hs-homepage .hs-slick .slick-slide {
    padding: 0 6px;
}

.hs-homepage .hs-empty-msg {
    padding: 4px 0 !important;
    margin: 0 !important;
}

/* Override white ui-view background for homepage */
div[ui-view].ng-scope:has(.hs-homepage) {
    background: #f6f6f6 !important;
}

/* === Responsive side margins === */
.hs-homepage > * {
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box;
}
@media (min-width: 1400px) {
    .hs-homepage > * {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}
@media (min-width: 1800px) {
    .hs-homepage > * {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}
/* Children inherit parent padding - no override needed */
