/* ===================================
   SMT.CSS - Senior Management Team Page
   Modern Theme Update
   =================================== */

/* Custom Container for SMT Page */
.content-container-smt {
    max-width: 1200px;
    margin: 0 auto;
}

/* SMT Hierarchy Structure */
.smt-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ========== TOP LEVEL: DP & ADMIN ========== */
.top-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-bottom: 0;
}

/* SMT Cards (DP & Admin) */
.smt-card {
    position: relative;
    width: 350px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    z-index: 2;
}

.smt-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.smt-card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: rgba(16, 185, 129, 0.05);
}

.smt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.smt-card:hover .smt-card-image img {
    transform: scale(1.05);
}

.smt-card-content {
    padding: 2rem;
    text-align: center;
}

.smt-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.smt-title {
    font-size: 1.125rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.smt-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Hover Overlay for Biography Link */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.smt-card:hover .hover-overlay {
    opacity: 0.95;
}

.hover-overlay i {
    font-size: 3rem;
    animation: slideRight 1s ease-in-out infinite;
}

.hover-overlay span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Hierarchy Line Between DP and Admin */
.hierarchy-line {
    width: 80px;
    height: 3px;
    background: var(--accent-green);
    position: relative;
    z-index: 1;
}

.hierarchy-line::before,
.hierarchy-line::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hierarchy-line::before {
    left: -6px;
}

.hierarchy-line::after {
    right: -6px;
}

/* ========== VERTICAL CONNECTOR ========== */
.vertical-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 3px;
    height: 60px;
    background: var(--accent-green);
}

.connector-circle {
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 4px solid var(--primary-bg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* ========== BOTTOM LEVEL: LEADING TEACHERS ========== */
.bottom-level {
    width: 100%;
    max-width: 1200px;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .content-container-smt {
        padding: 0 1.5rem;
    }

    .top-level {
        max-width: 700px;
        gap: 0;
    }

    .smt-card {
        width: 300px;
    }

    .smt-card-image {
        height: 350px;
    }

    .hierarchy-line {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .top-level {
        flex-direction: column;
        gap: 2rem;
        max-width: 400px;
    }

    .smt-card {
        width: 100%;
        max-width: 350px;
    }

    .smt-card-image {
        height: 380px;
    }

    .hierarchy-line {
        width: 3px;
        height: 40px;
        transform: rotate(90deg);
    }

    .hierarchy-line::before,
    .hierarchy-line::after {
        display: none;
    }

    .connector-line {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .smt-card-image {
        height: 300px;
    }

    .smt-name {
        font-size: 1.5rem;
    }

    .hover-overlay i {
        font-size: 2.5rem;
    }

    .hover-overlay span {
        font-size: 1.125rem;
    }
}

/* ========== DARK MODE SUPPORT ========== */
[data-theme="dark"] .connector-circle {
    border-color: var(--primary-bg);
}
