/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-turquoise: #40E0D0;
    --color-turquoise-dark: #2FB8AC;
    --color-rose: #FF69B4;
    --color-rose-dark: #E5539F;
    --color-white: #FFFFFF;
    --color-light-bg: #F8F9FA;
    --color-dark-text: #212529;
    --color-gray: #6C757D;
    --font-family: 'Sora', sans-serif;
    --min-font-size: 16px;
}

body {
    font-family: var(--font-family) !important;
    font-size: var(--min-font-size) !important;
    line-height: 1.6 !important;
    color: var(--color-dark-text) !important;
    background-color: var(--color-white) !important;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar {
    padding: 1rem 0 !important;
    border-bottom: 3px solid var(--color-turquoise);
}

.navbar-brand img {
    max-width: 30% !important;
}

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

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--color-turquoise) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--color-turquoise-dark) !important;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    box-shadow: none !important;
}

.brand-name {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--color-turquoise) !important;
}

.navbar-nav {
    list-style: none !important;
}

.navbar-nav .nav-item {
    list-style: none !important;
}

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

.nav-link {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--color-dark-text) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
    position: relative;
    list-style: none !important;
}

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

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

.navbar-toggler {
    border-color: var(--color-turquoise) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.25) !important;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-turquoise-dark) 100%) !important;
    padding: 80px 0 !important;
    color: var(--color-white) !important;
    position: relative;
}

.hero-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: var(--color-white) !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
    color: var(--color-white) !important;
    line-height: 1.7 !important;
}

.btn-cta {
    background-color: var(--color-rose) !important;
    color: var(--color-white) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 2.5rem !important;
    border: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 1.5rem !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-cta:hover {
    background-color: var(--color-rose-dark) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* ============================================
   TABLE OF CONTENTS STYLES
   ============================================ */

.toc-section {
    padding: 60px 0 !important;
    background-color: var(--color-light-bg) !important;
}

.toc-btn {
    border-color: var(--color-turquoise) !important;
    color: var(--color-turquoise) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 0.75rem !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
    white-space: normal !important;
    list-style: none !important;
}

.toc-btn::before,
.toc-btn::after {
    display: none !important;
    content: none !important;
}

.toc-btn:hover {
    background-color: var(--color-turquoise) !important;
    color: var(--color-white) !important;
    border-color: var(--color-turquoise) !important;
}

/* ============================================
   CONTENT SECTION STYLES
   ============================================ */

.content-section {
    padding: 60px 0 !important;
}

.content-section.bg-light {
    background-color: var(--color-light-bg) !important;
}

.section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--color-dark-text) !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 3px solid var(--color-turquoise);
}

.subsection-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--color-dark-text) !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.lead {
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    margin-bottom: 2rem !important;
    color: var(--color-gray) !important;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    color: var(--color-dark-text) !important;
    margin-bottom: 1rem !important;
}

.card-text {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: var(--color-dark-text) !important;
}

/* ============================================
   LIST STYLES
   ============================================ */

/* Reset default list styles */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1rem !important;
}

/* Custom list styles for content lists */
.custom-list {
    list-style: none !important;
    padding-left: 0 !important;
}

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

.custom-list li::before {
    content: "+" !important;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-rose) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.custom-list li::marker {
    display: none !important;
    content: none !important;
}

/* Navbar and footer lists - no markers */
.navbar-nav,
.navbar-nav li,
.footer-links,
.footer-links li {
    list-style: none !important;
    padding-left: 0 !important;
}

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

/* ============================================
   TABLE STYLES
   ============================================ */

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 2rem !important;
}

.table {
    width: 100% !important;
    margin-bottom: 1rem !important;
    border-collapse: collapse !important;
    font-size: 1rem !important;
}

.table thead {
    background-color: var(--color-turquoise) !important;
    color: var(--color-white) !important;
}

.table thead th {
    font-weight: 600 !important;
    padding: 1rem !important;
    text-align: left !important;
    border: none !important;
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: top !important;
    font-size: 1rem !important;
    color: var(--color-dark-text) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(64, 224, 208, 0.05) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(64, 224, 208, 0.1) !important;
}

.table-primary {
    background-color: var(--color-turquoise) !important;
    color: var(--color-white) !important;
}

/* ============================================
   IMAGE STYLES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100% !important;
    height: auto !important;
}

.rounded {
    border-radius: 12px !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ============================================
   ICON STYLES
   ============================================ */

.bi {
    font-size: 1.25rem;
}

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

.card-title .bi {
    font-size: 1.5rem;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert-info {
    background-color: rgba(64, 224, 208, 0.1) !important;
    border: 2px solid var(--color-turquoise) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    font-size: 1rem !important;
    color: var(--color-dark-text) !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-section {
    background-color: #2c3e50 !important;
    color: var(--color-white) !important;
    padding: 60px 0 30px !important;
}

.footer-section .brand-name {
    color: var(--color-turquoise) !important;
}

.footer-text {
    font-size: 1rem !important;
    color: #ecf0f1 !important;
    line-height: 1.7 !important;
}

.footer-heading {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--color-white) !important;
    margin-bottom: 1.5rem !important;
}

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

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

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

.footer-links a {
    color: #ecf0f1 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
}

.footer-links a:hover {
    color: var(--color-turquoise) !important;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 2rem 0 1.5rem !important;
}

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

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablets and up */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .hero-text {
        font-size: 1.25rem !important;
    }

    .section-title {
        font-size: 2.25rem !important;
    }
}

/* Desktops and up */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem !important;
    }

    .section-title {
        font-size: 2.5rem !important;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .hero-section {
        padding: 50px 0 !important;
    }

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

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

    .section-title {
        font-size: 1.75rem !important;
    }

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

    .toc-btn {
        font-size: 0.9rem !important;
        padding: 0.875rem 1rem !important;
    }

    .card-title {
        font-size: 1.25rem !important;
    }

    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .brand-name {
        font-size: 1.25rem !important;
    }

    .content-section {
        padding: 40px 0 !important;
    }

    .toc-section {
        padding: 40px 0 !important;
    }

    .table {
        font-size: 0.875rem !important;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    body {
        font-size: 16px !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .card-title {
        font-size: 1.125rem !important;
    }

    .table thead th,
    .table tbody td {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.w-100 {
    width: 100% !important;
}

/* ============================================
   ACCESSIBILITY & CONTRAST
   ============================================ */

/* Ensure minimum contrast ratio of 4.5:1 */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--color-turquoise) !important;
    outline-offset: 2px !important;
}

/* High contrast for better readability */
strong, b {
    font-weight: 700 !important;
    color: var(--color-dark-text) !important;
}

/* Ensure all text is readable */
p, li, td, th, span {
    color: var(--color-dark-text) !important;
}

/* White text sections with proper contrast */
.hero-section p,
.hero-section h1,
.hero-section span {
    color: var(--color-white) !important;
}

.table thead th {
    color: var(--color-white) !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .toc-section,
    .footer-section {
        display: none !important;
    }

    body {
        font-size: 12pt !important;
    }

    .hero-section {
        background: none !important;
        color: black !important;
    }
}
