/*
 * Haïtien du Pays - Blog CSS
 * Couleurs du drapeau haïtien: Bleu #002d62 | Rouge #d21034
 */

/* ===== VARIABLES & RESET ===== */
:root {
    --haiti-blue: #002d62;
    --haiti-blue-light: #003d82;
    --haiti-red: #d21034;
    --haiti-red-dark: #a00d28;
    --primary-color: #002d62;
    --secondary-color: #d21034;
    --accent-color: #ffc107;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, var(--haiti-blue) 0%, var(--haiti-blue-light) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-left .date {
    color: var(--white);
}

.top-bar-right {
    text-align: right;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Logo */
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.logo-first {
    color: var(--haiti-blue);
}

.logo-second {
    color: var(--haiti-red);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 0.6rem 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--haiti-red);
    background: rgba(210, 16, 52, 0.05);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--haiti-red);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 75%;
}

.btn-search {
    background: var(--haiti-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--haiti-red);
    transform: scale(1.1);
}

/* ===== HERO SLIDER SECTION ===== */
.hero-slider-section {
    position: relative;
    min-height: 650px;
    background: var(--haiti-blue);
    overflow: hidden;
    margin-top: -1px;
}

.hero-slider {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Ancienne classe pour compatibilité */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--haiti-blue) 0%, var(--haiti-blue-light) 100%);
    overflow: hidden;
    margin-top: -1px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 45, 98, 0.7) 0%, rgba(210, 16, 52, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 0 60px 0;
}

.hero-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--haiti-red);
    color: #ffffff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    color: #ffffff;
}

.hero-title a {
    color: var(--white);
}

.hero-title a:hover {
    color: var(--accent-color);
}

.hero-excerpt {
    font-size: 1.05rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta .meta-item i {
    margin-right: 6px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--haiti-blue);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-color);
    color: var(--haiti-blue);
}

/* Slider Progress Circle */
.slider-progress-circle {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    opacity: 0.9;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.progress-ring {
    fill: none;
    stroke: var(--haiti-red);
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 0.1s linear;
}

/* Slider Navigation Vertical */
.slider-nav-vertical {
    position: absolute;
    right: 30px;
    bottom: 180px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    background: var(--haiti-red);
    border: none;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-nav-btn:hover {
    background: var(--haiti-red);
    opacity: 0.9;
    transform: scale(1.05);
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

/* Slider Thumbnails - Style Gmag */
.slider-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none;
    padding: 20px 0;
    z-index: 10;
}

.thumbnails-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--haiti-red) rgba(255, 255, 255, 0.1);
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: var(--haiti-red);
    border-radius: 3px;
}

.thumbnail-item {
    display: flex;
    gap: 15px;
    min-width: 320px;
    max-width: 320px;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* Ligne orange style Gmag - visible uniquement sur item actif */
.thumbnail-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item.active::before {
    opacity: 1;
}

.thumbnail-item:hover {
    background: transparent;
    transform: translateY(-3px);
}

.thumbnail-item.active {
    background: transparent;
}

.thumbnail-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image img {
    transform: scale(1.1);
}

.thumbnail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.thumbnail-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.thumbnail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.thumbnail-meta i {
    margin-right: 4px;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 60px 0;
    background: #fafbfc;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--haiti-red);
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 70px;
    width: 30px;
    height: 5px;
    background: var(--haiti-blue);
    border-radius: 3px;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.article-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    background: linear-gradient(135deg, var(--haiti-blue) 0%, var(--haiti-red) 100%);
}

/* Masque sombre sur toute l'image - Style Gmag */
.article-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.article-card:hover .article-card-image::after {
    opacity: 1;
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.article-card-category a {
    padding: 7px 16px;
    background: var(--haiti-red);
    color: var(--white);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(210, 16, 52, 0.3);
    transition: all 0.3s ease;
}

.article-card-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(210, 16, 52, 0.4);
}

.article-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    flex: 0;
    line-height: 1.4;
    font-weight: 700;
}

.article-card-title a {
    color: var(--text-dark);
    background-image: linear-gradient(var(--haiti-red), var(--haiti-red));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

.article-card-title a:hover {
    color: var(--haiti-red);
    background-size: 100% 2px;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #7a7a7a;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.article-card-meta span {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.article-card-meta i {
    margin-right: 6px;
    opacity: 0.7;
}

.article-card-excerpt {
    color: #5a5a5a;
    margin-bottom: 22px;
    line-height: 1.7;
    flex: 1;
    font-size: 15px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--haiti-blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--haiti-red);
    transition: width 0.3s ease;
}

.btn-read-more:hover {
    color: var(--haiti-red);
}

.btn-read-more:hover::before {
    width: calc(100% - 24px);
}

.btn-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    letter-spacing: -0.3px;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--haiti-red);
    border-radius: 2px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 52px;
    width: 20px;
    height: 3px;
    background: var(--haiti-blue);
    border-radius: 2px;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    padding-left: 8px;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popular-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 45, 98, 0.3), rgba(210, 16, 52, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popular-post-thumb:hover::after {
    opacity: 1;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-post-thumb:hover img {
    transform: scale(1.12);
}

.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    font-size: 14.5px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-weight: 600;
}

.popular-post-title a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.popular-post-title a:hover {
    color: var(--haiti-red);
}

.popular-post-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.popular-post-meta i {
    opacity: 0.8;
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.categories-list a:hover {
    background: var(--haiti-blue);
    color: var(--white);
    transform: translateX(8px);
    border-left-color: var(--haiti-red);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2);
}

.categories-list .count {
    color: #999;
    font-size: 13px;
    font-weight: 700;
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.categories-list a:hover .count {
    color: var(--haiti-blue);
    background: white;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #4a4a4a;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid #e8e8e8;
}

.tag-link:hover {
    background: var(--haiti-blue);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--haiti-blue);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.25);
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--haiti-blue) 0%, var(--haiti-blue-light) 100%);
    color: var(--white);
}

.widget-newsletter .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget-newsletter p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--haiti-blue);
    color: var(--white);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.social-links-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--haiti-red);
    color: var(--white);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--haiti-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn:hover {
    background: var(--haiti-blue);
    transform: translateY(-5px);
}

.scroll-top-btn.show {
    display: flex;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 16px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: var(--haiti-blue);
    color: white;
    border-color: var(--haiti-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--haiti-blue), var(--haiti-red));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 45, 98, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== FORM STYLES ===== */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--haiti-blue);
    box-shadow: 0 0 0 4px rgba(0, 45, 98, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--haiti-blue), var(--haiti-blue-light));
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--haiti-red), var(--haiti-red-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 16, 52, 0.3);
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--haiti-blue), var(--haiti-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 45, 98, 0.1);
    border-top-color: var(--haiti-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid;
    font-weight: 500;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px et +) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

    .logo-text {
        font-size: 28px;
    }
}

/* Tablet & Small Desktop (768px - 991px) */
@media (max-width: 991px) {
    /* Typography adjustments */
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .article-card-title {
        font-size: 1.3rem;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 0.5rem 0.8rem;
    }

    /* Logo */
    .logo-text {
        font-size: 26px;
    }

    .logo-tagline {
        font-size: 10px;
    }

    /* Sidebar */
    .sidebar {
        position: static;
        margin-top: 50px;
    }

    /* Grid adjustments */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Slider thumbnails */
    .thumbnail-item {
        min-width: 280px;
        max-width: 280px;
    }

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

    /* Footer */
    .footer-top {
        padding: 50px 0 30px;
    }

    /* Content spacing */
    .content-section {
        padding: 50px 0;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    /* Typography */
    body {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-meta {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Header adjustments */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .top-bar-left,
    .top-bar-right {
        text-align: center;
    }

    .social-links a {
        margin: 0 8px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-tagline {
        font-size: 9px;
    }

    /* Navigation - make it vertical for mobile */
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        border-radius: 8px;
    }

    /* Hero section */
    .hero-slider-section,
    .hero-slide,
    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        padding: 30px 0;
    }

    .btn-hero {
        padding: 12px 32px;
        font-size: 14px;
    }

    /* Slider controls */
    .slider-progress-circle {
        top: 15px;
        right: 15px;
    }

    .slider-progress-circle svg {
        width: 50px;
        height: 50px;
    }

    .slider-nav-vertical {
        right: 15px;
        bottom: 150px;
    }

    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .slider-thumbnails {
        padding: 15px 0;
    }

    .thumbnail-item {
        min-width: 240px;
        max-width: 240px;
        padding: 10px;
    }

    .thumbnail-image {
        width: 60px;
        height: 45px;
    }

    .thumbnail-title {
        font-size: 12px;
    }

    .thumbnail-meta {
        font-size: 10px;
    }

    /* Articles grid - single column */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-card-content {
        padding: 22px;
    }

    .article-card-title {
        font-size: 1.2rem;
    }

    .article-card-excerpt {
        font-size: 14px;
    }

    /* Widgets */
    .widget {
        padding: 22px;
        margin-bottom: 25px;
    }

    .widget-title {
        font-size: 1.2rem;
    }

    .popular-post-thumb {
        width: 75px;
        height: 75px;
    }

    .popular-post-title {
        font-size: 13.5px;
    }

    /* Pagination */
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 12px;
    }

    .pagination {
        gap: 6px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0 25px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* Content spacing */
    .content-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Scroll to top button */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    /* Typography - extra small screens */
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .hero-excerpt {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.5rem;
        padding-bottom: 15px;
    }

    .section-title::before {
        width: 50px;
        height: 4px;
    }

    .section-title::after {
        width: 25px;
        height: 4px;
        left: 60px;
    }

    /* Header */
    .top-bar {
        font-size: 11px;
        padding: 5px 0;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-tagline {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .btn-search {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Hero section */
    .hero-slider-section,
    .hero-slide,
    .hero-section {
        min-height: 450px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-category {
        margin-bottom: 15px;
    }

    .category-badge {
        padding: 6px 16px;
        font-size: 11px;
    }

    .btn-hero {
        padding: 10px 28px;
        font-size: 13px;
    }

    .hero-meta {
        gap: 10px;
        font-size: 0.75rem;
    }

    /* Slider controls - compact for very small screens */
    .slider-progress-circle {
        top: 10px;
        right: 10px;
    }

    .slider-progress-circle svg {
        width: 45px;
        height: 45px;
    }

    .slider-nav-vertical {
        right: 10px;
        bottom: 140px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .slider-thumbnails {
        padding: 10px 0;
    }

    .thumbnail-item {
        min-width: 200px;
        max-width: 200px;
        padding: 8px;
        gap: 10px;
    }

    .thumbnail-image {
        width: 55px;
        height: 40px;
    }

    .thumbnail-title {
        font-size: 11px;
    }

    .thumbnail-meta {
        font-size: 9px;
    }

    /* Articles */
    .articles-grid {
        gap: 20px;
    }

    .article-card {
        border-radius: 12px;
    }

    .article-card-content {
        padding: 18px;
    }

    .article-card-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .article-card-meta {
        gap: 12px;
        font-size: 12px;
        margin-bottom: 14px;
    }

    .article-card-excerpt {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .article-card-category a {
        padding: 6px 14px;
        font-size: 10px;
    }

    .btn-read-more {
        font-size: 13px;
    }

    /* Widgets */
    .widget {
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .widget-title::before {
        width: 40px;
    }

    .widget-title::after {
        width: 18px;
        left: 47px;
    }

    .popular-post-item {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .popular-post-thumb {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }

    .popular-post-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .popular-post-meta {
        font-size: 11px;
        gap: 12px;
    }

    .categories-list a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tag-link {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Pagination */
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-wrapper {
        margin-top: 35px;
    }

    /* Footer */
    .footer-top {
        padding: 35px 0 20px;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .footer-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .social-links-footer {
        gap: 8px;
        margin-top: 18px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Content spacing */
    .content-section {
        padding: 35px 0;
    }

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

    /* Scroll button */
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    /* Forms */
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* Extra Small Mobile (max 374px) */
@media (max-width: 374px) {
    .logo-text {
        font-size: 20px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .hero-slider-section,
    .hero-slide,
    .hero-section {
        min-height: 400px;
    }

    .thumbnail-item {
        min-width: 180px;
        max-width: 180px;
    }

    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider-section,
    .hero-slide,
    .hero-section {
        min-height: 400px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .slider-nav-vertical {
        bottom: 100px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for better usability */
    .navbar-nav .nav-link {
        padding: 0.8rem 1.2rem;
    }

    .btn-search {
        min-width: 44px;
        min-height: 44px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    .slider-nav-btn {
        min-width: 48px;
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .article-card:hover {
        transform: none;
    }

    .article-card:active {
        transform: translateY(-4px);
    }
}

/* ===== CATEGORY HEADER ===== */
.category-header {
    background: linear-gradient(135deg, var(--haiti-blue) 0%, var(--haiti-red) 100%);
}

.category-header .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Print Styles */
@media print {
    .site-header,
    .sidebar,
    .scroll-top-btn,
    .share-buttons {
        display: none;
    }
}
