/* ===================================
   Global Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

body {
    overflow-x: hidden;
}

/* ===================================
   Header Navigation
   =================================== */
#nav-manu-wrapper {
    background-color: red;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.logo-wrapper {
    padding: 20px;
    text-align: center;
}

.logo-wrapper a {
    text-decoration: none;
}

#logo {
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

#menu-wrapper {
    background-color: red;
}

#menu-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#menu-ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#menu-ul li {
    padding: 15px 25px;
}

#menu-ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

#menu-ul li a:hover {
    opacity: 0.8;
}

#hamburger-menu {
    display: none;
}

.hamburger-menu-hide {
    display: none;
}

/* ===================================
   Main Content
   =================================== */
#web-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-wrapper {
    background: #fff;
}

/* ===================================
   Article Title & Meta
   =================================== */
.main-title-wrapper {
    margin-bottom: 35px;
}

#main-title {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
}

.post-info-top {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#author-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.author-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.author-name-link {
    color: #333;
    text-decoration: none;
}

.author-name-link:hover {
    color: red;
}

.post-date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   Article Content
   =================================== */
.content-wrapper {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.content-wrapper h1 {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    margin: 50px 0 20px;
    color: #1a1a1a;
}

.content-wrapper h2 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 700;
    margin: 45px 0 20px;
    color: #1a1a1a;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: #333;
}

.content-wrapper strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* ===================================
   Images
   =================================== */
.f-img,
.img-wrapper {
    margin: 30px 0;
    text-align: center;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

figure {
    margin: 30px 0;
}

figure img {
    width: 100%;
}

/* ===================================
   OnePager Sections
   =================================== */
#omg-onePager-content {
    margin-top: 40px;
}

.omg-onepager-section {
    padding-bottom: 10px;
}

/* ===================================
   Newsletter Form
   =================================== */
.newsletter-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, red 0%, #a05590 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(139, 70, 123, 0.3);
    scroll-margin-top: 80px;
}

.form-title {
    text-align: center;
    margin-bottom: 35px;
}

.form-title h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.form-title span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
}

.tab {
    width: 100%;
}

.inner {
    width: 100%;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.input-wrap input {
    width: 100%;
    max-width: 350px;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.input-wrap input:focus {
    outline: none;
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.input-wrap input::placeholder {
    color: #999;
    text-align: center;
}

.form-fields .submit {
    width: 100%;
    max-width: 350px;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: red;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin: 10px auto 0;
    display: block;
}

.form-fields .submit:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.form-fields .submit:active {
    transform: translateY(0);
}

/* ===================================
   Taboola-style Ads Block
   =================================== */
.taboola-ads-block {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.taboola-header {
    margin-bottom: 25px;
}

.taboola-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taboola-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.taboola-item {
    display: flex;
    flex-direction: column;
}

.taboola-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.taboola-link:hover {
    opacity: 0.8;
}

.taboola-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.taboola-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.taboola-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.taboola-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taboola-source {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   Ad Placeholders
   =================================== */
.ad_placeholder {
    margin: 35px 0;
    min-height: 280px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    clear: both;
}

.ad_placeholder > div {
    width: 48%;
}

.ad_placeholder iframe {
    display: block;
}

/* Hide empty ad containers */
.ad_placeholder > div:empty {
    display: none;
}

/* ===================================
   Footer
   =================================== */
#footer-wrapper {
    margin-top: 80px;
    padding: 40px 20px;
}

#footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
}

#footer-container li {
    padding: 0;
}

#footer-container a {
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    cursor: pointer;
}

#footer-container a:hover {
    opacity: 0.8;
}

/* ===================================
   Popup Styles
   =================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.popup-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #333;
}

.popup-content h2 {
    color: red;
    font-size: 28px;
    margin-bottom: 25px;
    padding-right: 40px;
}

.popup-content h3 {
    color: #333;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-content h4 {
    color: #555;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.popup-text {
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.popup-text p {
    margin-bottom: 15px;
}

.popup-text strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    #web-content {
        padding: 30px 20px;
    }

    #menu-ul {
        flex-wrap: wrap;
    }

    #menu-ul li {
        padding: 12px 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .logo-wrapper {
        padding: 15px;
    }

    #logo {
        font-size: 18px !important;
    }

    #menu-wrapper {
        display: none;
    }

    #hamburger-menu {
        display: block;
        text-align: right;
        padding: 15px 20px;
    }

    .menu-button {
        font-size: 28px;
        cursor: pointer;
        user-select: none;
    }

    #web-content {
        padding: 20px 15px;
    }

    #main-title {
        font-size: 28px;
    }

    .content-wrapper {
        font-size: 16px;
    }

    .content-wrapper h1 {
        font-size: 24px;
        margin: 35px 0 15px;
    }

    .content-wrapper h2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .ad_placeholder {
        flex-direction: column;
        min-height: auto;
    }

    .ad_placeholder > div {
        width: 100%;
    }

    #footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .taboola-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .taboola-ads-block {
        margin: 30px 0;
        padding: 25px 0;
    }

    .taboola-header h3 {
        font-size: 18px;
    }

    .taboola-image-wrapper {
        height: 120px;
    }

    .taboola-title {
        font-size: 13px;
    }

    .newsletter-form-container {
        padding: 30px 20px;
        margin: 30px 15px;
    }

    .form-title h3 {
        font-size: 22px;
    }

    .form-title span {
        font-size: 14px;
    }

    .input-wrap input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .form-fields .submit {
        padding: 16px 20px;
        font-size: 16px;
    }

    .popup-content {
        padding: 30px 20px;
        max-height: 85vh;
    }

    .popup-content h2 {
        font-size: 24px;
    }

    .popup-content h3 {
        font-size: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    #main-title {
        font-size: 24px;
    }

    .content-wrapper {
        font-size: 15px;
    }

    .content-wrapper h1 {
        font-size: 21px;
    }

    .content-wrapper h2 {
        font-size: 19px;
    }

    .author-info {
        gap: 10px;
    }

    #author-avatar {
        width: 35px;
        height: 35px;
    }

    .taboola-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .taboola-ads-block {
        margin: 25px 0;
        padding: 20px 0;
    }

    .taboola-header h3 {
        font-size: 16px;
    }

    .taboola-image-wrapper {
        height: 180px;
    }

    .taboola-title {
        font-size: 14px;
    }

    .newsletter-form-container {
        padding: 25px 15px;
        margin: 20px 10px;
    }

    .form-title h3 {
        font-size: 20px;
    }

    .form-title span {
        font-size: 13px;
    }

    .input-wrap input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-fields .submit {
        padding: 14px 18px;
        font-size: 15px;
    }

    .popup-overlay {
        padding: 10px;
    }

    .popup-content {
        padding: 25px 15px;
    }

    .popup-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .popup-content h3 {
        font-size: 17px;
    }

    .popup-text {
        font-size: 14px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    #nav-manu-wrapper,
    #footer-wrapper,
    .ad_placeholder {
        display: none;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Hidden language tag */
.tag-lang-fr {
    display: none !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid red;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: red;
    color: #fff;
}

::-moz-selection {
    background-color: red;
    color: #fff;
}
