/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* Ensure hidden attribute works */
[hidden] {
    display: none !important;
}

html, body {
    
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    font-size: 12pt;
  
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Remove default table styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default form styles */
fieldset {
    border: none;
}

/* Ensure consistent focus styles */
:focus {
    outline: 2px solid #0db2d6;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:root {

    
    color-scheme: light dark;
}
typewriter-component {
    --typewriter-cursor-color: #7cb518;
    --typewriter-cursor-opacity: 1;
    --typewriter-cursor-width: 3px;
    --typewriter-cursor-speed: .5s;
    
}
modal-dialog {
    --modal-bg: #252526;
    --modal-color: #cccccc;
    --modal-border-radius: 8px;
    --modal-padding: 1em;
    --modal-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --modal-overlay-bg: rgba(0, 0, 0, 0.4);
    --modal-button-bg: #0098fd;
    --modal-button-color: #ffffff;
    --modal-button-hover-bg: #0098fd;
    --modal-button-cancel-bg: #313131;
    --modal-button-cancel-hover-bg: #464646;
    --modal-title-color: #9b9b9b;
    --modal-close-color: #cccccc;
    --modal-close-hover-color: #0098fd;
    --modal-header-bg: #363636;
    --modal-button-border-color: transparent;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
 
html[data-theme="dark"] body {
    background-image: 
        linear-gradient(180deg, #000000 10%, #121a02 60%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}
html[data-theme="light"] body {
    background: linear-gradient(90deg, #f0f8f0 10%, #e8f5e8 60%);
    color: #1a1a1a;
}

html[data-theme="dark"] footer a:hover{
    color: #7cb518;
    text-decoration: underline;
}

html[data-theme="light"] footer a:hover{
    color: #071f17;
    text-decoration: underline;
}

html[data-theme="dark"] footer a {
    color: #a8d5ba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

html[data-theme="light"] footer a {
    color: #02262f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

[contenteditable="true"] {
    outline: none;
}

p{
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top:2em;
}
h2,h3,h4,h5,h6{
    margin-top: 1em;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-navigation,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .main-hero,
html[data-theme="dark"] .card,
html[data-theme="dark"] .markdown-content {
    color: #ffffff !important;
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .main-navigation,
html[data-theme="light"] .main-footer,
html[data-theme="light"] .hero,
html[data-theme="light"] .main-hero,
html[data-theme="light"] .card,
html[data-theme="light"] .markdown-content {
    color: #1a1a1a !important;
}

html[data-theme="dark"] .nav-link {
    color: #ffffff;
}
html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .nav-link:focus {
    color: #7cb518;
}
html[data-theme="dark"] .nav-link::after {
    background: #7cb518;
}
html[data-theme="light"] .nav-link {
    color: #1a1a1a;
}
html[data-theme="light"] .nav-link:hover, html[data-theme="light"] .nav-link:focus {
    color: #37500b;
}
html[data-theme="light"] .nav-link::after {
    background: #7cb518;
}
html[data-theme="dark"] .site-title {
    color: #ffffff;
}
html[data-theme="light"] .site-title {
    color: #1a1a1a;
}
html[data-theme="dark"] .site-tagline {
    color: #a8d5ba;
}
html[data-theme="light"] .site-tagline {
    color: #37500b;
    font-weight: 600;
}
html[data-theme="dark"] .card-title {
    color: #a8d5ba;
}
html[data-theme="light"] .card-title {
    color: #37500b;
}
html[data-theme="dark"] .card-desc {
    color: #d0d0d0;
}
html[data-theme="light"] .card-desc {
    color: #4a4a4a;
}
html[data-theme="dark"] .card-link {
    color: #a8d5ba;
}
html[data-theme="light"] .card-link {
    color: #7cb518;
}
html[data-theme="dark"] .card-link:hover {
    color: #7cb518;
}
html[data-theme="light"] .card-link:hover {
    color: #37500b;
}
html[data-theme="dark"] .section-link a {
    background: rgba(168, 213, 186, 0.1);
    color: #ffffff;
    border: 2px solid #7cb518;
}
html[data-theme="light"] .section-link a {
    background: rgba(124, 181, 24, 0.1);
    color: #37500b;
    border: 2px solid #7cb518;
}
html[data-theme="dark"] .section-link a:hover {
    background: #7cb518;
    color: #1a1a1a;
}
html[data-theme="light"] .section-link a:hover {
    background: #7cb518;
    color: #ffffff;
}
html[data-theme="dark"] .markdown-content h1,
html[data-theme="dark"] .markdown-content h2,
html[data-theme="dark"] .markdown-content h3,
html[data-theme="dark"] .markdown-content h4,
html[data-theme="dark"] .markdown-content h5,
html[data-theme="dark"] .markdown-content h6 {
    color: #7cb518;
}
html[data-theme="light"] .markdown-content h1,
html[data-theme="light"] .markdown-content h2,
html[data-theme="light"] .markdown-content h3,
html[data-theme="light"] .markdown-content h4,
html[data-theme="light"] .markdown-content h5,
html[data-theme="light"] .markdown-content h6 {
    color: #0db2d6;
}
html[data-theme="dark"] .markdown-content a {
    color: #a8d5ba;
}
html[data-theme="light"] .markdown-content a {
    color: #0db2d6;
}
html[data-theme="dark"] .markdown-content a:hover {
    color: #7cb518;
}
html[data-theme="light"] .markdown-content a:hover {
    color: #3ad29f;
}
html[data-theme="dark"] .markdown-content blockquote {
    border-left: 3px solid #7cb518;
    color: #a0a0a0;
}
html[data-theme="light"] .markdown-content blockquote {
    border-left: 3px solid #7cb518;
    color: #2d2d2d;
}
html[data-theme="dark"] .book-content h1,
html[data-theme="dark"] .book-content h2,
html[data-theme="dark"] .book-content h3,
html[data-theme="dark"] .book-content h4,
html[data-theme="dark"] .book-content h5 {
    color: #7cb518;
}
html[data-theme="light"] .book-content h1,
html[data-theme="light"] .book-content h2,
html[data-theme="light"] .book-content h3,
html[data-theme="light"] .book-content h4,
html[data-theme="light"] .book-content h5 {
    color: #37500b;
}
html[data-theme="dark"] .book-content a {
    color: #a8d5ba;
}
html[data-theme="light"] .book-content a {
    color: #7cb518;
}
html[data-theme="dark"] .book-content a:hover {
    color: #7cb518;
}
html[data-theme="light"] .book-content a:hover {
    color: #37500b;
}
html[data-theme="dark"] .book-content blockquote {
    border-left: 3px solid #7cb518;
    color: #a0a0a0;
}
html[data-theme="light"] .book-content blockquote {
    border-left: 3px solid #7cb518;
    color: #2d2d2d;
}
html[data-theme="dark"] .tool-content h1,
html[data-theme="dark"] .tool-content h2,
html[data-theme="dark"] .tool-content h3,
html[data-theme="dark"] .tool-content h4,
html[data-theme="dark"] .tool-content h5 {
    color: #7cb518;
}
html[data-theme="light"] .tool-content h1,
html[data-theme="light"] .tool-content h2,
html[data-theme="light"] .tool-content h3,
html[data-theme="light"] .tool-content h4,
html[data-theme="light"] .tool-content h5 {
    color: #37500b;
}
html[data-theme="dark"] .tool-content a {
    color: #a8d5ba;
}
html[data-theme="light"] .tool-content a {
    color: #7cb518;
}
html[data-theme="dark"] .tool-content a:hover {
    color: #7cb518;
}
html[data-theme="light"] .tool-content a:hover {
    color: #37500b;
}
html[data-theme="dark"] .tool-content blockquote {
    border-left: 3px solid #7cb518;
    color: #a0a0a0;
}
html[data-theme="light"] .tool-content blockquote {
    border-left: 3px solid #7cb518;
    color: #2d2d2d;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.4s;
}
.theme-toggle:hover {
    background: rgba(168, 213, 186, 0.08);
}
.theme-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
    transition: color 0.3s;
}
.theme-toggle .icon-sun {
    display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
    display: inline;
    color: #222;
    fill: #222;
}
[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline;
}
.theme-toggle .icon-sun line {
    stroke: #222;
    stroke-width: 2.2;
}
[data-theme="dark"] .theme-toggle .icon-sun line {
    stroke: #fff;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.4s, color 0.4s;
}

.site-header, .main-navigation, .main-footer, .hero, .main-hero, .card, .markdown-content {
  
    color: light-dark(#222, #fff) !important;
}

.nav-link {
    color: light-dark(#02262f, #fff);
}
.nav-link:hover, .nav-link:focus {
    color: #3ad29f;
}
.nav-link::after {
    background: light-dark(#0db2d6, #3ad29f);
}
.site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: light-dark(#02262f, #fff);
}
.site-tagline {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: light-dark(#0db2d6, #3ad29f);
}
.card-title {
    color: light-dark(#0db2d6, #3ad29f);
}
.card-desc {
    color: light-dark(#0a513a, #b2f7e2);
}
.card-link {
    color: light-dark(#0db2d6, #0db2d6);
}
.card-link:hover {
    color: light-dark(#3ad29f, #3ad29f);
}
.section-link a {
    background: light-dark(rgba(13, 178, 214, 0.08), rgba(13, 178, 214, 0.2));
    color: light-dark(#0db2d6, #fff);
    border: 2px solid light-dark(#0db2d6, #3ad29f);
}
.section-link a:hover {
    background: light-dark(#0db2d6, #3ad29f);
    color: light-dark(#fff, #16382d);
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
    color: light-dark(#0db2d6, #3ad29f);
}
.article-content a {
    color: light-dark(#0db2d6, #0db2d6);
}
.article-content a:hover {
    color: light-dark(#3ad29f, #3ad29f);
}
.article-content blockquote {
    border-left: 3px solid light-dark(#0db2d6, #3ad29f);
    color: light-dark(#0a513a, #b2f7e2);
}
.book-content h1,
.book-content h2,
.book-content h3,
.book-content h4,
.book-content h5 {
    color: light-dark(#0db2d6, #0db2d6);
}
.book-content a {
    color: light-dark(#0db2d6, #0db2d6);
}
.book-content a:hover {
    color: light-dark(#3ad29f, #3ad29f);
}
.book-content blockquote {
    border-left: 3px solid light-dark(#0db2d6, #0db2d6);
    color: light-dark(#0a513a, #b2f7e2);
}
.tool-content h1,
.tool-content h2,
.tool-content h3,
.tool-content h4,
.tool-content h5 {
    color: light-dark(#0db2d6, #0db2d6);
}
.tool-content a {
    color: light-dark(#0db2d6, #0db2d6);
}
.tool-content a:hover {
    color: light-dark(#3ad29f, #3ad29f);
}
.tool-content blockquote {
    border-left: 3px solid light-dark(#0db2d6, #0db2d6);
    color: light-dark(#0a513a, #b2f7e2);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.theme-toggle:hover {
    background: light-dark(rgba(168, 213, 186, 0.08), rgba(168, 213, 186, 0.08));
}
.theme-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
    transition: color 0.3s;
}
.theme-toggle .icon-sun {
    display: none;
}
@media (prefers-color-scheme: light) {
    .theme-toggle .icon-sun {
        display: inline;
    }
    .theme-toggle .icon-moon {
        display: none;
    }
}
@media (prefers-color-scheme: dark) {
    .theme-toggle .icon-sun {
        display: none;
    }
    .theme-toggle .icon-moon {
        display: inline;
    }
}

.site-header, .main-navigation, .nav-link, .site-title, .site-tagline, .hero, .card-title, .card-desc, .section-link a, .main-footer, .blurb {
    font-family: 'Montserrat', Arial, sans-serif;
}

.article-content, .book-content, .tool-content {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Header Styles */
.site-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.header-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
    min-width: 0;
}

.logo-container:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.logo-container:focus {
    outline: none;
}

.logo-container:focus:not(:focus-visible) {
    outline: none;
}

.logo-icon {
    flex-shrink: 0;
    flex-basis: auto;
    flex-grow: 0;
}

.logo-icon img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: auto;
    transition: transform 0.2s ease;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: light-dark(#02262f, #fff);
    transition: font-size 0.2s ease;
}

.site-tagline {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: light-dark(#0db2d6, #3ad29f);
    transition: font-size 0.2s ease;
}

/* Responsive text scaling and hiding */
@media (max-width: 1200px) {
    .site-title {
        font-size: 1.8rem;
    }
    .site-tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 1000px) {
    .site-title {
        font-size: 1.6rem;
    }
    .site-tagline {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .site-title {
        font-size: 1.4rem;
    }
    .site-tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 800px) {
    .site-title {
        font-size: 1.2rem;
    }
    .site-tagline {
        font-size: 0.75rem;
    }
}

/* Hide text when container width would give it less than 100px */
@media (max-width: 768px) {
    .site-branding {
        display: flex;
    }
    .logo-container {
        gap: 12px;
    }
    .logo-icon {
        margin-right: 0;
    }
    .logo-icon img {
        height: 70px;
    }
}

/* Navigation Styles */
.main-navigation {
    /* margin-bottom: 30px; */
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

[data-theme="dark"] .nav-container:hover{
    border-radius: 2em;
    background: #050c08;
    transition: all 0.4s ease;
}

[data-theme="light"] .nav-container:hover{
    border-radius: 2em;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
}
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    height: 100vh;
    min-width: 280px;
    max-width: 400px;
    z-index: 2000;
    background: linear-gradient(187deg, rgba(255, 255, 255, 0.95) 0%, rgba(200, 240, 210, 0.85) 50%, rgba(168, 213, 186, 0.1) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    display: flex;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    gap: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
    margin: 0;
    width: 100%;
}

.nav-item.theme-toggle-item {
    order: 10;
    
}

.nav-link {
    display: block;
    padding: 18px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
    cursor: pointer;
}

.nav-link:hover, .nav-link:focus {
    color: #3ad29f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #3ad29f;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 120;
    position: relative;
    transition: background 0.2s;
    border-radius: 8px;
    padding: 8px;
}

.hamburger:hover {
    background: rgba(168, 213, 186, 0.08);
}

.hamburger svg {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform 0.3s ease;
}

.hamburger .icon-hamburger rect {
    stroke: #222;
    fill: #222;
    transition: stroke 0.3s ease;
}

[data-theme="dark"] .hamburger .icon-hamburger rect {
    stroke: #fff;
    fill: #fff;
}

/* Close button styling */
.nav-close-btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
    padding: 8px;
}

.nav-close-btn button:hover {
    background: rgba(168, 213, 186, 0.08);
}

.nav-close-btn .icon-x {
    width: 28px;
    height: 28px;
}

.nav-close-btn .icon-x line {
    stroke: #222;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
}

[data-theme="dark"] .nav-close-btn .icon-x line {
    stroke: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container, .nav-container {
        padding: 0 16px;
    }
    .hamburger {
        display: flex !important;
        order: 1;
        position: static;
        z-index: 200;
    }
    .site-header {
        flex-direction: column;
        align-items: center;
        padding: 16px 0 8px 0;
        margin-bottom: 8px;
        position: relative;
    }
    .header-content {
        width: 100%;
        gap: 16px;
        position: relative;
        flex-direction: column;
        align-items: center;
    }
    .header-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .main-navigation {
        margin-bottom: 0;
        width: 100%;
        position: relative;
    }
    .logo-container {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    .site-branding {
        align-items: center;
    }
    .logo-icon {
        flex-shrink: 0;
        margin-right: 0;
    }
    .logo-icon img {
        height: 70px !important;
        width: auto;
    }
    .site-branding {
        min-width: 0;
        flex: 1;
        text-align: center;
    }
    .site-title {
        font-size: 1.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-tagline {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80vw;
        height: 100vh;
        min-width: 280px;
        max-width: 400px;
        z-index: 2000;
        background: linear-gradient(187deg, rgba(255, 255, 255, 0.95) 0%, rgba(200, 240, 210, 0.85) 50%, rgba(168, 213, 186, 0.1) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        display: flex;
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        gap: 2px;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
    [data-theme="dark"] .nav-menu {
        background: linear-gradient(187deg, #1a1a1a 0%, rgba(124, 181, 24, 0.15) 50%, rgba(168, 213, 186, 0.1) 100%);
        backdrop-filter: blur(10px);
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-close-btn {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 20px 20px 10px 0;
        position: sticky;
        top: 0;
        z-index: 2100;
        background: transparent;
        order: -2;
    }
    .nav-item {
        margin: 0;
        width: 100%;
    }
    .nav-item:not(.nav-close-btn):not(.theme-toggle-item) {
        border-bottom: 1px solid rgba(168, 213, 186, 0.1);
    }
    .nav-item.theme-toggle-item {
        order: -1;
        margin: 0;
        padding: 20px 20px 10px 20px;
        border-bottom: 1px solid rgba(168, 213, 186, 0.1);
        display: flex;
        justify-content: flex-start;
    }
    .nav-item.theme-toggle-item .theme-toggle {
        margin-left: 0;
    }
    .nav-link {
        padding: 18px 20px;
        border-radius: 0;
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }
    .nav-link::after {
        display: none;
    }
    main {
        padding: 20px;
        margin-top: 8px;
    }
    .home-section {
        margin: 24px auto;
        padding: 0 20px;
    }
    .home-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    .hero {
        margin: 20px auto;
        padding: 32px 20px;
        border-radius: 8px;
    }
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .main-hero {
        padding: 40px 20px;
        margin-top: 12px;
    }
    .card-list, .content-list {
        margin: 20px auto;
        gap: 20px;
    }
    .card,.content {
        padding: 24px 20px;
        margin-bottom: 16px;
        min-width: auto;
        max-width: 100%;
        flex: 1 1 100%;
     
        width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        hyphens: auto;
    }
    .card.image-card {
        flex-direction: column !important;
    }
    .article-container, .book-container {
        margin: 20px auto;
        padding: 0 20px;
    }
    .article-content, .book-content {
        padding: 24px 20px;
        border-radius: 8px;
    }
    .article-content h1, .book-content h1 {
        font-size: 1.8rem;
    }
    .article-content h2, .book-content h2 {
        font-size: 1.5rem;
    }
    .article-content h3, .book-content h3 {
        font-size: 1.3rem;
    }
    footer {
        padding: 24px 0;
        margin-top: 32px;
    }
    footer .container {
        padding: 0 20px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    .nav-close-btn {
        display: none !important;
    }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        min-width: auto;
        max-width: none;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        display: flex;
        transition: none;
        padding: 0;
        box-shadow: none;
        gap: 0;
        border-left: none;
    }
    .nav-item {
        width: auto;
    }
    .nav-item:not(.nav-close-btn):not(.theme-toggle-item) {
        border-bottom: none;
    }
    .nav-item.theme-toggle-item {
        order: 10;
        
        padding: 0;
        border-bottom: none;
        display: flex;
        justify-content: flex-start;
    }
    .nav-item.theme-toggle-item .theme-toggle {
        margin-left: 0;
    }
    .nav-link {
        padding: 12px 18px;
        border-radius: 6px;
        display: block;
        width: auto;
        min-width: 60px;
        text-align: center;
        font-size: 1rem;
    }
    .nav-link::after {
        display: block;
    }
}

@media (max-width: 600px) {
    .site-branding {
        display: flex;
        text-align: center;
    }
    .logo-container {
        gap: 8px;
    }
    .logo-icon {
        margin-right: 0;
    }
    .logo-icon img {
        height: 60px !important;
    }
}

@media (min-width: 769px) {
}

/* Card Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 40, 30, 0.95);
    padding: 24px 40px;
    border-radius: 12px;
    margin: 24px auto 32px auto;
    max-width: 1200px;
}

.logo {
    width: 80px;
    height: 80px;
    background: #0db2d6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu {
    display: flex;
    gap: 32px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.menu a:hover {
    color: #3ad29f;
}

.card-list, .content-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 40px auto;
    /* max-width: 1200px; */
}

.content{
    min-width: min(460px, 100%);
    max-width: 460px;
    flex: 1 1 460px;
}
.card {
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    min-width: min(460px, 100%);
    max-width: 460px;
    flex: 1 1 460px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(168, 213, 186, 0.2);
}

.card.image-card {
    flex-direction: row;
    gap: 2em;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(168, 213, 186, 0.15);
}

.card-number {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #a8d5ba 0%, #7cb518 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(168, 213, 186, 0.3);
    z-index: 10;
    min-width: 32px;
    text-align: center;
    transform: rotate(-5deg);
    transition: transform 0.2s ease;
}

.card:hover .card-number {
    transform: rotate(-3deg) scale(1.05);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #a8d5ba;
}

.card-desc {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-link {
    margin-top: auto;
    color: #a8d5ba;
    text-decoration: underline;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
}

.card-link:hover {
    color: #7cb518;
}

[data-splashtemplate=""]:not([data-clone]) {
    display: none;
}

/* Main content and footer styles */
main {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    flex: 1 0 auto;
    box-sizing: border-box;
}

main[data-viewcontainer=""] {
    width: 100%;
    min-height: calc(80vh - 3em);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

footer {
    background: none;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    flex-shrink: 0;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}



.footer-right p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(58, 210, 159, 0.1);
    color: #3ad29f;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 210, 159, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #7cb518,
        #a8d5ba,
        #95d35a,
        #8bc34a,
        #7cb518,
        #a8d5ba
    );
    z-index: -2;
    opacity: 0;
    animation: rotate 2s linear infinite;
    transition: opacity 0.3s ease;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: rgba(22, 22, 22, .8);
    font-family: "Font Awesome 6 Brands";
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    background: rgba(58, 210, 159, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 210, 159, 0.3);
    border: 1px solid transparent;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.social-links a i {
    font-size: 16px;
}

.social-links a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
    
    .social-links a::before {
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
    }
    
    .social-links a::after {
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
    }
    
    .social-links a i {
        font-size: 14px;
    }
    
    .social-links a svg {
        width: 14px;
        height: 14px;
    }
}

/* Hero Styles */
.hero {
    
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin: 30px auto;
    /* max-width: 1200px; */
}

.main-hero {
    padding: 60px 20px;
    margin-top: 20px;
}

.hero h1, typewriter-component h1 {
    font-size: 6.2rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #a8d5ba 50%, #7cb518 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(168, 213, 186, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    position: relative;
    /* -webkit-text-stroke: 4px #012c284d;
    text-stroke: 4px #012c284d; */
}

.hero:hover h1::before {
    opacity: 1;
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 20px 0;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a8d5ba 0%, #7cb518 50%, #a8d5ba 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(124, 181, 24, 0.4);
    font-family: 'Montserrat', Arial, sans-serif;
    position: relative;
    text-align: center;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a8d5ba 0%, #7cb518 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(168, 213, 186, 0.6);
}

/* Responsive typography scaling */
@media (max-width: 1200px) {
    .hero h1, typewriter-component h1 {
        font-size: 5.5rem;
    }
    .hero h2 {
        font-size: 2.8rem;
    }
    .hero h2::after {
        width: 70px;
        height: 3px;
    }
}

@media (max-width: 1000px) {
    .hero h1, typewriter-component h1 {
        font-size: 4.8rem;
    }
    .hero h2 {
        font-size: 2.4rem;
    }
    .hero h2::after {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .hero h1, typewriter-component h1 {
        font-size: 3.2rem;
        letter-spacing: -0.01em;
    }
    .hero h2 {
        font-size: 2rem;
        letter-spacing: 0;
    }
    .hero h2::after {
        width: 50px;
        height: 2px;
    }
}

@media (max-width: 600px) {
    .hero h1, typewriter-component h1 {
        font-size: 2.4rem;
        line-height: 1.0;
    }
    .hero h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .hero h2::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1, typewriter-component h1 {
        font-size: 2.0rem;
        letter-spacing: 0;
    }
    .hero h2 {
        font-size: 1.3rem;
    }
    .hero h2::after {
        width: 35px;
    }
}

.hero p {
    font-size: 1.2rem;
    margin: 0;
    color: light-dark(#0a513a, #b2f7e2);
    /* max-width: 700px; */
    margin: 0 auto;
}

/* Light theme hero p color override */
[data-theme="light"] .hero p {
    color: #0a513a;
}

[data-theme="dark"] .hero p {
    color: #b2f7e2;
}

/* Home Section Styles */
.home-section {
    margin: 50px auto;
    /* max-width: 1200px; */
    padding: 0 20px;
}

.home-section h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.home-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3ad29f;
    margin: 10px auto;
}

.section-link {
    text-align: center;
    margin: 20px 0;
}

.section-link a {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(13, 178, 214, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3ad29f;
}

.section-link a:hover {
    background: #3ad29f;
    color: #16382d;
}

/* Article Styles */
.article-container {
   
    margin: 40px auto;
    padding: 0 20px;
}

.article-content {
    background: rgba(10, 40, 30, 0.85);
    border-radius: 10px;
    padding: 40px;
    color: #fff;
    line-height: 1.6;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5 {
    color: #3ad29f;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content h1 {
    font-size: 2.2rem;
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin: 1em 0;
}

.article-content ul, 
.article-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.article-content a {
    color: #0db2d6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #3ad29f;
}

.article-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content blockquote {
    border-left: 3px solid #3ad29f;
    padding-left: 15px;
    margin-left: 0;
    color: #b2f7e2;
}

.article-loading {
    text-align: center;
    padding: 50px 0;
    color: #b2f7e2;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 30px 0;
}

.error-message h2 {
    color: #ff6b6b;
}

.article-nav {
    margin-top: 20px;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #7cb518;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #37500b;
}

html[data-theme="light"] .back-link {
    background: #7cb518;
    color: #ffffff;
}

html[data-theme="light"] .back-link:hover {
    background: #37500b;
}

html[data-theme="dark"] .back-link {
    background: #a8d5ba;
    color: #1a1a1a;
}

html[data-theme="dark"] .back-link:hover {
    background: #7cb518;
    color: #ffffff;
}

/* Book Styles */
.book-container {
  
    margin: 40px auto;
    padding: 0 20px;
}

.book-content {
    background: rgba(10, 40, 30, 0.90);
    border-radius: 10px;
    padding: 40px;
    color: #fff;
    line-height: 1.6;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.book-content h1, 
.book-content h2, 
.book-content h3, 
.book-content h4, 
.book-content h5 {
    color: #0db2d6;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.book-content h1 {
    font-size: 2.4rem;
    margin-top: 0;
    text-align: center;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(58, 210, 159, 0.3);
}

.book-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(58, 210, 159, 0.1);
    padding-bottom: 0.3em;
}

.book-content h3 {
    font-size: 1.5rem;
}

.book-content p {
    margin: 1em 0;
}

.book-content ul, 
.book-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.book-content a {
    color: #3ad29f;
    text-decoration: underline;
}

.book-content a:hover {
    color: #fff;
}

.book-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

.book-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.book-content pre code {
    background: none;
    padding: 0;
}

.book-content blockquote {
    border-left: 3px solid #0db2d6;
    padding-left: 15px;
    margin-left: 0;
    color: #b2f7e2;
    background: rgba(13, 178, 214, 0.1);
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

.book-loading {
    text-align: center;
    padding: 50px 0;
    color: #b2f7e2;
    font-style: italic;
}

.book-nav {
    margin-top: 20px;
    text-align: center;
}

[data-theme="light"] .logo-icon img[src$="ammerse.svg"] {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.2);
}

.icon-hamburger, .icon-x {
    pointer-events: none;
}
.hamburger svg {
    pointer-events: auto;
}

/* Mobile menu backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Light theme hero typography */
[data-theme="light"] .hero h1, [data-theme="light"] typewriter-component h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #37500b 50%, #7cb518 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: -1px 20px 40px rgb(0 0 0 / 23%);
}

[data-theme="light"] .hero h2 {
    background: linear-gradient(90deg, #37500b 0%, #7cb518 50%, #37500b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(124, 181, 24, 0.3);
}

[data-theme="light"] .hero h2::after {
    background: linear-gradient(90deg, #37500b 0%, #7cb518 100%);
    box-shadow: 0 0 15px rgba(124, 181, 24, 0.4);
}

[data-viewcontainer=""]{
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Exit animation - triggered by onViewLoading */
[data-viewcontainer=""].view-changing {
    opacity: 0;
    transform: translateY(-20px);
}

/* Entry animation - triggered after content is loaded */
[data-viewcontainer=""].view-loaded {
    opacity: 1;
    transform: translateY(0);
    animation: viewEnter 0.4s ease forwards;
}

@keyframes viewEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Default visible state */
[data-viewcontainer=""]:not(.view-changing):not(.view-loaded) {
    opacity: 1;
    transform: translateY(0);
}

.image-text, .text-image{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2em;
}
.text-image{
    flex-direction: row-reverse;
}

.image-text img{
    width: 50%;
    height: 50%;
}

.image-text h2, .text-image h2{
   font-size: 3rem;
}

main img{
    border:3px inset #1f946d77;
    border-radius: 1em;
}

.mt{
    margin-top: 4rem;
}

.mt-large{
    margin-top: 12rem;
}

.markdown-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: light-dark(#1f2937, #f9fafb);
  
    margin: 0 auto;
    padding: 2rem 1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: light-dark(#111827, #f9fafb);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.markdown-content h1 {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.markdown-content h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
}

html[data-theme="light"] .markdown-content h2 {
    color: #111827;
}

html[data-theme="dark"] .markdown-content h2 {
    color: #7cb518;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

.markdown-content h5 {
    font-size: 1.125rem;
}

.markdown-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: light-dark(#6b7280, #9ca3af);
}

.markdown-content p {
    margin: 1.25rem 0;
    color: light-dark(#374151, #d1d5db);
}

.markdown-content ul,
.markdown-content ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
    color: light-dark(#374151, #d1d5db);
}

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.625;
}

.markdown-content ul li {
    list-style-type: disc;
}

.markdown-content ol li {
    list-style-type: decimal;
}

.markdown-content ul ul li,
.markdown-content ol ul li {
    list-style-type: circle;
}

.markdown-content ul ul ul li,
.markdown-content ol ul ul li,
.markdown-content ul ol ul li {
    list-style-type: square;
}

.markdown-content a {
    color: light-dark(#2563eb, #60a5fa);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.markdown-content a:hover {
    color: light-dark(#1d4ed8, #93c5fd);
}

.markdown-content blockquote {
    border-left: 4px solid light-dark(#e5e7eb, #4b5563);
    color: light-dark(#6b7280, #9ca3af);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: light-dark(#f9fafb, rgba(55, 65, 81, 0.1));
    border-radius: 0 0.375rem 0.375rem 0;
}

.markdown-content code {
    background: light-dark(#f3f4f6, #1f2937);
    color: light-dark(#dc2626, #f87171);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.875em;
    font-weight: 500;
}

.markdown-content pre {
    background: light-dark(#f8fafc, #111827);
    color: light-dark(#1f2937, #f9fafb);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid light-dark(#e5e7eb, #374151);
    font-size: 0.875rem;
    line-height: 1.5;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid light-dark(#e5e7eb, #374151);
}

.markdown-content th {
    background: light-dark(#f9fafb, #1f2937);
    color: light-dark(#111827, #f9fafb);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.markdown-content tr:hover {
    background: light-dark(#f9fafb, rgba(55, 65, 81, 0.1));
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.markdown-content hr {
    border: none;
    height: 1px;
    background: light-dark(#e5e7eb, #374151);
    margin: 3rem 0;
}

.markdown-content strong,
.markdown-content b {
    color: light-dark(#111827, #f9fafb);
    font-weight: 600;
}

.markdown-content em,
.markdown-content i {
    font-style: italic;
}

.markdown-content del,
.markdown-content s {
    color: light-dark(#6b7280, #9ca3af);
    text-decoration: line-through;
}

.markdown-content mark {
    background: light-dark(#fef3c7, #451a03);
    color: light-dark(#92400e, #fbbf24);
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
}

@media (max-width: 768px) {
    .markdown-content {
        padding: 1.5rem 1rem;
        font-size: 1rem;
        max-width: 100%;
    }
    
    .markdown-content h1 {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
    
    .markdown-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .markdown-content h3 {
        font-size: 1.25rem;
    }
    
    .markdown-content h4 {
        font-size: 1.125rem;
    }
    
    .markdown-content h5 {
        font-size: 1rem;
    }
    
    .markdown-content h6 {
        font-size: 0.875rem;
    }
    
    .markdown-content pre {
        padding: 1rem;
        font-size: 0.8rem;
        border-radius: 0.375rem;
    }
    
    .markdown-content table {
        font-size: 0.875rem;
    }
    
    .markdown-content th,
    .markdown-content td {
        padding: 0.5rem 0.75rem;
    }
    
    .markdown-content blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
    
    .markdown-content ul,
    .markdown-content ol {
        padding-left: 1.5rem;
    }
}

html[data-theme="light"] .markdown-content h1,
html[data-theme="light"] .markdown-content h2,
html[data-theme="light"] .markdown-content h3,
html[data-theme="light"] .markdown-content h4,
html[data-theme="light"] .markdown-content h5 {
    color: #111827;
}

html[data-theme="dark"] .markdown-content h1,
html[data-theme="dark"] .markdown-content h3,
html[data-theme="dark"] .markdown-content h4,
html[data-theme="dark"] .markdown-content h5 {
    color: #ffffff;
}

html[data-theme="light"] .markdown-content h6 {
    color: #6b7280;
}

html[data-theme="dark"] .markdown-content h6 {
    color: #a0a0a0;
}

html[data-theme="light"] .markdown-content p {
    color: #374151;
}

html[data-theme="dark"] .markdown-content p {
    color: #ffffff;
}

html[data-theme="light"] .markdown-content ul,
html[data-theme="light"] .markdown-content ol {
    color: #374151;
}

html[data-theme="dark"] .markdown-content ul,
html[data-theme="dark"] .markdown-content ol {
    color: #ffffff;
}

html[data-theme="light"] .markdown-content a {
    color: #2563eb;
}

html[data-theme="light"] .markdown-content a:hover {
    color: #1d4ed8;
}

html[data-theme="dark"] .markdown-content a {
    color: #a8d5ba;
}

html[data-theme="dark"] .markdown-content a:hover {
    color: #7cb518;
}

html[data-theme="light"] .markdown-content blockquote {
    border-left: 4px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
}

html[data-theme="dark"] .markdown-content blockquote {
    border-left: 4px solid #7cb518;
    color: #a0a0a0;
    background: rgba(26, 26, 26, 0.5);
}

html[data-theme="light"] .markdown-content code {
    background: #f3f4f6;
    color: #dc2626;
}

html[data-theme="dark"] .markdown-content code {
    background: #2a2a2a;
    color: #7cb518;
}

html[data-theme="light"] .markdown-content pre {
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

html[data-theme="dark"] .markdown-content pre {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #7cb518;
}

html[data-theme="light"] .markdown-content strong,
html[data-theme="light"] .markdown-content b {
    color: #2c3e50;
}

html[data-theme="dark"] .markdown-content strong,
html[data-theme="dark"] .markdown-content b {
    color: #ffffff;
}

/* Light theme social links styling */
html[data-theme="light"] .social-links a {
    background: rgba(58, 210, 159, 0.15);
    color: #2c5530;
    border: 1px solid rgba(58, 210, 159, 0.3);
}

html[data-theme="light"] .social-links a::after {
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .social-links a:hover {
    background: rgba(58, 210, 159, 0.25);
    color: #1a3d1f;
}

/* Dark theme social links styling (explicit for clarity) */
html[data-theme="dark"] .social-links a {
    background: rgba(168, 213, 186, 0.1);
    color: #a8d5ba;
    border: 1px solid rgba(168, 213, 186, 0.2);
}

html[data-theme="dark"] .social-links a::after {
    background: rgba(26, 26, 26, 0.8);
}

html[data-theme="dark"] .social-links a:hover {
    background: rgba(168, 213, 186, 0.2);
    color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 94px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a8d5ba 0%, #7cb518 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(168, 213, 186, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(124, 181, 24, 0.5);
    background: linear-gradient(135deg, #b8e5ca 0%, #8cd028 100%);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .image-text, .text-image {
        flex-wrap: wrap;
        flex-direction: column !important;
        align-items: stretch;
        max-width: 100vw;
    }
    .image-text img, .text-image img {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .image-text h2, .text-image h2 {
        font-size: 1.5rem;
    }
    
    .mt-large {
        margin-top: 4rem;
    }
    
    .image-text, .text-image {
        gap: 1rem;
    }
}

/* Banner/CTA Styles */
.banner {
    background: linear-gradient(180deg, #37500b 0%, #659f00 100%);
    color: #fff;
    padding: 3rem 2rem;
    align-self: center;
    border-radius: 12px;
    text-align: center;
    z-index:2;
    position: relative;
    overflow: hidden;
}


.banner-content {
    position: relative;
    z-index: 2;
}

.banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner .button {
    display: inline-block;
    background: #fff;
    color: #7cb518;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.banner .button:hover {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner input{
    background-color: #eee;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    border: 2px solid #ccc;
    width: 100%;
    max-width: 400px;
}


/* Background Video */
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1000;
    opacity: 0.04;
    pointer-events: none;
}


@media (max-width: 768px) {
    .banner {
        padding: 2rem 1.5rem;
        margin: 3rem auto;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
    
    .banner p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .banner .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    #backgroundVideo {
        opacity: 0.03 !important;
    }

}

@media (max-width: 480px) {
    .banner {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
}

html[data-theme="light"] .card {
    background: #fbfbfb;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

html[data-theme="light"] .card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

html[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 32px rgba(168, 213, 186, 0.15);
}

/* Auth Banner Styles */
.auth-banner {
    position: relative;
    background: linear-gradient(135deg, #7cb518 0%, #a8d5ba 100%);
    color: #fff;
    padding: 2rem;
    margin: 2rem auto 3rem auto;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(124, 181, 24, 0.2);
    /* max-width: 1200px; */
    display: none;
}

.auth-banner .banner-content {
    position: relative;
    z-index: 2;
}

.auth-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.auth-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dismiss-banner {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dismiss-banner:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.banner-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.banner-close svg {
    opacity: 0.8;
}

/* Light theme auth banner */
html[data-theme="light"] .auth-banner {
    background: linear-gradient(135deg, #37500b 0%, #7cb518 100%);
    color: #ffffff;
}

html[data-theme="light"] .auth-banner h2 {
    color: #ffffff;
}

html[data-theme="light"] .google-signin-btn {
    background: #ffffff;
    color: #1a1a1a;
}

html[data-theme="light"] .google-signin-btn:hover {
    background: #f8f9fa;
}

/* Dark theme auth banner */
html[data-theme="dark"] .auth-banner {
    background: linear-gradient(135deg, #a8d5ba 0%, #7cb518 100%);
    color: #ffffff;
}

html[data-theme="dark"] .auth-banner h2 {
    color: #ffffff;
}

@media (max-width: 768px) {
    .auth-banner {
        padding: 1.5rem;
        margin: 1.5rem auto 2rem auto;
    }
    
    .auth-banner h2 {
        font-size: 1.5rem;
    }
    
    .auth-banner p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .google-signin-btn,
    .dismiss-banner {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .auth-banner {
        padding: 1rem;
        margin: 1rem auto 1.5rem auto;
    }
    
    .auth-banner h2 {
        font-size: 1.25rem;
    }
    
    .auth-banner p {
        font-size: 0.9rem;
    }
}

/* Navigation Auth Styles */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
    position: relative;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.profile-container {
    position: relative;
  
}

.profile-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background-color: #7cb518;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 16px;
}

/* Style for when image fails to load and shows alt text */
.profile-image:not([src]), 
.profile-image[src=""], 
.profile-image[src="undefined"], 
.profile-image[src="null"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7cb518;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}

/* Same styling for the large profile image */
.profile-image-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border: 2px solid #7cb518;
    background-color: #7cb518;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 28px;
}

/* Style for when large image fails to load and shows alt text */
.profile-image-large:not([src]), 
.profile-image-large[src=""], 
.profile-image-large[src="undefined"], 
.profile-image-large[src="null"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7cb518;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 28px;
}

.profile-button:hover .profile-image {
    border-color: #7cb518;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(124, 181, 24, 0.2);
}

.profile-container.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    padding: 1.5rem;
    text-align: center;
}

.profile-image-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border: 2px solid #7cb518;
}

.profile-name {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

.profile-divider {
    height: 1px;
    background: rgba(124, 181, 24, 0.2);
    margin: 0.5rem 0;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-item:hover {
    background: rgba(124, 181, 24, 0.1);
}

.profile-icon {
    fill: currentColor;
    opacity: 0.8;
}

/* Dark theme specific styles */
html[data-theme="dark"] .nav-auth-btn {
    color: #ffffff;
}

html[data-theme="dark"] .nav-auth-btn:hover {
    background: rgba(168, 213, 186, 0.1);
    border-color: #a8d5ba;
}

html[data-theme="dark"] .profile-dropdown {
    background: #1a1a1a;
    border-color: rgba(168, 213, 186, 0.2);
}

/* Light theme specific styles */
html[data-theme="light"] .nav-auth-btn {
    color: #1a1a1a;
}

html[data-theme="light"] .nav-auth-btn:hover {
    background: rgba(55, 80, 11, 0.1);
    border-color: #37500b;
}

html[data-theme="light"] .profile-dropdown {
    background: #ffffff;
}

@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }

    .profile-container.active .profile-dropdown {
        transform: translateY(0);
    }
}

.profile-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .profile-nav-item {
        width: 100%;
        order: -1;
    }
    
    .profile-nav-item .profile-container {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-auth {
        width: 100%;
        padding: 0;
        flex-direction: column;
    }
    
    .nav-auth-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1.5rem;
    }
}

/* Auth Navigation Items */
.auth-item,
.profile-nav-item {
    margin-left: auto;
    order: 11;
    margin-left: 16px;
}

.profile-nav-item {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(124, 181, 24, 0.2);
}

.profile-nav-item:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    padding: 1.5rem;
    text-align: center;
}

.profile-name {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

.profile-divider {
    height: 1px;
    background: rgba(124, 181, 24, 0.2);
    margin: 0.5rem 0;
}

.profile-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-item:hover {
    background: rgba(124, 181, 24, 0.1);
}

/* Dark theme specific styles */
html[data-theme="dark"] .profile-dropdown {
    background: #1a1a1a;
    border-color: rgba(168, 213, 186, 0.2);
}

/* Light theme specific styles */
html[data-theme="light"] .profile-dropdown {
    background: #ffffff;
}

@media (max-width: 768px) {
    .auth-item,
    .profile-nav-item {
        order: -1;
        width: 100%;
        margin-left: 0;
    }

    .profile-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }

    .profile-nav-item:hover .profile-dropdown {
        transform: translateY(0);
    }
}

/* Profile Dropdown (robust, minimal, AMMERSE-aligned) */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}
.profile-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    display: flex;
    align-items: center;
}
.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.profile-button:focus .profile-image,
.profile-button:hover .profile-image {
    border-color: #7cb518;
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-color, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    border: 1px solid rgba(124, 181, 24, 0.2);
    pointer-events: none;
}
.profile-container.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    padding:1em;
}
.profile-header {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
}
.profile-image-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border: 2px solid #7cb518;
}
.profile-divider {
    height: 1px;
    background: rgba(124, 181, 24, 0.2);
    margin: 0.5rem 0;
}
.profile-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}
.profile-item:hover {
    background: rgba(124, 181, 24, 0.1);
}
html[data-theme="dark"] .profile-dropdown {
    background: #1a1a1a;
}
html[data-theme="light"] .profile-dropdown {
    background: #fff;
}
@media (max-width: 768px) {
    .profile-dropdown {
        left: 0;
        right: 0;
        min-width: unset;
        width: 100vw;
        border-radius: 12px 12px 0 0;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }
    .profile-container.active .profile-dropdown {
        transform: translateY(0);
    }
}

/* Contact Form Styles */
.contact-section {
    max-width: 800px;
    width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form {
    background: light-dark(rgba(255, 255, 255, 0.8), rgba(10, 40, 30, 0.6));
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border: 1px solid light-dark(rgba(124, 181, 24, 0.2), rgba(168, 213, 186, 0.2));
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: light-dark(#37500b, #a8d5ba);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid light-dark(rgba(124, 181, 24, 0.3), rgba(168, 213, 186, 0.3));
    background: light-dark(#ffffff, rgba(26, 26, 26, 0.7));
    color: light-dark(#1a1a1a, #ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: light-dark(#7cb518, #a8d5ba);
    box-shadow: 0 0 0 2px light-dark(rgba(124, 181, 24, 0.2), rgba(168, 213, 186, 0.2));
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: light-dark(#999, #777);
}

.contact-form button.button {
    background: linear-gradient(135deg, #7cb518 0%, #a8d5ba 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 181, 24, 0.3);
    display: inline-block;
    text-align: center;
}

.contact-form button.button:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #b8e5ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 181, 24, 0.4);
}

.contact-form button.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(124, 181, 24, 0.3);
}

/* Dark theme specific overrides */
html[data-theme="dark"] .contact-form {
    background: rgba(26, 26, 26, 0.7);
}

html[data-theme="dark"] .contact-form label {
    color: #a8d5ba;
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(168, 213, 186, 0.3);
    color: #ffffff;
}

html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus {
    border-color: #a8d5ba;
    box-shadow: 0 0 0 2px rgba(168, 213, 186, 0.2);
}

html[data-theme="dark"] .contact-form button.button {
    background: linear-gradient(135deg, #7cb518 0%, #a8d5ba 100%);
}

html[data-theme="dark"] .contact-form button.button:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #b8e5ca 100%);
}

/* Light theme specific overrides */
html[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .contact-form label {
    color: #37500b;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea {
    background: #ffffff;
    border-color: rgba(124, 181, 24, 0.3);
    color: #1a1a1a;
}

html[data-theme="light"] .contact-form input:focus,
html[data-theme="light"] .contact-form textarea:focus {
    border-color: #7cb518;
    box-shadow: 0 0 0 2px rgba(124, 181, 24, 0.2);
}

html[data-theme="light"] .contact-form button.button {
    background: linear-gradient(135deg, #37500b 0%, #7cb518 100%);
}

html[data-theme="light"] .contact-form button.button:hover {
    background: linear-gradient(135deg, #4a6c0f 0%, #8bc34a 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
    }
    
    .contact-form button.button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Mobile profile header styles */
.sidenav-profile {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border-color, rgba(124, 181, 24, 0.2));
    margin-bottom: 16px;
    width: 100%;
}

.sidenav-profile .profile-image-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    background-color: #7cb518;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #7cb518;
}

.sidenav-profile .profile-name {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
    word-break: break-word;
}

.sidenav-profile .profile-item {
    color: inherit;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: rgba(124, 181, 24, 0.1);
    font-size: 14px;
    transition: background 0.2s;
}

.sidenav-profile .profile-item:hover {
    background-color: rgba(124, 181, 24, 0.2);
}

.nav-profile-header {
    width: 100%;
    margin-bottom: 16px;
    display: none; /* Hide by default */
}

/* Only show mobile profile header on mobile devices */
@media (max-width: 768px) {
    .nav-profile-header {
        display: block;
    }
    
    /* Hide the top navigation profile container on mobile */
    .auth-item .profile-container {
        display: none !important;
    }
}

/* Light theme overrides */
html[data-theme="light"] .sidenav-profile {
    border-bottom-color: rgba(124, 181, 24, 0.2);
}

html[data-theme="light"] .sidenav-profile .profile-item {
    background-color: rgba(124, 181, 24, 0.1);
}

html[data-theme="light"] .sidenav-profile .profile-item:hover {
    background-color: rgba(124, 181, 24, 0.2);
}

/* Dark theme overrides */
html[data-theme="dark"] .sidenav-profile {
    border-bottom-color: rgba(168, 213, 186, 0.2);
}

html[data-theme="dark"] .sidenav-profile .profile-item {
    background-color: rgba(168, 213, 186, 0.1);
}

html[data-theme="dark"] .sidenav-profile .profile-item:hover {
    background-color: rgba(168, 213, 186, 0.2);
}

/* Content List Styles */
.content-list ul {
    margin: 1em 0;
    padding-left: 1.5em;
    list-style-type: none;
}

.content-list ul li {
    position: relative;
    padding: 0.5em 0;
    padding-left: 1.5em;
}

.content-list ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 6px;
    height: 6px;
    background: var(--ts-tertiary);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Enhanced Content Sections */
.content {
    padding: 2em;
    border-radius: 12px;
    background: light-dark(rgba(255, 255, 255, 0.8), rgba(10, 40, 30, 0.6));
    border: 1px solid light-dark(rgba(124, 181, 24, 0.2), rgba(168, 213, 186, 0.2));
    transition: all 0.3s ease;
}

.content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px light-dark(rgba(124, 181, 24, 0.15), rgba(168, 213, 186, 0.15));
}

.content h2 {
    color: light-dark(#37500b, #a8d5ba);
    margin-bottom: 1em;
    font-size: 2em;
    font-weight: 700;
}

.content p {
    color: light-dark(#1a1a1a, #ffffff);
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Image Text Layout Enhancements */
.image-text, .text-image {
    gap: 3em;
    align-items: center;
}

.image-text img, .text-image img {
    border-radius: 12px;
    box-shadow: 0 8px 32px light-dark(rgba(124, 181, 24, 0.2), rgba(168, 213, 186, 0.2));
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
    height: auto;
}

.image-text:hover img, .text-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 40px light-dark(rgba(124, 181, 24, 0.25), rgba(168, 213, 186, 0.25));
}

/* Journey Section Improvements */
.card-list {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.card {
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(124, 181, 24, 0.10);
    padding: 40px 32px 32px 32px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 300px;
    margin: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(168, 213, 186, 0.18);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: visible;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.35rem;
    font-weight: 700;
}

.card p {
    margin: 0;
    font-size: 1.08rem;
    color: #e0e0e0;
}

@media (max-width: 900px) {
    .card-list {
        gap: 20px;
    }
    .card {
        max-width: 100%;
        min-width: 220px;
        padding: 32px 16px 24px 16px;
    }
}

@media (max-width: 600px) {
    .card-list {
        flex-direction: column;
        gap: 16px;
        padding: 0 4px;
    }
    .card {
        max-width: 100%;
        min-width: 0;
        padding: 24px 8px 16px 8px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        max-width: 100%;
        width: 100%;
        padding: 0 6px;
        margin: 0 auto;
    }
    .contact-form {
        padding: 12px 6px;
        margin-top: 12px;
        border-radius: 8px;
    }
    .contact-form .form-group {
        margin-bottom: 14px;
    }
    .contact-form label {
        font-size: 1em;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 10px 8px;
        font-size: 1em;
        border-radius: 6px;
    }
    .contact-form button.button {
        width: 100%;
        padding: 12px 0;
        font-size: 1em;
    }
}
@media (max-width: 480px) {
    .contact-section {
        padding: 0 2px;
    }
    .contact-form {
        padding: 8px 2px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95em;
    }
}

/* ══════════════════════════════════════════════════════════
   Talesmith shared view components
   ══════════════════════════════════════════════════════════ */

:root {
  --ts-primary-rgb: 124, 181, 24;
  --ts-accent-rgb: 168, 213, 186;
  --ts-tertiary: #e48e00;
  --ts-tertiary-rgb: 228, 142, 0;
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ── Hero badge ── */
.hero-badge {
  display: inline-block;
  padding: 0.35em 1.1em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75em;
}

[data-theme="dark"] .hero-badge {
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.15);
  color: rgba(var(--accent-rgb, var(--ts-accent-rgb)), 1);
  border: 1px solid rgba(var(--accent-rgb, var(--ts-accent-rgb)), 0.3);
}

[data-theme="light"] .hero-badge {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.12), rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.06));
  color: #2d4a07;
  border: 1px solid rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.35);
}

/* ── Section headings ── */
.section-label {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.12);
  color: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 1);
}

.section-title {
  font-size: 2.4em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4em;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.12em;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.5em;
}

[data-theme="dark"] .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .section-label {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.1), rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.05));
  color: #2d4a07;
}

[data-theme="light"] .section-title {
  color: #663300;
}

[data-theme="light"] .section-subtitle {
  color: #374151;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2.2em;
  font-size: 1em;
  border-radius: 999px;
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.9);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.35);
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 1);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2.2em;
  font-size: 1em;
  border-radius: 999px;
  border: 2px solid rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.5);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 1);
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-ghost {
  color: rgba(var(--accent-rgb, var(--ts-accent-rgb)), 1);
  border-color: rgba(var(--accent-rgb, var(--ts-accent-rgb)), 0.4);
}

[data-theme="dark"] .btn-ghost:hover {
  color: #ffffff;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #7cb518, #5a9a00);
  color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #37500b, #4a6c0f);
  box-shadow: 0 6px 24px rgba(124, 181, 24, 0.25);
}

[data-theme="light"] .btn-ghost {
  color: #37500b;
  border-color: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.5);
}

[data-theme="light"] .btn-ghost:hover {
  color: #2d4a07;
  background: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.08);
  border-color: rgba(var(--primary-rgb, var(--ts-primary-rgb)), 0.8);
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.6em;
  font-size: 0.95em;
  border-radius: 6px;
  border: 1px solid rgba(var(--ts-tertiary-rgb), 0.5);
  background: rgba(var(--ts-tertiary-rgb), 0.06);
  color: var(--ts-tertiary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.btn-tertiary:hover {
  border-color: var(--ts-tertiary);
  background: rgba(var(--ts-tertiary-rgb), 0.12);
}

.btn-tertiary::before {
  content: '';
  position: absolute;
  left: 0.4em;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--ts-tertiary);
  border-radius: 0 2px 2px 0;
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em 0.25em 1em;
  background: rgba(var(--ts-tertiary-rgb), 0.08);
  color: var(--ts-tertiary);
  border: 1px solid rgba(var(--ts-tertiary-rgb), 0.35);
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.tag::before {
  content: '';
  position: absolute;
  left: 0.35em;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--ts-tertiary);
  border-radius: 0 2px 2px 0;
}

/* ── Nav Dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

.dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-badge {
    display: inline-block;
    padding: 0.15em 0.5em;
    background: rgba(var(--ts-tertiary-rgb), 0.2);
    color: var(--ts-tertiary);
    border: 1px solid rgba(var(--ts-tertiary-rgb), 0.5);
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

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

/* Desktop dropdown */
@media (min-width: 769px) {
    .nav-dropdown-toggle {
        padding: 12px 18px;
        border-radius: 6px;
        font-size: 1rem;
        min-width: 60px;
        text-align: center;
        justify-content: center;
        position: relative;
    }

    .nav-dropdown-toggle::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: #3ad29f;
        transition: width 0.3s ease;
    }

    .nav-dropdown-toggle:hover::after,
    .nav-dropdown-toggle:focus::after {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
        min-width: 200px;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        z-index: 500;
        padding: 6px 0;
        pointer-events: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .nav-dropdown:hover .dropdown-chevron,
    .nav-dropdown.open .dropdown-chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu li {
        margin: 0;
    }

    .nav-dropdown-menu .nav-link {
        padding: 10px 20px;
        border-radius: 0;
        text-align: left;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu .nav-link:hover {
        background: rgba(124, 181, 24, 0.1);
    }

    .nav-dropdown-menu .nav-link::after {
        display: none;
    }

    [data-theme="dark"] .nav-dropdown-menu {
        background: #1a1a1a;
        border: 1px solid rgba(168, 213, 186, 0.15);
    }

    [data-theme="light"] .nav-dropdown-menu {
        background: #ffffff;
        border: 1px solid rgba(124, 181, 24, 0.15);
    }
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .nav-dropdown-toggle {
        padding: 18px 20px;
        width: 100%;
        justify-content: space-between;
        font-size: 1.1rem;
    }

    .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 200px;
    }

    .nav-dropdown.open .dropdown-chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu .nav-link {
        padding: 14px 20px 14px 36px;
        font-size: 1rem;
        display: block;
    }

    .nav-dropdown-menu .nav-link::after {
        display: none;
    }

    .nav-dropdown-menu li {
        border-bottom: 1px solid rgba(168, 213, 186, 0.08);
    }

    .nav-dropdown-menu li:last-child {
        border-bottom: none;
    }

    [data-theme="dark"] .nav-dropdown-menu {
        background: rgba(0, 0, 0, 0.15);
    }

    [data-theme="light"] .nav-dropdown-menu {
        background: rgba(0, 0, 0, 0.04);
    }
}

/* Dropdown toggle theme colours */
html[data-theme="dark"] .nav-dropdown-toggle {
    color: #ffffff;
}

html[data-theme="dark"] .nav-dropdown-toggle:hover,
html[data-theme="dark"] .nav-dropdown-toggle:focus {
    color: #7cb518;
}

html[data-theme="light"] .nav-dropdown-toggle {
    color: #1a1a1a;
}

html[data-theme="light"] .nav-dropdown-toggle:hover,
html[data-theme="light"] .nav-dropdown-toggle:focus {
    color: #37500b;
}

html[data-theme="dark"] .nav-dropdown-toggle::after {
    background: #7cb518;
}

html[data-theme="light"] .nav-dropdown-toggle::after {
    background: #7cb518;
}

