.slider-text-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.slider-text-overlay p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .slider-text-overlay h1 {
        font-size: 2rem;
    }

    .slider-text-overlay p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Header Modernization (North Sea Port Style)
   ========================================================================== */

/* Page Layout Optimization */
.main {
    background-color: #f7f9fc;
    min-height: 80vh;
}

/* Set carousel to full screen height */
.slider-container .img-carou {
    height: calc(100vh - 114px);
    object-fit: cover;
}

#header {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
}

#header .header-top.header-top-default {
    background: transparent;
}

#header.header-effect-shrink .header-body {
    background-color: transparent;
}

#header .header-body {
    border: 0;
    background-color: red !important;
    background-color: transparent !important;
}

/* Set initial header heights */
#header .header-top {
    height: 40px;
    min-height: 40px;
}

/* Set initial header heights */
#header .header-container {
    height: 70px;
}

/* Add smooth transitions for background and color changes */
#header .header-body,
#header .header-nav-top .nav>li>a,
#header .header-nav-main nav>ul>li>a,
#header .header-nav-features .header-nav-top-icon,
#header .dropdown-menu-toggle-text {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Slider Text Overlay */
.slider-container {
    position: relative;
}

.slider-text-overlay {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 10;
    color: #ffffff;
    max-width: 50%;

}

/* Modern Pagination */
.modern-pagination .pagination {
    margin-bottom: 0;
}

.modern-pagination .page-item .page-link {
    border: 0;
    margin: 0 3px;
    border-radius: 4px !important;
    color: #444;
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modern-pagination .page-item.active .page-link {
    background-color: #0088cc;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

.modern-pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    color: #0088cc;
    transform: translateY(-2px);
}

.modern-pagination .page-item.disabled .page-link {
    background-color: transparent;
    opacity: 0.5;
}

/* --- REFINED SIDEBAR REDESIGN (Porto/Standard Consistency) --- */
.fresh-sidebar-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Consistent Card */
.premium-sidebar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    /* Matching standard site radius */
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* shadow-sm equivalent */
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    color: #444;
}

.premium-sidebar-card:hover {
    background-color: #f8f9fa;
    border-color: #0088cc;
    color: #0088cc;
}

/* Card Content: Icon + Title Group */
.card-content-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f9;
    border-radius: 6px;
    color: #0088cc;
    transition: background-color 0.2s ease;
}

.premium-sidebar-card:hover .card-icon-wrapper {
    background: #0088cc;
    color: #ffffff;
}

.card-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.premium-sidebar-card:hover .card-title-text {
    color: #0088cc;
}

/* Right Side: Indicators */
.card-indicator-right {
    display: flex;
    align-items: center;
}

.premium-badge {
    background: #f8f9fa;
    color: #0088cc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.premium-sidebar-card:hover .premium-badge {
    color: #fff;
    background: #0088cc;
    border-color: #0088cc;
}

/* Weather Widget Wrapper */
.premium-weather-card {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.weather-header {
    background: #0088cc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 15px;
    letter-spacing: 0.5px;
}

.weather-inner {
    background: #ffffff;
    overflow: hidden;
}

/* Section Labeling */
.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.25rem 0 0.5rem 0.25rem;
}

.sidebar-label:first-of-type {
    margin-top: 0;
}

/* Equipment and Terminal Cards (Modern Design) */
.equip-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none !important;
}

.equip-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #0f4770;
}

.equip-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.equip-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.equip-card-modern:hover .equip-img-container img {
    transform: scale(1.1);
}

.equip-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.equip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c223a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.equip-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
}

.equip-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.equip-capacity {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0f4770;
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .equip-badge {
    right: auto;
    left: 15px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1.5rem auto 3rem;
    border-radius: 2px;
}


/* Hover Motion for Cereal Section rows */
.cereal-row-hover {
    transition: all 0.3s ease;
}

.cereal-row-hover:hover {
    transform: translateX(10px);
    background-color: rgba(255, 255, 255, 0.1) !important;
}


[dir="rtl"] .cereal-row-hover:hover {
    transform: translateX(-10px);
}

/* --- FEATURED ARTICLES SIDEBAR WIDGET --- */
.featured-articles-widget .premium-sidebar-card {
    border-top: 3px solid #0088cc;
    transition: transform 0.3s ease;
}

.featured-articles-widget .premium-sidebar-card:hover {
    transform: translateY(-5px);
}

.featured-item h6 {
    line-height: 1.4;
    min-height: 40px;
}

.featured-item a {
    transition: color 0.3s ease;
}

.featured-item a:hover {
    color: #0088cc !important;
}

.featured-articles-widget .owl-dots {
    margin-top: 10px !important;
    line-height: 1 !important;
}

.featured-articles-widget .owl-dot span {
    width: 6px !important;
    height: 6px !important;
    margin: 3px !important;
    background: #e9ecef !important;
    transition: all 0.3s ease !important;
}

.featured-articles-widget .owl-dot.active span {
    background: #0088cc !important;
    width: 15px !important;
}

/* ==========================================================================
   Responsive 'Nos lignes régulières' Section
   ========================================================================== */
@media (max-width: 575px) and (orientation: portrait) {
    .nos-lignes-section {
        height: 400px !important;
        background: white !important;
        background-image: url('../img/ann/nos-lignes-home.jpg') !important;
        background-attachment: unset !important;
        background-size: 100vw !important;
        background-repeat: no-repeat !important;
        background-position: bottom !important;
    }

    .nos-lignes-section h2 {
        color: #0088cc !important;
        /* Primary color */
        text-shadow: none !important;
    }

    .nos-lignes-section>div {
        align-items: flex-start !important;
        /* Equivalent to start */
    }

    .port-diagram-section {
        height: 160px !important;
        background-image: url('../img/ann/port-1.png') !important;
        background-attachment: unset !important;
        background-size: 100vw !important;
        background-repeat: no-repeat !important;
    }

    /* Fixed first column in Berth Table - Clean Approach */
    .table-improved.table-sticky-first {
        overflow: visible !important;
        transform: none !important;
    }

    .table-sticky-first th:first-child,
    .table-sticky-first td:first-child,
    .table-sticky-first .sticky-cell {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 0 !important;
        z-index: 10 !important;
        background-color: #fff !important;
    }

    .table-has-rowspan td:first-child:not(.sticky-cell) {
        position: static !important;
    }

    .table-sticky-first thead th:first-child,
    .table-sticky-first thead tr {
        background-color: #343a40 !important;
        color: #fff !important;
    }

    .table-sticky-first tbody tr:nth-child(odd) td:first-child {
        background-color: #f6fafd !important;
        /* Match striped background */
    }

    /* Nautical Info SVG Responsive Adjustments */
    .plan-eau-svg {
        width: 300px !important;
        height: 225px !important;
    }

    .vents-maree-svg {
        width: 15.5rem !important;
        height: 15.5rem !important;
        margin-left: 0 !important;
        /* Centering fix for mobile */
    }

    /* Gare Maritime Responsive Padding Adjustments */
    .advantages-col-content {
        padding: 1rem !important;
        /* Equivalent to p-3 (1rem = 16px) */
    }

    /* RSMI Responsive Timeline (Vertical) */
    .responsive-timeline-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 0 20px 20px !important;
        overflow: visible !important;
    }

    .timeline-progress-bg,
    .timeline-progress-bar {
        width: 4px !important;
        height: 100% !important;
        left: 55px !important;
        /* Centered relative to 80px icons + container padding offset */
        top: 0 !important;
    }

    .timeline-item {
        margin-bottom: 40px !important;
        padding-left: 100px !important;
        width: 100% !important;
        flex: none !important;
        text-align: left !important;
    }

    .timeline-icon-box {
        position: absolute !important;
        left: 10px !important;
        top: 0 !important;
        margin-bottom: 0 !important;
    }

    .modern-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header-modern h1 {
        font-size: 1.75em !important;
    }

    #table_files td:nth-child(1) {
        padding: 0;
        padding-left: 5px;
    }

    #table_files td:nth-child(2) h5 {
        width: 133px;
    }
}