/*-------------------------- Sri Lanka Trekking--------------------------- */

body {
    font-size: 16px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: url(images/back.gif) repeat #4D662C;
    margin: 0;
    padding: 0;
}

html, body, #page, h1, h2, h3 {
    margin: 0;
    padding: 0;
}

/* Modern Fluid Main Container */
#page {
    margin: auto;
    width: 100%;
    max-width: 1400px; /* Balanced max-width to suit the enlarged navigation tabs */
    position: relative;
    background: #607C3C;
    box-sizing: border-box;
}

/* Ensure padding calculations don't break container widths */
*, *:before, *:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, p, a {
    color: #FFFFFF;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
}

.logo2 { display: none; }
iframe { display: none !important; }

a {
    text-decoration: none;    
}

p {
    background-color: #607C3C;
    line-height: 1.6; /* Improved text readability */
    margin-top: 0;
    margin-bottom: 1rem;
}

/*---------------------------------Header style----------------------------------------*/
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 104px;
    padding: 10px 20px;
    flex-wrap: wrap; /* Allows wrap on ultra-small screens */
}

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

#header .navtop {
    padding-right: 10px;
}

/*-----------------------------------Menu------------------------------------------- */
#menu {
    display: block;
    width: 100%;
    min-height: 115px; /* Support much larger tabs */
    background-color: #364B1A;
    padding: 0 20px; /* Symmetrical padding matching the content area below */
}

#menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Wraps navigation cleanly onto new rows on mobile grids */
}

#menu li {
    flex: 1 1 0; /* Forces all tabs to be exactly the same size and share space equally */
    min-width: 0;
}

#menu a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px; /* Increased font size for significantly larger text appearance */
    min-height: 115px; /* Taller tab layout */
    padding: 15px 10px; /* Optimized padding for equal distribution across the menu width */
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    color: #FFFFFF;
    border-right: #4c652c 1px solid;
    background-position: bottom 12px center !important; /* Adjusted icon placement for the extra height */
}

#menu li:first-child a {
    border-left: #4c652c 1px solid; /* Clean edge border definition to start the menu block */
}

#menu .trekking a { background: #364B1A url(images/trekking.gif) bottom center no-repeat; }
#menu .biking a { background: #364B1A url(images/guest.png) bottom center no-repeat; }
#menu .camping a { background: #364B1A url(images/camping.gif) bottom center no-repeat; }
#menu .canoing a { background: #364B1A url(images/canoing.gif) bottom center no-repeat; }
#menu .bwatching a { background: #364B1A url(images/birdwatching.gif) bottom center no-repeat; }
#menu .foods a { background: #364B1A url(images/foods.gif) bottom center no-repeat; }
#menu .transport a { background: #364B1A url(images/transport.gif) bottom center no-repeat; }
#menu .info a { border-right: #4c652c 1px solid; background: #364B1A url(images/info.gif) bottom center no-repeat; }

/*---------------------------------Page Photos Layout----------------------------------*/
/* This rule targets content photos, forcing them to span from the absolute left border to the right border */
.page-photo, #page main img, #page .content img {
    width: 100%;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: 0;
}