/* กำหนดฟอนต์หลัก */
body {
    font-family: 'Noto Sans Thai', sans-serif;
    padding-top: 55px;
}

/* สีหลัก - โทนสีน้ำเงิน */
:root {
    --primary-color: #1a4b8c;
    --secondary-color: #2a6fba;
    --light-blue: #e6f0fa;
    --dark-gray: #343a40;
}

/* Navigation Bar */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(26, 75, 140, 0.9);
}
.navbar.scrolled {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--light-blue) !important;
}
/* ส่วนคนเก่งของเราแบบ Gallery 2x2 */
.talent-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    position: relative;
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.talent-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.talent-card:hover .talent-img {
    transform: scale(1.03);
}

.talent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: rgba(10, 36, 99, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.talent-card:hover .talent-overlay {
    opacity: 1;
}

.talent-overlay i {
    color: white;
    font-size: 2.5rem;
}

.talent-caption {
    padding: 20px;
    text-align: center;
}

.talent-caption h5 {
    color: var(--primary-dark-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.talent-caption p {
    color: #555;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ส่วนบุคลากรยอดเยี่ยม */
.staff-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.staff-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.staff-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.staff-card:hover .staff-overlay {
    opacity: 1;
}

.staff-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* ปรับแต่ง Lightbox */
.lightbox .lb-image {
    border: 10px solid white;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

/* News Section */
.news-section {
    background-color: #f8f9fa;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: white;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

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

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-static .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-static .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--primary-color);
    }
    
    .hero-static {
        padding: 80px 0;
    }
    
    .hero-static .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-static .hero-content p {
        font-size: 1rem;
    }
}
/* ส่วนเนื้อหา 3 คอลัมน์ */
.content-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.content-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.content-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.content-header i {
    font-size: 1.2rem;
}

.content-body {
    padding: 20px;
    flex-grow: 1;
}

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

.content-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.content-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    flex-grow: 1;
}

.content-list a:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

.content-date {
    color: #6c757d;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 10px;
}

.content-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* สีหัวข้อแต่ละคอลัมน์ */
.bg-primary {
    background-color: var(--primary-dark-blue) !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .content-header h3 {
        font-size: 1.1rem;
    }
    
    .content-body {
        padding: 15px;
    }
    
    .content-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-date {
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.8rem;
    }
}
/* ส่วนจดหมายข่าว */
.newsletter-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.newsletter-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.newsletter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 36, 99, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.newsletter-card:hover .newsletter-overlay {
  opacity: 1;
}

.newsletter-overlay i {
  color: white;
  font-size: 2rem;
}

/* ปรับแต่ง Lightbox */
.lightbox .lb-image {
  border: 10px solid white;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.lb-data .lb-caption {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .newsletter-img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .newsletter-img {
    height: 200px;
  }
  
  .newsletter-overlay i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .newsletter-img {
    height: 680px;
  }
}
/* Gallery Styles */
.gallery-section {
    background-color: #f8f9fa;
}

.gallery-section a {
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-section a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-section img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-section a:hover img {
    transform: scale(1.05);
}

/* Lightbox Override */
.lightbox .lb-image {
    border: 5px solid white;
    border-radius: 3px;
}

.lb-data .lb-caption {
    font-size: 16px;
    line-height: 1.5;
}

.bg-purple {
    background-color: #6f42c1 !important;
}
.text-purple {
    color: #6f42c1 !important;
}
.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}
.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}
.card {
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
