@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Inter-Regular.woff2') format('woff2'),
        url('/fonts/Inter-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    src: url('/fonts/Inter-Italic.woff2') format('woff2'),
        url('/fonts/Inter-Italic.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/Inter-Medium.woff2') format('woff2'),
        url('/fonts/Inter-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 500;
    src: url('/fonts/Inter-MediumItalic.woff2') format('woff2'),
        url('/fonts/Inter-MediumItalic.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Inter-Bold.woff2') format('woff2'),
        url('/fonts/Inter-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    src: url('/fonts/Inter-BoldItalic.woff2') format('woff2'),
        url('/fonts/Inter-BoldItalic.woff') format('woff');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
main {
    flex: 1;
    min-height: 0;
}

/* Navigation Menu (inspired by hello-friend-ng) */
.menu {
    background-color: #137bea;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.menu__logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 300 !important;
    object-fit: contain !important;
}

.menu__logo {
    color: #67a2c9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.menu__logo:hover {
    color: #fff;
}

.menu__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu__item {
    position: relative;
}

.menu__link {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.menu__link:hover {
    color: #67a2c9;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2b2c;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu__item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid #3a3b3c;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.submenu a:hover {
    background-color: #67a2c9;
}

/* Hero Section (Split Screen) */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: 0;
    height: 100%;
 }
.hero__image {
    /* background-color: #eee; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.carousel__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel__item.active {
    opacity: 1;
}

.carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #0ce7e7;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    padding: 10px 16px;
}

.hero__image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; 
}

.hero__content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1b1c1d;
}

.hero__content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero__text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Content Styles */
.content, .section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.content header, .section header {
    margin-bottom: 30px;
}

.content h1, .section h1 {
    font-size: 2.5rem;
    color: #1b1c1d;
    margin-bottom: 10px;
}

.content time {
    color: #666;
    font-size: 0.9rem;
}

.content__body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content__body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content__body ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content__body li {
    margin-bottom: 8px;
}

.content__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.4;
}

.content__body table.legend {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.content__body table.legend td {
    border: none;
    padding: 2px 12px;
}

.content__body td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.content__body mark,
.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
}

.content__body .text-red {
    color: #e53935;
}

.content__body .text-blue {
    color: #137bea;
}

.page-list {
    list-style: none;
    margin-top: 30px;
}

.page-list__item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-list__item a {
    color: #1b1c1d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.page-list__item a:hover {
    color: #67a2c9;
}

.page-list__item p {
    margin-top: 10px;
    color: #666;
}

/* Footer */
footer {
    background-color: #666;
    color: #fff;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero__content {
        padding: 40px 20px;
    }
    
    .hero__content h1 {
        font-size: 2rem;
    }
    
    .menu__inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    
    .menu__list {
        margin-top: 10px;
        gap: 20px;
    }

    .carousel {
        min-height: 300px;
    }

    .carousel__caption {
        font-size: 1.1rem;
        padding: 8px 12px;
        line-height: 1.3;
    }

    /* Let the page flow naturally on mobile instead of forcing a
       fixed-height internal scroll box, which caused the footer to
       overlap the end of blog/content text. */
    body {
        height: auto;
        min-height: 100vh;
    }

    .content, .section {
        max-height: none;
        overflow-y: visible;
        margin: 20px auto;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #137bea;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    background-color: #137bea;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #0f5fbf;
}
