/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0
}

body {
    font-family: Calibri, sans-serif !important;
    font-size: 14px;
    line-height: 18px;
    color: #313131;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}


@font-face {
    font-family: 'calibri';
    src: local('Calibri'), local('Calibri-Regular');
    font-weight: normal;
    font-style: normal;
}

/*      Navbar       */

#my-navbar {
    border: none;
    background: none repeat scroll 0 0 #1e1e1e;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 10px 0;
}

.navbar-brand {
    float: left;
    display: flex;
    align-items: center;
}

.menu-area {
    float: right;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: lighter;
}

.menu-area li,
a {
    display: inline-block;
    text-decoration: none !important;
}

nav.navbar-default ul.menu-area li a:hover {
    color: #246543;
}

/* Mobile navbar adjustments */
@media (max-width: 767px) {
    .navbar-collapse {
        background: #1e1e1e; /* Match navbar background */
        padding: 10px;
    }
    .menu-area {
        float: none;
        text-align: center;
    }
    .menu-area li {
        display: block;
        margin: 10px 0;
    }
    .navbar-toggle {
        border-color: #fff;
    }
    .navbar-toggle .icon-bar {
        background-color: #fff;
    }
}

.header_area {
    margin-top: 80px;
}

.logo {
    margin-bottom: 3%;
    width: 100%;
    text-align: left;
}

.logo img {
    height: auto;
    max-width: 200px;
    width: 60vw;
}

/* Icons */
.icon {
    margin: 0 5% 0 0; /* Default for larger screens */
    text-align: right;
}

.icon a {
    background: none repeat scroll 0 0;
    border-radius: 50%;
    color: #126a6d;
    font-size: 18px;
    padding: 1% 2%;
    margin: 0 1% 3% 1%;
}

.icon a:hover {
    background: #246543;
    color: #fff;
}
/* Mobile adjustments */
@media (max-width: 767px) {
    .header_area {
        margin-top: 60px; /* Slightly smaller for mobile */
    }
    .logo {
        text-align: center;
        margin-bottom: 10px;
        padding: 5px;
    }
    .logo img {
        max-width: 120px;
        width: 40vw;
    }
    .icon {
        margin: 10px 0;
        text-align: center;
    }
    .icon a {
        font-size: 16px;
        margin: 5px;
        padding: 8px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .logo img {
        max-width: 150px;
        width: 50vw;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .logo img {
        max-width: 200px;
        width: 30vw;
    }
}

.slider_area {}

.carousel-inner {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    /* center vertically (within carousel height) */
}

.carousel-inner .item img {
    max-width: 100%;
    /* prevent overflow */
    height: auto;
    /* keep proportions */
    margin: auto;
    /* extra safety centering */
    display: block;
}

/* Range */

.single_range .desc {
    display: none;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

.single_range .desc.show {
    display: block;
}

.range_area {
    margin-top: 6%;
}

.single_range {
    text-align: center;
}

.single_range h3 {
    margin-top: 15px;
}

.single_range a {
    background: none repeat scroll 0 0 #d1d1d1;
    border-radius: 50%;
    font-size: 28px;
    padding: 10px 20px;
    color: #000;
}

.single_range p {
    color: #3a3a3a;
    font-size: 14px;
    padding: 0 15px;
    text-align: justify;
}

.title {
    font-family: Calibri, sans-serif !important;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    color: #313131;
}

.welcome_area {
    margin: 50px 0;
    text-align: center;

}

.welcome_desc {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    padding: 23px 0;
    font-family: Calibri, sans-serif !important;
    text-transform: uppercase;
}

.welcome_desc p {
    font-size: 18px;

}

.welcome_desc h3 {
    font-size: 30px;
    margin-top: -5px;

}

.the-icons {
    font-size: 12px;
    list-style: outside none none;
    padding: 0;
}

.the-icons li {}

.the-icons li i {
    margin-right: 10px;
}

.grey {
    color: #9d9d9d;
}


.arrow_link {
    color: #246543;
}

a.arrow_link:hover {
    color: #lelele;
    text-decoration: none;
}

.latest_project {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* responsive grid */
    gap: 20px;
    margin-bottom: 75px;
    justify-items: center;
    /* center each project block */
    text-align: center;
    /* center text inside */
}

.latest_project img {
    max-width: 100%;
    /* image scales responsively */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    /* center + spacing below */
}

.project_item {
    max-width: 50%;
    /* text width tied to image width */
    word-wrap: break-word;
    /* long words won’t overflow */
    overflow-wrap: break-word;
}

/*            Footer (Sub)              */

.footer_area {
    border-top: 4px solid #313131;
    padding-top: 45px
}

.single_footer {
    min-height: 400px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
}

.contact_info h4{
    font-family: Calibri, sans-serif !important;
    text-transform: uppercase;
    font-size: 18px;
}

/* News Section */
#news-container .single-news {
    text-align: left;
}

#news-container h4 {
    font-size: 16px;
    font-weight: bold;
}

#news-container small {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

/* Form Validation Styles */

/* Hide invalid-feedback by default */
.invalid-feedback {
    display: none;
    color: #dc3545;
    /* Bootstrap's default danger color */
    font-size: 0.875rem;
    /* Slightly smaller font for feedback */
    margin-top: 0.25rem;
    /* Consistent spacing */
    padding: 0.25rem 0.5rem;
    /* Light padding for readability */
    background-color: #f8d7da;
    /* Light red background */
    border-radius: 0.25rem;
    /* Rounded corners */
}

/* Show invalid-feedback when input is invalid */
.was-validated .form-control:invalid~.invalid-feedback,
.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* Optional: Style valid inputs for better UX */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    /* Bootstrap's success color */
    background-image: none;
    /* Remove default Bootstrap checkmark */
}

/* Style for message-container (success/error messages from EmailJS) */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Style for form buttons */
.form_btn {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
}

/* Footer Bottom Section */
.footer_btm {
    background: none repeat scroll 0 0 #1e1e1e;
    padding: 30px 0
}

.foot_logo {
    margin-bottom: 5px;
    width: 100%;
    text-align: left;
}

.foot_logo img {
    height: auto;
    max-width: 200px;
    width: 60vw;
}

.foot_logo p {
    color: #5f5f5f;

}

.foot_right {
    margin-top: 20px;

}

.foot_icon {
    text-align: right;
    margin-top: 5px;

}

.foot_icon a {
    color: #393939;
    font-size: 26px;
    margin-right: 10px;
}

.foot_icon a:hover {
    color: #5b5b5b;

}

.foot_icon {}

.foot_search {}

.foot_search input {
    background: none repeat scroll 0 0 #393939;
    border: medium none;
    font-style: italic;


}

.form-control::-moz-placeholder {
    color: #000;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* Contact form */
#contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
}

#contact-form textarea {
    resize: none;
}

#contact-form .btn {
    border-radius: 0.5rem;
    font-weight: 600;
}

.msg_sec input,
.msg_sec textarea {
    background: none repeat scroll 0 0 #ebddd3;
    margin-bottom: 5px;
    font-style: italic;
}

.msg_sec p,
h4 {
    margin-bottom: 0;
    text-align: end;
}

input.form_btn {
    background: none repeat scroll 0 0 #126a6d;
    color: #ffffff;
    font-size: 14px;
    font-style: normal;
    text-transform: uppercase;
}

input.form_btn:hover {
    border: 1px solid #1d3529;
}

/* Map wrapper */
#map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#map-wrapper .map-frame {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    margin-bottom: 2%;
}

@media (max-width: 768px) {
    #map-wrapper .map-frame {
        min-height: 350px; /* Adjusted for smaller screens */
    }
}

/* Ensure consistent height across footer sections */
.single_footer {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.footer_top .row {
    align-items: stretch; /* Ensure all columns match the tallest */
}

/* Responsive Logo Sizing */

@media (max-width: 576px) {
    .logo img,
    .foot_logo img {           /* Logo (small) */
        max-width: 60vw;
    }
}

@media (max-width: 577px) and (min-width: 768px) {
    .logo img,
    .foot_logo img {           /* Logo (medium) */
        max-width: 55vw;
    }
}

@media (max-width: 769px) {
    .logo img,
    .foot_logo img {           /* Logo */
        max-width: 50vw;
    }
}

@media (max-width: 576px) {
    .logo, .foot_logo {
        padding: 5px;
    }
}


/*? About Page Adjustments ?*/

/* Column */
.column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Organogram */
.organogram {
    max-width: 100%; /* Full width of col-md-6 */
    height: auto;
    margin-top: 20px;
}

/* Phone adjustments (≤576px) */
@media (max-width: 576px) {
    .about-container {
        margin: 20px 0; /* Reduced vertical spacing for mobile */
    }
    .column {
        padding: 0 8px; /* Match container padding */
    }
    .organogram {
        max-width: 100%;
        margin: 15px 0; /* Reduced margin for mobile */
    }
    .col-md-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Tablet adjustments (577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .organogram {
        max-width: 80%; /* Slightly smaller for tablets */
        margin: 15px auto; /* Center with auto margins */
    }
}