/* pages/dean-history/view.css */
/* Stylesheet สำหรับหน้าทำเนียบคณบดี */


/* ===================================
   Section Title
   =================================== */
.section-title {
    text-align: center;
    padding-bottom: 40px;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;    
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;    
    margin-bottom: 20px;
    display: inline-block;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #89287f 0%, #c44bb5 100%);
    bottom: 0;
    left: calc(50% - 30px);
}

.section-title p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 400;
}

/* ===================================
   Dean History Section
   =================================== */
.trainers {
    padding: 80px 0;
    background: #ffffff;
}

.trainers .container {
    max-width: 1200px;
}

.trainers .row {
    justify-content: center;
}

/* ===================================
   Dean Cards - 3 columns layout
   =================================== */
.member {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member:hover {
    transform: translateY(-10px);
}

/* Dean Image Container - Circular Style */
.member-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

/* Current Dean Badge */
.current-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #89287f 0%, #c44bb5 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(137, 40, 127, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.current-badge i {
    margin-right: 5px;
    color: #ffd700;
    animation: starTwinkle 1.5s infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.member-img {
    position: relative;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    border: 3px solid #f8f9fa;
}

/* Current Dean has special border */
.dean-card[data-is-current="1"] .member-img {
    border: 4px solid #89287f;
    box-shadow: 0 8px 30px rgba(137, 40, 127, 0.3);
}

.member:hover .member-img {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dean-card[data-is-current="1"] .member:hover .member-img {
    box-shadow: 0 12px 40px rgba(137, 40, 127, 0.4);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.member:hover .member-img img {
    transform: scale(1.05);
}

/* ===================================
   Dean Info
   =================================== */
.member-info {
    padding: 0 15px;
}

.member-info h4.member-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: normal;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.dean-card[data-is-current="1"] .member-info h4.member-name {
    color: #89287f;
    font-size: 20px;
}

.member-info .position-title {
    display: block;
    font-size: 16px;
    color: #89287f;
    font-weight: 600;
    margin-bottom: 10px;
    font-style: italic;
}

.dean-card[data-is-current="1"] .member-info .position-title {
    font-size: 17px;
    background: linear-gradient(135deg, #89287f 0%, #c44bb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Year Range Display */
.year-range {
    font-size: 15px;
    color: #6c757d;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

.dean-card[data-is-current="1"] .year-range {
    background: linear-gradient(135deg, rgba(137, 40, 127, 0.1) 0%, rgba(196, 75, 181, 0.1) 100%);
    border-color: rgba(137, 40, 127, 0.3);
    color: #89287f;
    font-weight: 600;
}

/* ===================================
   Section Groups
   =================================== */
.section-group {
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-group .section-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Current Dean Section - Special Styling */
.current-dean-section {
    background: linear-gradient(135deg, rgba(137, 40, 127, 0.03) 0%, rgba(196, 75, 181, 0.03) 100%);
    padding: 40px 0;
    border-radius: 20px;
    margin-bottom: 30px;
}

.current-dean-section .section-title h2 {
    color: #89287f;
}

/* Past Dean Section */
.past-dean-section {
    padding-top: 30px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1199px) {
    .member-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 991px) {
    .page-title h1 {
        font-size: 36px;
    }
    
    .member-img {
        width: 220px;
        height: 220px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .member-info h4 {
        font-size: 18px;
    }
    
    .dean-card[data-is-current="1"] .member-info h4.member-name {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .page-title {
        padding: 40px 0 30px 0;
        margin-bottom: 40px;
    }
    
    .page-title h1 {
        font-size: 30px;
    }
    
    .trainers {
        padding: 60px 0;
    }
    
    .member {
        margin-bottom: 40px;
    }
    
    .member-img {
        width: 200px;
        height: 200px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .current-badge {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .current-dean-section {
        padding: 30px 15px;
    }
}

@media (max-width: 575px) {
    .page-title h1 {
        font-size: 26px;
    }
    
    .breadcrumbs ol {
        font-size: 12px;
    }
    
    .member {
        margin-bottom: 35px;
    }
    
    .member-img {
        width: 180px;
        height: 180px;
    }
    
    .member-info h4 {
        font-size: 17px;
    }
    
    .dean-card[data-is-current="1"] .member-info h4.member-name {
        font-size: 18px;
    }
    
    .member-info .position-title {
        font-size: 15px;
    }
    
    .year-range {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .current-badge {
        font-size: 12px;
        padding: 5px 12px;
        top: -5px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .page-title {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .page-title h1 {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .breadcrumbs {
        display: none !important;
    }
    
    .member-img {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .member-info {
        font-size: 10pt;
    }
    
    .member {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .trainers {
        background: none !important;
        padding: 20px 0 !important;
    }
    
    .current-badge {
        background: #666 !important;
        color: white !important;
    }
    
    .current-dean-section {
        background: #ffffff !important;
    }
}