﻿/* ========================================
   RESPONSIVE COLUMN PADDING
   ======================================== */

/* Add consistent horizontal padding to columns on mobile when they collapse to full width */
@media (max-width: 767.98px) {
    /* For col-md-* columns */
    [class*="col-md-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 991.98px) {
    /* For col-lg-* columns */
    [class*="col-lg-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Ensure container has consistent padding on mobile */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ========================================
   MOBILE WELCOME HEADER STYLES
   ======================================== */

/* Reduce welcome header font size on mobile to prevent wrapping */
/* Target screens from 576px to just before 768px (when hamburger menu is visible) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .mobile-welcome-header {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
}

/* Also handle very small screens */
@media (max-width: 575.98px) {
    .mobile-welcome-header {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
}

/* ========================================
   BASE STYLES
   ======================================== */

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/** Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0;
}

.body-content-padding {
    padding-left: 5px;
    padding-right: 5px;
}

/* Ensure body content is not restricted */
.body-content {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 20px !important;
    min-height: auto !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.center {
    margin-left: auto; 
    margin-right: auto;
    /*display: block;*/
    Width: 95%; 
}

.border-radius {
    /*border: solid #1f628d 4px;*/
    border-radius: 10px;
}

.HeaderStyle {
    text-align: Center;
}

.hide {
    visibility: hidden;
}

.show {
    visibility: visible;
}

.min-width {
    min-width: 100%;
}

.larger-font {
    font-size: larger;
}

.padding-left {
    padding-left: 15px;
}

.padding-right {
    padding-right: 20px;
}

.margin-top-25 {
    margin-top: 25px;
}

.margin-top-5 {
    margin-top: 5px;
}

.margin-bottom-25 {
    margin-bottom: 25px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.text-align-screen-size {
    text-align: justify;
}

.text-muted {
    color: #6c757d !important;
}

.text-justify {
    text-align: justify;
}

/* Ensure modals have at least 20px from top when opened */
.modal-dialog {
    margin-top: 100px !important;
}

/* ========================================
   FORM INPUT OVERRIDES
   ======================================== */

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
@media (min-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="select"] {
        max-width: 280px;
    }
}

/* Form Styles */
.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #003d82;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

/* Make navigation links fill navbar height */
.navbar {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 48px; /* Set explicit navbar height */
}

.navbar-nav.navbar-right:last-child {
    margin-right: 0;
}

/* Make nav links fill full navbar height */
.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0 !important;
    padding-top: 0;
    padding-bottom: 0;
    height: 48px; /* Match navbar height */
    display: flex;
    align-items: center; /* Vertically center text */
    transition: background-color 0.15s ease-in-out;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.1); /* Add background on hover */
    }

.navbar-dark .navbar-nav .nav-item.active .nav-link,
.navbar-dark .navbar-nav .show > .nav-link {
    color: #ffffff !important;
}

.navbar-link {
    color: #ccc
}

.navbar-inverse .navbar-link:hover {
    color: #fff
}

.navbar-default .navbar-text {
    color: #e0e0e0
}

.navbar-default .navbar-nav > li > a {
    color: #e0e0e0 /*#c8c8c8*/
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    margin-top: 0;
}

.navbar-header {
    width: 99%;
}

/* Ensure navbar toggler is visible */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Custom padding for navigation links */
/*.navbar-nav .nav-link {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}*/

/* Reduce padding on first and last nav items to align closer to container edges */
.navbar-nav > .nav-item:first-child .nav-link {
    margin-left: 0;
}

.navbar-nav.navbar-right > .nav-item:last-child .nav-link {
    margin-right: 0;
}

/* Fix for Bootstrap 5 dropdown nesting */
@media (min-width: 992px) {
    .dropdown-menu .dropdown-menu {
        margin-left: -1px;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* ========================================
   BREADCRUMB STYLES
   ======================================== */

.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border: none;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    background-image: none;
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
    filter: none;
    color: #e0e0e0;
}

    .breadcrumb > li {
        display: inline-block;
        color: #e0e0e0;
    }

        .breadcrumb > li + li:before {
            content: "/";
            padding: 0 5px;
            color: #e0e0e0;
        }

    .breadcrumb > .active {
        color: #e0e0e0;
    }

/* Breadcrumb links */
.breadcrumb-item a {
    color: #e0e0e0 !important;
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: #ffffff !important;
    }

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #F5F5F5;
}

/* Make Font Awesome home icon larger */
.breadcrumb-item a.fa-home {
    font-size: 1.0rem;
}

.glyphicon-home::before {
    content: "🏠";
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Header (Desktop only) */
#header {
    height: 75px;
    background-color: #272b30;
    border-bottom: 1px solid #1c1e22;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #808080;
    min-height: 16.42857143px;
}

#social-header {
    margin-top: 5px;
}

#header-title h1,
#header-title h2 {
    margin: 0;
    padding-top: 10px !important;
}

#header-title h1 a,
#header-title h2 a {
    color: white;
    text-decoration: none;
    display: inline-block;
}

#header-title h1 a:hover,
#header-title h2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#header-title,
#header-title a,
#header-title h1,
#header-title h2 {
    color: #fff !important;
    text-decoration: none;
}

.title-sitename-small {
    font-size: 1.5rem;
    font-weight: 600;
}

.title-small {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

#header-contact {
    padding-top: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #F5F5F5;
}

#header-contact i {
    margin-right: 8px;
    color: #c8c8c8;
}

/* Reduce Font Awesome email icon size */
#header-contact .fa-envelope {
    font-size: 0.9rem;
}

/* Reduce Font Awesome phone icon size */
#header-contact .fa-phone {
    font-size: 0.9rem;
}

#header-contact a {
    color: #FAEBD7;
    text-decoration: none;
}

#header-contact a:hover {
    text-decoration: underline;
}

/* ========================================
   JUMBOTRON STYLES
   ======================================== */

.jumbotron {
    padding: 0 !important;
    margin-bottom: 0 !important;
    background-color: #272b30;
}

.jumbotron h1 h2{
    color: #c8c8c8;
}

#JumboSlider {
    margin-bottom: 0 !important;
    height: 390px !important;
    max-height: 390px !important;
    overflow: hidden !important;
    background-color: #000;
    position: relative;
    padding: 0 !important;
    line-height: 0 !important;
}

#JumboSlider .container-fluid {
    height: 390px !important;
    max-height: 390px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* Hide carousel on mobile */
@media (max-width: 767px) {
    #JumboSlider {
        display: none !important;
    }
}

#JumboStatic {
    max-height: 90px;
    min-height: 90px;
    display: flex;
    align-items: center;
    background-color: #272b30;
    border: none;
    border-bottom: 1px solid #808080;
    overflow: hidden;
}

    #JumboStatic .container {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        border: none;
    }

    #JumboStatic h2 {
        margin: 0;
        line-height: 1.2;
        color: #c8c8c8;
    }

#JumboStatic img {
    max-width: 100px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile JumboStatic */
@media (max-width: 767px) {
    #JumboStatic {
        display: flex !important;
        max-height: 70px;
        min-height: 70px;
        padding: 5px 0;
    }
    
    #JumboStatic h2 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    #JumboStatic img {
        width: 50px;
        max-width: 50px;
        max-height: 50px;
    }
}

/* ========================================
   CAROUSEL STYLES
   ======================================== */

#MasterCarousel {
    height: 390px !important;
    max-height: 390px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.carousel {
    height: 390px !important;
    max-height: 390px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.carousel-inner {
    height: 390px !important;
    max-height: 390px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.carousel-item {
    height: 390px !important;
    max-height: 390px !important;
    min-height: 390px !important;
    background-color: #000;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    position: relative !important;
}

/* Absolute centering with transform */
.carousel-item > img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -moz-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    max-height: 390px !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: normal !important;
}

/* Carousel captions overlay */
.carousel-caption {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    color: #fff !important;
    text-align: center !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%) !important;
    line-height: normal !important;
}

.carousel-caption h2 {
    margin-bottom: 10px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.carousel-caption p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.carousel-caption .btn {
    margin-top: 10px;
}

/* Carousel Controls with Font Awesome Icons */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 15;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

/* Style the Font Awesome icons */
.carousel-control-prev i,
.carousel-control-next i {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators {
    bottom: 10px;
    z-index: 15;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ========================================
   CARD STYLES
   ======================================== */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Custom card background for Register/Login panels */
.slate-card-bg {
    background-color: #2e3338;
    border-radius: 10px;
    border: 1px solid #1c1e22;
    max-width: 380px;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
}

.slate-card-login {
    max-width: 280px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

/*.footer {
    padding: 18px 0;
}*/

/* Fix footer positioning to prevent content truncation */
footer {
    height: auto;
    /*position: relative !important;*/
    /*bottom: auto !important;*/
    width: 100%;
    background-color: #272b30;
    border-top: 1px solid #808080;
    text-align: left;
    padding: 10px 10px 0px;
    margin-top: 5px;
}

.modal-footer {
    margin-top: 0;
    padding: 19px 20px 20px;
    text-align: right;
    border-top: 1px solid #808080;/*Grey*/
}

/* ========================================
   DIGITAL CLOCK STYLES
   ======================================== */

.digiWatch {
    width: 260px;
    color: #abcdef;
    font-size: 32px;
    background-image: linear-gradient(to bottom, #000000, #999999);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    border: solid #1f628d 4px;
    margin: 0 auto 0;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    text-decoration: none;
}

.digiWatch2 {
    width: 240px;
    color: #abcdef;
    font-size: 32px;
    background-image: linear-gradient(to bottom, #000000, #999999);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    border: solid #1f628d 4px;
    margin: 0 auto 0;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    text-decoration: none;
}

.translator {
    font-size: 20px;
    -webkit-transform: scaleX(1.5);
    -moz-transform: scaleX(1.5);
    -ms-transform: scaleX(1.5);
    -o-transform: scaleX(1.5);
    transform: scaleX(1.5);
}

/* ========================================
   VISITOR COUNTER STYLES
   ======================================== */
.counter {
    margin: 20px 0;
    text-align: center;
}

.counter .small-font,
.counter .counter-font {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.counter-table {
    border-collapse: separate;
    border-spacing: 3px;
    margin: 0 auto;
}

.counter-border {
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 4px;
    text-align: center;
    min-width: 30px;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.5);
}

/* ========================================
   ALERT STYLES
   ======================================== */

.alert {
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#back-top a {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #eee;
    background-color: rgba(0,0,0,0.3);
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

    #back-top a:hover {
        background-color: rgba(0,0,0,0.7);
    }

    #back-top a i {
        font-size: 3em;
    }

/* ========================================
   GUESTBOOK STYLES
   ======================================== */
.guestbook-table {
    /*border: 10px solid #2a2e33;*/
    border: 10px solid #22262a;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    /* Remove overflow: hidden to prevent truncation */
}

.guestbook-table td {
    padding: 5px !important;
}

/* Ensure the table wrapper doesn't restrict height */
.guestbook-table tbody {
    max-height: none !important;
    overflow: visible !important;
}

/* Guestbook button responsive styles */
@media (max-width: 767px) {
    /* Reduce button size on mobile */
    .guestbook-enter-comment-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Vertically center button between header and table */
    .guestbook-button-container {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Reduce top margin on guestbook container */
    .guestbook-container {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 575px) {
    /* Further reduce button size on very small screens */
    .guestbook-enter-comment-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Tighter spacing on very small screens */
    .guestbook-button-container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .guestbook-container {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Responsive contact form submit button */
@media (max-width: 767.98px) {
    .contact-submit-btn {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
        width: 100% !important;
        display: block !important;
    }
}

/* Mobile Header Styles */
#mobile-header {
    background-color: #343a40;
    border-bottom: 1px solid #dee2e6;
}

#mobile-header h5 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

#mobile-header .navbar-toggler {
    border-color: rgba(255,255,255,.1);
    padding: 0.25rem 0.75rem;
}

#mobile-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Extra small devices (less than 400px) */
@media (max-width: 399.98px) {
    #mobile-header h5 a {
        font-size: 0.95rem;
    }
}

/* Medium mobile devices (500px to 767px) - larger h5 text */
@media (min-width: 500px) and (max-width: 767.98px) {
    #mobile-header h5 a {
        font-size: 1.5rem; /* h4 size */
    }
}

/* Ensure navbar doesn't show brand on mobile */
.navbar-expand-md .navbar-brand {
    display: none;
}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-brand {
        display: inline-block;
    }
}

/* ========================================
   MOBILE DROPDOWN MENU PADDING
   ======================================== */

/* Add left padding to dropdown items when navbar is collapsed (mobile) */
@media (max-width: 767.98px) {
    .navbar-collapse .dropdown-menu {
        padding-left: 15px;
    }
    
    .navbar-collapse .dropdown-item {
        padding-left: 15px;
    }
}



