/* Custom CSS for About Vision Page */

.vision-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(0, 86, 179, 0.9)), url('../images/vision-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    color: white;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 4rem;
}

.vision-hero .display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vision-hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 1rem auto 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.vision-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.vision-card-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.8);
}

.vision-card-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon-mission {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.icon-values {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.icon-goals {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.vision-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.vision-card-body {
    padding: 2rem;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
}

.vision-card-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #495057;
    white-space: pre-wrap;
    margin: 0;
}

.breadcrumb-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Responsive Design for Vision Cards */
@media (max-width: 768px) {
    .vision-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .vision-card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .vision-card-title {
        font-size: 1.5rem;
    }

    .vision-card-body {
        padding: 1.5rem;
    }

    .vision-card-body p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .vision-hero {
        padding: 4rem 0;
    }

    .vision-hero .display-4 {
        font-size: 2rem;
    }

    .vision-hero p {
        font-size: 1.2rem;
    }

    .vision-card {
        margin-bottom: 2rem;
    }
}

/* Contact Cards Styles */
.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.contact-card-body {
    padding: 2rem;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.contact-card-icon {
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon-address {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.icon-phone {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.icon-email {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.icon-hours {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.contact-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

/* Map Card Styles */
.map-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.map-card-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.8);
}

.map-card-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.map-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.map-card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive for Contact Cards */
@media (max-width: 768px) {
    .contact-card-body {
        padding: 1.5rem;
    }

    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .contact-card h4 {
        font-size: 1.25rem;
    }

    .contact-card p {
        font-size: 0.95rem;
    }

    .map-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .map-card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .map-card h3 {
        font-size: 1.5rem;
    }

    .map-card-body {
        padding: 1.5rem;
    }
}

/* Leader Cards Styles */
.leader-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.director-card {
    max-width: 400px;
    margin: 0 auto;
}

.director-card .leader-card-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
}

.leader-card-body {
    padding: 2rem;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.leader-card-icon {
    font-size: 2rem;
    margin: 0 auto 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.leader-card-icon.small-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
}

.leader-card h4, .leader-card h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.leader-card p {
    color: #495057;
    margin-bottom: 0.25rem;
}

.leader-card .text-muted {
    color: #6c757d !important;
}

/* Responsive for Leader Cards */
@media (max-width: 768px) {
    .leader-card-body {
        padding: 1.5rem;
    }

    .leader-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .director-card img {
        width: 150px !important;
        height: 150px !important;
    }
}

/* History Card Styles */
.history-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.history-card-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.8);
}

.history-card-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.history-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.history-card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.history-content {
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1.1rem;
    color: #495057;
}

.history-content h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.history-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    position: relative;
    padding-left: 1.5rem;
}

.history-content p::before {
    content: '\f10d'; /* Quote left icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #0d6efd;
    font-size: 0.9rem;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0d6efd 0%, #28a745 50%, #ffc107 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '\f49c'; /* Circle check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -2.2rem;
    top: 0.2rem;
    background: white;
    color: #28a745;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive for History Card */
@media (max-width: 768px) {
    .history-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .history-card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .history-card h1 {
        font-size: 1.5rem;
    }

    .history-card-body {
        padding: 1.5rem;
    }

    .history-timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.8rem;
    }
}

/* Gallery Cards Styles */
.gallery-album-card, .gallery-photo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gallery-album-card:hover, .gallery-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.gallery-card-icon {
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.gallery-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    color: white;
    font-size: 2rem;
}

.gallery-photo-card a {
    position: relative;
    display: block;
}

.gallery-photo-card a:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-album-card .card-img-top, .gallery-photo-card .card-img-top {
    transition: transform 0.3s ease;
}

.gallery-album-card:hover .card-img-top, .gallery-photo-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Responsive for Gallery Cards */
@media (max-width: 768px) {
    .gallery-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-photo-overlay {
        font-size: 1.5rem;
    }
}

/* News Detail Card Styles */
.news-detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.news-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.news-detail-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    padding: 2rem;
    color: white;
}

.news-detail-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-detail-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.news-detail-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.news-detail-body h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-detail-body .text-muted {
    color: #6c757d !important;
}

.news-detail-body .news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.news-detail-body img {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive for News Detail Card */
@media (max-width: 768px) {
    .news-detail-header {
        padding: 1.5rem;
    }

    .news-detail-header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .news-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .news-detail-body {
        padding: 1.5rem;
    }

    .news-detail-body h1 {
        font-size: 1.5rem;
    }
}

/* Download Cards Styles */
.download-category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.download-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.download-category-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
}

.download-category-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.download-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.download-category-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Excel Table Styles for Downloads */
.table-excel {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Sarabun', 'Athiti', sans-serif;
    font-size: 14px;
    background-color: #fff;
}

.table-excel thead.table-dark th {
    background: linear-gradient(135deg, #217346 0%, #185c2d 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border: 2px solid #1e5c38;
}

.table-excel tbody tr {
    transition: all 0.2s ease;
}

.table-excel tbody tr:hover {
    background-color: #e8f5e9 !important;
}

.table-excel tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-excel tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.table-excel tbody td {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-excel tfoot.table-light td {
    background-color: #e8f5e9;
    font-weight: 600;
    border: 2px solid #c8e6c9;
}

.table-excel .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.table-excel .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1a6b2c 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.table-excel .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
}

.table-excel .fa-file-pdf { color: #dc3545; }
.table-excel .fa-file-word { color: #0d6efd; }
.table-excel .fa-file-excel { color: #198754; }
.table-excel .fa-file-archive { color: #ffc107; }

.download-file-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.download-file-item i.fa-2x {
    font-size: 2.5rem !important;
    margin-right: 1rem;
}

.download-file-item h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.download-file-item small {
    color: #6c757d;
}

.download-file-item .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-file-item .btn:hover {
    transform: scale(1.05);
}

.download-stats-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.download-stats-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.download-stats-body h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.download-stats-body h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download-stats-body small {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive for Download Cards */
@media (max-width: 768px) {
    .download-category-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .download-category-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .download-category-header h3 {
        font-size: 1.25rem;
    }

    .download-category-body {
        padding: 1.5rem;
    }

    .download-file-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .download-file-item i.fa-2x {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .download-stats-body {
        padding: 1.5rem;
    }
}
