/* ==========================================
   GLOBAL VARIABLES & PREMIUM FONT
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    /* Premium Light Palette */
    --bg-base: #f4f6f8;
    --surface-1: #ffffff;
    --surface-2: #f8fafc;
    
    /* Text Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Premium Gradients */
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
    --gradient-red-hover: linear-gradient(135deg, #dc2626 0%, #9f1239 100%);
    --gradient-dark: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    
    /* Solid Accents */
    --accent-red: #e11d48;
    --accent-blue: #0284c7;
    --accent-green: #16a34a;
    
    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --shadow-premium: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 8px 16px rgba(15, 23, 42, 0.08);
}

/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-base); color: var(--text-main); text-align: center; line-height: 1.5; }

/* Container for the very top banner */
.top-header {
    background-color: #f4f4f4; /* Matches the light gray background */
    display: flex;
    justify-content: center; /* Centers everything horizontally */
    align-items: center; /* Centers everything vertically */
    padding: 10px 5%; /* Flexible padding on the sides */
    width: 100%;
    box-sizing: border-box;
}

/* Logo styling */
.header-logo {
    height: auto;
    width: auto;
    max-height: 60px; /* Maximum height for desktop */
    margin-right: 15px; /* Space between logo and text */
}

/* Text styling */
.header-text {
    font-family: 'Times New Roman', Times, serif; /* Matches the serif style */
    font-weight: 1200; /* Extra bold */
    color: #000000;
    margin: 0;
    letter-spacing: 1px; /* Spaces the letters out slightly */
    
    /* Responsive font size: 
       Minimum size is 20px. 
       Preferred size is 5vw (scales with screen width). 
       Maximum size is 45px. */
    font-size: clamp(20px, 5vw, 45px); 
    
    white-space: nowrap; /* Forces text to stay on one line */
}

/* Specific adjustments for smaller mobile screens */
@media (max-width: 480px) {
    .header-logo {
        max-height: 50px; /* Shrinks the logo on small phones */
        margin-right: 10px;
    }
}

/* --- 1. NAVIGATION --- */
.top-nav { display: flex; justify-content: center; gap: 8px; background: var(--gradient-dark); padding: 10px; }
.nav-btn, .top-nav button { background: transparent; color: #94a3b8; text-decoration: none; border: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.nav-btn:hover, .top-nav button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.nav-btn.active, .top-nav button.active { background: var(--gradient-red); color: #ffffff; box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3); }

/* --- 2. SCROLLING MARQUEE --- */
.marquee-container, .scrolling-container { background-color: #0f172a; color: #fbbf24; padding: 6px 0; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.scrolling-text { display: inline-block; animation: scrollLeft 15s linear infinite; }
@keyframes scrollLeft { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* --- NEW COLUMN --- */
.seo-container { 
    background: #ffffff; 
    color: #000000; 
    text-align: center; 
    padding: 15px 15px; 
    margin: 1px auto; /* Centers horizontally while keeping the 15px top/bottom margin */
    box-shadow: var(--shadow-premium); 
    border: 1px solid var(--border-light); 
    width: 95%;
}

.seo-container-2 { 
    background: #ffffff; 
    color: #006aff; 
    text-align: center; 
    padding: 15px 15px; 
    margin: 15px auto; /* Centers horizontally while keeping the 15px top/bottom margin */
    font-size: 15px; 
    line-height: 1.7; 
    box-shadow: var(--shadow-premium); 
    border: 1px solid var(--border-light); 
    width: 95%;
}

.page-wrapper {background: #ffffff; text-align:center; padding: 15px 15px; margin: 15px auto; box-shadow:var(--shadow-premium); border: 1px solid var(--border-light); width: 95%;}
.text-red {
    color: #ff0000;
    font-size: 16px;
    font-weight: 500;
}
/* --- 3. RIBBON HEADERS --- */
.ribbon-container, .site-header, .chart-section-header, .secondary-ribbon-container { margin: 20px auto 15px auto; text-align: center; }
.ribbon, .ribbon-banner, .secondary-ribbon { background: var(--gradient-red); color: #ffffff; display: inline-block; padding: 10px 30px; position: relative; border-radius: 4px; box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2); text-transform: uppercase; letter-spacing: 1px; }
.ribbon h1, .ribbon-banner h1, .secondary-ribbon h2, .chart-section-header h2 { margin: 0; font-size: 22px; font-weight: 800; }
.ribbon::before, .ribbon::after, .ribbon-banner::before, .ribbon-banner::after, .secondary-ribbon::before, .secondary-ribbon::after { content: ""; position: absolute; bottom: -6px; border: 3px solid transparent; border-top-color: #881337; }
.ribbon::before, .ribbon-banner::before, .secondary-ribbon::before { left: 0; border-right-color: #881337; }
.ribbon::after, .ribbon-banner::after, .secondary-ribbon::after { right: 0; border-left-color: #881337; }

/* --- 4. LIVE CLOCK --- */
.clock-container { margin: 20px 0; }
.clock, .live-clock { display: inline-block; font-size: 16px; font-weight: 500; color: #000000; background: #fac30c; padding: 8px 20px; border-radius: 20px; box-shadow: var(--shadow-premium); border: 1px solid var(--border-light); }

/* --- 5. COMMON CARD STYLES --- */
.legal-document-container { max-width: 700px; text-align: left; padding: 25px; }
.about-box { max-width: 400px; }


/* --- 6. TOP BOXES & TEAM NAMES --- */
.teams-column-container, .top-boxes-container { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px auto;}
.team-name { font-size: 20px; color: var(--text-main); margin: 0 0 2px 0; text-transform: uppercase; font-weight: 800; }
.team-result { font-size: 24px; color: var(--accent-red); margin: 5px 0; font-weight: 800; }
.box-label, .result-time { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* --- 7. POPULAR TEAM COMPARISON --- */
.popular-header h2 { font-size: 20px; color: var(--text-main); text-transform: uppercase; font-weight: 800; margin-bottom: 2px;}
.popular-header p { color: var(--text-muted); font-size: 13px; margin-bottom: 12px;}
.popular-comparison, .comparison-row { display: flex; justify-content: space-evenly; align-items: center; background: var(--surface-2); border-radius: 6px; padding: 12px; border: 1px solid var(--border-light); }
.comparison-side, .day-result { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.comparison-side h3, .day-label { font-size: 15px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.comparison-result, .day-number { font-size: 24px; font-weight: 800; color: var(--text-main); }
.comparison-result.today-highlight, .day-number.today { color: var(--accent-red); }
.comparison-divider, .arrow-container { width: 1px; height: 35px; background-color: var(--border-light); }

/* --- 8. SOCIAL LINKS & TEAM LINKS --- */
.social-links-container, .social-dotted-container, .team-links-container { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 15px auto; width: 95%; max-width: 400px; }
.social-box, .social-dotted-box, .team-link-box { width: 100%; padding: 12px; border-radius: 6px; text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface-1); border: 2px dashed var(--border-light); color: var(--text-main); transition: all 0.2s ease; }
.social-box:hover, .social-dotted-box:hover, .team-link-box:hover { background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-premium); }
.whatsapp-box { border-color: var(--accent-green); color: var(--accent-green); }
.telegram-box { border-color: var(--accent-blue); color: var(--accent-blue); }
.team-link-box { border-color: var(--accent-red); color: var(--accent-red); }
.social-icon { width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; }

html {
    scroll-behavior: smooth; /* Enables smooth scrolling when clicking the bottom link */
}

/* 1. Base table setup */
.fast-box {
    width: 96%;
    margin: 15px auto;
    border-collapse: collapse;
    border: 1px solid #4a4a4a;
}

/* 2. Remove the vertical dividing lines between columns */
.fast-box th, .fast-box td {
    padding: 10px 15px;
    border: 1px solid #4a4a4a; 
    border-left: none !important; 
    border-right: none !important; 
}

/* 3. Green Header */
.fast-box-header {
    background-color: #42c89b !important;
    color: white !important;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
}

/* 4. Fix: Force "Games List" and "Live" text to be white */
.fast-box-sub, .fast-box-sub td {
    background-color: #4a4a4a !important;
    color: #ffffff !important; 
    font-size: 16px;
    font-weight: normal;
}

/* 5. Yellow Data Row */
.fast-box-data, .fast-box-data td {
    background-color: #ffc107 !important;
    color: black !important;
    font-size: 17px;
    font-weight: bold;
}

/* 6. Fix: Disable the global white hover effect */
.fast-box-sub:hover td {
    background-color: #4a4a4a !important;
}
.fast-box-data:hover td {
    background-color: #ffc107 !important;
}

/* 7. Footer button */
.fast-box-footer {
    background-color: #4a4a4a !important;
    text-align: center;
    padding: 0 !important; 
}

.fast-box-footer a {
    color: white !important;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 16px;
}

/* --- NEW TIMEWISE TABLE UI --- */
.timewise-table {
    width: 96%;
    margin: 15px auto;
    border-collapse: collapse;
    border: 1px solid #4a4a4a;
}
.timewise-table th, .timewise-table td {
    padding: 10px 15px;
    border: 1px solid #ccc; /* Thin grey borders between rows */
}

/* Teal Header */
.timewise-header {
    background-color: #42c89b !important;
    color: white !important;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
}

/* Dark Grey Date Sub-header */
.timewise-sub, .timewise-sub td {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
}

/* Row Colors (Alternating) */
.timewise-row-yellow, .timewise-row-yellow td {
    background-color: #ffc107 !important;
    color: black !important;
}
.timewise-row-white, .timewise-row-white td {
    background-color: #ffffff !important;
    color: black !important;
}

/* Stop global hover effect from turning rows grey/white */
.timewise-row-yellow:hover td { background-color: #ffc107 !important; }
.timewise-row-white:hover td { background-color: #ffffff !important; }

/* Text Styling Inside Rows */
.timewise-game-name {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}
.timewise-time-link {
    font-size: 13px;
    color: #000;
}
.timewise-time-link a {
    color: #0066cc; /* Standard blue link color */
    text-decoration: none;
    margin-left: 5px;
}
.timewise-time-link a:hover {
    text-decoration: underline;
}
.timewise-number {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

/* --- 9. PERSON CARDS (With JSON Games & Footer Text) --- */
.cards-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    margin: 15px auto; 
}

.person-card {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    
    /* Added styles based on the image's color scheme */
    background-color: #ffffff; 
    border: 3px dashed #fac30c; /* Light gray border for top, right, bottom */
    border-radius: 8px; /* Slightly rounded corners */
    padding: 20px 15px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    width: 95%;
    max-width: 450px;
}

/* Darker, bolder top intro text */
.fixed-intro-text { 
    font-size: 14px; 
    color: #1c2833; /* Deep navy/slate to match image */
    text-transform: uppercase; 
    font-weight: 900; 
    letter-spacing: 0.5px; 
    margin-bottom: 2px; 
}

.person-name { 
    font-size: 20px; /* Slightly increased for emphasis */
    color: #1c2833; 
    font-weight: 900; 
    margin: 4px 0 0 0; 
}

/* Middle Fixed Text */
.card-middle-text {
    font-size: 14px;
    color: #1c2833; 
    line-height: 1.7;
    margin: 12px 0 5px 0; 
    font-weight: 700; /* Bolded to match the rates text in image */
    text-align: center; 
}

.fixed-contact-box {
    background: linear-gradient(to bottom, #128220, #043807);
    border: 2px solid #ffff00; /* Inner yellow border */
    box-shadow: 0 0 0 3px #0000bb; /* Outer blue border */
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    color: #ffffff;
    margin: 20px auto;
    max-width: 600px;
    font-family: sans-serif;
}

/* --- NEW MONTHLY ARCHIVE & DRAWER UI --- */

/* The Yellow Drawer Box */
.archive-drawer {
    background-color: #ffc107;
    padding: 15px;
    border: 1px solid #4a4a4a;
    margin-bottom: 20px;
    text-align: center;
}
.drawer-text {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}
#archive-form select {
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    margin: 5px;
    background-color: #e9ecef;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#archive-go-btn {
    background-color: #0d6efd; /* Blue */
    color: white;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #0a58ca;
    cursor: pointer;
    border-radius: 4px;
}

/* The Main Table */
.monthly-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #4a4a4a;
    background: #fff;
}
.monthly-table th, .monthly-table td {
    border: 1px solid #4a4a4a;
    text-align: center;
    padding: 8px 5px;
}
.monthly-teal-header {
    background-color: #42c89b !important;
    color: white !important;
    font-size: 16px;
    font-weight: normal;
}
.monthly-yellow-subheader {
    background-color: #ffc107 !important;
    color: black !important;
    font-size: 14px;
    font-weight: bold;
}
.archive-date-red {
    color: red !important;
    font-weight: bold;
    font-size: 15px;
}
.archive-data-black {
    color: black !important;
    font-size: 15px;
}

/* Bottom Navigation & Banner */
.monthly-nav-btn {
    background-color: #0d6efd !important;
    color: white !important;
    cursor: pointer;
    font-size: 16px;
}
.monthly-nav-btn:hover { background-color: #0b5ed7 !important; }

.monthly-blue-banner {
    display: block;
    background-color: #0d6efd;
    color: white !important;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 15px;
    margin-top: 10px;
    border: 1px solid #0a58ca;
}

/* Fix: Prevent the yellow sub-header from turning white on hover */
.monthly-yellow-subheader:hover, 
.monthly-yellow-subheader:hover td {
    background-color: #ffc107 !important;
}

/* Dynamic Games List */
.games-container {
    width: 100%;
    margin: 10px 0 5px 0;
    padding: 0 10px;
}

.game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    width: 100%;
}

.game-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.game-time {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

/* The Magic Stretching Arrow - Darkened */
.game-arrow {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.game-arrow::before {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: var(--text-muted); /* Darkened line */
}

.game-arrow::after {
    content: ">>";
    font-weight: 900;
    margin-left: 2px;
    letter-spacing: -2px; 
    color: var(--text-muted); /* Darkened arrows */
}

/* New Rules Footer Text */
.card-footer-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0 0 15px 0;
    white-space: pre-wrap; 
    font-weight: 600;
    text-align: center;
}



.btn-inline-icon {
    width: 24px; 
    height: 24px;
    display: block;
}

/* --- 10. TABLES --- */
.table-container { width: 95%; max-width: 600px; margin: 20px auto; background: var(--surface-1); border-radius: 8px; box-shadow: var(--shadow-premium); overflow: hidden; border: 1px solid var(--border-light); }
.annual-table { min-width: 700px; }
table { width: 100%; border-collapse: collapse; text-align: center; }
thead, .daily-results-table th, .archive-table th { 
    background: var(--gradient-dark); 
    color: #ffffff; 
    padding: 14px 8px; 
    font-size: 16px; 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    border-bottom: none; 
}
td, .daily-results-table td { 
    padding: 12px 8px; 
    border-bottom: 1px solid var(--border-light); 
    border-right: 1px solid var(--border-light);
    font-size: 16px; 
    font-weight: 700; 
    color: var(--text-main); 
}
td:last-child, .daily-results-table td:last-child {
    border-right: none;
}
tr:hover td { background-color: var(--surface-2); }
.team-cell { font-size: 14px !important; color: var(--text-main); }
.cell-time { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.yesterday-cell { color: var(--text-muted); }
.today-cell { color: var(--accent-red); font-weight: 800; }
.table-wait-gif, .wait-gif { width: 24px; height: 24px; display: block; margin: 0 auto; }
.annual-table th:first-child, .annual-table td:first-child { position: sticky; left: 0; background-color: var(--surface-2); font-weight: 800; z-index: 2; border-right: 1px solid var(--border-light); }
.annual-table th:first-child { background: var(--gradient-red); color: white; border-right: none; }

/* --- 11. MONTHLY ARCHIVES --- */
#monthly-archive-container { width: 95%; max-width: 800px; margin: 20px auto; }
.archive-main-heading { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; text-transform: uppercase; }
.month-section { margin-bottom: 25px; box-shadow: var(--shadow-premium); border-radius: 8px; border: 1px solid var(--border-light); background: var(--surface-1); }
.month-title { background: var(--gradient-dark); color: #ffffff; padding: 10px; margin: 0; font-size: 16px; font-weight: 700; border-radius: 8px 8px 0 0; text-transform: uppercase; }
.table-scroll-wrapper { overflow-x: auto; border-radius: 0 0 8px 8px; }
.archive-table { width: 100%; min-width: 500px; }
.archive-table th { background: var(--surface-2); color: var(--text-muted); font-size: 11px; padding: 8px; border: 1px solid var(--border-light); }
.archive-table td { font-size: 14px; padding: 8px; border: 1px solid var(--border-light); }
.sticky-col { position: sticky; left: 0; background: var(--surface-2); font-weight: 800; z-index: 1; border-right: 1px solid #cbd5e1 !important; }

/* --- 12. FAQ SECTION --- */
.faq-container { width: 90%; max-width: 600px; margin: 30px auto; text-align: left; }
.section-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; text-transform: uppercase; }
.faq-item { background: var(--surface-1); padding: 15px; margin-bottom: 10px; border-radius: 6px; border-left: 4px solid var(--accent-blue); box-shadow: var(--shadow-premium); border: 1px solid var(--border-light); border-left-width: 4px; }
.faq-question { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.faq-answer { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* --- 13. LEGAL DISCLAIMERS & WARNINGS --- */
.disclaimer-container { width: 90%; max-width: 700px; margin: 25px auto; text-align: center; }
.disclaimer-header { background: var(--gradient-dark); color: #ffffff; padding: 6px 15px; display: inline-block; border-radius: 4px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.disclaimer-header h2 { font-size: 13px; margin: 0; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.disclaimer-body { font-size: 12px; color: black; line-height: 1.6; }
.bold-text-box { width: 90%; max-width: 500px; margin: 20px auto; background: white; border: 1px dashed #fac30c; padding: 12px; border-radius: 6px; color: red; font-size: 13px; font-weight: 500; }



/* --- 15. LEGAL PAGES --- */
.legal-document-container h2 { 
    font-size: 24px; 
    font-weight: 900; 
    background: var(--gradient-red); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent;
    text-transform: uppercase; 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 10px; 
    margin: 0 0 15px 0; 
}
.legal-document-container h3 { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 20px 0 6px 0; }
.legal-document-container p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }

/* --- 16. New description --- */
.seo-descritption-container { background: var(--gradient-red); color: #faf9f9; text-align: center; padding: 30px 15px; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 1.7; }

/* --- 16. FOOTER --- */
.site-footer { background: #46c994; color: #000000; text-align: center; padding: 30px 15px; margin-top: 0px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; }
.footer-links a { color: #000000; text-decoration: none; font-size: 12px; font-weight: 300; transition: color 0.2s ease; }
.footer-links a:hover { color: #000000; }
.copyright-text { font-size: 11px; margin: 0; }

.hidden { display: none !important; }

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Official WhatsApp Green */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Ensures it stays on top of everything */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-3px); /* Slightly grows and moves up on hover */
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

.floating-wa-icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1); /* Turns the black SVG logo pure white */
}

/* ==========================================
   FLOATING WHATSAPP BUTTON FIX
========================================== */
.floating-wa-btn {
    position: fixed;
    bottom: 30px;      /* Distance from the bottom of the screen */
    right: 30px;       /* Distance from the right side */
    z-index: 9999;     /* Ensures it floats above all other content */
    display: block;
    transition: transform 0.2s ease-in-out;
}

/* Hover effect so it pops up slightly when touched */
.floating-wa-btn:hover {
    transform: scale(1.1);
}

/* Strictly control the size of the giant image */
.floating-wa-btn img {
    width: 60px;       /* Forces the image back to normal icon size */
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3)); /* Adds a nice floating shadow */
}

/* New Dynamic Text Block for Person Cards */
.person-card-custom-text {
    text-align: center;
    white-space: pre-wrap; /* This is the magic rule that keeps your exact line breaks */
    font-size: 16px;
    font-weight: bold;
    color: #111;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: inherit;
}

/* --- UPDATED "WHATSAPP NOW" BUTTON UI --- */
.whatsapp-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Tighter gap between emoji and text */
    background-color: #00FF00 !important; /* Neon green */
    color: #000000 !important;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif !important; /* Heavy sans-serif matching the image */
    font-size: 18px; /* Smaller, sharper text */
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 20px; /* Reduced padding to make the button slimmer */
    border-radius: 50px;
    border: 4px solid #7a1d13 !important; /* Dark red/brown outer border */
    box-shadow: inset 0 0 0 3px #ffcc00 !important; /* Yellow inner border */
    margin: 15px auto 5px auto;
    width: 85%; 
    max-width: 320px; /* Prevents the button from getting too wide */
    transition: transform 0.2s;
}

.whatsapp-now-btn:active {
    transform: scale(0.97);
}

.wa-icon-emoji {
    font-size: 20px; /* Scaled down emoji size */
}

/* --- CONTACT FORM UI --- */
.contact-form-container {
    background-color: #f7f8fa; /* Light gray background */
    padding: 5px 5px;
    max-width: 600px;
    margin: 10px auto;
    font-family: 'Times New Roman', Times, serif, sans-serif;
}

.contact-title {
    color: #1a202c; /* Dark slate blue/black */
    font-size: 26px;
    font-weight: 700;
    margin-top: 0;
}

.contact-subtitle {
    color: #4d4949; /* Slate gray */
    font-size: 15px;
    margin: 0 0 25px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* Labels matched to screenshot (Uppercase, bold, slate color) */
.contact-form label {
    display: block;
    color: #4f5155; 
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-align: left;
    padding-left: 10px;
}

/* Input Fields */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #cbd5e1; /* Light gray border */
    border-radius: 6px;
    box-sizing: border-box; /* Prevents overflow */
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
}

/* Red Focus State (as seen on the first input in the screenshot) */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d32f2f; 
    box-shadow: 0 0 0 1px #d32f2f;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    background-color: #cc1a37; /* Crimson red */
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.form-submit-btn:hover {
    background-color: #a8152d; /* Darker red on hover */
}

.form-submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Status Message Text */
.form-status {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    font-size: 15px;
}
.status-success { color: #2e7d32; }
.status-error { color: #d32f2f; }

/* --- TEAM PAGE ANNUAL CHART UI --- */
.monthly-table {
    border-collapse: collapse;
    border: 1px solid #4a4a4a; /* Dark border wrapping the table */
    background: #fff; /* Solid white background for data rows */
}

.monthly-table th, .monthly-table td {
    padding: 10px 5px;
    border: 1px solid #4a4a4a; /* Matches the dark internal borders */
    font-size: 15px;
}

/* Teal Main Header */
.monthly-teal-header {
    background-color: #42c89b !important;
    color: white !important;
    font-size: 16px;
    font-weight: normal;
    padding: 12px !important;
}

/* Yellow Sub-header */
.monthly-yellow-subheader, .monthly-yellow-subheader td {
    background-color: #ffc107 !important;
    color: black !important;
    font-weight: bold;
}

/* Prevent hover from turning the yellow row white */
.monthly-yellow-subheader:hover td {
    background-color: #ffc107 !important;
}

/* Text Colors */
.archive-date-red {
    color: red !important;
    font-weight: bold;
}

.archive-data-black {
    color: black !important;
    font-weight: bold;
}

.fixed-text-lines p {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.whatsapp-btn-green {
    display: inline-block;
    background-color: #00ff00; 
    color: #000000; 
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 35px;
    border-radius: 30px;
    border: 3px solid #005a00; 
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.whatsapp-btn-green:hover {
    background-color: #4dff4d;
    color: #000000;
    text-decoration: none;
}

/* Floating Trigger Button */
.floating-wa-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.floating-wa-trigger img { width: 35px; height: 35px; }

/* Main Popup Container */
/* Main Popup Container */
.wa-popup-window {
    position: fixed;
    bottom: 90px; /* Dropped down to match the floating button's position */
    right: 20px;
    width: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    z-index: 10000; /* Increased to 10000 so it completely hides the 9999 floating button */
    font-family: sans-serif;
    transition: all 0.3s ease;
}
.wa-popup-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Header */
.wa-popup-header {
    background-color: #3b94d9; /* Light blue */
    display: flex;
    align-items: center;
    padding: 10px 15px;
    position: relative;
}
.wa-avatar-circle {
    background-color: #ff0000; /* Red circle */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}
.wa-popup-title {
    color: #ffd700; /* Yellow text */
    font-weight: bold;
    font-size: 18px;
    flex-grow: 1;
}
.wa-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Body */
.wa-popup-body {
    background-color: #1a3c9e; /* Dark blue */
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
}
.wa-popup-body p { margin-bottom: 10px; margin-top: 0; }

/* Yellow WhatsApp Button */
.wa-yellow-btn {
    display: inline-block;
    background-color: #fff000;
    color: black;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 10px;
}

/* Footer / Input Area */
.wa-popup-footer {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}
.wa-icon-camera { font-size: 20px; color: #888; margin-right: 10px; cursor: pointer; }
#wa-chat-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 14px;
}
.wa-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}