﻿body {
    font-family: 'Kanit', 'Tahoma', sans-serif;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
}

/* Header */
.header-top {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
    height: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #4CAF50;
}

.logo-section {
    display: flex;
    align-items: center;
    height: 100px;
    padding-left: 20px;
}

.logo {
    width: 70px;
    height: 70px;
    /*background: linear-gradient(135deg, #4CAF50, #66BB6A);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.org-name {
    margin-left: 15px;
}

    .org-name h1 {
        margin: 0;
        font-size: 28px;
        color: #2E7D32;
        font-weight: bold;
    }

    .org-name p {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

/* Navbar */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
    background-color: #4CAF50;
    border: none;
    min-height: 50px;
    font-size: 16px;
    margin: 0 auto;
}

.navbar-default .navbar-nav > li > a {
    color: white;
    font-weight: 500;
    padding: 15px 40px;
}

    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > .active > a {
        background-color: #388E3C;
        color: white;
        border-radius: 6px;
    }

.navbar-default .navbar-nav > .open > a {
    background-color: #388E3C;
    color: white;
    border-radius: 6px;
}

.navbar-default .navbar-toggle {
    border-color: white;
}

    .navbar-default .navbar-toggle .icon-bar {
        background-color: white;
    }

/* Shortcuts */
.shortcuts-section {
    padding: 40px 0;
    background-color: white;
}

.shortcut-item {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .shortcut-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
        border-color: #4CAF50;
    }

.shortcut-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.shortcut-item h4 {
    color: #2E7D32;
    font-weight: bold;
    margin: 0;
}

/* Carousel */
.carousel-section {
    background-color: #f8f9fa;
}

.carousel-inner > .item {
    height: 535px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

/* Coming Soon */
.coming-soon-section {
    padding: 50px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.section-title-sub {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 15px;
    font-size:24px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, #4CAF50, #FFC107);
    }

.event-item {
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 100%);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #FFC107;
    transition: all 0.3s;
}

    .event-item:hover {
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
        transform: translateX(5px);
    }

.event-date {
    background-color: #FFC107;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 10px;
}

/* News */
.news-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.news-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 3px solid #4CAF50;
    line-height: 22px;
    font-size: 16px;
}

    .news-item:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

.news-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    color: #2E7D32;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-section {
    padding: 50px 0;
    background-color: white;
}

.gallery-item {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 48px;
}

/* Footer */
.footer {
    background-color: #2E7D32;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.badge-custom {
    background-color: #FFC107;
    color: #333;
}

/* Modify */
.dropdown-menu > li > a {
    line-height: 30px;
}

/* Mobile device */
@media screen and (max-width: 768px) {
    .org-name h1 {
        font-size: 22px;
    }

    .org-name p {
        font-size: 11.5px;
    }

    .carousel-inner > .item {
        height: 135px;
    }

    .shortcut-icon {
        font-size: 48px;
        color: #4CAF50;
        margin-bottom: 10px;
    }

    .shortcut-item h4 {
        color: #2E7D32;
        font-weight: bold;
        margin: 0;
        font-size: 16px;
    }

    .shortcut-item {
        text-align: center;
        padding: 10px;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
        border-radius: 10px;
        transition: all 0.3s;
        border: 2px solid #e0e0e0;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #fff;
    }

    .footer p {
        color:#fff;
    }
}

@media (min-width: 768px) {
    #main-navbar {
        text-align: center;
    }

        #main-navbar .navbar-nav {
            float: none;
            display: inline-block;
        }
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    padding: 50px 0;
    color: white;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .contact-form .form-control {
        border-radius: 5px;
        border: 1px solid #ddd;
        padding: 12px;
    }

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .btn-submit:hover {
        background-color: #45a049;
    }

/* Documents Section */
.documents-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.document-item {
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items:normal;
    transition: all 0.3s;
}

    .document-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateX(5px);
    }

.document-icon {
    font-size: 32px;
    color: #4CAF50;
    margin-right: 15px;
}

.document-name {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

/* Staff Section */
.staff-section {
    background-color: #fff;
    padding: 50px 0;
}

.staff-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

    .staff-card:hover {
        transform: translateY(-8px);
    }

.staff-image {
    width: 100%;
    height: 280px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-color:#eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.staff-info {
    padding: 20px;
    text-align: center;
}

.staff-name {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.staff-name-en {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.staff-position {
    font-size: 15px;
    color: #4CAF50;
    font-weight: 500;
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #666;
}

/* About Section */
.about-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .about-icon i {
        font-size: 40px;
        color: white;
    }

.about-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-card p {
    color: #666;
    line-height: 1.8;
    text-align:left;
}

/* Statistics Cards */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: #666;
}

/* Organization Structure */
.org-structure-section {
    padding: 50px 0;
    background: white;
}

.org-chart {
    text-align: center;
}

.org-level-1,
.org-level-2,
.org-level-3 {
    margin-bottom: 30px;
}

.org-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
}

    .org-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .org-box.director {
        background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
        color: white;
        border: none;
        max-width: 400px;
        margin: 0 auto 30px;
    }

        .org-box.director i {
            font-size: 60px;
            margin-bottom: 10px;
        }

    .org-box.deputy {
        background: #f8f9fa;
        border-color: #4CAF50;
    }

    .org-box.department {
        background: white;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .org-box i {
        font-size: 30px;
        color: #4CAF50;
        margin-bottom: 10px;
    }

    .org-box.director i {
        color: white;
    }

    .org-box h4,
    .org-box h5 {
        margin: 10px 0 5px;
        color: #2c3e50;
    }

    .org-box.director h4 {
        color: white;
    }

    .org-box p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

    .org-box.director p {
        color: rgba(255,255,255,0.9);
    }

/* Services Section */
.services-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .service-icon i {
        font-size: 40px;
        color: white;
    }

.service-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Quality Section */
.quality-section {
    padding: 50px 0;
    background: white;
}

.quality-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.quality-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .quality-item:hover {
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.quality-icon {
    font-size: 40px;
    color: #4CAF50;
    margin-right: 20px;
}

.quality-text h4 {
    color: #2c3e50;
    margin: 0 0 5px;
    font-size: 18px;
}

.quality-text p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
    .about-card,
    .stat-card,
    .service-card {
        margin-bottom: 20px;
    }

    .org-box {
        margin: 10px 0;
    }

    .stat-number {
        font-size: 28px;
    }

    .quality-item {
        flex-direction: column;
        text-align: center;
    }

    .quality-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }


    /* ถ้าต้องการลด height ทั้ง navbar */
    .navbar {
        min-height: 40px;
    }

    .navbar-toggle {
        padding: 4px 6px !important;
        margin-top: -12px;
        margin-bottom: 8px;
        height: 25px;
    }

    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #fff;
    }



}

