/**
 * Custom CSS for Department Pages
 * วิทยาลัยสารพัดช่างตราด
 * 
 * ไฟล์นี้เป็น TEMPLATE ยังไม่พร้อมใช้งาน
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Primary Colors */
    --dept-primary-red: #dc3545;
    --dept-primary-orange: #ff6b35;
    --dept-primary-gold: #dfab1e;

    /* Neutral Colors */
    --dept-dark: #252525;
    --dept-gray: #6c757d;
    --dept-light-gray: #f8f9fa;
    --dept-white: #ffffff;

    /* Gradients */
    --dept-gradient-primary: linear-gradient(135deg, #dc3545 0%, #ff6b35 100%);
    --dept-gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);

    /* Shadows */
    --dept-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --dept-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --dept-shadow-lg: 0 10px 30px rgba(220, 53, 69, 0.15);

    /* Border Radius */
    --dept-radius-sm: 8px;
    --dept-radius-md: 15px;
    --dept-radius-lg: 25px;

    /* Transitions */
    --dept-transition: all 0.3s ease;
}

/* ===================================
   Department Card Styles
   =================================== */
.department-card {
    transition: var(--dept-transition);
    border: none;
    border-radius: var(--dept-radius-md);
    overflow: hidden;
    height: 100%;
    background: linear-gradient(135deg, var(--dept-white) 0%, var(--dept-light-gray) 100%);
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--dept-shadow-lg) !important;
}

.department-card .card-body {
    position: relative;
    z-index: 1;
}

/* Icon Wrapper */
.department-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--dept-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dept-transition);
    box-shadow: var(--dept-shadow-md);
}

.department-card:hover .department-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

.department-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--dept-white);
}

/* Department Title */
.department-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dept-primary-red);
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.department-subtitle {
    font-size: 0.9rem;
    color: var(--dept-gray);
    margin-bottom: 15px;
    min-height: 40px;
}

.department-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

/* ===================================
   Button Styles
   =================================== */
.btn-department {
    background: var(--dept-gradient-primary);
    border: none;
    color: var(--dept-white);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--dept-transition);
    box-shadow: var(--dept-shadow-sm);
}

.btn-department:hover {
    background: linear-gradient(135deg, var(--dept-primary-orange) 0%, #ff8e53 100%);
    transform: scale(1.05);
    color: var(--dept-white);
    box-shadow: var(--dept-shadow-md);
}

.btn-department i {
    transition: var(--dept-transition);
}

.btn-department:hover i {
    transform: translateX(5px);
}

/* ===================================
   Personnel Card Styles - Premium Design
   =================================== */
.personnel-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.personnel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #dc3545, #ff6600, #ffc107, #dc3545);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.personnel-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(220, 53, 69, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(220, 53, 69, 0.2);
}

.personnel-card:hover::before {
    opacity: 1;
}

/* Personnel Photo */
.personnel-card img {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #dc3545, #ff6600) border-box;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    position: relative;
    /* ทำให้เป็นวงกลมเสมอ */
    width: 150px !important;
    height: 150px !important;
    min-width: 150px;
    min-height: 150px;
    aspect-ratio: 1 / 1;
}

/* รูปหัวหน้าฝ่ายใหญ่กว่า */
.personnel-card .col-md-4 img {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px;
    min-height: 200px;
}

.personnel-card:hover img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 15px 40px rgba(220, 53, 69, 0.3),
        0 0 30px rgba(220, 53, 69, 0.2);
}

/* Photo Glow Effect */
.personnel-card .card-body {
    position: relative;
}

.personnel-card .card-body::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.personnel-card:hover .card-body::before {
    opacity: 1;
}

.personnel-photo {
    width: min(140px, 100%);
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
}

.personnel-photo-sm {
    width: min(150px, 100%);
}

.personnel-photo-lg {
    width: min(200px, 100%);
}

/* Personnel Name */
.personnel-name,
.personnel-card h3,
.personnel-card h5 {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.personnel-card:hover .personnel-name,
.personnel-card:hover h3,
.personnel-card:hover h5 {
    color: #dc3545;
}

/* Name Underline Animation */
.personnel-card h3::after,
.personnel-card h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6600);
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.personnel-card:hover h3::after,
.personnel-card:hover h5::after {
    transform: translateX(-50%) scaleX(1);
}

/* Personnel Position */
.personnel-position,
.personnel-card .text-muted {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* Personnel Contact */
.personnel-contact,
.personnel-card p.small {
    font-size: 0.9rem;
    color: #495057;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.personnel-contact i,
.personnel-card p.small i {
    color: #dc3545;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.personnel-card:hover p.small i {
    transform: scale(1.2);
}

/* Big Card for Head */
.personnel-card.head-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.personnel-card.head-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(220, 53, 69, 0.03));
    pointer-events: none;
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    background: var(--dept-gradient-primary);
    color: var(--dept-white);
    padding: 20px;
    border-radius: var(--dept-radius-md) var(--dept-radius-md) 0 0;
    margin-bottom: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-header i {
    margin-right: 15px;
    font-size: 2rem;
}

.section-content {
    background: var(--dept-white);
    padding: 30px;
    border-radius: 0 0 var(--dept-radius-md) var(--dept-radius-md);
    box-shadow: var(--dept-shadow-md);
}

/* ===================================
   Accordion Styles
   =================================== */
.accordion-item {
    border: none;
    border-radius: var(--dept-radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--dept-shadow-sm);
}

.accordion-button {
    background: var(--dept-light-gray);
    color: var(--dept-dark);
    font-weight: 500;
    border-radius: var(--dept-radius-sm);
    transition: var(--dept-transition);
}

.accordion-button:not(.collapsed) {
    background: var(--dept-gradient-primary);
    color: var(--dept-white);
    box-shadow: var(--dept-shadow-md);
}

.accordion-button:hover {
    background: var(--dept-primary-red);
    color: var(--dept-white);
}

.accordion-button i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.accordion-body {
    padding: 20px;
    background: var(--dept-white);
}

/* ===================================
   Document Card Styles
   =================================== */
.document-card {
    transition: var(--dept-transition);
    border-radius: var(--dept-radius-sm);
    border: 1px solid var(--dept-light-gray);
}

.document-card:hover {
    border-color: var(--dept-primary-red);
    box-shadow: var(--dept-shadow-md);
    transform: translateY(-3px);
}

.document-icon {
    width: 60px;
    height: 60px;
    background: var(--dept-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.8rem;
    color: var(--dept-white);
}

.document-title {
    color: var(--dept-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--dept-gray);
}

.btn-download {
    background: var(--dept-gradient-primary);
    border: none;
    color: var(--dept-white);
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--dept-transition);
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--dept-primary-orange) 0%, #ff8e53 100%);
    color: var(--dept-white);
    transform: scale(1.1);
}

/* ===================================
   Gallery Styles
   =================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--dept-radius-md);
    box-shadow: var(--dept-shadow-sm);
    transition: var(--dept-transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--dept-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--dept-transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--dept-white);
    transform: translateY(100%);
    transition: var(--dept-transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===================================
   Responsibility List Styles
   =================================== */
.responsibility-list {
    counter-reset: responsibility-counter;
    list-style: none;
    padding: 0;
}

.responsibility-list li {
    counter-increment: responsibility-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dept-light-gray);
}

.responsibility-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.responsibility-list li::before {
    content: counter(responsibility-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--dept-gradient-primary);
    color: var(--dept-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ===================================
   Page Header Styles
   =================================== */
.dept-page-header {
    background: linear-gradient(rgba(72, 0, 6, 0.9), rgba(114, 0, 6, 0.9));
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Breadcrumb Styles
   =================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--dept-white);
    text-decoration: none;
    transition: var(--dept-transition);
}

.breadcrumb-item a:hover {
    color: var(--dept-primary-gold);
}

.breadcrumb-item.active {
    color: var(--dept-primary-red);
}

/* ===================================
   Info Box Styles
   =================================== */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid var(--dept-primary-red);
    padding: 20px;
    border-radius: var(--dept-radius-sm);
    box-shadow: var(--dept-shadow-sm);
}

.info-box i {
    font-size: 2.5rem;
    color: var(--dept-primary-red);
}

.info-box h4 {
    color: var(--dept-primary-red);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===================================
   Responsive Styles
   =================================== */

/* Tablet */
@media (max-width: 991.98px) {
    .department-title {
        font-size: 1.3rem;
        min-height: auto;
    }

    .department-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .department-icon-wrapper i {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .department-title {
        font-size: 1.2rem;
    }

    .department-icon-wrapper {
        width: 90px;
        height: 90px;
    }

    .department-icon-wrapper i {
        font-size: 2.5rem;
    }

    .department-description {
        min-height: auto;
    }

    .personnel-card img {
        max-width: 120px;
    }

    .gallery-item img {
        height: 200px;
    }

    .section-header {
        padding: 15px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575.98px) {
    .department-card .card-body {
        padding: 20px !important;
    }

    .department-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .department-icon-wrapper i {
        font-size: 2rem;
    }

    .btn-department {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .navbar,
    .footer,
    .btn,
    .back-to-top {
        display: none !important;
    }

    .department-card,
    .personnel-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

/* ===================================
   Animation Keyframes
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   NEW PERSONNEL CARDS - Premium Design
   =================================== */

/* Section Title */
.section-title-wrapper {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-title i {
    color: #dc3545;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6600);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===================================
   Premium Card - For Head/Leader
   =================================== */
.personnel-card-premium {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}

.personnel-card-premium .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            #dc3545,
            #ff6600,
            #ffc107,
            transparent);
    animation: rotateGlow 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.personnel-card-premium .card-inner {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 28px;
    margin: 3px;
    padding: 2rem;
    z-index: 1;
}

.personnel-card-premium .photo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.personnel-card-premium .photo-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #ff6600);
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

.personnel-card-premium .photo-ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: #fff;
}

.personnel-card-premium .photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.3);
    z-index: 2;
}

.personnel-card-premium .photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.personnel-card-premium:hover .photo-wrapper img {
    transform: scale(1.1);
}

.personnel-card-premium .photo-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    z-index: 3;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.personnel-card-premium .photo-badge i {
    color: #fff;
    font-size: 1.2rem;
}

.personnel-card-premium .info-container {
    padding: 1rem 2rem;
}

.personnel-card-premium .position-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545, #ff6600);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.personnel-card-premium .person-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.personnel-card-premium .person-title {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.personnel-card-premium .contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.personnel-card-premium .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.personnel-card-premium .contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 102, 0, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.personnel-card-premium .contact-icon i {
    color: #dc3545;
    font-size: 1rem;
}

.personnel-card-premium .contact-item:hover .contact-icon {
    background: linear-gradient(135deg, #dc3545, #ff6600);
    transform: scale(1.1);
}

.personnel-card-premium .contact-item:hover .contact-icon i {
    color: #fff;
}

.personnel-card-premium .contact-item span {
    color: #495057;
    font-size: 0.95rem;
}

.personnel-card-premium .person-bio {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    line-height: 1.7;
}

/* ===================================
   Modern Card - For Staff
   =================================== */
.personnel-card-modern {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.personnel-card-modern .card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, #dc3545, #ff6600);
    transition: height 0.4s ease;
}

.personnel-card-modern:hover .card-bg-pattern {
    height: 140px;
}

.personnel-card-modern .card-content {
    position: relative;
    padding: 1.5rem;
    padding-top: 0;
    text-align: center;
    z-index: 1;
}

.personnel-card-modern .photo-wrapper-sm {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    margin-top: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.personnel-card-modern:hover .photo-wrapper-sm {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.25);
}

.personnel-card-modern .photo-wrapper-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.personnel-card-modern:hover .photo-wrapper-sm img {
    transform: scale(1.1);
}

.personnel-card-modern .person-info {
    padding: 1.5rem 1rem;
}

.personnel-card-modern .person-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.personnel-card-modern:hover .person-name {
    color: #dc3545;
}

.personnel-card-modern .person-title {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.personnel-card-modern .contact-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
}

.personnel-card-modern .contact-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.personnel-card-modern .contact-btn i {
    color: #dc3545;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.personnel-card-modern .contact-btn:hover {
    background: linear-gradient(135deg, #dc3545, #ff6600);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.personnel-card-modern .contact-btn:hover i {
    color: #fff;
}

.personnel-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .personnel-card-premium .card-inner {
        padding: 1.5rem;
    }

    .personnel-card-premium .photo-wrapper {
        width: 150px;
        height: 150px;
    }

    .personnel-card-premium .photo-ring {
        width: 180px;
        height: 180px;
    }

    .personnel-card-premium .photo-ring-inner {
        width: 170px;
        height: 170px;
    }

    .personnel-card-premium .person-name {
        font-size: 1.5rem;
    }

    .personnel-card-premium .info-container {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }

    .personnel-card-premium .row {
        flex-direction: column;
    }

    .personnel-card-premium .photo-container {
        padding: 1rem;
    }

    .personnel-card-premium .info-container {
        text-align: center;
    }

    .personnel-card-premium .contact-list {
        align-items: center;
    }

    .personnel-card-modern .photo-wrapper-sm {
        width: 100px;
        height: 100px;
        margin-top: 50px;
    }

    .personnel-card-modern .card-bg-pattern {
        height: 100px;
    }

    .personnel-card-modern:hover .card-bg-pattern {
        height: 110px;
    }
}