/*
    Theme Name:     Barging-theme (Modernized 2026)
    Theme URI:      https://internationalbargingtours.com
    Description:    Barging-theme updated for WordPress 7.0 and PHP 8.4
    Author:         HainesDesign
    Version:        2.0.0
*/

/*------------------------------------*\
    MAIN & GLOBAL
\*------------------------------------*/

*,
*:after,
*:before {
    box-sizing: border-box; /* Modern standard: no prefixes needed */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    color: #576267;
    font-family: "proxima-nova", Helvetica, sans-serif; /* Example Typekit font name */
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
}

/* Ensure background images are responsive */
.background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    object-fit: cover;
}

#wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 0 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/*------------------------------------*\
    WORDPRESS CONTENT STANDARDS
\*------------------------------------*/

/* Modern Gutenberg Block Support */
.alignleft, 
.wp-block-image .alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.alignright, 
.wp-block-image .alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.aligncenter, 
.wp-block-image .aligncenter {
    display: block;
    margin: 10px auto;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto; /* Ensures images don't distort on mobile */
}

/*------------------------------------*\
    LAYOUT & NAVIGATION
\*------------------------------------*/

header {
    padding: 20px 0;
    border-bottom: 4px solid #1C2E48;
}

#headerNav {
    float: right;
    text-align: right;
}

.menu-tour ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-tour li {
    display: inline-block;
    margin-left: 15px;
}

/*------------------------------------*\
    SIDEBAR & CONTENT
\*------------------------------------*/

#container {
    display: flex; /* Modern flexbox instead of just floats */
    flex-wrap: wrap;
    padding: 40px 0;
}

#Sidebar1 {
    width: 200px;
    padding-right: 20px;
}

.content-two-col {
    flex: 1;
    padding-left: 20px;
}

/*------------------------------------*\
    FOOTER
\*------------------------------------*/

.footer {
    background: #1C2E48;
    color: #fff;
    padding: 20px;
    margin-top: 40px;
    font-size: 13px;
}

.footer a {
    color: #FFAB3E;
    text-decoration: none;
}

/*------------------------------------*\
    PRINT & MOBILE
\*------------------------------------*/

@media only screen and (max-width: 768px) {
    #Sidebar1, 
    .content-two-col, 
    .sidebar2 {
        width: 100% !important;
        float: none !important;
        padding: 0;
    }
}

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}