/* MTBWA Shared Styles */

:root {
    --primary-color: #212121;
    --secondary-color: #ffffff;
    --background-color: #f5f2f0;
    --text-color: #333333;
    --highlight-color: #ffb300;
    --link-color: #1976d2;
    --link-hover-color: #1565c0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.7);
    --white-transparent: rgba(255, 255, 255, 0.1);
    --white-transparent-border: rgba(255, 255, 255, 0.1);
    --black-transparent: rgba(0, 0, 0, 0.1);
    
    /* Theme variables */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8f9fa;
    --theme-bg-tertiary: #e9ecef;
    --theme-text-primary: #212121;
    --theme-text-secondary: #666666;
    --theme-text-muted: #999999;
    --theme-border-color: #e9ecef;
    --theme-shadow-light: rgba(0, 0, 0, 0.1);
    --theme-shadow-medium: rgba(0, 0, 0, 0.15);
    --theme-card-bg: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --hero-text-color: #ffffff;
    --gold-color: #ffb300;
    --error-color: #d32f2f;
}

/* Dark theme variables */
:root.dark-theme {
    --theme-bg-primary: #1a1a1a;
    --theme-bg-secondary: #2d2d2d;
    --theme-bg-tertiary: #404040;
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #cccccc;
    --theme-text-muted: #999999;
    --theme-border-color: #404040;
    --theme-shadow-light: rgba(0, 0, 0, 0.3);
    --theme-shadow-medium: rgba(0, 0, 0, 0.5);
    --theme-card-bg: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --link-color: #64b5f6;
    --link-hover-color: #90caf9;
    --hero-text-color: #ffffff;
    --gold-color: #ffb300;
    --error-color: #d32f2f;
}

/* Light theme variables */
:root.light-theme {
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8f9fa;
    --theme-bg-tertiary: #e9ecef;
    --theme-text-primary: #212121;
    --theme-text-secondary: #666666;
    --theme-text-muted: #999999;
    --theme-border-color: #e9ecef;
    --theme-shadow-light: rgba(0, 0, 0, 0.1);
    --theme-shadow-medium: rgba(0, 0, 0, 0.15);
    --theme-card-bg: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --hero-text-color: #ffffff;
    --gold-color: #ffb300;
    --error-color: #d32f2f;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--theme-text-primary);
    background-color: var(--theme-bg-primary);
    line-height: 1.6;
}

/* Global text color defaults that inherit from theme variables */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-text-primary);
}

p, span, div, li, td, th {
    color: var(--theme-text-primary);
}

/* Allow specific overrides for secondary text */
.text-secondary, .muted, .subtitle {
    color: var(--theme-text-secondary);
}

/* Global Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Links in dark backgrounds */
.hero a,
.trainer-box a,
.cert-tag a {
    color: var(--link-color) !important;
}

.hero a:hover,
.trainer-box a:hover,
.cert-tag a:hover {
    color: var(--link-hover-color) !important;
}

/* Links in content sections */
.content-section a,
.community-list a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.content-section a:hover,
.community-list a:hover {
    color: var(--link-color);
    text-decoration: none;
    border-bottom-color: var(--link-color);
}

/* Community list items */
.community-list li {
    color: var(--theme-text-primary);
}

/* Buttons should not inherit link colors */
.trail-link,
.cta-button {
    color: inherit !important;
}

.trail-link:hover,
.cta-button:hover {
    color: inherit !important;
}

/* Navigation */
header {
    background-color: var(--theme-bg-secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-light);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-section img {
    height: 40px;
    margin-right: 15px;
}

.logo-image {
    height: 40px;
    margin-right: 15px;
}

.logo-section a {
    color: var(--theme-text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--theme-text-primary);
    text-decoration: none;
    padding: 25px 20px;
    display: block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-menu > li > a:hover {
    background-color: var(--theme-bg-tertiary);
}

.nav-menu > li > a[aria-current="true"] {
    border-bottom: 7px solid var(--highlight-color);
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--theme-bg-secondary);
    min-width: 200px;
    box-shadow: 0 4px 6px var(--shadow-light);
    display: none;
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    color: var(--theme-text-primary);
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: var(--theme-bg-tertiary);
}

.nav-menu li:hover .dropdown {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 0;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid var(--white-transparent-border);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--white-transparent-border);
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background-color: var(--black-transparent);
    }
}

/* Common Page Styles */
.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    color: var(--theme-text-primary);
    font-size: 2rem;
    border-left: 5px solid var(--highlight-color);
    padding-left: 15px;
    margin: 40px 0 20px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(var(--shadow-medium), var(--shadow-medium)), url('https://images.unsplash.com/photo-1544191696-102dbdaeeaa0?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    color: var(--hero-text-color);
    padding: clamp(40px, 10vw, 80px) 20px;
    text-align: center;
}

/* Older hero sections should always use light text regardless of theme */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero span,
.hero div {
    color: var(--hero-text-color) !important;
}

.hero h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1.1;
    width: 100%;
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Button Styles */
.button {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background: var(--highlight-color);
    color: var(--theme-text-primary);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--highlight-color);
}

/* Grid Layout */
.grid,
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--theme-bg-secondary);
    padding: 25px;
    border-radius: 8px;
    border-bottom: 3px solid var(--highlight-color);
    display: flex;
    flex-direction: column;
    white-space: normal;
    box-sizing: border-box;
}

.card.feature-card {
    border-top: 4px solid var(--highlight-color);
    border-bottom: none;
}

.card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--theme-text-primary);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Trainer Box */
.trainer-box {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.trainer-box h2,
.trainer-box h3 {
    color: var(--theme-text-primary);
    margin-top: 30px;
}

/* Certification Tags */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.cert-tag {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary) !important;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 1px 3px var(--theme-shadow-light);
}

.cert-tag:hover {
    transform: translateY(-2px);
}

.add-scope-tag {
    background: var(--highlight-color);
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 1px 3px var(--theme-shadow-light);
}

.add-scope-tag:hover {
    background: var(--highlight-color);
}

.theory-tag {
    background: var(--highlight-color);
    color: var(--primary-color);
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 1px 3px var(--theme-shadow-light);
}

.theory-tag:hover {
    background: var(--highlight-color);
}

/* Checklist Styles */
ul.check-list {
    list-style: none;
    padding: 0;
}

ul.check-list li {
    margin-bottom: 10px;
}

ul.check-list li::before {
    content: "× ";
    color: var(--highlight-color);
    font-weight: bold;
    margin-right: 10px;
}

ul.check-list.negative-points li::before {
    color: var(--error-color);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .hero h1 {
        letter-spacing: 0.5px;
    }

    .grid-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 20px 20px 20px;
        margin-left: -20px;
        margin-right: -20px;
        -webkit-overflow-scrolling: touch;
    }

    .grid-container::-webkit-scrollbar {
        display: none;
    }

    .grid-container .card {
        min-width: 82vw;
        max-width: 82vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* Home Page Styles */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

main h1 {
    font-size: 48px;
    font-weight: 100;
    margin-bottom: 20px;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--theme-text-secondary);
    margin-bottom: 40px;
    font-style: italic;
}

.content-section {
    background-color: var(--theme-bg-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-bottom: 30px;
}

/* Global heading spacing with high specificity */
.content-section h2,
.section h2,
main h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 5px 0 20px 0 !important;
    color: var(--theme-text-primary);
}

.content-section h3,
.section h3,
main h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 15px 0 15px 0 !important;
    color: var(--theme-text-primary);
}

.content-section h4,
.section h4,
main h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0 10px 0 !important;
    color: var(--theme-text-primary);
}

.content-section h5,
.section h5,
main h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0 !important;
    color: var(--theme-text-primary);
}

/* Override card heading margin */
.card h3 {
    margin-top: 15px !important;
}

/* Ensure trainer box headings stay white */
.trainer-box h2,
.trainer-box h3 {
    color: var(--hero-text-color) !important;
    margin-top: 15px !important;
}

/* Section spacing */
.section {
    margin-bottom: 5px;
}

.content-section {
    margin-bottom: 5px;
}

.content-section p {
    font-size: 15px;
    line-height: 1.4;
    color: var(--theme-text-primary);
    margin-bottom: 20px;
}

/* Home Page Mobile Responsive */
@media (max-width: 768px) {
    main h1 {
        font-size: 32px;
    }

    .content-section {
        padding: 20px;
    }
}

/* Trails Page Styles */
.trails-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.trails-main h1 {
    font-size: 48px;
    font-weight: 100;
    margin-bottom: 40px;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.trail-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.trail-link {
    display: block;
    background-color: var(--highlight-color);
    color: var(--theme-text-primary);
    padding: 20px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.trail-link:hover {
    background-color: var(--highlight-color);
}

/* Trails Page Mobile Responsive */
@media (max-width: 768px) {
    .trails-main h1 {
        font-size: 32px;
    }
}

/* ========================================
   MODERN HOMEPAGE STYLES
   ======================================== */

/* Modern Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--theme-text-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero sections should always use light text regardless of theme */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div {
    color: var(--hero-text-color) !important;
}

.hero-section .hero-scroll-indicator span {
    color: var(--hero-text-color) !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s ease-out;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--hero-text-color);
    max-width: 800px;
    padding: 60px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.3s; }
.hero-title-line:nth-child(3) { animation-delay: 0.5s; }

.hero-title-line.highlight {
    color: var(--highlight-color);
    background: linear-gradient(45deg, var(--highlight-color), #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}


.hero-scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
    z-index: 4;
    width: fit-content;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--theme-card-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--theme-text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--theme-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.feature-card {
    background: var(--theme-bg-primary);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--theme-shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card .icon-title-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.feature-card .icon-title-container .feature-icon {
    flex-shrink: 0;
}

.feature-card .icon-title-container .feature-title {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-card .feature-description {
    flex-shrink: 0;
}

.feature-card .feature-highlights {
    flex-shrink: 0;
}

.feature-card ul {
    flex-grow: 1;
    align-self: flex-end;
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-top: 16px;
}


.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--highlight-color), #ffeb3b);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), #ffeb3b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(31%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(96%);
}


.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--highlight-color), #ffeb3b);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--theme-text-primary);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--theme-text-secondary);
    margin-bottom: 20px;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}


.highlight-tag {
    background: rgba(255, 213, 79, 0.1);
    color: var(--theme-text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 213, 79, 0.2);
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.feature-cta:hover {
    gap: 12px;
}

.feature-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.feature-cta:hover svg {
    transform: translateX(4px);
}

/* Certification Page Styles */
.cert-content-card {
    background: var(--theme-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cert-perfect-card {
    background: linear-gradient(135deg, var(--theme-bg-primary) 0%, var(--theme-bg-secondary) 100%);
    color: var(--theme-text-primary);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--highlight-color);
    box-shadow: 0 4px 12px var(--theme-shadow-light);
    position: relative;
    overflow: hidden;
}

.cert-perfect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), var(--highlight-color));
}

.cert-perfect-card h5 {
    margin: 0 0 16px 0;
    color: var(--highlight-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px var(--theme-shadow-light);
}

.cert-perfect-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.cert-perfect-card li {
    margin-bottom: 8px;
}

.cert-perfect-card li:last-child {
    margin-bottom: 0;
}

.cert-achievement-card {
    background: var(--highlight-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.cert-achievement-card .achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cert-achievement-card h5 {
    margin: 0 0 10px 0;
    color: var(--theme-text-primary);
    font-size: 1.1rem;
}

.cert-meaning-card {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    padding: 20px;
    border-radius: 8px;
}

.cert-meaning-card h5 {
    margin: 0 0 10px 0;
    color: var(--highlight-color);
    font-size: 1.1rem;
}

.cert-meaning-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.cert-meaning-card li {
    margin-bottom: 8px;
}

.cert-meaning-card li:last-child {
    margin-bottom: 0;
}

.cert-level-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cert-level-header .level-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.cert-level-header .level-info h4 {
    margin: 0;
    color: var(--theme-text-primary);
    font-size: 1.3rem;
}

.cert-level-header .level-info p {
    margin: 5px 0 0 0;
    font-style: italic;
}

.cert-light-gray-card {
    background: var(--theme-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.value-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--theme-bg-primary);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.value-item:hover {
    transform: translateY(-8px);
    background: var(--theme-bg-primary);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,213,79,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--highlight-color);
    transition: transform 0.3s ease, background 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    background: rgba(255,213,79,0.3);
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--theme-text-primary);
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--theme-text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--theme-bg-secondary);
    text-align: center;
    border-top: 4px solid var(--highlight-color);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--theme-text-primary);
}

.cta-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--theme-text-primary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .cta-button.primary {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary) !important;
    border: 2px solid var(--highlight-color);
    box-shadow: 0 4px 8px var(--theme-shadow-light), 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    transform: translateY(0);
}

.cta-section .cta-button.primary:hover {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px var(--theme-shadow-medium), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-section .cta-button.primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--theme-shadow-light), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-button.secondary {
    background: var(--highlight-color);
    color: var(--theme-text-primary) !important;
    border: 2px solid var(--highlight-color);
    font-weight: 600;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    transform: translateY(0);
    box-shadow: 0 4px 8px var(--theme-shadow-light), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-button.secondary:hover {
    background: var(--theme-bg-primary);
    color: var(--highlight-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px var(--theme-shadow-medium), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-section .cta-button.secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--theme-shadow-light), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.main-footer {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-description {
    font-size: 0.55rem;
    color: var(--theme-text-secondary);
    line-height: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--theme-text-primary);
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Theme Toggle Button */
.footer-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Light mode button (sun icon) */
.theme-toggle-btn.light-mode {
    background: var(--theme-text-primary);
    color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-color);
}

.theme-toggle-btn.light-mode:hover {
    background: var(--theme-text-primary);
    transform: scale(1.1);
}

/* Dark mode button (moon icon) */
.theme-toggle-btn.dark-mode {
    background: var(--theme-text-primary);
    color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-color);
}

.theme-toggle-btn.dark-mode:hover {
    background: var(--theme-text-primary);
    transform: scale(1.1);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* AOS Customization */
[data-aos] {
    transition: all 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-theme-toggle {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 500px;
    }
    
    .features-section,
    .values-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .value-item {
        padding: 24px 16px;
    }
}
