/* ========================================
   RESET & BOX SIZING FOUNDATION
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #0b6d1b;
    --secondary-color: #666;
    --accent-color: #e50914;
    --accent-color2: #ffee03;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
    --facebook-blue: #1877F2;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

.fw-thin {
    font-weight: 100;
}

.text-uppercase {
    font-size: 14px;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.link-hover {
    transition: 0.5s;
}

.link-hover:hover {
    color: var(--bs-primary) !important;
}

.img-zoomin {
    transition: 0.5s;
}

.img-zoomin:hover {
    transform: scale(1.1);
}

/*** Topbar Start ***/
.sticky-top {
    transition: 0.5s;
    background: var(--bs-white);
}

.topbar {
    padding: 10px 0;
}

.topbar .top-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

@media (max-width: 1400px) {
    .sticky-top .top-link {
        display: none;
    }
}

.topbar .top-link a {
    font-size: medium;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}

#note {
    position: relative;
    animation: noteAnimate 10s infinite;
    animation-timing-function: ease-in-out;
    display: flex;
    align-items: center;
}

@keyframes noteAnimate {
    from {left: -735px;}
    to {left: 735px;}
}

/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-expand-lg {
    justify-content: center;
}

.navbar .navbar-collapse {
    flex-grow: 0;
}

.navbar .navbar-nav {
    margin: 0 auto;
    display: flex;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-weight: 400;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        font-weight: 400;
        font-family: 'Fredoka', sans-serif;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.article-meta-info {
    color: #6c757d;
}

.meta2 {
    font-size: 12px;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse .border-top {
        border-top: none !important;
    }
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}

@media (max-width: 991px) {
    .navbar .navbar-nav {
        text-align: center;
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 10px 20px;
    }
}
/*** Navbar End ***/

/*** Features Start ***/
.features {
    width: 100%;
    background: linear-gradient(rgba(26, 125, 255, 0.5), rgba(255, 255, 255, 0.3)), url(../img/features-background.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
/*** Features End ***/

/*** Top News Start ***/
.news-2 h3 {
    position: relative;
}

.news-2 h3::after {
    content: "";
    line-height: 1.3rem;
    background: var(--bs-secondary);
    position: absolute;
    width: 68%;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    right: 0;
    opacity: 0.2;
}
/*** Top News End ***/

/*** Latest News Start ***/
.latest-news .latest-news-carousel.owl-carousel {
    position: relative;
}

.latest-news .latest-news-carousel.owl-carousel .owl-nav .owl-prev {
    position: absolute;
    top: -65px;
    right: 70px;
    font-size: 20px;
    padding: 2px 20px;
    transition: 0.5s;
    margin-right: 10px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-dark);
    border-radius: 20px;
}

.latest-news .latest-news-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: -65px;
    right: 0;
    font-size: 20px;
    margin-left: 10px;
    padding: 2px 20px;
    transition: 0.5s;
    border: 1px solid var(--bs-primary);
    color: var(--bs-dark);
    border-radius: 20px;
}

.latest-news .latest-news-carousel.owl-carousel .owl-nav .owl-prev:hover,
.latest-news .latest-news-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-radius: 10px;
}
/*** Latest News End ***/

/*** Whats New Start ***/
.populer-news .whats-carousel.owl-carousel {
    position: relative;
}

.populer-news .whats-carousel.owl-carousel .owl-nav .owl-prev {
    position: absolute;
    top: -80px;
    right: 70px;
    font-size: 20px;
    padding: 2px 20px;
    transition: 0.5s;
    margin-right: 10px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-dark);
    border-radius: 20px;
}

.populer-news .whats-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: -80px;
    right: 0;
    font-size: 20px;
    margin-left: 10px;
    padding: 2px 20px;
    transition: 0.5s;
    border: 1px solid var(--bs-primary);
    color: var(--bs-dark);
    border-radius: 20px;
}

.populer-news .whats-carousel.owl-carousel .owl-nav .owl-prev:hover,
.populer-news .whats-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-radius: 10px;
}

.populer-news .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.lifestyle .lifestyle-item {
    position: relative;
    overflow: hidden;
}

.lifestyle .lifestyle-item img {
    transition: 0.5s;
}

.lifestyle .lifestyle-item:hover img {
    transform: scale(1.2);
}

.lifestyle .lifestyle-item .lifestyle-content {
    position: absolute;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}
/*** Whats New End ***/

/*** Banner Section start ***/
.banner-2 {
    position: relative;
}

.banner-content-2 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(rgba(26, 125, 255, 0.7), rgba(255, 255, 255, 0.7));
    z-index: 2;
}
/*** Banner Section End ***/

/*** Footer Start ***/
.footer button:hover {
    background: var(--bs-white)  !important;
    color: var(--bs-primary) !important;
}

.footer .footer-item-1 .line-h {
    line-height: 38px;
}

.footer .footer-item-1 a i {
    transition: 0.5s;
}

.footer .footer-item-1 a:hover i {
    color: var(--bs-primary) !important;
}

.footer .footer-item-3 a {
    line-height: 38px;
}

.footer .footer-item-2 a {
    transition: 0.5s;
}

.footer .footer-item-2 a:hover {
    color: var(--bs-primary) !important;
}

.footer .footer-item-3 a {
    transition: 0.5s;
}

.footer .footer-item-3 a:hover {
    color: var(--bs-primary) !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-date {
    display: block;
    width: 100%;
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/*** Footer End ***/

/* ========================================
   CONTAINER & PADDING FIXES
   ======================================== */

.container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ========================================
   ARTICLE GRID - RESPONSIVE FIXES
   ======================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.article-main {
    grid-column: span 8;
}

.article-sidebar {
    grid-column: span 4;
}

/* MOBILE FIRST - Sur petit écran */
@media (max-width: 991px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-main {
        grid-column: span 1;
    }

    .article-sidebar {
        grid-column: span 1;
    }
}

/* ARTICLE CARD STYLES */
.article-card {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.article-card img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.article-category {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--facebook-blue);
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-title:hover {
    color: var(--accent-color);
}

.article-excerpt {
    color: black;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
}

/* IMAGE CONTAINERS - RESPONSIVE FIX */

/* Article principal - Respecte les proportions naturelles */
.article-main > .article-card:first-child {
    margin-bottom: 30px;
}

.article-main > .article-card:first-child img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Articles secondaires - Proportions naturelles */
.article-main .row .col-12,
.article-main .row .col-md-6 {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
}

.article-main .row .article-card {
    max-width: 100%;
    width: 100%;
}

.article-main .row .article-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* SECONDARY GRID - Articles récents */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.secondary-grid .article-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CARD HORIZONTAL (Sidebar) */
.card-horizontal {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-horizontal:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .card-horizontal {
        gap: 10px;
        padding-bottom: 10px;
    }
}

/* ARTICLE META */
.article-meta {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

/* NEWSLETTER SECTION */
.newsletter-section {
    background: var(--bg-light);
    padding: 40px 0;
    margin-top: 40px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 20px 0;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .input-group > * {
        width: 100%;
    }
}

/* BREAKING NEWS */
.breaking-news {
    background: var(--facebook-blue);
    color: #fff;
    padding: 12px 0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.breaking-news .d-flex {
    flex-wrap: wrap;
}

.breaking-news-label {
    background: #fff;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 15px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .breaking-news {
        padding: 10px 0;
    }
    
    .breaking-news-label {
        margin-right: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .breaking-news a {
        font-size: 13px;
    }
}

/* TOP HEADER */
.top-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .top-header {
        font-size: 12px;
    }
}

/* MAIN HEADER */
.main-header {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
}

.site-logo {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }
    
    .site-logo {
        font-size: 28px;
    }
    
    .main-header img {
        max-width: 100%;
        height: auto;
        max-height: 60px;
    }
}

/* MAIN NAV */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--facebook-blue);
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .main-nav .nav-link {
        font-size: 12px;
        padding: 12px 15px !important;
    }
}

/* ========================================
   ROW & COL BOOTSTRAP OVERRIDES
   ======================================== */

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 100% !important;
        padding: 0 !important;
    }
}