@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1b3d22;      /* Deep Forest Green */
    --primary-light: #2d5a35;
    --primary-text: #1b3d22;
    --accent: #e07a5f;       /* Coral (marine origin) */
    --accent-dark: #c55d42;
    --cream: #faf7f2;        /* Lithothamnium Soft Cream */
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-medium: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --text-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-color: var(--gray-medium);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(27, 61, 34, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.75rem;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

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

.btn-nav-search {
    background-color: var(--accent);
    color: var(--text-white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav-search:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 61, 34, 0.9) 0%, rgba(10, 25, 13, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    background-color: rgba(224, 122, 95, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-white);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-bg-white {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Culture Explorer Card Grid */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.culture-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.culture-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.culture-card-img-wrapper {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.culture-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.culture-card:hover .culture-card-img {
    transform: scale(1.05);
}

.culture-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.culture-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.culture-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.culture-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culture-card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.culture-card-link:hover {
    color: var(--accent-dark);
}

/* Info Banner for the Geopolitical & Phosphorus Crisis */
.crisis-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1e11 100%);
    border-radius: var(--radius-md);
    padding: 3rem;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.crisis-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.crisis-banner-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.crisis-banner-title {
    color: var(--accent);
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
}

.crisis-banner-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* Articles and Blog Grids */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.article-img {
    height: 13rem;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--gray-medium);
}

.article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: auto;
}

.article-author {
    color: var(--text-light);
}

.article-link {
    color: var(--primary);
    font-weight: 600;
}

.article-link:hover {
    color: var(--accent);
}

/* Tabs & Culture Technical Layout */
.technical-header {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 5rem 0;
    position: relative;
}

.technical-header-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.technical-header h1 {
    color: var(--text-white);
    font-size: 2.75rem;
}

.technical-content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.technical-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
}

/* Custom Tabs */
.tab-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--gray-medium);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: tabSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabSlideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.tab-pane ul {
    list-style: none;
    margin: 1.5rem 0;
}

.tab-pane li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.tab-pane li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Dynamic Sidebar Navigation */
.sidebar-box {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-light);
}

.sidebar-link:hover {
    background-color: var(--gray-light);
    color: var(--primary);
}

/* Search Engine Forms & Filters */
.search-bar {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-medium);
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-group {
    flex-grow: 2;
    min-width: 250px;
    display: flex;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
}

.filter-select {
    flex-grow: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    outline: none;
}

.btn-search {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--primary-light);
}

/* Single Article / Blog Reader CSS */
.reader-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.reader-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
    padding: 3rem;
}

.reader-header {
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.reader-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.reader-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.reader-meta span {
    font-weight: 500;
}

.reader-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.reader-content p {
    margin-bottom: 1.5rem;
}

.reader-content h3 {
    font-size: 1.45rem;
    margin: 2rem 0 1rem 0;
}

.reader-content ul, .reader-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.reader-content li {
    margin-bottom: 0.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.btn-back:hover {
    color: var(--accent);
}

/* Contact Footer Form */
.footer-contact {
    background-color: #0b150d;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
    border-top: 5px solid var(--accent);
}

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

.footer-logo {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a:hover {
    color: var(--accent);
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    .hero h2 {
        font-size: 2.25rem;
    }
    .technical-content-grid {
        grid-template-columns: 1fr;
    }
    .reader-card {
        padding: 1.5rem;
    }
    .reader-title {
        font-size: 1.85rem;
    }
}

/* Modal Overlay with Blur & Translucency */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 25, 13, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease;
}

/* Modal Card with Premium Soft Cream background, borders and drop shadow */
.modal-card {
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(27, 61, 34, 0.15);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.modal-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.modal-subtitle {
    font-size: 0.925rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, .form-textarea {
    width: 100%;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--cream);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 61, 34, 0.15);
    background-color: var(--white);
}

.form-textarea {
    resize: vertical;
}

.btn-submit-request {
    margin-top: 1rem;
    transition: var(--transition);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Premium Dark Mode, Icons, and UX Additions --- */

/* Dark Mode Variables Override */
body.dark-mode {
    --cream: #09130c;        /* Rich dark forest black background */
    --white: #112215;        /* Premium dark green card background */
    --gray-light: #162c1c;   /* Subtle background */
    --gray-medium: #223f2b;  /* Borders */
    --text-dark: #ecf3ed;    /* Main text (soft light green/white) */
    --text-light: #9db2a2;   /* Muted text */
    --primary-text: #a2d2ad; /* Legible bright green for headers/text */
    --border-color: #223f2b;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Dark Mode Specific Overrides */
body.dark-mode .section-bg-white {
    background-color: var(--white);
}

body.dark-mode .navbar {
    background-color: rgba(9, 19, 12, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .logo-img {
    filter: brightness(0) invert(1) opacity(0.9);
}

body.dark-mode .sidebar-box {
    background-color: var(--white);
    border-color: var(--border-color);
}

body.dark-mode .sidebar-link:hover {
    background-color: var(--gray-light);
    color: var(--primary-text);
}

body.dark-mode .search-bar {
    background-color: var(--white);
    border-color: var(--border-color);
}

body.dark-mode .search-input {
    background-color: var(--gray-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

body.dark-mode .filter-select {
    background-color: var(--gray-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

body.dark-mode .tab-pane {
    color: var(--text-dark);
}

body.dark-mode .tab-pane ul li {
    color: var(--text-dark);
}

body.dark-mode .tab-pane li::before {
    color: var(--accent);
}

body.dark-mode .tab-btn {
    color: var(--text-light);
}

body.dark-mode .tab-btn:hover {
    color: var(--primary-text);
}

body.dark-mode .tab-btn.active {
    color: var(--primary-text);
}

body.dark-mode .tab-btn.active::after {
    background-color: var(--primary-text);
}

body.dark-mode .article-link {
    color: var(--primary-text);
}

body.dark-mode .article-link:hover {
    color: var(--accent);
}

body.dark-mode .btn-back {
    color: var(--primary-text);
}

body.dark-mode .btn-back:hover {
    color: var(--accent);
}

body.dark-mode .technical-card {
    background-color: var(--white);
    border-color: var(--border-color);
}

body.dark-mode .reader-card {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.dark-mode .reader-meta {
    color: var(--text-light);
}

body.dark-mode .reader-content {
    color: var(--text-dark);
}

body.dark-mode .footer-contact {
    border-top-color: var(--accent-dark);
    background-color: #050a06;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
    border-radius: 50%;
    margin-left: 0.5rem;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: scale(1.1);
}

.sun-icon {
    display: none;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    width: 1.25rem;
    height: 1.25rem;
}

.moon-icon {
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    width: 1.25rem;
    height: 1.25rem;
}

body.dark-mode .sun-icon {
    display: block;
    color: #ffd166;
}

body.dark-mode .moon-icon {
    display: none;
}

/* SVG Icon base styling */
.icon-svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition);
}

/* Card Badge SVG alignment adjustment */
.culture-card-badge .icon-svg {
    margin-right: 0.25rem;
    stroke-width: 2;
}

/* Back to Top Button Styling */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(15px);
}

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

.back-to-top-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

.back-to-top-btn .icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}
