/* Custom styles for Hort KU-KPS website */

/* Breadcrumb styling */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Card improvements */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Research content styling */
.research-content h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.research-content h4 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.research-content ul {
    padding-left: 1.5rem;
}

.research-content ul li {
    margin-bottom: 0.5rem;
}

/* Sidebar styling */
.research-sidebar .card,
.center-sidebar .card {
    margin-bottom: 1.5rem;
}

.research-sidebar .card-body p,
.center-sidebar .card-body p {
    margin-bottom: 0.5rem;
}

/* News styling */
.news-detail {
    line-height: 1.8;
}

.news-detail .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #495057;
}

.news-detail blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
}

.social-share .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Staff cards */
.staff-content .card {
    text-align: center;
}

.staff-content .card img {
    object-fit: cover;
    border: 3px solid #e9ecef;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .research-sidebar,
    .center-sidebar {
        margin-top: 2rem;
    }

    .social-share .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Button improvements */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Footer improvements */
.footer-area {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.footer-area a {
    color: #bdc3c7;
}

.footer-area a:hover {
    color: #ecf0f1;
    text-decoration: none;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form improvements */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Table improvements */
.table {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Image improvements */
.img-fluid {
    border-radius: 0.5rem;
}

.rounded-circle {
    border: 3px solid #e9ecef;
}

/* Text improvements */
.text-muted {
    color: #6c757d !important;
}

.small {
    font-size: 0.875rem;
}

/* Spacing improvements */
.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.pt-80 {
    padding-top: 5rem;
}

.pb-80 {
    padding-bottom: 5rem;
}

.about-area .hidden {
    display: none;
}

/* News image styling - ให้รูปมีขนาดเท่ากัน */
.blog-thumb2 img {
    height: 250px;
    object-fit: cover;
}
