:root {
    --primary-color: #943726;
    --primary-hover: #7a2d1e;
    --light-bg: #f8f9fa;
    --text-dark: #2f3633;
}

body {
    font-family: 'kanit', sans-serif;
    color: var(--text-dark);
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight:500;
}
h2 {
    color:var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-dark) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    /* background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center; */

    position: relative;
  /* ตั้ง flex container ให้จัดกลาง */
  display: flex;                /* หรือใช้ display: grid; */
  justify-content: center;      /* จัดกลางแนวนอน */
  align-items: center;          /* จัดกลางแนวตั้ง */
  
  /* พื้นหลังภาพ + overlay */
  background-image: url('../Images/banner.jpg');
  background-size: cover;
  background-position: center;
  height: 50vh;       
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
   background: 
   linear-gradient(
    195deg, 
    rgb(101 27 13 / 100%),
    rgb(130 126 124 / 82%)
   )
  }
  
  .hero-section .container {
    position: relative;
    z-index: 1;
    text-align: center;           /* จัดข้อความให้ชิดตรงกลาง */
    color: #fff;                  /* ปรับสีตัวอักษร */
  }

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0;
    font-weight:300;
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 7px 25px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    color:#fff;
}

.btn-outline-custom {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 28px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Mobile Login Button */
.btn-mobile-login {
    background-color: #FFC107;
    border: 1px solid #FFC107;
    color: var(--text-dark);
    padding: 6px 20px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-mobile-login:hover {
    background-color: #FFB300;
    border-color: #FFB300;
}

/* Section Styling */
/* .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
} */

/* .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
} */

/* Table Styling */
.custom-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.custom-table thead {
    background-color: var(--light-bg);
}

.custom-table th {
    font-weight: 600;
    color: var(--text-dark);
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
}

.custom-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Process Steps */
.process-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height:100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.process-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

#info {
    background-color: #fff0e7;
}
#info li a,
#info li {
    color: var(--text-dark);
    text-decoration :none;
}
a {
    color: var(--text-dark);   
}
.navbar a {
    text-decoration: none;
}

/* Info Cards */
.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.info-card i,
.process-number {
    display: inline-block;  
    font-size: 48px;  
    background-image: linear-gradient(45deg, #953726 46%, #ed6826 58%);
    background-size: 100%;             /* ปรับขนาดกริดสำหรับอนิเมชันหรือการจัดตำแหน่ง */  
    -webkit-background-clip: text;     
    background-clip: text;             
    -webkit-text-fill-color: transparent;
    color: transparent;  
}

.info-card h4 {   
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.info-list li:before {
    content: "▸ ";
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0;
}

.footer h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ccc;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.lang-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0 8px;
    transition: color 0.3s;
}

.lang-link:hover {
    color: var(--primary-color);
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-divider {
    color: #ccc;
    font-weight: 300;
}

.see-more-home a {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .language-selector {
        margin-left: 10px !important;
    }
    
    .navbar .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
}