@import url('https://fonts.googleapis.com/css2?family=PT+Serif&display=swap');

/* =========================
   Base / Layout
   ========================= */
html, body { height: 100%; }

body{
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: 'PT Serif', serif !important;
    font-size: 18px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Boxed outer wrapper */
.page-container{
    max-width: 1240px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    /* Critical: footer behavior */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grows; allows inner scrolling if you use it */
.main-content{
    flex: 1 1 auto;
    min-height: 0;
}

/* Boxed inner container */
.container-boxed{
    max-width: 1218px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   Language selector
   ========================= */
.language-selector{
    background-color: #F5F5F5;
    height: 21px;
    padding: 0;
    display: flex;
    align-items: center;
}

.language-selector .container-boxed{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 0;
}

.language-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.language-list li{ display: inline-block; }

.language-list a{
    font-size: 12px;
    color: #000;
    text-decoration: none;
    transition: color .3s ease;
}

.language-list a.active{
    color: #D73F09;
    font-weight: bold;
}

.language-list a:hover{ color: #D73F09; }

/* =========================
   Header / Navbar
   ========================= */
.full-width-header{
    width: 100%;
    background-color: #fff;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

/* container inside header */
.full-width-header .container-boxed{
    width: 100%;
    max-width: 1218px;
    margin: 0 auto;
    padding: 10px 20px;
}

.navbar{
    width: 100%;
    padding: 10px 0;
    margin: 0;
    font-family: "PT Serif", serif;
    font-size: 20px;
    font-weight: 600;
}

.navbar .container-boxed{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.navbar-nav{
    display: flex;
    gap: 15px;
    font-family: 'PT Serif', serif !important;
    font-size: 18px;
}

.navbar-nav .nav-item{ margin-right: 15px; }

/* Logo */
.site-logo{
    height: 100px;
    width: auto;
    display: block
}

.navbar .site-logo {
    margin-right: 20px;
}


/* Logo text */
.logo-text{
    margin-left: 6px; /* adjust closer/farther */
    line-height: 1.05;
}

.brand-title{
    font-size: 36px;
    font-weight: normal;
    color: #1C449B;
    margin: 0;
    line-height: 1.05;
}

.brand-subtitle{
    font-size: 16px;
    color: #1C449B;
    margin: 0;
    line-height: 1.05;
}

/* Special menu item */
.special-menu{
    background-color: #d73f09 !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

.special-menu:hover{
    background-color: #1C449B !important;
}

/* =========================
   Carousel
   ========================= */
#carouselExampleIndicators{
    max-height: 400px;
    overflow: hidden;
}

.carousel{
    margin-bottom: 10px !important;
}

.carousel-item img{
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px){
    #carouselExampleIndicators{ max-height: 250px; }
    .carousel-item img{ height: 250px; }
}

/* Carousel caption/button */
.custom-carousel-caption{
    position: absolute;
    bottom: 10%;
    left: 20%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: left;
}

.carousel-btn{
    display: inline-block;
    padding: 10px 20px;
    background-color: #d73f09;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.carousel-btn:hover{
    background-color: #007bff;
    transform: scale(1.05);
}

/* =========================
   Benefits section
   ========================= */
.benefits-box{
    max-width: 1218px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 6px solid #D73F09;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.benefits-title{
    font-size: 24px;
    font-weight: bold;
    color: #1C449B;
    margin-bottom: 15px;
}

.benefits-list{
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.benefits-list li{
    font-size: 18px;
    line-height: 28px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.arrow-icon{
    font-size: 20px;
    color: #000;
    margin-right: 10px;
}

/* =========================
   Footer
   ========================= */
.footer{
    background-color: transparent;
    padding: 0;
    text-align: center;
    margin-top: auto; /* critical */
}

.footer .container-boxed{
    background-color: #000;
    color: #fff;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

footer ul{ padding-left: 0; }
footer ul li{ list-style: none; margin-bottom: 8px; }

footer a{
    text-decoration: none;
    color: #ddd;
}
footer a:hover{ color: #fff; }

/* =========================
   Misc UI
   ========================= */
.tooltip-inner{
    background-color: #1C449B !important;
    color: #fff !important;
    font-size: 14px;
}

.bg-white{ background-color: #fff !important; }

/* =========================
   Orders (optional scroll area)
   ========================= */
.orders-table-scroll{
    max-height: calc(100vh - 380px);
    overflow: auto;
}

/* Show page card scrolling */
.order-card{
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.order-card-body{
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* =========================
   "Buttons" grid (home)
   ========================= */
.buttons {
    display: grid;
    grid-template-columns: repeat(3, 350px); /* smaller */
    grid-auto-rows: 250px;
    gap: 30px; /* keep distance */
    max-width: 100%;
    justify-content: center; /* keeps equal outer space */
}


.neumorphic{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 250px;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #1c449b;
    font-weight: 1000;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    border: 2px solid #f0f0f0;
    position: relative;
}

.neumorphic:hover{
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transform: translateY(-5px);
    border-color: #e0e0e0;
    color: #d73f09;
}

.neumorphic i{
    width: 97px;
    height: 85px;
    font-size: 75px;
    margin-bottom: 20px;
    transition: all .3s ease;
    color: #1c449b;
}

.neumorphic:hover i{ color: #d73f09; }

.neumorphic span{
    font-size: 1.7rem;
    text-align: center;
    font-weight: 700;
}
/* Rendered content tables */
.post-page table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d0d0;
}

.post-page table th,
.post-page table td {
    border: 1px solid #d0d0d0;
    padding: 8px 10px;
    vertical-align: top;
}

.post-page table:has(tbody tr:nth-child(4)) tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.post-page table:has(tbody tr:nth-child(4)) tbody tr:nth-child(even) td {
    background: #f3f3f3; /* light gray */
}

.post-page table th {
    background: #f5f5f5;
    font-weight: 600;
}

@media (max-width: 1200px){
    .buttons{
        grid-template-columns: repeat(2, 378px);
        grid-template-rows: repeat(3, 378px);
        max-width: 786px;
    }
}

@media (max-width: 800px){
    .buttons{
        grid-template-columns: 378px;
        grid-template-rows: repeat(6, 378px);
        max-width: 378px;
        gap: 20px;
    }
}

@media (max-width: 400px){
    .buttons{
        grid-template-columns: 320px;
        grid-template-rows: repeat(6, 320px);
        max-width: 320px;
        gap: 15px;
    }

    .neumorphic{
        width: 320px;
        height: 320px;
    }

    .neumorphic i{
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .neumorphic span{
        font-size: 1.1rem;
    }

    .logo-text{
        margin-left: 2px;
    }

    .brand-subtitle{
        font-size: 0.8rem;
        opacity: 0.8;
    }
}
