/* style.css - PROFESSIONAL GREEN THEME (FIXED FOR MOBILE) */

/* --- 0. CRITICAL FIX: GLOBAL BOX SIZING --- */
/* This ensures padding doesn't make elements wider than 100% */
* {
    box-sizing: border-box;
}

/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */
html, body {
    width: 100%;
    overflow-x: hidden; /* FORCE disable horizontal scroll */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a { 
    text-decoration: none; 
    color: #1b5e20; 
    transition: color 0.3s ease;
}
a:hover { 
    text-decoration: none; 
    color: #4caf50; 
}

/* --- 2. TOP BAR --- */
.top-bar {
    background-color: #1b5e20;
    color: #fff;
    font-size: 12px;
    padding: 10px 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- 3. HEADER BANNER --- */
.final-header {
    width: 100%;
    max-width: 100%;
    margin: 0;        
    background: #ffffff; 
    border-bottom: 4px solid #4caf50;
    text-align: center;   
    height: 250px;
    overflow: hidden;     
    display: block;
    padding: 0;
}

.final-banner-img {
    height: 100%;        
    width: auto;         
    display: inline-block;
    object-fit: contain; 
}

/* --- 4. MAIN CONTAINER --- */
.container {
    width: 98%; 
    max-width: 1800px; 
    margin: 20px auto;
    display: flex;
    gap: 20px; 
    padding: 0 10px;
    /* Box-sizing is now handled globally at the top */
}

/* --- 5. LEFT SIDEBAR --- */
.left-col {
    width: 220px; 
    flex-shrink: 0;
}

.menu-title {
    color: #2e7d32 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid #4caf50;
    margin-bottom: 15px;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.left-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.left-menu li {
    border-bottom: 1px solid #eee; 
}
.left-menu li:last-child { border-bottom: none; }

.left-menu li a {
    color: #444;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    padding: 12px 15px;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.left-menu li a:hover {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 3px solid #4caf50;
    padding-left: 20px;
}

/* --- 6. RIGHT SIDEBAR & WIDGETS --- */
.right-col {
    width: 220px; 
    flex-shrink: 0;
    text-align: center;
}

.widget {
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.sidebar-header {
    color: #2e7d32;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    padding: 4px;
    background-color: #f1f8e9;
    display: block;
}

/* --- 6.1. SIDEBAR SPECIAL ELEMENTS --- */
.new-badge {
    background: radial-gradient(circle, #ff1a1a 0%, #cc0000 100%);
    color: white; 
    font-weight: 800; 
    font-size: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.5); 
    clip-path: polygon(
        50% 0%, 63% 26%, 90% 10%, 82% 38%, 100% 50%, 
        82% 62%, 90% 90%, 63% 74%, 50% 100%, 37% 74%, 
        10% 90%, 18% 62%, 0% 50%, 18% 38%, 10% 10%, 37% 26%
    );
    animation: pulseGlow 1.2s infinite alternate;
}

@keyframes pulseGlow { 
    0% { transform: scale(1); filter: brightness(1); } 
    100% { transform: scale(1.1); filter: brightness(1.2); box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); } 
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 5px;
    padding: 0 5px;
}

.sponsor-img {
    width: 100%;
    height: 45px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    padding: 2px;
    background: #fff;
    transition: transform 0.2s;
}

.sponsor-img:hover {
    transform: scale(1.05);
    border-color: #ccc;
}

/* --- 7. CENTER CONTENT --- */
.center-col {
    flex-grow: 1; 
    background: #fff;
    padding: 20px 25px; 
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 0; 
}

.breadcrumb {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px !important; 
    border-bottom: 1px solid #eee;
    padding-bottom: 5px !important;
}

.section-header {
    color: #2e7d32 !important; 
    font-size: 20px !important; 
    font-weight: 500 !important; 
    text-transform: uppercase !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important; 
    line-height: 1.2;
}

.content-p {
    text-align: justify;
    margin-bottom: 15px !important;
    color: #444;
    font-weight: 400 !important; 
}

/* --- 8. KEY DATES TABLE STYLES --- */
.dates-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-bottom: 0; 
    font-size: 13px;
}

.dates-table th {
    background-color: #38771d;
    color: white;
    font-weight: bold;
    padding: 8px;
    text-align: left;
    border: 1px solid #38771d;
}

.dates-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.flex-table-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.flex-table-item {
    flex: 1 1 300px; 
}

/* --- 9. COMMITTEE STYLES --- */
.comm-section-title {
    background-color: #e8f5e9;
    color: #1b5e20;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    margin: 15px 0 8px 0;
    border-left: 5px solid #4caf50;
    text-transform: uppercase;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vip-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.vip-card:hover {
    transform: translateY(-2px);
    border-color: #4caf50;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.vip-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #e0e0e0;
}

.vip-info { flex: 1; }
.vip-name { font-size: 13px; font-weight: 700; color: #1b5e20; margin-bottom: 2px; }
.vip-role { font-size: 10px; text-transform: uppercase; color: #4caf50; font-weight: bold; display: block; }
.vip-inst { font-size: 11px; color: #666; line-height: 1.2; }

/* --- 10. MOBILE RESPONSIVENESS (FIXED) --- */
@media screen and (max-width: 768px) {
    
    /* Force Container to fit screen exactly */
    .container {
        flex-direction: column;
        padding: 0 10px;
        width: 100% !important; /* Overrides HTML inline style */
        margin: 10px 0 !important; /* Reduces vertical gap, removes auto margins */
        max-width: 100vw; /* Ensures no overflow */
    }

    .left-col, 
    .center-col, 
    .right-col {
        width: 100% !important;
        margin-bottom: 20px;
        box-sizing: border-box; /* Double check for safety */
    }

    /* Adjust Center Content Padding */
    .center-col {
        padding: 15px;
    }

    .flex-table-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .flex-table-item {
        width: 100%;
        flex: auto;
    }

    .dates-table th, 
    .dates-table td {
        font-size: 11px;
        padding: 5px;
    }

    .vip-grid {
        grid-template-columns: 1fr; 
    }
    
    /* Header Fixes for Mobile */
    .final-header {
        height: auto; 
        min-height: 80px;
        padding: 0;
    }
    
    .final-banner-img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}