/* Reset and Base Styles */

:root {
    --primary-green: rgba(109, 205, 59, 1);
    --primary-blue: rgba(24, 71, 138, 1);
    --primary-orange: rgba(247, 117, 18, 1);
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: white;
    --border-color: #e0e0e0;
}

html.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #444;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2.5%;
}


/* Navigation */

.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--primary-orange);
    opacity: 1;
}

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

html.dark-mode .navbar {
    background: #1f1f1f;
    border-bottom: 1px solid #333;
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.icon-lg {
    width: 48px;
    height: 48px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}


/* Resource Icons - SVG versions */

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
}

.resource-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
}

.dark-mode-toggle .icon {
    width: 20px;
    height: 20px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: white;
    background-color: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border for definition */
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.social-link[aria-label="Facebook"]:hover {
    background-color: #1877F2;
}

.social-link[aria-label="TikTok"]:hover {
    background-color: #000000;
}

.social-link[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link[aria-label="LinkedIn"]:hover {
    background-color: #0077b5;
}

.social-link[aria-label="WhatsApp"]:hover {
    background-color: #25D366;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}


/* Hero Section */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.6s ease 0.2s backwards;
}

.cta-button {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
    animation: slideInUp 0.6s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Paths Section */

.paths {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.paths h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.path-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid;
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.path-card.personal-security {
    border-top-color: var(--primary-blue);
}

.path-card.family-home {
    border-top-color: var(--primary-green);
}

.path-card.business {
    border-top-color: var(--primary-orange);
}

.path-icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.path-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.path-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    opacity: 0.8;
}

.path-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.path-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.path-card ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.path-card ul li a:before {
    content: "→ ";
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s, margin-right 0.3s;
}

.path-card ul li a:hover {
    color: var(--primary-orange);
}

.path-card ul li a:hover:before {
    opacity: 1;
    margin-right: 0.8rem;
}

.path-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    color: white;
}

.path-card.personal-security .path-button {
    background: var(--primary-blue);
}

.path-card.personal-security .path-button:hover {
    background: rgba(24, 71, 138, 0.8);
}

.path-card.family-home .path-button {
    background: var(--primary-green);
}

.path-card.family-home .path-button:hover {
    background: rgba(109, 205, 59, 0.8);
}

.path-card.business .path-button {
    background: var(--primary-orange);
}

.path-card.business .path-button:hover {
    background: rgba(247, 117, 18, 0.8);
}


/* Newsletter Section */

.newsletter {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: rgba(247, 117, 18, 0.8);
}


/* Featured Articles Section */

.featured-articles {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.featured-articles h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-card h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.4;
}

.article-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
    opacity: 0.8;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.article-meta span {
    margin-right: 0.5rem;
}

.article-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.article-link:hover {
    color: var(--primary-green);
    margin-right: -5px;
}


/* Footer */

.footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 2rem;
    min-height: 200px;
    /* Ensure enough space for all content */
    overflow: visible;
    /* Prevent content from being cut off */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-green);
}

.footer .social-links {
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.footer-link {
    margin: 0 0.5rem;
}


/* Animations */

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

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


/* Responsive Design */


/* Tablet and Portrait Displays (e.g., 1080x1920) */

@media (max-width: 1080px) {
    .container {
        max-width: 95%;
        padding: 0 2.5%;
    }
    .hero {
        padding: 5rem 1.5rem;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.25rem;
    }
    .paths {
        padding: 3rem 1.5rem;
    }
    .paths h2 {
        font-size: 2rem;
    }
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .newsletter {
        padding: 3rem 1.5rem;
    }
    .newsletter h2 {
        font-size: 2rem;
    }
    .newsletter-form {
        max-width: 90%;
    }
    .featured-articles {
        padding: 3rem 1.5rem;
    }
    .featured-articles h2 {
        font-size: 2rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: var(--primary-blue);
        /* Default mobile menu bg */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    html.dark-mode .nav-links {
        background: #1f1f1f;
        border-bottom: 1px solid #333;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a,
    .nav-links button {
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    .nav-links li {
        width: 100%;
        /* Ensure list items take full width */
    }
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid var(--primary-orange);
        padding-left: calc(1.5rem - 4px);
        /* Adjust padding to keep alignment */
        font-weight: bold;
    }
    /* Secondary Navigation - Horizontal Scroll */
    .sub-navbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .sub-navbar::-webkit-scrollbar {
        height: 4px;
    }
    .sub-navbar::-webkit-scrollbar-thumb {
        background: var(--primary-green);
        border-radius: 2px;
    }
    .sub-nav-links {
        gap: 0.5rem;
        padding: 0.5rem 0;
        white-space: nowrap;
    }
    .sub-nav-links li {
        flex-shrink: 0;
    }
    .sub-nav-links a {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* Touch-friendly buttons and inputs */
    .btn,
    .cta-button,
    .resource-button,
    button[type="submit"] {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    input,
    textarea,
    select {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
    /* Resource Cards */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .resource-card {
        padding: 1.5rem;
    }
    .resource-icon {
        width: 56px;
        height: 56px;
    }
    .resource-icon svg {
        width: 28px;
        height: 28px;
    }
    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    /* Paths Section */
    .paths {
        padding: 2rem 1rem;
    }
    .paths h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .path-card {
        padding: 1.5rem;
    }
    .path-icon {
        font-size: 2.5rem;
    }
    .path-card h3 {
        font-size: 1.25rem;
    }
    /* Newsletter Section */
    .newsletter {
        padding: 2rem 1rem;
    }
    .newsletter h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    .newsletter p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
        padding: 1rem;
        min-height: 48px;
        font-size: 1rem;
    }
    /* Featured Articles */
    .featured-articles {
        padding: 2rem 1rem;
    }
    .featured-articles h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .article-card {
        padding: 1.5rem;
    }
    .article-card h3 {
        font-size: 1.1rem;
    }
    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-content h1 {
        font-size: 1.35rem;
    }
    .paths h2,
    .newsletter h2,
    .featured-articles h2 {
        font-size: 1.35rem;
    }
    .path-card h3,
    .article-card h3 {
        font-size: 1.1rem;
    }
    p,
    li {
        font-size: 0.95rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .paths h2,
    .featured-articles h2,
    .newsletter h2 {
        font-size: 1.5rem;
    }
    .path-icon {
        font-size: 2rem;
    }
    .cta-button {
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
    }
    .path-card ul li {
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }
    .article-card {
        padding: 1rem;
    }
    .article-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}


/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/team-meeting.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mission-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary-blue);
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.team-section {
    background: var(--bg-color);
    padding: 4rem 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-blue);
}


/* About page inline styles to classes */

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}


/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/contact-hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-green);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    outline: none;
}

.submit-btn {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-weight: bold;
}

.submit-btn:hover {
    background: rgba(109, 205, 59, 0.9);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.info-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-color);
    opacity: 0.9;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    color: var(--primary-green);
    font-weight: bold;
}


/* ==========================================
   SHARED SECTION STYLES
   Used across all section pages (personal-security, family-home, business, ask-expert, resources)
   ========================================== */


/* Page Header */

.page-header {
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}


/* Section Navigation */

.section-nav {
    background: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 58px;
    z-index: 100;
}

.tabs {
    display: flex;
    list-style: none;
    gap: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tabs a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    opacity: 0.7;
}

.tabs a:hover {
    color: var(--text-color);
    opacity: 1;
}


/* Section Content */

.section-content {
    padding: 4rem 2rem;
}

.section-content h2 {
    font-size: 2.5rem;
    margin: 3rem 0 2rem;
    color: var(--text-color);
    text-align: center;
}

.section-content h2:first-child {
    margin-top: 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-left: 1rem;
}

.content-section h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.content-section h5 {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.85;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.content-section ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.content-section ol li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    line-height: 1.6;
    counter-increment: step-counter;
}

.subsection {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Box Styles */

.highlight-box {
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.highlight-box p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.highlight-box ul li:before {
    content: "✓";
}

.highlight-box ol {
    padding-left: 1.5rem;
}

.highlight-box ol li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.warning-box {
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.warning-box p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.warning-box ol {
    padding-left: 1.5rem;
    margin: 0;
}

.warning-box ol li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
}

.warning-box ul {
    list-style: none;
    padding-left: 1.5rem;
}

.warning-box ul li {
    padding: 0.5rem 0 0.5rem 1rem;
    position: relative;
    color: var(--text-color);
}


/* Content Grid */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

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

.content-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    border: none;
    padding-left: 0;
    color: var(--text-color);
}

.content-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.85;
}

.card-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.card-link:hover {
    margin-right: -5px;
}


/* Key Takeaways */

.key-takeaways {
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.key-takeaways h3 {
    margin-top: 0;
}

.key-takeaways ul li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.key-takeaways ul li:before {
    content: "✓";
    font-weight: bold;
    margin-right: 0.5rem;
}


/* Shared Responsive Styles for Sections */

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .section-nav {
        top: 58px;
    }
    .tabs {
        gap: 1rem;
        overflow-x: auto;
        padding: 0 1rem;
        flex-wrap: nowrap;
    }
    .tabs a {
        white-space: nowrap;
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    .section-content {
        padding: 2rem 1rem;
    }
    .section-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    .content-section {
        margin-bottom: 2rem;
    }
    .content-section h3 {
        font-size: 1.25rem;
        padding-left: 0.75rem;
    }
    .content-section h4 {
        font-size: 1.1rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .subsection {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 0.75rem;
    }
    .page-header h1 {
        font-size: 1.35rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
    .section-content {
        padding: 1.5rem 0.75rem;
    }
    .section-content h2 {
        font-size: 1.25rem;
    }
    .content-section h3 {
        font-size: 1.05rem;
        padding-left: 0.5rem;
    }
    .content-section p,
    .content-section li {
        font-size: 0.9rem;
    }
    .tabs {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .tabs a {
        font-size: 0.8rem;
    }
    .subsection {
        padding: 0.75rem;
    }
}


/* Terms and Privacy Page Styles */

.legal-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease;
}

.legal-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    animation: slideInUp 0.6s ease 0.2s backwards;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-orange);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.section-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section h3::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-color);
}

.legal-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    opacity: 0.9;
}

.legal-section ul li::marker {
    color: var(--primary-green);
}

.effective-date {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-box {
    background: linear-gradient(135deg, rgba(109, 205, 59, 0.1) 0%, rgba(24, 71, 138, 0.1) 100%);
    border-left: 4px solid var(--primary-green);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-box p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.contact-box a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-box a:hover {
    color: var(--primary-green);
}

.highlight-box {
    background: rgba(247, 117, 18, 0.1);
    border-left: 4px solid var(--primary-orange);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box strong {
    color: var(--primary-orange);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}


/* Table of Contents */

.toc {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toc h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc ul li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc a:hover {
    color: var(--primary-orange);
    padding-left: 0.5rem;
}

.toc a::before {
    content: "→";
    opacity: 0;
    transition: opacity 0.3s;
}

.toc a:hover::before {
    opacity: 1;
}


/* Responsive Design for Legal Page */

@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 1.8rem;
    }
    .legal-content {
        padding: 2rem 1rem;
    }
    .legal-section {
        padding: 1.5rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
}