
/* Custom Colors based on the provided design */
:root {
    --primary-color: #0b6066; /* Deep teal from the dark sections */
    --secondary-color: #e5a46e; /* Warm orange/gold for buttons and highlights */
    --background-light: #f5f4ef; /* Light beige background */
    --background-lighter: #ffffff; /* White */
    --text-dark: #333333;
    --text-light: #ffffff;
}

body { 
    font-family: 'Sarabun', sans-serif; 
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: var(--background-light) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand, .nav-link {
    color: var(--text-dark) !important;
}
.navbar-brand .fa-scale-balanced {
    color: var(--secondary-color) !important;
}
.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* The background-image is now dynamically set inline in PHP files to images/hero_bg.jpg */
    height: 70vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 50%, rgba(0,0,0,0) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 60%;
}
.hero-content h1 {
    color: var(--primary-color);
    font-weight: 700;
}
.hero-content p {
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* Common Components */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    display: inline-block;
    background-color: var(--background-light);
    padding: 0 20px;
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    font-weight: bold;
}
.title-line {
    border-top: 1px solid #ccc;
    position: relative;
    top: -25px;
    z-index: 1;
}

/* Features */
.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-lighter);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.feature-box h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon-container {
    text-align: center;
    padding: 30px 0 10px;
}
.service-icon-box {
    display: inline-block;
    padding: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
}
.service-icon-box i {
    font-size: 2rem;
    color: var(--secondary-color);
}
.service-card .card-body {
    padding: 20px 30px 40px;
}
.service-card h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.service-card ul li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.service-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-light);
}
.btn-custom {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 20px;
    padding: 8px 30px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-custom:hover {
    background-color: #d4935d;
    color: var(--text-light);
}

/* Blog Section */
.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-lighter);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.blog-card img {
    height: 200px;
    object-fit: cover;
}
.blog-card .card-body {
    padding: 20px;
}
.blog-card h5 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Quick Consult Section */
.consult-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}
.consult-section h2 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}
.consult-form .form-control {
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
    padding: 12px;
}
.consult-form .btn {
    background-color: var(--secondary-color);
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
}

/* Footer */
.footer {
    background-color: #222222;
    color: #cccccc;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}
.footer h5 {
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 20px;
}
.footer a {
    color: #cccccc;
    text-decoration: none;
}
.footer a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-icons a {
    color: #cccccc;
    margin-left: 15px;
    font-size: 1.2rem;
}

/* Generic Layout Fixes */
.hero-padding { padding-top: 100px; padding-bottom: 100px; }
.card-img-top { cursor: pointer; transition: transform 0.3s; }
.card-img-top:hover { transform: scale(1.05); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-position: center right 20% !important; /* Adjust background position for mobile */
    }
}
