/* 
===============================================
  SRI LANKA CRICKET LMS - MASTER STYLESHEET
=============================================== 
*/

:root {
    /* Brand Colors */
    --primary-blue: #0E3B7D;
    --primary-blue-dark: #092652;
    --accent-gold: #FFB300;
    --accent-gold-hover: #E5A100;
    --accent-red: #D32F2F;
    --accent-red-hover: #B71C1C;
    
    /* Neutral & Background Colors */
    --text-dark: #222222;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    
    /* Additional UI Colors */
    --card-dark: #121A2F;
    --info-blue: #E3F2FD;
    --info-text: #1565C0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Utilities */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-pill: 50px;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Reusable Components */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-title::before, .section-title::after {
    content: '';
    height: 1px;
    background-color: #e0e0e0;
    flex-grow: 1;
    max-width: 150px;
}

.section-title span {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border-color: rgba(255,255,255,0.8);
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-blue);
}

/* Top Header */
.main-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo-container {
    background: var(--primary-blue);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: relative;
    width: 120px;
}

.logo-fallback {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}

.logo-badge img {
    max-width: 100%;
    height: auto;
}

.top-nav-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background-color: #2F80ED; /* Vibrant blue top strip */
    background: linear-gradient(90deg, #1A6AC5 0%, #3B8BEB 100%);
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header adjusted to match mockup */
.top-bar {
    background-color: #f1f3f5;
    background: transparent;
}
.header-inner {
    border-bottom: 3px solid var(--accent-gold);
}
.top-nav-area {
    background-color: var(--bg-white);
}
.top-bar { display: none; /* Rearranging based on exact image later if needed. The image shows a single row header mostly with search and buttons top right */ }

/* Let's refine header layout to match image 1 perfectly */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 4px solid var(--accent-gold);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    height: 80px;
}

.header-logo-container {
    width: 100px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}
.header-logo-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--primary-blue);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.top-nav-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    padding-left: 30px;
}

.main-navigation .nav-menu {
    display: flex;
    gap: 24px;
}

.main-navigation .nav-menu a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu a.active {
    color: var(--primary-blue);
}

.main-navigation .nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 8px 16px;
    padding-right: 35px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background-color: #f5f7fa;
    font-size: 0.85rem;
    width: 180px;
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    width: 220px;
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(14, 59, 125, 0.1);
}

.top-actions {
    display: flex;
    gap: 10px;
}

.btn-top {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    background-color: var(--bg-white);
}

.btn-outline-light:hover {
    background-color: #f0f4f8;
}

.btn-yellow {
    background-color: var(--accent-gold);
    color: var(--primary-blue-dark);
}

.btn-yellow:hover {
    background-color: var(--accent-gold-hover);
    transform: scale(1.05);
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-red:hover {
    background-color: var(--accent-red-hover);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-blue-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 3fr 2fr 2fr 2fr;
    gap: 30px;
}

.footer-heading {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-block {
    margin-bottom: 15px;
}

.contact-label {
    display: block;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.logo-fallback-large {
    border: 2px solid var(--accent-gold);
    padding: 20px;
    text-align: center;
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-family: var(--font-heading);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-inner { flex-direction: column; height: auto; padding: 10px 0;}
    .top-nav-area { flex-direction: column; align-items: center; padding: 0;}
    .top-bar { margin-bottom: 10px; flex-wrap: wrap; justify-content: center;}
    .main-navigation .nav-menu { flex-wrap: wrap; justify-content: center; padding-bottom: 10px;}
    .levels-grid { flex-wrap: wrap; justify-content: center; }
    .level-card { flex: 0 0 calc(50% - 10px); }
    .level-card:hover { flex: 0 0 calc(50% - 10px); transform: translateY(-5px); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    
    /* Stadium Hero Tablet tweaks */
    .pathway-hero-title { font-size: 2.4rem; }
    .stadium-card { width: 280px; padding: 12px; }
    .stadium-brand h4 { font-size: 0.95rem; }
    .stadium-brand h3 { font-size: 0.9rem; }
    .stadium-brand img { height: 28px; }
    .stadium-crest { height: 40px; }
}

@media (max-width: 768px) {
    .criteria-body { flex-direction: column; }
    .guidance-box { width: 100%; }
    .testi-grid { grid-template-columns: 1fr; }
    .pathway-container { flex-direction: column; text-align: center; gap: 20px; }
    .level-card { flex: 0 0 100%; }
    .level-card:hover { flex: 0 0 100%; transform: translateY(-5px); }
    .footer-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .info-grid { grid-template-columns: 1fr; }

    /* Stadium Hero Mobile Break */
    .stadium-hero { height: auto; padding-bottom: 60px; }
    .pathway-hero-title { font-size: 2rem; }
    .stadium-interactive { 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        gap: 30px; 
        align-items: center; 
        margin-top: 30px; 
    }
    .stadium-lines { display: none; }
    .stadium-card { 
        position: static; 
        width: 100%; 
        max-width: 320px; 
        transform: none !important; 
    }
    
    /* Application Steps Mobile Break */
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .step-box {
        width: 100%;
        max-width: 100%;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .provinces-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .signature-row {
        grid-template-columns: 1fr;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions,
    .document-actions {
        flex-direction: column;
    }

    .form-actions button,
    .document-actions button {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}

