:root {
    /* Main Colors */
    --primary-color: #1a4f7c;      /* Deeper blue for better contrast */
    --secondary-color: #2d7dc0;    /* Vibrant blue but not too light */
    --accent-color: #dc3545;       /* Stronger red for warnings/alerts */
    
    /* Background Colors */
    --bg-light: #f8fafc;          /* Slightly warmer light background */
    --bg-white: #ffffff;
    --bg-footer: #1f2937;         /* Dark background for footer */
    
    /* Text Colors */
    --text-dark: #1f2937;         /* Darker text for better readability */
    --text-light: #4b5563;        /* Medium gray for secondary text */
    --text-white: #ffffff;        /* Pure white for contrast text */
    --text-muted: #6b7280;        /* Muted text that's still readable */
    
    /* UI Elements */
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    font-size: 1.125rem; /* Increased from default 16px to 18px */
}

/* Increase size for paragraph text */
p {
    font-size: clamp(1.125rem, 1.2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Larger text for important content */
.card-body p {
    font-size: clamp(1.125rem, 1.2vw, 1.25rem);
}

/* List items */
ul li, ol li {
    font-size: clamp(1.125rem, 1.2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Larger text for important descriptions */
.issue-item p {
    font-size: 1rem !important;
    line-height: 1.6;
}

.issue-item strong {
    font-size: 1.15rem;
}

/* Alert and important text */
.alert {
    font-size: 1.1rem;
}

/* Footer text adjustments */
footer .text-white-50 {
    font-size: 1rem;
}

/* Navigation */
.nav-link {
    font-size: 1.1rem;
}

/* Keep small text proportional */
.small {
    font-size: 0.925rem !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
}

:root {
    --banner-height: 44px;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--banner-height);
    z-index: 1031;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.disclaimer-banner p {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.disclaimer-banner i {
    font-size: 0.9rem;
    opacity: 0.9;
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 768px) {
    :root {
        --banner-height: 52px;
    }
    
    .disclaimer-banner {
        padding: 10px 0;
    }
    
    .disclaimer-banner p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Adjust hero section padding */
    .hero-section {
        padding-top: 12rem;
    }
}

@media (max-width: 576px) {
    :root {
        --banner-height: 64px;
    }

    .disclaimer-banner {
        padding: 12px 0;
    }

    .navbar {
        min-height: 70px;
    }

    .hero-section {
        padding-top: 280px; /* Further increased fixed padding for small screens */
        padding-bottom: 3rem;
        min-height: 70vh;
    }

    .hero-content {
        padding: 2.5rem 0.75rem 0;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.3;
        margin-top: 1rem;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-content h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: var(--banner-height, 44px); /* Use CSS variable for dynamic height */
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: top 0.3s ease;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border-radius: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.3px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar .nav-item .nav-link.join-fb-btn {
    background-color: #1877f2;
    color: white !important;
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid #1877f2;
    margin: 0 0.25rem;
}

.navbar .nav-item .nav-link.join-fb-btn:hover {
    background-color: #ffffff;
    color: #1877f2 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.2);
}

.navbar .nav-item .nav-link.join-fb-btn i {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .nav-link.join-fb-btn {
        margin: 0.5rem 0;
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 220px; /* Fixed value that accounts for banner + navbar + spacing */
    padding-bottom: 5rem;
    color: white;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 50vh; /* Ensure minimum height for content */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
}

/* Sections */
.section {
    padding: 3rem 0;
    background-color: #fff;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

/* Headings */
h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
}

h2::before {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 2.5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 3rem;
    width: 1rem;
    height: 4px;
    background: var(--accent-color);
    opacity: 0.3;
    border-radius: 4px;
}


.section h2 {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section h2 span {
    position: relative;
    display: inline-block;
}

.section h2 span::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    bottom: 0.2em;
    height: 0.3em;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%,
        var(--secondary-color) 100%);
    opacity: 0.1;
    border-radius: 4px;
    z-index: -1;
}

.hero-content {
    padding: 1rem;
}

.hero-content h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    hyphens: auto;
}

/* Hide SEO content visually while keeping it accessible to search engines */
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

/* Cards */
.card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.card-body {
    padding: 2rem;
}

/* Contract Issues Section */
.contract-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contract-card .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.issue-item {
    transition: var(--transition);
}

.issue-item:hover {
    transform: translateX(5px);
}

.issue-item .bi {
    transition: transform 0.2s ease;
}

.issue-item:hover .bi {
    transform: scale(1.1);
}

.issue-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.issue-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.alert-warning {
    background-color: #fef2f2;
    border-left: 4px solid var(--accent-color);
    color: #991b1b;
}

.alert-info {
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
}

.text-secondary {
    color: var(--text-light) !important;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.card {
    border-color: rgba(0, 0, 0, 0.05);
}

.issue-item strong {
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Text Utilities */
.text-danger {
    color: var(--accent-color) !important;
}

.text-muted,
.text-secondary {
    color: var(--text-light) !important;
}

.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

/* Footer */
.footer-section {
    background: var(--bg-footer);
    position: relative;
    color: var(--text-white);
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%);
}

.footer-links a {
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-white) !important;
    transform: translateX(5px);
}

.footer-section .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    transition: var(--transition);
}

.footer-section .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.footer-section .bi {
    transition: var(--transition);
}

.footer-links a:hover .bi {
    transform: translateX(3px);
}

.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

.hover-white:hover {
    color: var(--text-white) !important;
}

/* Footer Disclaimer */
.disclaimer-text {
    font-size: 0.815rem;
    line-height: 1.5;
}

.disclaimer-text li {
    font-size: inherit !important;
    line-height: inherit !important;
    margin-bottom: 0.75rem !important;
}

.disclaimer-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
        height: auto;
        min-height: 60px;
    }

    .hero-section {
        padding-top: 260px; /* Increased fixed padding for medium screens */
        padding-bottom: 4rem;
        min-height: 60vh;
    }

    .hero-content {
        padding: 2rem 1rem 0;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-top: 1rem;
        word-break: break-word;
    }

    .hero-content h3 {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    .section {
        padding: 4rem 0;
    }

    .card-body {
        padding: 1.25rem;
    }
}
