/* Prevent horizontal scroll from full-width nav borders */
body {
    overflow-x: hidden;
}

/* ─── Article Content: Responsive Media ─────────────────────────────────── */

/* Prevent long URLs/text from causing horizontal scroll on mobile */
.article-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* All images inside the article body — full width, preserve ratio */
.article-content img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* Figures (used by most rich editors) */
.article-content figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0;
}

.article-content figure img {
    margin: 0;
}

.article-content figcaption {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Native <video> tags — full width, preserve aspect ratio */
.article-content video {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* YouTube / external iframes — responsive 16:9, controls NOT clipped */
.article-content iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 200px;
    border: none;
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* TinyMCE / Ephox embed wrapper — override inline max-width */
.article-content [data-ephox-embed-iri],
.article-content [data-mce-fragment],
.article-content .responsive-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* Wrap any standalone iframe that is NOT already inside a ratio container */
.article-content > iframe,
.article-content p > iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Oembed / embed wrappers sometimes used by editors */
.article-content .oembed-card,
.article-content .media,
.article-content .video-wrapper,
.article-content .embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 2px;
}

.article-content .oembed-card iframe,
.article-content .media iframe,
.article-content .video-wrapper iframe,
.article-content .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: unset;
}



/* Base typography */
body {
    font-family: 'Poppins', sans-serif;
    color: #282828;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lora', serif;
    color: #1a1a1a;
}

/* Dark mode typography overrides */
.dark body {
    color: #e5e7eb;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #ffffff;
}

/* Dark mode utility overrides */
.dark .text-secondary {
    color: #9CA3AF !important;
}

.dark .text-black {
    color: #F8FAFC !important;
}

.dark .text-gray-300 {
    color: #9CA3AF !important;
}

.dark .text-gray-400 {
    color: #94A3B8 !important;
}

/* Dark mode border overrides — unify all light borders to a subtle dark variant */
.dark .border-gray-100 {
    border-color: #1e293b !important;
}

.dark .border-gray-200 {
    border-color: #1e293b !important;
}

.dark .border-t { border-color: #1e293b; }
.dark .border-b { border-color: #1e293b; }
.dark .border-l { border-color: #1e293b; }
.dark .border-r { border-color: #1e293b; }

/* newsletter box in sidebar */
.dark .bg-gray-50 {
    background-color: #0f172a !important;
}


/* Hexagon shape */
.hexagon {
    width: 20px;
    height: 24px;
    background-color: #42C9A1;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin: 0 1px;
}

/* Search bar expansion */
.search-container {
    transition: all 0.3s ease;
    width: 0;
    overflow: hidden;
    opacity: 0;
}

.search-container.active {
    width: 250px;
    opacity: 1;
    margin-left: 1rem;
}

/* Checkbox accent color */
input[type="checkbox"] {
    accent-color: #42C9A1;
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

/* Google Translate styling overrides */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}
body {
    top: 0px !important; 
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#google_translate_element select {
    background-color: transparent;
    color: #282828;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}
.dark #google_translate_element select {
    color: #f8fafc;
    border-color: #334155;
    background-color: #1e293b;
}
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0;
}