html {
  font-size: 14px;
}

@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;
}

@font-face {
    font-family: 'Athachantr';
    src: url('/fonts/AthachantrTrial-Regular.otf') format('opentype');
}

h1, h2, .fancy-title {
    font-family: 'Athachantr', serif;
}


html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/*nav*/
.main-nav {
    font-family: 'Athiti', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        display: inline-flex;
        align-items: center;
    }

    .main-nav a {
        text-decoration: none;
        color: teal;
        font-weight: 400;
        letter-spacing: 1px;
        transition: transform 0.2s ease, color 0.2s ease;
        font-variation-settings: "wght" 400;
        padding-bottom: 2px; /* Reserve space for border */
    }

        .main-nav a:hover {
            color: #008080;
        }

        .main-nav a.active {
            transform: scale(1.05); /* Slight emphasis without layout shift */
            border-bottom: 2px solid teal;
            font-variation-settings: "wght" 800;
        }
    .main-nav.open ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

.nav-logo img {
    height: 100px;
    width: auto;
}

/* Hamburger layout overrides */
.main-header {
    background-color: #156669;
    padding: 1rem;
    position: relative;
    z-index: 1000;
}

.hamburger {
    font-size: 32px;
    background: none;
    border: 2px solid white; /* white border */
    border-radius: 8px; /* rounded corners */
    color: #156669;
    cursor: pointer;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin-left: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* optional depth */
}

    .hamburger:hover {
        background-color: white;
        color: #156669;
    }

.main-nav {
    display: none;
    position: absolute;
    top: 50px; /* match navbar height */
    left: 0;
    max-width: 320px; /* constrain dropdown width */
    background-color: rgba(21, 102, 105, 0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 1rem;
    border-radius: 0 4px 4px 0; /* optional rounded edge */
}

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-nav a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
/* Logo layout fix */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

#navbarSupportedContent {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}
