/* AFB Team Members Styles */
.afb-team-members-container {
    width: 100%;
    margin: 30px 0;
    font-family: inherit;
    direction: rtl;
}

.afb-team-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5282;
}

.afb-team-title {
    color: #2d3748;
    font-size: 24px;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.afb-team-members-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

/* Columns classes */
.afb-team-columns-1 { grid-template-columns: 1fr; }
.afb-team-columns-2 { grid-template-columns: repeat(2, 1fr); }
.afb-team-columns-3 { grid-template-columns: repeat(3, 1fr); }
.afb-team-columns-4 { grid-template-columns: repeat(4, 1fr); }
.afb-team-columns-5 { grid-template-columns: repeat(5, 1fr); }

.afb-team-member-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.afb-team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.afb-team-member-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid #edf2f7;
    transition: border-color 0.3s ease;
}

.afb-team-member-card:hover .afb-team-member-image {
    border-color: #2c5282;
}

.afb-team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.afb-team-member-image:hover img {
    transform: scale(1.1);
}

.afb-team-member-info {
    width: 100%;
}

.afb-team-member-name {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
}

.afb-team-member-name a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
}

.afb-team-member-name a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.afb-team-member-rank {
    position: relative;

    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    background: #194fa2;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;

    /* Glass effect */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2);

    overflow: hidden;
}

/* لمعة زجاج خفيفة وراقية */
.afb-team-member-rank::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: glass-shine 4s ease-in-out infinite;
}

@keyframes glass-shine {
    0% {
        left: -60%;
        opacity: 0;
    }
    30% {
        opacity: 0.5;
    }
    50% {
        left: 120%;
        opacity: 0.5;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}


.afb-team-member-rank-date {
    color: #718096;
    font-size: 13px;
    margin-bottom: 8px;
    font-style: italic;
}

.afb-team-member-department {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: #f7fafc;
    border-radius: 6px;
    border-right: 3px solid #2c5282;
}

.afb-team-member-cv {
    margin-top: 15px;
}

.afb-cv-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282, #4c7cb3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.afb-cv-download-btn:hover {
    background: linear-gradient(135deg, #234166, #3b6599);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.afb-cv-download-btn i {
    margin-left: 8px;
    font-size: 16px;
}

.afb-team-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
}

.afb-team-count strong {
    color: #2c5282;
    font-size: 18px;
}

.afb-tm-no-results {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    color: #4a5568;
    font-size: 18px;
    margin: 30px 0;
    border: 2px dashed #cbd5e0;
}

.afb-tm-error {
    text-align: center;
    padding: 25px;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 8px;
    color: #c53030;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}

/* Colleges and Departments Lists */
.afb-colleges-list,
.afb-departments-list {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    direction: rtl;
}

.afb-colleges-list h3,
.afb-departments-list h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5282;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.afb-colleges-grid,
.afb-departments-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* Columns for colleges and departments */
.afb-colleges-columns-1,
.afb-departments-columns-1 { grid-template-columns: 1fr; }
.afb-colleges-columns-2,
.afb-departments-columns-2 { grid-template-columns: repeat(2, 1fr); }
.afb-colleges-columns-3,
.afb-departments-columns-3 { grid-template-columns: repeat(3, 1fr); }
.afb-colleges-columns-4,
.afb-departments-columns-4 { grid-template-columns: repeat(4, 1fr); }
.afb-colleges-columns-5,
.afb-departments-columns-5 { grid-template-columns: repeat(5, 1fr); }

.afb-college-item,
.afb-department-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.afb-college-item:hover,
.afb-department-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.afb-college-id,
.afb-department-id {
    font-weight: 800;
    color: #2c5282;
    font-size: 22px;
    margin-bottom: 8px;
    background: #ebf8ff;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid #bee3f8;
}

.afb-college-name,
.afb-department-name {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afb-college-usage,
.afb-department-usage {
    font-size: 13px;
    color: #718096;
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}

.afb-college-usage code,
.afb-department-usage code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    display: block;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
}

.afb-college-info {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: #ebf8ff;
    border-radius: 8px;
    border-right: 4px solid #2c5282;
}

.afb-college-info strong {
    color: #2c5282;
    font-size: 18px;
}

/* Debug Information */
.afb-tm-debug-info {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    font-size: 14px;
    direction: rtl;
}

.afb-tm-debug-info h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #cbd5e0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.afb-debug-colleges,
.afb-debug-departments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.afb-debug-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.afb-debug-item:hover {
    background: #f7fafc;
}

.afb-debug-item.afb-debug-highlight {
    background: #fff5f5;
    border-color: #fc8181;
    border-right: 4px solid #c53030;
}

.afb-debug-id {
    font-weight: 700;
    color: #2c5282;
    background: #ebf8ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    min-width: 40px;
    text-align: center;
}

.afb-debug-name {
    color: #4a5568;
    font-size: 13px;
    text-align: right;
    flex: 1;
    margin-right: 10px;
}

.afb-debug-inputs {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.afb-debug-input {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.afb-debug-input:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.afb-debug-input span {
    color: #4a5568;
    font-weight: 600;
    min-width: 120px;
    text-align: left;
}

.afb-debug-input code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    flex: 1;
    margin-right: 10px;
}

.afb-debug-success {
    background: #f0fff4;
    color: #276749;
    padding: 12px 15px;
    border-radius: 6px;
    border-right: 4px solid #48bb78;
    margin: 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.afb-debug-success:before {
    content: "✓";
    margin-left: 8px;
    font-weight: bold;
}

.afb-debug-error {
    background: #fff5f5;
    color: #c53030;
    padding: 12px 15px;
    border-radius: 6px;
    border-right: 4px solid #fc8181;
    margin: 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.afb-debug-error:before {
    content: "✗";
    margin-left: 8px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .afb-team-columns-5 { grid-template-columns: repeat(4, 1fr); }
    .afb-colleges-columns-5,
    .afb-departments-columns-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
    .afb-team-columns-4,
    .afb-team-columns-5 { grid-template-columns: repeat(3, 1fr); }
    .afb-colleges-columns-4,
    .afb-colleges-columns-5,
    .afb-departments-columns-4,
    .afb-departments-columns-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .afb-team-columns-3,
    .afb-team-columns-4,
    .afb-team-columns-5 { grid-template-columns: repeat(2, 1fr); }
    .afb-colleges-columns-3,
    .afb-colleges-columns-4,
    .afb-colleges-columns-5,
    .afb-departments-columns-3,
    .afb-departments-columns-4,
    .afb-departments-columns-5 { grid-template-columns: repeat(2, 1fr); }
    
    .afb-team-title {
        font-size: 20px;
    }
    
    .afb-team-member-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .afb-team-columns-2,
    .afb-team-columns-3,
    .afb-team-columns-4,
    .afb-team-columns-5 { grid-template-columns: 1fr; }
    .afb-colleges-columns-2,
    .afb-colleges-columns-3,
    .afb-colleges-columns-4,
    .afb-colleges-columns-5,
    .afb-departments-columns-2,
    .afb-departments-columns-3,
    .afb-departments-columns-4,
    .afb-departments-columns-5 { grid-template-columns: 1fr; }
    
    .afb-team-title {
        font-size: 18px;
    }
    
    .afb-team-member-image {
        width: 110px;
        height: 110px;
    }
    
    .afb-colleges-list,
    .afb-departments-list {
        padding: 20px;
    }
    
    .afb-debug-colleges,
    .afb-debug-departments {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .afb-team-member-card {
        padding: 15px 10px;
    }
    
    .afb-team-title {
        font-size: 16px;
    }
    
    .afb-team-member-image {
        width: 100px;
        height: 100px;
    }
    
    .afb-team-member-name {
        font-size: 16px;
    }
    
    .afb-college-id,
    .afb-department-id {
        font-size: 18px;
    }
}

/* RTL Support for LTR sites */
[dir="ltr"] .afb-team-members-container,
[dir="ltr"] .afb-colleges-list,
[dir="ltr"] .afb-departments-list,
[dir="ltr"] .afb-tm-debug-info {
    direction: ltr;
}

[dir="ltr"] .afb-cv-download-btn i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="ltr"] .afb-team-member-department {
    border-right: none;
    border-left: 3px solid #2c5282;
}

[dir="ltr"] .afb-college-info {
    border-right: none;
    border-left: 4px solid #2c5282;
}

[dir="ltr"] .afb-debug-name {
    text-align: left;
    margin-right: 0;
    margin-left: 10px;
}

[dir="ltr"] .afb-debug-input span {
    text-align: right;
}

[dir="ltr"] .afb-debug-input code {
    margin-right: 0;
    margin-left: 10px;
}

[dir="ltr"] .afb-debug-success,
[dir="ltr"] .afb-debug-error {
    border-right: none;
    border-left: 4px solid;
}

[dir="ltr"] .afb-debug-success:before,
[dir="ltr"] .afb-debug-error:before {
    margin-left: 0;
    margin-right: 8px;
}

/* Print Styles */
@media print {
    .afb-team-members-container {
        margin: 20px 0;
    }
    
    .afb-team-member-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .afb-cv-download-btn {
        display: none;
    }
    
    .afb-team-footer {
        border-top: 1px solid #ddd;
    }
}
/* تاريخ التعيين والمسمى والرتبة */

.afb-team-member-employment-date {
    color: #718096;
    font-size: 13px;
    margin-bottom: 5px;
    font-style: italic;
}

.afb-team-member-job-title {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #2c5282;
}

.afb-team-member-rank-number {
    background: #e6fffa;
    color: #234e52;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-left: 5px;
}
.afb-team-total-member {
    position: relative;

    color: #ffffff; /* نص البادج */
    font-weight: 600;
    font-size: 15px;
    background: #194fa2; /* نفس لون الرتبة */
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2);

    overflow: hidden;
}

/* لمعة زجاج خفيفة */
.afb-team-total-member::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: glass-shine-total 6s ease-in-out infinite;
}

@keyframes glass-shine-total {
    0% { left: -60%; opacity: 0; }
    30% { opacity: 0.5; }
    50% { left: 120%; opacity: 0.5; }
    100% { left: 120%; opacity: 0; }
}

/* لون خلفية الرقم ذهبي */
.afb-team-total-number {
    background: #E2A232; /* ذهبي */
    padding: 2px 6px;
    border-radius: 12px;
    color: #ffffff !important; /* نص العدد أبيض */
    font-weight: 700;
}

/**
 * AFB Team Members - CSS Styles
 * Version: 3.0.2
 * Dean Info Specific Styles - Enhanced Design
 */

/* Dean Container - Modern Card Design */
.afb-dean-container {
    margin: 30px auto;
    max-width: 300px;
}

.afb-dean-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 95%;
    padding: 15px 0 0 15px;
    text-align: center;
    border: 1px solid rgba(224, 224, 224, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.afb-dean-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Dean Image - Professional Design */
.afb-dean-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.afb-dean-image-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.afb-dean-card:hover .afb-dean-image-wrapper::after {
    opacity: 1;
}

.afb-dean-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.afb-dean-card:hover .afb-dean-photo {
    transform: scale(1.08);
}

/* Dean Info - Compact Design */
.afb-dean-name-wrapper {
    margin-top: 5px;
}

.afb-dean-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.afb-dean-position {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #3498db;
    margin: 0 0 18px 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    letter-spacing: 0.5px;
    position: relative;
}

.afb-dean-position::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 1px;
}

/* Dean Profile Button - Modern Design */
.afb-dean-profile-link {
    margin-top: 5px;
}

.afb-dean-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 160px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.afb-dean-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: left 0.4s ease;
    z-index: -1;
}

.afb-dean-profile-btn:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
    color: white;
}

.afb-dean-profile-btn:hover::before {
    left: 0;
}

.afb-dean-profile-btn i {
    font-size: 14px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.afb-dean-profile-btn:hover i {
    transform: translateX(2px);
}

/* Badge for College Info */
.afb-dean-college-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Error and No Results Messages for Dean */
.afb-tmd-no-results {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.afb-tmd-no-results::before {
    content: '👨‍🏫';
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
}

/* Responsive Design for Dean - Mobile Optimized */
@media (max-width: 768px) {
    .afb-dean-container {
        max-width: 320px;
    }
    
    .afb-dean-image-wrapper {
        width: 170px; /* زيادة الحجم على الهواتف */
        height: 170px;
        border-width: 5px;
        margin-bottom: 25px; /* زيادة المسافة أسفل الصورة */
    }
    
    .afb-dean-name,
    .afb-dean-position {
        font-size: 14px !important; /* الحفاظ على حجم الخط 14px */
    }
    
    .afb-dean-profile-btn {
        padding: 10px 22px;
        font-size: 13px;
        min-width: 160px;
    }
}

@media (max-width: 576px) {
    .afb-dean-container {
        max-width: 320px;
        padding: 0 15px;
    }
    
    .afb-dean-card {
        padding: 22px;
    }
    
    .afb-dean-image-wrapper {
        width: 180px; /* أكبر حجم للهواتف الصغيرة */
        height: 180px;
        border-width: 5px;
        margin-bottom: 28px;
    }
    
    .afb-dean-name,
    .afb-dean-position {
        font-size: 14px !important; /* الحفاظ على حجم الخط 14px */
        margin-bottom: 10px;
    }
    
    .afb-dean-position {
        margin-bottom: 22px;
    }
    
    .afb-dean-profile-btn {
        padding: 11px 24px;
        font-size: 13px;
        min-width: 170px;
        margin-top: 8px;
    }
}

/* تعديل إضافي للهواتف ذات الشاشات الصغيرة جداً */
@media (max-width: 375px) {
    .afb-dean-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .afb-dean-image-wrapper {
        width: 190px; /* أكبر حجم للشاشات الصغيرة جداً */
        height: 190px;
        margin-bottom: 30px;
    }
    
    .afb-dean-card {
        padding: 25px 20px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afb-dean-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Print Styles for Dean */
@media print {
    .afb-dean-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background: white !important;
    }
    
    .afb-dean-profile-btn {
        display: none;
    }
    
    .afb-dean-image-wrapper {
        box-shadow: none;
        border: 2px solid #ddd;
    }
}