/* Index Page Specific Styles - Hero Slider and Power Stats */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--header-total-height, 0px));
    min-height: calc(100vh - var(--header-total-height, 0px));
    overflow: hidden;
    background: #000;
}

/* ============================================
   SCROLL ANIMATIONS - CRITICAL STYLES
   Moved to top to prevent FOUC / flickering
   ============================================ */

/* Base animation classes - elements start hidden */
.animate-on-scroll {
    opacity: 0 !important;
    visibility: hidden !important;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
    visibility: visible !important;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* hide edges during slide transitions */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(100%);
    z-index: 1;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-transform: translateZ(0);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
}

.hero-slider.reverse .slide {
    transform: translateX(-100%);
}

.hero-slider.reverse .slide.active {
    transform: translateX(0);
}

.hero-slider.reverse .slide.prev {
    transform: translateX(100%);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
    will-change: transform;
    /* smoother zoom, fewer repaint artifacts */
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide.active .slide-bg img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 20, 41, 0.4) 0%, rgba(0, 78, 137, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 3%;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    justify-items: start;
}



.slide-badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.9);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-hero);
    line-height: 1.1;
    color: var(--white-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.slide-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    pointer-events: all;
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.dot.active {
    background: var(--white-color);
    border-color: var(--white-color);
    transform: scale(1.2);
}

.dot:hover {
    border-color: var(--white-color);
    transform: scale(1.1);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Slide Counter */
.slider-counter {
    position: absolute;
    bottom: 6rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-slide {
    font-size: 1.2rem;
    font-weight: 700;
}

.counter-separator {
    opacity: 0.7;
}

.total-slides {
    opacity: 0.8;
}

/* Thumbnail Navigation */
.slider-thumbnails {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.thumbnail {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.thumbnail.active {
    border-color: var(--white-color);
    transform: scale(1.1);
}

.thumbnail.active .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail:hover .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Ken Burns Effect - Zoom and Pan */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }

    100% {
        transform: scale(1.15) translate(-4%, -4%);
    }
}

.slide.active .slide-bg img {
    animation: kenBurns 20s ease-out infinite;
}

/* Text Reveal Animations */
@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    overflow: visible;
}

.slide-content h1 {
    white-space: normal;
    word-spacing: normal;
}

.slide-content h1 span {
    display: inline;
    opacity: 0;
    animation: revealText 0.6s ease-out forwards;
    margin: 0;
    padding: 0;
}

.slide-content p {
    overflow: visible;
    white-space: normal;
    word-spacing: normal;
}

.slide-content p span {
    display: inline;
    opacity: 0;
    animation: revealText 0.6s ease-out forwards;
    margin: 0;
    padding: 0;
}

/* Reset revealed text for new slides */
.slide:not(.active) h1.revealed,
.slide:not(.active) p.revealed {
    opacity: 0;
}

.slide.active h1.revealed span,
.slide.active p.revealed span {
    opacity: 1;
}

/* Transition Effects */
.slide.fade-transition {
    transition: opacity 1s ease-in-out;
}

.slide.cube-transition {
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.slide.flip-transition {
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

/* Responsive Thumbnails */
@media (max-width: 992px) {
    .slider-thumbnails {
        bottom: 5rem;
        gap: 0.5rem;
        padding: 0.4rem;
    }

    .thumbnail {
        width: 60px;
        height: 40px;
    }

    .slider-counter {
        bottom: 5rem;
        right: 1rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .slider-thumbnails {
        display: none;
        /* Hide thumbnails on mobile */
    }

    .slider-counter {
        bottom: 4rem;
        right: 1rem;
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    .current-slide {
        font-size: 1rem;
    }
}

/* Power Generation Statistics Section */
.power-stats {
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.power-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 74, 159, 0.2), transparent);
}

.stats-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.stats-heading h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.stats-refresh {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.stats-refresh i {
    color: var(--accent-color);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(44, 85, 133, 0.12);
    border: 1px solid rgba(25, 118, 210, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44, 85, 133, 0.18);
}

.summary-card:hover::before {
    transform: scaleX(1);
}

.summary-card span {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 700;
    display: block;
}

.summary-card h3 {
    margin: 0.35rem 0;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.summary-card h3 .unit {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.2rem;
}

.summary-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-card.primary {
    background: linear-gradient(135deg, #004a9f, #0076ff);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 74, 159, 0.35);
}

.summary-card.primary::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.summary-card.primary span,
.summary-card.primary p {
    color: rgba(255, 255, 255, 0.9);
}

.summary-card.primary h3 {
    color: #fff;
}

.summary-card.accent {
    background: #fff6ef;
    border-color: rgba(255, 149, 0, 0.4);
}

.stats-notices-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.generation-panel,
.notices-panel {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(15, 44, 76, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.generation-panel:hover,
.notices-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f4f8;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.panel-header span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.panel-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.panel-link:hover {
    color: var(--primary-color);
    gap: 0.75rem;
}

.panel-link i {
    transition: transform 0.3s ease;
}

.panel-link:hover i {
    transform: translateX(3px);
}

.stats-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 74, 159, 0.3) transparent;
}

.stats-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.stats-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.stats-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 74, 159, 0.3);
    border-radius: 3px;
}

.stats-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 74, 159, 0.5);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    table-layout: auto;
}

.stats-table th:first-child,
.stats-table td:first-child {
    width: auto;
}

.stats-table th:last-child,
.stats-table td:last-child {
    width: auto;
    min-width: 120px;
}

.stats-table th,
.stats-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef1f5;
    transition: background-color 0.2s ease;
}

.stats-table th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.stats-table th:first-child {
    padding-left: 1.25rem;
}

.stats-table th:last-child {
    padding-right: 1.25rem;
    text-align: right;
}

.stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:hover {
    background-color: #f8f9fb;
}

.stats-table td:first-child {
    padding-left: 1.25rem;
}

.stats-table td:last-child {
    text-align: right;
    font-weight: 600;
    padding-right: 1.25rem;
    white-space: nowrap;
}

.station-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.station-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 74, 159, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.stats-table tbody tr:hover .station-icon {
    transform: scale(1.1);
    background: rgba(0, 74, 159, 0.15);
}

.station-cell strong {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
}

.station-cell small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.generated-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}


/* Stats Table W Variant */
.stats-tableW {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    table-layout: auto;
}

.stats-tableW th,
.stats-tableW td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef1f5;
    transition: background-color 0.2s ease;
}

.stats-tableW th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    text-align: left;
    border-bottom: 2px solid #eef1f5;
}

.stats-tableW th:first-child {
    padding-left: 1.5rem;
}

.stats-tableW th:last-child {
    padding-right: 1.5rem;
    text-align: right;
}

.stats-tableW tbody tr {
    transition: all 0.2s ease;
}

.stats-tableW tbody tr:hover {
    background-color: #f8f9fb;
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 5;
    position: relative;
    cursor: default;
}

.stats-tableW tbody tr:hover td {
    background-color: #f8f9fb;
    /* Ensure background fills */
}

.stats-tableW tbody tr:hover td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.stats-tableW tbody tr:hover td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.stats-tableW td:first-child {
    padding-left: 1.5rem;
}

.stats-tableW td:last-child {
    text-align: right;
    font-weight: 600;
    padding-right: 1.5rem;
    white-space: nowrap;
}

/* Interaction with inner elements */
.stats-tableW tbody tr:hover .station-icon {
    transform: scale(1.1);
    background: rgba(0, 74, 159, 0.15);
}

.notice-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 74, 159, 0.3) transparent;
}

.notice-stack::-webkit-scrollbar {
    width: 6px;
}

.notice-stack::-webkit-scrollbar-track {
    background: transparent;
}

.notice-stack::-webkit-scrollbar-thumb {
    background: rgba(0, 74, 159, 0.3);
    border-radius: 3px;
}

.notice-stack::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 74, 159, 0.5);
}

.notice-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
    cursor: pointer;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 74, 159, 0.2);
}

.notice-card.empty {
    text-align: center;
    border-style: dashed;
    color: var(--text-secondary);
    cursor: default;
}

.notice-card.empty:hover {
    transform: none;
    box-shadow: none;
}

.notice-card.empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    opacity: 0.6;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notice-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-date i {
    font-size: 0.85rem;
}

.notice-pin {
    background: rgba(255, 149, 0, 0.15);
    color: #d97706;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.notice-pin i {
    font-size: 0.75rem;
}

.notice-card h4 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.notice-card p {
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.notice-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.notice-attachments span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f4f6fb;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.notice-card:hover .notice-attachments span {
    background: #e8ecf2;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.notice-link:hover {
    color: var(--primary-color);
    gap: 0.75rem;
}

.notice-link i {
    transition: transform 0.3s ease;
}

.notice-link:hover i {
    transform: translateX(3px);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.operational {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.partial {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.maintenance {
    background: #ffebee;
    color: #c62828;
}

.status-badge.offline {
    background: #eceff1;
    color: #455a64;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-notices-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .power-stats {
        padding: 4rem 0;
    }

    .stats-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .stats-heading h2 {
        font-size: 2.2rem;
    }

    .stats-refresh {
        font-size: 0.85rem;
    }

    .stats-notices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .generation-panel,
    .notices-panel {
        padding: 1.5rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .panel-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .power-stats {
        padding: 3rem 0;
    }

    .stats-heading {
        margin-bottom: 1.5rem;
    }

    .stats-heading h2 {
        font-size: 1.8rem;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .stats-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .summary-card {
        padding: 1.25rem;
    }

    .summary-card h3 {
        font-size: 1.8rem;
    }

    .generation-panel,
    .notices-panel {
        padding: 1.25rem;
        gap: 1rem;
    }

    .panel-header h3 {
        font-size: 1.2rem;
    }

    .panel-header span {
        font-size: 0.85rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .stats-table th:first-child,
    .stats-table td:first-child {
        padding-left: 1rem;
    }

    .stats-table th:last-child,
    .stats-table td:last-child {
        padding-right: 1rem;
    }

    .station-cell {
        gap: 0.75rem;
    }

    .station-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .generated-value {
        font-size: 1.1rem;
    }

    .notice-card {
        padding: 1rem;
    }

    .notice-card h4 {
        font-size: 1.1rem;
    }

    .notice-card p {
        font-size: 0.85rem;
    }

    .notice-stack {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .power-stats {
        padding: 2.5rem 0;
    }

    .stats-heading h2 {
        font-size: 1.5rem;
    }

    .stats-refresh {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .stats-refresh span {
        font-size: 0.75rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-card h3 {
        font-size: 1.5rem;
    }

    .summary-card span {
        font-size: 0.7rem;
    }

    .summary-card p {
        font-size: 0.85rem;
    }

    .generation-panel,
    .notices-panel {
        padding: 1rem;
        border-radius: 12px;
    }

    .panel-header h3 {
        font-size: 1.1rem;
    }

    .stats-table {
        font-size: 0.85rem;
    }

    .stats-table th {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .stats-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .stats-table th:first-child,
    .stats-table td:first-child {
        padding-left: 0.75rem;
    }

    .stats-table th:last-child,
    .stats-table td:last-child {
        padding-right: 0.75rem;
    }

    .station-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .station-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .generated-value {
        font-size: 1rem;
    }

    .notice-card {
        padding: 0.875rem;
        border-radius: 12px;
    }

    .notice-meta {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-card h4 {
        font-size: 1rem;
    }

    .notice-card p {
        font-size: 0.8rem;
    }

    .notice-attachments {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .notice-link {
        font-size: 0.85rem;
    }
}

/* News Section - Enhanced styling for index page */
.news {
    padding: 100px 0;
}

.news h2 {
    font-size: 3rem;
    margin: 0;
    /* handled by header wrapper */
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* News header row aligning title and action link */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.news-date span {
    display: block;
}

.news-date span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.news-content {
    padding: 1.5rem;
}

.news-tag {
    background: #f8f9fa;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
}

.btn-read-more:hover {
    gap: 0.75rem;
    color: var(--primary-color);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Enhanced Power Stats */
.power-stats {
    background: var(--white-color);
    padding: 6rem 0;
}

.stats-wrapper {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 78, 137, 0.1);
}

.stats-table th {
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: var(--white-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.stats-table td {
    font-size: 0.95rem;
    color: #1e293b;
}

.stats-table tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

/* Responsive Design for Index Page */
@media screen and (max-width: 768px) {
    .hero-slider {
        height: calc(70svh - var(--header-total-height, 0px));
        min-height: calc(100vh - var(--header-total-height, 0px));
    }

    .slide-content {
        padding: 2rem 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        max-height: 90%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0;
        width: 100%;
    }

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .slide-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 0.75rem;
    }

    .slide-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .slide-actions .btn-red,
    .slide-actions .btn-outline-white {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .stats-table-wrapper {
        overflow-x: scroll;
    }

    .power-stats {
        padding: 4rem 0;
    }

    .stats-wrapper {
        padding: 2rem 1.5rem;
    }

    .news {
        padding: 4rem 0;
    }

    .news h2 {
        font-size: 2.5rem;
    }

    .news-header {
        margin-bottom: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .hero-slider {
        height: calc(75svh - var(--header-total-height, 0px));
        min-height: calc(100vh - var(--header-total-height, 0px));
    }

    .slide-content {
        padding: 1.5rem 1rem;
    }

    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .slide-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .content-wrapper {
        gap: 1rem;
    }
}

/* Responsive Generation & Notices */
@media screen and (max-width: 992px) {
    .stats-notices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .generation-panel,
    .notices-panel {
        padding: 1.5rem;
    }

    .stats-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stats-heading h2 {
        font-size: 2.2rem;
    }

    .stats-refresh {
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid #eee;
    }
}

@media screen and (max-width: 576px) {

    .generation-panel,
    .notices-panel {
        padding: 1.25rem;
    }

    .stats-heading h2 {
        font-size: 1.8rem;
    }

    .summary-card h3 {
        font-size: 1.8rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS REMOVED
   ============================================ */

/* Base animation classes - elements start hidden */
/* Base animation classes - elements start hidden */
/* Note: These are also defined at the top of the file to prevent FOUC */
.animate-on-scroll {
    /* fallback */
    opacity: 0;
    visibility: hidden;
}

.animate-on-scroll.animated {
    /* fallback */
    opacity: 1;
    visibility: visible;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
}

/* Slide Left Animation */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideLeft 0.8s ease-out forwards;
}

/* Slide Right Animation */
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-right {
    animation: slideRight 0.8s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Rotate In Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

/* Fade In with Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

/* Stagger delay classes for sequential animations */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Hero content animations */
.slide-content .content-wrapper>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide.active .slide-content .content-wrapper>* {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .slide-content .content-wrapper .slide-badge {
    transition-delay: 0.2s;
}

.slide.active .slide-content .content-wrapper h1 {
    transition-delay: 0.4s;
}

.slide.active .slide-content .content-wrapper p {
    transition-delay: 0.6s;
}

.slide.active .slide-content .content-wrapper .slide-actions {
    transition-delay: 0.8s;
}

/* Stats card hover animations */
.summary-card,
.notice-card,
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Number counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generated-value {
    animation: countUp 0.6s ease-out forwards;
}

/* Smooth entrance for stats section */
.power-stats {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* News grid item stagger */
.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Notice card stagger */
.notice-card:nth-child(1) {
    animation-delay: 0.1s;
}

.notice-card:nth-child(2) {
    animation-delay: 0.2s;
}

.notice-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Stats table row animations */
.stats-table tbody tr {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stats-table tbody tr.animated {
    opacity: 1;
    transform: translateX(0);
}

.stats-table tbody tr:nth-child(1) {
    transition-delay: 0.1s;
}

.stats-table tbody tr:nth-child(2) {
    transition-delay: 0.2s;
}

.stats-table tbody tr:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-table tbody tr:nth-child(4) {
    transition-delay: 0.4s;
}

.stats-table tbody tr:nth-child(5) {
    transition-delay: 0.5s;
}

/* Floating Animation for Icons */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Animation for Cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

/* Icon animations */
.station-icon,
.nav-arrow,
.dot {
    transition: transform 0.3s ease;
}

.station-icon:hover {
    animation: float 2s ease-in-out infinite;
}

/* Stats card number animation */
.summary-card.primary h3 {
    transition: transform 0.3s ease;
}

.summary-card.primary:hover h3 {
    transform: scale(1.05);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-down,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-rotate-in,
    .animate-fade-scale,
    .animate-float,
    .animate-pulse,
    .animate-shimmer,
    .animate-bounce-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .slide-content .content-wrapper>* {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stats-table tbody tr {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .station-icon:hover {
        animation: none;
    }

    .summary-card.primary:hover h3 {
        transform: none;
    }
}