/* =========================================
   HOME PAGE STYLES
   ========================================= */

/* Hero Layout - Mobile Responsive */
.home-hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    background: var(--color-bg-base);
}

.backgroundSlider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease-out;
    transform: scale(1.1);
}

.slideActive {
    opacity: 0.6;
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.5rem 1.25rem;
    background: hsla(var(--color-primary-h), var(--color-primary-s), 50%, 0.15);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid hsla(var(--color-primary-h), var(--color-primary-s), 50%, 0.3);
}

.hero-grid .title {
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #fff;
}

.hero-grid .subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

.hero-grid .actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Actions Section */
.quick-actions-container {
    max-width: 1200px;
    margin: -5rem auto 4rem;
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.action-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--color-primary-h), var(--color-primary-s), 50%, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.action-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.action-card p {
    font-size: 0.9rem;
    color: var(--color-text-mute);
    line-height: 1.5;
}

.action-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.5rem;
}

.visual {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.visual::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, hsla(var(--color-primary-h), 50%, 40%, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-glass-card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    box-shadow: var(--shadow-xl);
    animation: floatMobile 10s ease-in-out infinite;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.statNumber {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.statLabel {
    font-size: 0.875rem;
    color: var(--color-text-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.statDivider {
    width: 1px;
    height: auto;
    background: var(--color-border);
}

/* Desktop Mode */
@media (min-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1.4fr 0.6fr;
        gap: 6rem;
        text-align: left;
    }

    .hero-grid .subtitle {
        margin: 0 0 4rem 0;
    }

    .hero-grid .actions {
        justify-content: flex-start;
    }

    .hero-grid .title {
        font-size: clamp(2.75rem, 8vw, 5.5rem);
    }

    .visual {
        height: 600px;
        padding: 0;
    }

    .hero-glass-card {
        flex-direction: column;
        padding: 4rem;
        gap: 4rem;
        transform: rotate(3deg);
        animation: float 10s ease-in-out infinite;
    }

    .statDivider {
        height: 1px;
        width: 100%;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatMobile {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatStats {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-stats-row {
        animation: none;
    }
}

/* News Preview Specific */
.news-preview-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
}

.news-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: hsla(var(--color-primary-h), var(--color-primary-s), 50%, 0.3);
}

.news-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-preview-card:hover .news-image-container img {
    transform: scale(1.05);
}

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.newsDate {
    color: var(--color-text-mute);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: var(--color-text-mute);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.news-link:hover {
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .news-image-container {
        height: 200px;
    }
}

/* Spotlight Section */
.spotlight-section {
    padding: 8rem 2rem;
    transition: padding 0.3s ease;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 4rem;
}

.spotlight-card {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    align-items: center;
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.spotlight-card.secondary {
    border-left-color: var(--color-secondary);
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.spotlight-img-container {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-border);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.spotlight-content {
    flex: 1;
}

.spotlight-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.spotlight-content p {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.spotlight-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-mute);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.spotlight-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Call To Action Responsive Text */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    transition: padding 0.3s ease;
}

.cta-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

.cta-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-mute);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    animation: floatStats 6s ease-in-out infinite;
}

/* Spotlight & CTA Responsive Queries */
@media (max-width: 768px) {
    .spotlight-section {
        padding: 4rem 1.5rem;
    }

    .spotlight-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2.5rem 1.5rem !important;
        gap: 1.5rem !important;
    }

    .spotlight-img-container {
        width: 100px !important;
        height: 100px !important;
        border-radius: 16px !important;
    }

    .spotlight-card p {
        margin-bottom: 0.75rem;
    }

    .spotlight-grid {
        gap: 2rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-panel {
        padding: 3rem 1.5rem;
    }

    .cta-stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border);
        animation: none;
    }

    .cta-stats-row > div {
        padding: 0 0.5rem;
        overflow-wrap: break-word;
    }

    .cta-stats-row > div > div:first-child {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        line-height: 1;
    }

    .home-hero {
        min-height: auto;
        padding: 2rem 1.5rem;
        /*overflow: visible;*/
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-badge {
        margin-bottom: 1rem;
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    .hero-grid .title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .hero-grid .subtitle {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem auto;
        max-width: 100%;
    }

    .hero-grid .actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-grid .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .visual {
        padding: 0;
    }
    
    .visual::before {
        width: 100%;
        height: 100%;
    }

    .hero-glass-card {
        padding: 1.5rem;
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .hero-glass-card .stat {
        flex: 1;
        min-width: 80px;
    }

    .statNumber {
        font-size: 2rem;
    }

    .statLabel {
        font-size: 0.7rem;
    }

    .statDivider {
        width: 1px;
        height: 40px;
        align-self: center;
    }

    section[style*="padding: 10rem 2rem"] {
        padding: 4rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .action-card {
        padding: 1.5rem;
    }

    .hero-glass-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .statNumber {
        font-size: 1.5rem;
    }

    .statLabel {
        font-size: 0.65rem;
    }

    .statDivider {
        height: 30px;
    }

    .cta-stats-row {
        gap: 1.5rem;
    }

    .home-hero {
        padding: 1.5rem 1.25rem;
    }

    .hero-grid .title {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .quick-actions-container {
        margin: 2rem auto 3rem;
        padding: 0 1.25rem;
    }

    section[style*="padding: 10rem 2rem"] {
        padding: 3rem 1.25rem !important;
    }
}

@media (max-width: 400px) {
    .lightbox-nav {
        font-size: 1.25rem;
        padding: 0.6rem 0.8rem;
    }
    .lightbox-nav.prev { left: 6px; }
    .lightbox-nav.next { right: 6px; }
}

/* Pulse Animation & Lightbox Navigation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.3s;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}
