/* ==========================================
   MEDA BET - CUSTOM STYLES
   Color Scheme: Dim Gray (#696969) & Pistachio (#93C572)
   ========================================== */

/* ==========================================
   BOOTSTRAP FRAMEWORK REQUIRED RULES
   ========================================== */
.navbar-nav {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    list-style: none !important;
}

.nav-item {
    margin-bottom: 0 !important;
}

.nav-item::before,
.nav-item::after {
    display: none !important;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Reset default list styles */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #696969 !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
    color: #696969 !important;
}

h4 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #696969 !important;
}

h5 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #93C572;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7ab05a;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background-color: #696969 !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand img {
    filter: none !important;
    box-shadow: none !important;
}

.brand-name {
    color: #fff;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    list-style: none !important;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after {
    display: none !important;
}

.navbar-nav .nav-link:hover {
    color: #93C572 !important;
}

.btn-cta {
    background-color: #93C572 !important;
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-cta:hover {
    background-color: #7ab05a !important;
    color: #fff !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background-color: #696969 !important;
    padding: 5rem 0 !important;
    color: #fff !important;
}

.hero-section h1 {
    color: #fff !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.hero-section p {
    font-size: 1.1rem !important;
    color: #fff !important;
    margin-bottom: 2rem !important;
    line-height: 1.7 !important;
}

.btn-hero-cta {
    background-color: #93C572 !important;
    color: #fff !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: none !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-hero-cta:hover {
    background-color: #7ab05a !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: 4rem 0;
}

.content-section.bg-light {
    background-color: #f8f9fa;
}

/* ==========================================
   FEATURE CARDS
   ========================================== */
.feature-card {
    background-color: #fff;
    border: 2px solid #93C572;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(147, 197, 114, 0.3);
}

.feature-card i {
    font-size: 3rem;
    color: #93C572;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #696969 !important;
    margin-bottom: 0.75rem !important;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
}

/* ==========================================
   INFO CARDS
   ========================================== */
.info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.info-card h3 {
    color: #696969 !important;
    border-bottom: 2px solid #93C572;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem !important;
}

/* ==========================================
   STYLED LISTS
   ========================================== */
.styled-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    list-style: none !important;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #93C572;
    border-radius: 50%;
}

.styled-list li::after {
    display: none !important;
}

.styled-list li i {
    color: #93C572;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.styled-list li i ~ * {
    padding-left: 0;
}

/* Override for list items with icons */
.styled-list li:has(i)::before {
    display: none;
}

/* ==========================================
   TABLES
   ========================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
}

.table thead th {
    background-color: #696969;
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    border: none;
    vertical-align: middle;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(147, 197, 114, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #696969;
    color: #fff !important;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer .brand-name {
    color: #fff !important;
    font-size: 1.3rem;
}

.footer p {
    color: #fff !important;
    font-size: 1rem;
}

.footer h5 {
    color: #93C572 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
    list-style: none !important;
}

.footer-links li::before,
.footer-links li::after {
    display: none !important;
}

.footer-links a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #93C572 !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    color: #fff !important;
    font-size: 0.9rem;
    margin: 0;
}

.footer img {
    box-shadow: none !important;
}

/* ==========================================
   CTA POPUP
   ========================================== */
.cta-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.cta-popup.show {
    display: flex;
}

.cta-popup-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideDown 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #696969;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.3s ease;
}

.cta-popup-close:hover {
    color: #93C572;
}

.cta-popup-content h3 {
    color: #696969 !important;
    margin-bottom: 1rem !important;
}

.cta-popup-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-popup-cta {
    background-color: #93C572 !important;
    color: #fff !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-popup-cta:hover {
    background-color: #7ab05a !important;
    color: #fff !important;
}

/* ==========================================
   STICKY CTA BUTTON
   ========================================== */
.sticky-cta-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #93C572;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(147, 197, 114, 0.5);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.sticky-cta-btn:hover {
    background-color: #7ab05a;
    color: #fff;
    transform: scale(1.05);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Wave animation for sections */
.content-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .hero-section {
        padding: 3rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .content-section {
        padding: 3rem 0;
    }

    .sticky-cta-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .hero-section {
        padding: 2.5rem 0 !important;
    }

    .btn-hero-cta {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .info-card {
        margin-bottom: 1.5rem;
    }

    .cta-popup-content {
        padding: 2rem 1.5rem;
    }

    .sticky-cta-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        width: 30px;
        height: 30px;
    }

    .footer .brand-name {
        font-size: 1.1rem;
    }
}

/* ==========================================
   SMOOTH SCROLLING
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
:focus {
    outline: 2px solid #93C572;
    outline-offset: 2px;
}

/* Ensure minimum contrast ratio */
.text-muted {
    color: #666 !important;
}
