@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600&display=swap');

html {
    overflow-x: hidden;
    max-width: 100vw;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.preload *,
body.preload {
    transition: none !important;
}

body {
    transition: all 0.5s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.5s ease;
    padding: 0;
    margin: 0;
}

.theme-light {
    --bg-primary: #f5f0e1;
    --bg-secondary: #e5cdae;
    --text-primary: #2a2a2a;
    --text-secondary: #8c7a5b;
    --accent: #c4aa81;
    --accent-rgb: 196, 170, 129;
    --accent-light: #e5cdae;
    --header-bg: #c4aa81;
    --top-menu-bg: #c4aa81;
    --content-block-bg: #e5cdae;
    --footer-bg: #c4aa81;
    --text-link-hover: #8c7a5b;
    --fog-color: rgba(49, 36, 21, 0.15);
}

.theme-dark {
    --bg-primary: #121212;
    --bg-secondary: #1e1e2f; 
    --text-primary: #e0d7f5;
    --text-secondary: #b5a8d3;
    --accent: #7c4dff; 
    --accent-rgb: 124, 77, 255;
    --header-bg: #0d0d14;
    --top-menu-bg: #0d0d14;
    --content-block-bg: #2a2252;
    --footer-bg: #1a1a2b;
    --text-link-hover: #9c78ff;
    --fog-color: rgba(0, 255, 255, 0.15); 
}

.theme-light-gray {
    --bg-primary: #f5f0e1;
    --bg-secondary: #e5cdae;
    --text-primary: #2a2a2a;
    --text-secondary: #8c7a5b;
    --accent: #c4aa81;
    --accent-rgb: 196, 170, 129;
    --accent-light: #e5cdae;
    --header-bg: #c4aa81;
    --top-menu-bg: #c4aa81;
    --content-block-bg: #e5cdae;
    --footer-bg: #c4aa81;
    --text-link-hover: #8c7a5b;
    --fog-color: rgba(255, 248, 240, 0.85);
    filter: grayscale(100%);
}

.theme-dark-gray {
    --bg-primary: #121212;
    --bg-secondary: #1e1e2f; 
    --text-primary: #e0d7f5;
    --text-secondary: #b5a8d3;
    --accent: #7c4dff;
    --accent-rgb: 124, 77, 255;
    --header-bg: #0d0d14;
    --top-menu-bg: #0d0d14;
    --content-block-bg: #2a2252;
    --footer-bg: #1a1a2b;
    --text-link-hover: #9c78ff;
    --fog-color: rgba(0, 255, 255, 0.15); 
    filter: grayscale(100%);
}

body.theme-light
{
    background: url('/wp-content/uploads/images/background-light.png') repeat;
    background-size: 3400px;
}

body.theme-dark
{
    background: url('/wp-content/uploads/images/background-dark.png') repeat;
    animation: matrix-fall 45s linear infinite;
}

@keyframes matrix-fall {
  0% { background-position: 0 0; }
  100% { background-position: 0 2000px; }
}

.blog-post {
    border-left: 3px solid var(--accent);
    opacity: 1;
}

.social-icon {
    padding: 10px;
    transition: transform 0.2s;
    cursor: pointer;

}

.social-icon:hover {
    transform: translateY(-3px);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.top-menu {
    background-color: var(--top-menu-bg);
}

.hide-header {
    transform: translateY(-200%);
}

header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: transform 0.3s ease;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.7);
}

.logo-section {
    background-color: var(--content-block-bg);
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-primary);
    margin-top: auto;
}

.menu-button {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-container img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

.post-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-menu {
    transition: all 0.5s ease;
}

.social-menu.hidden-menu {
    transform: translateY(-100%);
}

.content-container {
    width: 100%;
}

/* Reset Gutenberg block styles */
.prose [class^="wp-block-"],
.prose [class*=" wp-block-"] {
    all: unset;
    display: revert;
    font-family: inherit;
    color: inherit;
    margin: 0 0 1.5rem;
    line-height: 1.7;
    box-sizing: border-box;
}


/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

/* Lists */
.prose ul,
.prose ol,
.prose .wp-block-list {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    position: relative;
}

/* Optional: Custom bullets */
.prose ul li::marker {
    color: var(--accent);
    font-weight: bold;
}

.prose ol li::marker {
    color: var(--accent);
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Blockquotes */
.prose blockquote,
.prose .wp-block-quote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.prose th,
.prose td {
    border: 1px solid var(--accent-light);
    padding: 0.75rem;
    text-align: left;
    color: var(--text-primary);
}

/* Links */
.prose a {
    color: var(--accent);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--text-link-hover);
}

#hero-logo {
    padding-top: 8px;
    padding-bottom: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.container {
    width: 75%;
    max-width: 900px;
    margin: 0 auto;
}

article {
    padding: 6px;
    background-color: var(--content-block-bg);
}

.vintage-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.vintage-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 181, 157, 0.5);
}

.vintage-button {
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vintage-button:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}

.divider {
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 0.5rem 0;
}

.section {
    max-width: var(--section-width, 800px);
    margin-left: auto;
    margin-right: auto;
}

.section-long{
    margin-top: 2rem;
    --section-width: 1200px;
}

.sector {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--content-block-bg);
}

.section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: var(--text-primary);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.email-form {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vintage-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.vintage-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 181, 157, 0.5);
}

.button {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--accent);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    min-width: 100px;
    width: fit-content;
    z-index: 15;
    pointer-events: auto;
}

.button:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.comment {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out forwards;
}

.nested-comment {
    margin-left: 2.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.user-likes {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-likes i {
    color: #e53e3e;
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.form-container {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.comment-actions button {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.comment-actions button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.comment-actions i {
    margin-right: 0.25rem;
}

.comment-content {
    margin: 0.75rem 0;
    line-height: 1.5;
}

.reply-form {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: none;
}

.like-count {
    font-size: 0.85rem;
    margin-left: 0.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.liked {
    color: #e53e3e !important;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.success-message {
    background-color: #c6f6d5;
    border-left: 4px solid #38a169;
    color: #276749;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.3s ease-in-out;
}

.success-message {
    display: none;
}

.border-accent {
    border-color: var(--accent);
}

.search-container {
    position: relative;
}

.search-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #f5f3ee;
    border-radius: 20px;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 10;
}

.search-drawer.active {
    width: 250px;
    transition: opacity 0.3s ease;
}

.search-icon {
    cursor: pointer;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    transition-delay: 0s;
}

.search-drawer.active .search-form {
    opacity: 1;
    transition-delay: 0.2s;
    pointer-events: auto;
}

.search-input {
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 5px;
}

/* Add this to your theme's CSS or customizer */
@keyframes expand {
  from {
    max-width: 0;
    opacity: 0;
  }
  to {
    max-width: 100px;
    opacity: 1;
  }
}

@keyframes collapse {
  from {
    max-width: 100px;
    opacity: 1;
  }
  to {
    max-width: 0;
    opacity: 0;
  }
}

.search-drawer.animate-expand {
  animation: expand 0.3s ease forwards;
}

.search-drawer.animate-collapse {
  animation: collapse 0.2s ease forwards;
}

.animate-expand-x {
    width: 16rem; /* or match your final size */
    opacity: 1;
    pointer-events: auto;
}

.animate-collapse-x {
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

        .card {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            height: 100%;
        }

        .card-content {
            padding: 1.5rem;
        }

        .card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
        }

        .card-text {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--accent-dark);
        }

        /* Carousel Styles */
        .carousel {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .carousel-inner {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            transition: transform 0.5s ease;
        }

        .carousel-item {
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            flex: 0 0 100%;
            position: relative;
            transition: opacity 0.5s ease;
            box-sizing: border-box;
        }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-caption {
            position: relative;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 1rem;
        }

        .overlay{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: visible !important;
            pointer-events: none;
        }

        .stacking{
            position: relative;
        }
        
        #carousel-scroll-left,
        #carousel-scroll-right{
            position: absolute;
            cursor: pointer;
            top: 50%;
            z-index: 15;
            pointer-events: auto;
        }

        #carousel-scroll-left{
            left: 10px;
        }

        #carousel-scroll-right{
            right: 50px;
        }

        .scroll-control {
            position: absolute;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: var(--bg-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 25;
            transition: all 0.3s ease;
        }

        .scroll-control:hover {
            background-color: var(--accent);
            background-color: rgba(0, 0, 0, 0.7);
        }

        .scroll-control {
            background-color: rgba(0, 0, 0, 0.4);
            color: white;
            border-radius: 9999px;
            transition: background-color 0.2s;
        }

        .carousel-indicators {
            position: absolute;
            border-radius: 50%;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }

        .carousel-indicator {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: var(--bg-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 15;
        }

        .carousel-indicator.active {
            background-color: var(--accent);
        }

        /* Vertical Carousel */
        .carousel-post {
            display: flex;
            flex-direction: column;
            min-height: 600px;
            height: 100%;
            width: 100%;
            background-color: var(--content-block-bg);
            border-radius: 0.5rem;
            position: relative;
            overflow: hidden;
        }
        
        .carousel-post-inner {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            height: 100%;
        }

        .carousel-content {
            max-height: 220px; /* controls visual cutoff */
            position: relative;
            overflow: hidden;
        }
        
        .carousel-scroll-area {
        max-height: 100%;
        position: relative;
        }

        .fade-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2rem;
            background: linear-gradient(to bottom, transparent, var(--content-block-bg));
            pointer-events: none;
            opacity: 1;
        }
        .carousel-scroll-area.fade-needed .fade-overlay {
        opacity: 1;
        }

        .vertical-carousel {
            overflow: hidden;
            max-height: 600px;
        }

        .vertical-carousel .carousel-item {
            min-height: 600px;
            height: 100%;
            max-height: 100%;
            transition: opacity 0.5s ease;
            box-sizing: border-box;
            display: flex;
            align-items: stretch;
        }

        .vertical-carousel .carousel-content {
            max-height: 400px; /* controls visual cutoff */
            position: relative;
            overflow: hidden;
        }

        .carousel-item .prose {
            position: relative;
        }

        .carousel-item .prose::after {
            content: '';
            position: absolute;
            bottom: 2.5rem;
            left: 0;
            width: 100%;
            height: 3rem;
            background: linear-gradient(to bottom, transparent, var(--content-block-bg));
            pointer-events: none;
        }

        /* Navbar */
        .navbar {
            background-color: var(--bg-secondary);
            padding: 1rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

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

        .nav-links {
            display: flex;
            gap: 1.5rem;
        }

        .nav-link {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

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

        .avatar {
            border-radius: 50%;
            background-color: var(--bg-secondary);
            border: 2px solid var(--accent);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-sm {
            width: 40px;
            height: 40px;
        }

        /* Pattern background */
        .pattern-bg {
            position: relative;
        }

        .pattern-bg::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 l10,-10 l10,10 l-10,10 z' stroke='%23b0a090' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
            opacity: 0.1;
            z-index: -1;
        }

        /* Footer */
        .footer {
            display: flex;
            justify-content: center;
            background-color: var(--bg-secondary);
            padding: 2rem 0;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            margin: 0 auto;
            max-width: 100%;
            text-align: left;
        }

        .footer-column {
            flex: 0 0 200px; /* Fixed width for consistency */
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .footer-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
            position: relative;
        }

        .footer-title::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 160px;
            height: 2px;
            background-color: var(--accent);
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: small;
        }

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

        .footer-link a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .footer-bottom {
            border-top: 1px solid var(--accent-light);
            padding-top: 1.5rem;
            margin-top: 1.5rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

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

        .flex-wrapper {
  display: flex;
  gap: 1.5rem; /* adjustable spacing */
  flex-wrap: wrap; /* allows wrapping on narrow screens */
  align-items: flex-start; /* align top edges */
}

/* Make direct children take equal width but responsive */
.flex-wrapper > * {
  flex: 1 1 300px; /* grow & shrink, minimum 300px */
  min-width: 250px; /* prevent shrinking too small */
}

/* If you want to control vertical carousel width separately, add modifiers: */

/* Example: smaller width for vertical carousels */
.flex-wrapper > .vertical-carousel {
  flex: 0 0 40%;  /* fixed 40% width */
  max-width: 40%;
}

/* Horizontal carousels could default to wider */
.flex-wrapper > .horizontal-carousel {
  flex: 1 1 60%;
  max-width: 60%;
}

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .popup {
            background-color: var(--bg-primary);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            min-width: 400px;
            padding: 1.5rem;
            position: relative;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }

        .popup-overlay.active .popup {
            transform: translateY(0);
        }

        .popup::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 l10,-10 l10,10 l-10,10 z' stroke='%23b0a090' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
            opacity: 0.1;
            z-index: -1;
            border-radius: 8px;
        }

        .popup-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
            text-align: center;
            position: relative;
        }

        .popup-title::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background-color: var(--accent);
        }

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

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .form-input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--accent-light);
            border-radius: 4px;
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            transition: border-color 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(176, 160, 144, 0.2);
        }
        
        .btn {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border: 2px solid var(--accent);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .links-container {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
            font-size: 0.85rem;
        }

        .link {
            color: var(--accent-dark);
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .close-btn {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.8rem;
            line-height: 1;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            color: var(--text-primary);
            background-color: rgba(176, 160, 144, 0.2);
        }

        /* Custom checkbox styling */
        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            cursor: pointer;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: relative;
            height: 18px;
            width: 18px;
            background-color: var(--bg-secondary);
            border: 1px solid var(--accent-light);
            border-radius: 3px;
            margin-right: 8px;
            transition: all 0.2s ease;
        }

        .checkbox-container:hover input ~ .checkmark {
            border-color: var(--accent);
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-container .checkmark:after {
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .icon-button {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            transition: background-color 0.2s ease;
        }

        .icon-button:hover {
            background-color: var(--bg-secondary);
        }

        .icon-button img {
        width: 100% !important;
        height: 100% !important;
        max-width: unset !important;
        max-height: unset !important;
        object-fit: cover;
        display: block;
        transition: opacity 0.2s ease;
        }

        .login-btn {
            width: 100%;
            padding: 0.5rem 0.75rem;
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 4px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .login-btn:hover {
            background-color: var(--bg-secondary);
        }

        .links-container {
            display: flex;
            justify-content: space-between;
            margin-top: 0.75rem;
            font-size: 0.8rem;
        }

        .link {
            color: var(--accent-dark);
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
        }

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

        /* User dropdown */
        .user-info {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--accent-light);
        }

        .user-avatar-small {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--accent-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            border: 2px solid var(--accent);
            overflow: hidden;
        }

        .user-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        .user-role {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

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

        .menu-item {
            margin-bottom: 0.5rem;
        }

        .menu-link {
            display: flex;
            align-items: center;
            padding: 0.5rem 0.75rem;
            border-radius: 4px;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .menu-link:hover {
            background-color: var(--accent-light);
        }

        .menu-icon {
            margin-right: 0.75rem;
            width: 16px;
            height: 16px;
            opacity: 0.8;
        }


.dropdown-btn {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-btn:hover {
    background-color: var(--bg-secondary);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    padding: 1.25rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 l10,-10 l10,10 l-10,10 z' stroke='%23b0a090' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
    border-radius: 8px;
}

.dropdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.dropdown-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.contact-popup {
    width: 800px;
}

        .settings-popup {
            background-color: var(--bg-primary);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            width: 90%;
            max-width: 900px;
            height: 80vh;
            max-height: 700px;
            position: relative;
            display: flex;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
            overflow: hidden;
        }

        .settings-overlay.active .settings-popup {
            transform: translateY(0);
        }

        .settings-popup::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 l10,-10 l10,10 l-10,10 z' stroke='%23b0a090' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
            opacity: 0.05;
            z-index: -1;
            border-radius: 8px;
        }

        .close-btn {
            position: absolute;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.5rem;
            line-height: 1;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .close-btn:hover {
            color: var(--text-primary);
            background-color: rgba(176, 160, 144, 0.2);
        }

        .settings-sidebar {
            width: 25%;
            background-color: var(--bg-secondary);
            padding: 2rem 0;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--accent-light);
        }

        .settings-nav {
            flex: 1;
            overflow-y: auto;
        }

        .settings-nav-item {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .settings-nav-item:hover {
            background-color: rgba(176, 160, 144, 0.1);
        }

        .settings-nav-item.active {
            background-color: var(--bg-primary);
            border-left-color: var(--accent);
            font-weight: 500;
        }

        .settings-nav-icon {
            width: 18px;
            height: 18px;
            opacity: 0.8;
        }

        .logout-btn {
            margin: 1rem;
            padding: 0.75rem;
            background-color: transparent;
            color: var(--danger);
            border: 1px solid var(--danger);
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .logout-btn:hover {
            background-color: var(--danger);
            color: white;
        }

        .settings-content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
        }

        .settings-section {
            display: none;
        }

        .settings-section.active {
            display: block;
        }

        .settings-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.75rem;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .settings-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 2px;
            background-color: var(--accent);
        }

        .settings-group {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--accent-light);
        }

        .settings-group:last-child {
            border-bottom: none;
        }

        .settings-group-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

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

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

        .form-row .form-group {
            flex: 1;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--accent-light);
            border-radius: 4px;
            background-color: white;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            transition: border-color 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(176, 160, 144, 0.2);
        }

        .form-select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--accent-light);
            border-radius: 4px;
            background-color: white;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            transition: border-color 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236a5a4a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px 12px;
        }

        .form-select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(176, 160, 144, 0.2);
        }

        /* Custom checkbox styling */
        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            cursor: pointer;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: relative;
            height: 18px;
            width: 18px;
            background-color: white;
            border: 1px solid var(--accent-light);
            border-radius: 3px;
            margin-right: 10px;
            transition: all 0.2s ease;
        }

        .checkbox-container:hover input ~ .checkmark {
            border-color: var(--accent);
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-container .checkmark:after {
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* Toggle switch */
        .switch-container {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            margin-right: 10px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--accent-light);
            transition: .3s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--accent);
        }

        input:focus + .slider {
            box-shadow: 0 0 1px var(--accent);
        }

        input:checked + .slider:before {
            transform: translateX(20px);
        }

        .switch-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .actions-container {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--accent-light);
        }

        .reset-btn {
            padding: 0.75rem 1.25rem;
            background-color: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--accent-light);
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .reset-btn:hover:not(:disabled) {
            background-color: var(--accent-light);
            color: var(--text-primary);
        }

        .save-btn {
            padding: 0.75rem 1.25rem;
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .save-btn:hover:not(:disabled) {
            background-color: var(--accent-dark);
        }

        .save-btn:disabled, .reset-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Toast notification */
        .toast {
            position: fixed;
            padding: 0.75rem 1.5rem;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            border: 1px solid var(--accent);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            pointer-events: none;
            z-index: 20000;
            font-family: 'Montserrat', sans-serif;
            font-weight: 500;
            text-align: center;
            min-width: 180px;
            transition: opacity 0.3s ease, transform 0.5s ease;
        }

        .toast.success {
            border-color: var(--success);
        }

        .toast.success::before {
            content: "✓ ";
            color: var(--success);
            font-weight: bold;
        }

        .toast.warning {
            border-color: var(--danger);
        }

        .toast.warning::before {
            content: "! ";
            color: var(--danger);
            font-weight: bold;
        }

        .toast::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 l10,-10 l10,10 l-10,10 z' stroke='%23b0a090' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
            opacity: 0.1;
            z-index: -1;
            border-radius: 8px;
        }

        /* Subscription plan cards */
        .plan-cards {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .plan-card {
            flex: 1;
            border: 1px solid var(--accent-light);
            border-radius: 8px;
            padding: 1.5rem;
            background-color: white;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .plan-card.active {
            border-color: var(--accent);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .plan-card.active::before {
            content: "Current Plan";
            position: absolute;
            top: 10px;
            right: -30px;
            background-color: var(--accent);
            color: white;
            padding: 0.25rem 2rem;
            font-size: 0.75rem;
            transform: rotate(45deg);
        }

        .plan-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .plan-price {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--accent-dark);
        }

        .plan-price span {
            font-size: 0.9rem;
            font-weight: 400;
            color: var(--text-secondary);
        }

        .plan-features {
            list-style: none;
            padding: 0;
            margin: 0 0 1.5rem 0;
        }

        .plan-feature {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--accent-light);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
        }

        .plan-feature:last-child {
            border-bottom: none;
        }

        .plan-feature::before {
            content: "✓";
            color: var(--accent);
            margin-right: 0.5rem;
            font-weight: bold;
        }

        .plan-btn {
            width: 100%;
            padding: 0.75rem;
            text-align: center;
            background-color: transparent;
            border: 1px solid var(--accent);
            color: var(--accent-dark);
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .plan-btn:hover {
            background-color: var(--accent);
            color: white;
        }

        .plan-card.active .plan-btn {
            background-color: var(--accent-light);
            border-color: var(--accent);
            color: var(--text-primary);
            cursor: default;
        }

        .plan-card.active .plan-btn:hover {
            background-color: var(--accent-light);
        }



h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5 {
    font-family: 'Orbitron', 'Audiowide', 'Share Tech Mono', monospace;
}

.theme-dark-gray h1,
.theme-dark-gray h2,
.theme-dark-gray h3,
.theme-dark-gray h4,
.theme-dark-gray h5 {
    font-family: 'Orbitron', 'Audiowide', 'Share Tech Mono', monospace;
}


h1 {
    font-size: 2.75rem !important;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem !important;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem !important;
    margin-bottom: 1.1rem;
}

h4 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem;
}

.draggable {
    cursor: grab;
    user-select: none;
}

.grabbing {
    cursor: grabbing;
}

@media (max-width: 800px) {
    #logo{
        width: 90%;
    }

    .container{
        width: 100%;
    }

    .sector{
        padding: 0.5rem;
    }
    
    .article{
        width: 100%;
    }
    
    body {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem;
    }

    h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1.1rem;
    }

    h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }

    h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem;
    }

    .contact-popup {
        width: 100%;
    }
}