/* ==========================================================
   GEPCO Monthly SEO Section – Fully Mobile Responsive Stylesheet
   Matches the GEPCO site's blue/dark color scheme
   ========================================================== */

/* ---- Section wrapper ---- */
.gepco-monthly-section {
    width: 100%;
    padding: clamp(1.5rem, 5vw, 3rem) 0;
    background: #f7faff;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

.gepco-monthly-inner {
    max-width: 1200px;
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 1240px) {
    .gepco-monthly-inner {
        width: 100%;
        padding: 0 20px;
    }
}

/* ---- Main heading ---- */
.gepco-monthly-heading {
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 700;
    color: #003580;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 3px solid #005cbf;
    padding-bottom: 12px;
    word-break: break-word;
}

/* ---- Intro paragraph ---- */
.gepco-monthly-intro {
    text-align: center;
    color: #444;
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 750px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* ---- Per-year block ---- */
.gepco-year-block {
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
    background: #fff;
    border-radius: clamp(0.5rem, 2vw, 0.75rem);
    box-shadow: 0 2px 12px rgba(0, 53, 128, 0.10);
    overflow: hidden;
}

.gepco-year-title {
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 700;
    margin: 0;
    padding: clamp(0.75rem, 3vw, 0.875rem) clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.5px;
/*     background: linear-gradient(135deg, #003580 0%, #004c9e 100%); */
/*     color: #fff; */
}

/* ---- Table Container - Horizontal Scroll for Mobile ---- */
.gepco-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

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

.gepco-table-wrapper::-webkit-scrollbar-track {
    background: #e8f0fe;
    border-radius: 3px;
}

.gepco-table-wrapper::-webkit-scrollbar-thumb {
    background: #005cbf;
    border-radius: 3px;
}

/* ---- Table ---- */
.gepco-monthly-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: clamp(0.8rem, 2.8vw, 0.93rem);
    color: #333;
}

/* For very small screens, allow even smaller min-width */
@media (max-width: 480px) {
    .gepco-monthly-table {
        min-width: 450px;
    }
}

.gepco-monthly-table thead tr {
    background: #e8f0fe;
    color: #003580;
}

.gepco-monthly-table th {
    padding: clamp(0.6rem, 2.5vw, 0.75rem) clamp(0.5rem, 2vw, 0.875rem);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #c5d7f5;
    white-space: nowrap;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}

.gepco-monthly-table td {
    padding: clamp(0.6rem, 2.5vw, 0.75rem) clamp(0.5rem, 2vw, 0.875rem);
    border-bottom: 1px solid #e9eef7;
    vertical-align: middle;
}

.gepco-monthly-table tbody tr:hover {
    background: #f0f6ff;
    transition: background 0.2s;
}

/* Current month highlight */
.gepco-monthly-table tbody tr.row-current {
    background: #fff8e1;
    border-left: 4px solid #f5a623;
    position: relative;
}

/* Add visual indicator for current row on mobile */
.gepco-monthly-table tbody tr.row-current td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f5a623;
}

.gepco-monthly-table tbody tr.row-current:hover {
    background: #fff3cd;
}

/* Future rows */
.gepco-monthly-table tbody tr.row-future td {
    color: #666;
}

/* ---- Status badges - improved for mobile ---- */
.gepco-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: clamp(0.65rem, 2.2vw, 0.78rem);
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
}

.status-available {
    background: #e6f9ee;
    color: #1a7a3c;
    border: 1px solid #9de0b5;
}

.status-current {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.status-upcoming {
    background: #e8eaf6;
    color: #3949ab;
    border: 1px solid #9fa8da;
}

/* ---- CTA buttons - improved touch targets ---- */
.gepco-btn {
    display: inline-block;
    padding: clamp(0.5rem, 2vw, 0.625rem) clamp(0.75rem, 3vw, 1.125rem);
    border-radius: 6px;
    font-size: clamp(0.7rem, 2.5vw, 0.83rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}

/* Larger touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .gepco-btn {
        padding: 0.625rem 1rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.gepco-btn-check {
    background: #005cbf;
    color: #fff !important;
    border: none;
}

.gepco-btn-check:hover,
.gepco-btn-check:active {
    background: #003580;
    transform: translateY(-1px);
}

.gepco-btn-upcoming {
    background: #e0e7ff;
    color: #3949ab !important;
    border: 1px solid #9fa8da;
}

.gepco-btn-upcoming:hover,
.gepco-btn-upcoming:active {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* ---- Links inside table ---- */
.gepco-monthly-table a {
    color: #005cbf;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
}

/* Larger tap area for links on mobile */
@media (hover: none) and (pointer: coarse) {
    .gepco-monthly-table a {
        padding: 0.5rem 0;
    }
}

.gepco-monthly-table a:hover,
.gepco-monthly-table a:active {
    text-decoration: underline;
    color: #003580;
}

/* ---- Responsive Breakpoints ---- */

/* Tablet and below */
@media (max-width: 768px) {
    .gepco-monthly-section {
        padding: 2rem 0;
    }
    
    .gepco-monthly-inner {
        width: calc(100% - 1.5rem);
    }
    
    .gepco-monthly-heading {
        font-size: 1.5rem;
    }
    
    .gepco-year-title {
        font-size: 1.15rem;
        padding: 0.875rem 1.25rem;
    }
    
    /* Hide less important columns on tablet */
    .gepco-monthly-table th:nth-child(3),
    .gepco-monthly-table td:nth-child(3) {
        display: none;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) {
    .gepco-monthly-table th,
    .gepco-monthly-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .gepco-status {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .gepco-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .gepco-monthly-section {
        padding: 1.5rem 0;
    }
    
    .gepco-monthly-inner {
        width: calc(100% - 1rem);
    }
    
    .gepco-monthly-heading {
        font-size: 1.3rem;
        border-bottom-width: 2px;
        padding-bottom: 0.625rem;
    }
    
    .gepco-monthly-intro {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        width: 95%;
    }
    
    .gepco-year-title {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Hide additional columns on very small screens */
    .gepco-monthly-table th:nth-child(4),
    .gepco-monthly-table td:nth-child(4) {
        display: none;
    }
    
    .gepco-monthly-table th,
    .gepco-monthly-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .gepco-status {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
        min-width: 45px;
    }
    
    .gepco-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.65rem;
        border-radius: 4px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .gepco-monthly-table {
        min-width: 400px;
    }
    
    .gepco-monthly-table th,
    .gepco-monthly-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .gepco-status {
        font-size: 0.6rem;
        min-width: 40px;
        padding: 0.1rem 0.35rem;
    }
    
    .gepco-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .gepco-monthly-section {
        background: white;
        padding: 0;
    }
    
    .gepco-table-wrapper {
        overflow-x: visible;
    }
    
    .gepco-monthly-table {
        min-width: auto;
    }
    
    .gepco-btn {
        background: none;
        border: 1px solid #ccc;
        color: #333 !important;
        padding: 2px 8px;
    }
    
    .gepco-btn-check {
        background: none;
    }
    
    .gepco-status {
        border: 1px solid #ccc;
        background: none;
    }
}

/* Optional: Add sticky header for long tables */
@media (min-width: 769px) {
    .gepco-table-wrapper {
        overflow-x: auto;
    }
    
    .gepco-monthly-table thead th {
        position: sticky;
        top: 0;
        background: #e8f0fe;
        z-index: 1;
    }
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.gepco-btn:focus,
.gepco-monthly-table a:focus {
    outline: 2px solid #005cbf;
    outline-offset: 2px;
}