:root {
    --primary-color: #333A45;
    --secondary-color: #0e6f6b;
    --accent-color: #3498db;
}

body {
    padding-top: 56px; /* Adjust this value based on your auth-bar height */
    font-family: 'Vazirmatn', sans-serif;
}

/* Auth Bar Styles */
.auth-bar {
    background: var(--primary-color);
    padding: 8px 0;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: none; /* Remove transform animation */
    transition: none; /* Remove transition */
    min-height: 56px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-btn {
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-btn.login {
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn.register {
    background: var(--secondary-color);
}

.auth-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.auth-btn.login:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-btn.register:hover {
    background: #095854;
}

/* Update Language Switcher Styles */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.lang-btn i {
    font-size: 0.8rem;
}

.lang-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-btn.active i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 5px;
}

.lang-switcher.active .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 8px 15px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
}

/* Updated Header Section Styles */
.teachers-header {
    padding: 100px 0;
    color: white;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-section {
    text-align: center;
}

.university-logo {
    width: 125px;
    height: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.university-logo:hover {
    transform: scale(1.05);
}

.university-info {
    max-width: 800px;
    margin: 0 auto;
}

.university-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.university-slogan {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.page-description {
    /* margin-top: 30px; */
    padding-top: 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
}

.section-title-logo {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .teachers-header {
        padding: 60px 0;
    }

    .university-name {
        font-size: 1.8rem;
    }

    .university-slogan {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Compact Header Styles */
.teachers-header-compact {
    padding: 40px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://alzahraa.edu.iq/wp-content/uploads/2022/12/D90A7709-scaled-1.jpg') center/cover no-repeat fixed;

    background: linear-gradient(135deg, #0e6f6b 0%, #333A45 100%);
    color: white;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.teachers-header-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.15;
}

.university-logo-compact {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    display: block;
}


.university-logo-compact:hover {
    transform: scale(1.08);
}

.section-title-compact {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.section-subtitle-compact {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

@media (max-width: 768px) {
    .teachers-header-compact {
        padding: 30px 0;
    }

    .university-logo-compact {
        width: 80px;
    }

    .section-title-compact {
        font-size: 1.5rem;
    }

    .section-subtitle-compact {
        font-size: 0.95rem;
    }
}

/* Faculty Datatable Styles */
.faculty-datatable-section .card {
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.faculty-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.faculty-actions {
    display: flex;
    gap: 5px;
}

.faculty-actions .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* DataTables Custom Styles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

[dir="rtl"] .dataTables_filter {
    float: left;
}

[dir="rtl"] .dataTables_length {
    float: right;
}

/* Faculty Profile Styles */
.faculty-profile-section .card {
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.faculty-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
}

.faculty-name {
    color: var(--primary-color);
    font-weight: 600;
}

.faculty-title {
    color: var(--secondary-color);
    font-weight: 500;
}

.faculty-info-list {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.info-item label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 2px;
}

.faculty-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: white;
}

.social-link i {
    font-size: 1.2rem;
}

/* Tab Styles */
.nav-tabs .nav-link {
    color: var(--primary-color);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.section-title {
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    font-weight: 600;
}

.section-title i {
    color: var(--secondary-color) !important;
    font-size: 1.2rem;
}

/* Research Interests Styles */
.research-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: var(--secondary-color);
    color: white;
}

/* Publications Styles */
.publication-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.publication-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 15px;
    margin: 8px 0;
}

.publication-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.pub-tag {
    background: rgba(14, 111, 107, 0.1);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Updated Faculty Profile Styles */
.faculty-header {
    position: relative;
}

.faculty-info {
    padding: 20px;
}

.faculty-name {
    font-size: 2rem;
    color: var(--primary-color);
    color: #ffffff;
    margin-bottom: 10px;
}

.faculty-title {
    color: var(--secondary-color);
    color: #b7c2c5;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.faculty-section {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary-color);
}

.admin-positions {
    list-style: none;
    padding: 0;
}

.admin-positions li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 20px;
}

.admin-positions li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    right: 0;
}

.faculty-details .info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 0;
}

.publication-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.faculty-profile-section .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 3rem 2rem;
    padding-bottom: 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Add decorative background pattern */
.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(https://alzahraa.edu.iq/wp-content/uploads/2022/12/D90A7709-scaled-1.jpg) center / cover no-repeat;
    background-repeat: repeat;
    opacity: 0.6;
    z-index: 0;
}

/* Ensure content stays above pattern */
.profile-header > * {
    position: relative;
    z-index: 1;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    border-radius: 50% 50% 0 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: -100px auto 20px;
    z-index: 1;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.profile-social-links {
    background: white;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card .icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-card .label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-card .value {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.profile-sections {
    padding: 2rem;
}

.profile-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.research-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.interest-tag:hover {
    background: var(--secondary-color);
    color: white;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Login Section Styles */
.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.login-form .form-control {
    padding: 0.75rem 1rem;
    border-color: #e0e0e0;
}

.login-form .input-group-text {
    background: none;
    border-left: none;
    color: var(--secondary-color);
}

.login-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
}

.login-form .form-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 5px;
}

.register-link:hover {
    text-decoration: underline;
}

/* LTR Support for Register Link */
[dir="ltr"] .register-link {
    margin-right: 0;
    margin-left: 5px;
}

.login-form .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    background-color: #095854;
    border-color: #095854;
    transform: translateY(-2px);
}

#togglePassword {
    border-right: none;
    color: var(--secondary-color);
}

#togglePassword:hover {
    background: none;
    color: var(--primary-color);
}

/* Modern Login Section Styles */
.modern-login-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.modern-login-card-container {
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.login-form-side {
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.modern-login-form .form-floating {
    position: relative;
}

.modern-login-form .form-floating > label {
    padding-right: 35px;
    color: #6c757d;
}

.modern-login-form .form-floating > label i {
    margin-left: 8px;
    color: var(--secondary-color);
}

/* LTR Support for English Language */
[dir="ltr"] .modern-login-form .form-floating > label {
    padding-right: 0.75rem;
    padding-left: 35px;
    text-align: left;
    right: auto;
    left: 0;
}

[dir="ltr"] .modern-login-form .form-floating > label i {
    margin-left: 0;
    margin-right: 8px;
}

.modern-login-form .form-control {
    height: 60px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

/* LTR Support for Form Controls */
[dir="ltr"] .modern-login-form .form-control {
    text-align: left;
    direction: ltr;
}

/* Placeholder alignment */
.modern-login-form .form-control::placeholder {
    text-align: right;
}

[dir="ltr"] .modern-login-form .form-control::placeholder {
    text-align: left;
}

.modern-login-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 111, 107, 0.1);
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 5;
}

/* LTR Support for Password Toggle */
[dir="ltr"] .password-toggle {
    left: auto;
    right: 15px;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.modern-forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.modern-login-btn {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--secondary-color);
    border: none;
    transition: all 0.3s ease;
}

.modern-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.2);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: #e0e0e0;
}

.divider::before { right: 0; }
.divider::after { left: 0; }

/* LTR Support for Divider */
[dir="ltr"] .divider::before { right: 0; left: auto; }
[dir="ltr"] .divider::after { left: 0; right: auto; }

.divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    width: 100%;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.social-btn.google i { color: #DB4437; }
.social-btn.microsoft i { color: #00A4EF; }

.welcome-side {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    height: 100%;
    padding: 3rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.welcome-logo {
    width: 100px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.welcome-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-features {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-features .feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-btn {
    width: 100%;
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.welcome-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .welcome-side {
        display: none;
    }

    .login-form-side {
        padding: 2rem;
    }

    body {
        padding-top: 60px; /* Adjust for mobile header height */
    }
}

@media (max-width: 576px) {
    .login-form-side {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.75rem;
    }
}

/* Signup Section Styles */
.signup-section {
    min-height: 100vh;
}

.signup-section .login-form-side {
    min-height: 600px;
}

.login-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 5px;
}

.login-link:hover {
    text-decoration: underline;
}

/* LTR Support for Login Link */
[dir="ltr"] .login-link {
    margin-right: 0;
    margin-left: 5px;
}

/* Add any additional styles you need */

/* Mobile Header & Sidebar Styles */
.mobile-header {
    background: var(--primary-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-header .user-profile-dropdown {
    /* Override any position relative from main styles */
    position: static;
}

.mobile-header .profile-dropdown {
    left: 15px;
    right: 15px;
    width: auto;
    max-width: 280px;
}

/* Mobile Auth Buttons Styles */
.mobile-header .auth-buttons {
    display: flex;
    gap: 8px;
}

.mobile-header .auth-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.mobile-header .auth-btn i {
    font-size: 1.1rem;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.menu-toggle:active {
    transform: translateY(0);
}

.page-title {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.page-title i {
    font-size: 1.2rem;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.sidebar-link:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.sidebar-link.highlight {
    background: var(--secondary-color);
    color: white;
}

.sidebar-link.highlight:hover {
    background: #095854;
    color: white;
}

.mobile-lang-switcher {
    position: relative;
}

.mobile-lang-dropdown {
    display: none;
    padding: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 5px;
}

.mobile-lang-dropdown.active {
    display: block;
}

/* Adjust main content for mobile header */
@media (max-width: 991.98px) {
    body {
        padding-top: 60px;
    }
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
}

.profile-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-toggle:hover {
    transform: translateY(-2px);
}

.profile-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    min-width: 260px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header-mini {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.profile-avatar-medium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info-mini {
    flex: 1;
}

.profile-name {
    color: var(--primary-color);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.profile-title {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    margin-top: 3px;
}

.profile-links {
    padding: 10px 0;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.profile-link.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.profile-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: #eee;
}

/* Update mobile header styles */
.mobile-header .profile-dropdown {
    position: absolute;
    right: auto;
    left: 15px;
    top: calc(100% + 10px);
    width: 280px; /* Fixed width */
    z-index: 1001; /* Higher than sidebar */
}

/* Adjust dropdown position for RTL */
[dir="rtl"] .profile-dropdown {
    right: auto;
    left: 0;
}

/* Teacher Profile Edit Styles */
.teacher-profile-edit .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.profile-tabs {
    border-radius: 10px;
    background: #f8f9fa;
    padding: 5px;
    gap: 5px;
}

.profile-tabs .nav-link {
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.profile-tabs .nav-link.active {
    background: var(--secondary-color);
    color: white;
}

.profile-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-image-wrapper:hover .image-upload-overlay {
    opacity: 1;
}

.upload-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Modern Teacher Profile Edit Styles */
.teacher-profile-edit {
    background-color: #f8f9fa;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-main-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    transition: all 0.3s ease;
}

.profile-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-image-wrapper:hover .image-upload-overlay {
    opacity: 1;
}

.upload-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.image-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Profile Card Styles - Updated for scrollable form */
.profile-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    background-color: white !important;
}

.profile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.profile-card .card-body {
    padding: 30px;
    color: var(--primary-color) !important;
}

.profile-card:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--secondary-color);
    opacity: 0.7;
}

.section-title {
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    font-weight: 600;
}

.section-title i {
    color: var(--secondary-color) !important;
    font-size: 1.2rem;
}

/* Form Actions Styles - Updated for scrollable form */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    position: sticky;
    bottom: 20px;
    background: white !important;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* Remove tab-related styles */
.profile-tabs .nav-link.has-error::after {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Dividers */
.section-divider {
    height: 30px;
    margin: 20px 0;
    position: relative;
}

.section-divider:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

/* Form Validation - Updated for scrollable form */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

[dir="rtl"] .is-invalid {
    background-position: left calc(0.375em + 0.1875rem) center;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Animation for form sections */
.profile-card {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Notification System Styles */
.notification {
    display: none;
}

.notification.show {
    display: none;
}

.notification .notification-icon {
    display: none;
}

.notification .notification-message {
    display: none;
}

.notification .notification-close {
    display: none;
}

.notification .notification-close:hover {
    display: none;
}

.notification.success .notification-icon {
    display: none;
}

.notification.error .notification-icon {
    display: none;
}

.notification.info .notification-icon {
    display: none;
}

.notification.warning .notification-icon {
    display: none;
}

[dir="rtl"] .notification {
    display: none;
}

[dir="rtl"] .notification.show {
    display: none;
}

[dir="rtl"] .notification .notification-icon {
    display: none;
}

@media (max-width: 576px) {
    .notification {
        display: none;
    }
}

/* RTL Support for Notifications */

/* Form Floating Styles */
.form-floating {
    margin-bottom: 0;
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border-color: #e0e0e0;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

/* LTR Support for All Form Controls */
[dir="ltr"] .form-floating > .form-control {
    text-align: left;
    direction: ltr;
}

/* Placeholder alignment for all form controls */
.form-floating > .form-control::placeholder {
    text-align: right;
}

[dir="ltr"] .form-floating > .form-control::placeholder {
    text-align: left;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(14, 111, 107, 0.25);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

/* LTR Support for Form Floating Labels with Icons */
[dir="ltr"] .form-floating > label {
    text-align: left;
    right: auto;
    left: 0;
}

[dir="ltr"] .form-floating > label i {
    margin-left: 0;
    margin-right: 8px;
}

/* Additional LTR Support for Profile Edit Page */
[dir="ltr"] .profile-card .form-floating > label {
    text-align: left;
}

.form-floating textarea.form-control {
    height: auto;
}

/* Select elements alignment */
.form-floating > select.form-control {
    text-align: right;
    direction: rtl;
}

[dir="ltr"] .form-floating > select.form-control {
    text-align: left;
    direction: ltr;
}

/* Form Floating Label Enhancements */
.form-floating > .form-control:focus,
.form-floating > .form-control.filled {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control.filled ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

[dir="rtl"] .form-floating > .form-control:focus ~ label,
[dir="rtl"] .form-floating > .form-control.filled ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(-0.15rem);
}

[dir="ltr"] .form-floating > .form-control:focus ~ label,
[dir="ltr"] .form-floating > .form-control.filled ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(-0.15rem);
}

/* Social Input Group Styles */
.social-input-group {
    position: relative;
}

.social-input-group .input-group-text {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px 0 0 10px;
    width: 50px;
    display: flex;
    justify-content: center;
}

.social-input-group .form-floating {
    flex: 1;
}

.social-input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

/* RTL Specific Adjustments for Social Inputs */
[dir="rtl"] .social-input-group .input-group-text {
    border-radius: 0 10px 10px 0;
}

[dir="rtl"] .social-input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

/* LTR Specific Adjustments for Social Inputs */
[dir="ltr"] .social-input-group .input-group-text {
    border-radius: 10px 0 0 10px;
}

[dir="ltr"] .social-input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
    border-right: 1px solid #e0e0e0;
    text-align: left;
}

[dir="ltr"] .social-input-group .form-floating > label {
    text-align: left;
    right: auto;
    left: 0;
}

/* Button Styles */
.save-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #095854;
    border-color: #095854;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 111, 107, 0.3);
}

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: #e0e0e0;
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-color: #d0d0d0;
    transform: translateY(-3px);
}

/* Loading Button Styles */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styles */
.alert-container {
    position: relative;
    z-index: 10;
}

.alert {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

[dir="rtl"] .alert-success,
[dir="rtl"] .alert-danger,
[dir="rtl"] .alert-warning,
[dir="rtl"] .alert-info {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .alert-success {
    border-right-color: #28a745;
}

[dir="rtl"] .alert-danger {
    border-right-color: #dc3545;
}

[dir="rtl"] .alert-warning {
    border-right-color: #ffc107;
}

[dir="rtl"] .alert-info {
    border-right-color: #17a2b8;
}

.alert .btn-close {
    padding: 1.05rem 1rem;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 0.75;
}

.alert ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

[dir="rtl"] .alert ul {
    padding-left: 0;
    padding-right: 1.5rem;
}

.alert strong {
    font-weight: 600;
}

.image-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.image-info i {
    color: #17a2b8;
}

/* Teacher cards styles - New Modern Design */
.teacher-card-link-wrapper {
    text-decoration: none !important;
    color: inherit;
    display: block;
    position: relative;
    perspective: 1000px;
    margin-bottom: 10px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Leadership Grid - Always 3 columns */
.teachers-grid.leadership-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .teachers-grid.leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .teachers-grid.leadership-grid {
        grid-template-columns: 1fr;
    }
}

.teacher-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.1),
                0 8px 16px -8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(0,0,0,0.05);
}

.teacher-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
                0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

.teacher-card-header {
    position: relative;
    height: 125px;
    background: var(--secondary-color);
    overflow: hidden;
}

.teacher-card-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.teacher-card-img-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: -81px auto 15px;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.teacher-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.teacher-card-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
}

.teacher-card-body {
    padding: 0 25px 30px;
    text-align: center;
}

.teacher-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.teacher-card-title {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.teacher-card-line {
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: 3px;
}

.teacher-card-college {
    font-size: 17px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
    color: #0e6f6b;
}

.teacher-card-department {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
    font-size: 16px;
}

@media (max-width: 576px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }
}


.line-teacher-card {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    top: 34px;
}

.line-teacher-card::before {
    position: absolute;
    content: "";
    max-width: 100%;
    width: 50%;
    height: 2px;
    bottom: 45px;
    right: 0px;
    left: 0px;
    background: rgb(237, 237, 237);
    margin: 0px auto;
  }




.line-teacher-card i {
    margin: 0 auto;
    position: absolute;
    top: -53px;
    font-size: 15px;
    color: #116967ab;
    width: 38px;
    left: 0;
    right: 0;

  }




  .line {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    top: 34px;
}


.line::before {
    position: absolute;
    content: "";
    max-width: 100%;
    width: 50%;
    height: 2px;
    background: #c5c5c5;
    background-color: #ededed;
    bottom: 45px;
    right: 0;
    left: 0;
    margin: 0 auto;
}


.line i {
    margin: 0 auto;
    position: absolute;
    top: -58px;
    font-size: 22px;
    color: #116967ab;
    width: 53px;
    left: 0;
    right: 0;
    z-index: 111;
}



.section-title {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    color: #4e4e4e;
    margin-bottom: 15px;
    text-align: center;
    display: block;
}


.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
}

/* ====================================
   Faculty Profile Page - Modern Design
   ==================================== */

.faculty-profile-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Profile Hero Section */
.profile-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0e6f6b 0%, #333A45 100%);
    padding: 80px 0 140px;
    overflow: hidden;
}

.profile-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.15;
}

.profile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.profile-hero-content {
    position: relative;
    z-index: 2;
}

/* Profile Image Large */
.profile-image-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.profile-image-large:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-verified-badge i {
    color: white;
    font-size: 1.2rem;
}

/* Profile Hero Info */
.profile-hero-info {
    color: white;
}

.scientific-title {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-hero-position {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.profile-hero-department {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-hero-department i {
    font-size: 1rem;
}

.profile-hero-department .separator {
    opacity: 0.5;
}

.profile-hero-email {
    font-size: 1rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-hero-email a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.profile-hero-email a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Academic Social Links */
.academic-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.academic-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.academic-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.academic-link i {
    font-size: 1.1rem;
}

/* Profile Content Section */
.profile-content-section {
    margin-top: -80px;
    position: relative;
    z-index: 3;
    padding-bottom: 60px;
}

/* Academic Info Cards */
.academic-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.academic-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.academic-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #095854);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(14, 111, 107, 0.25);
}

.academic-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.academic-card-content {
    flex: 1;
}

.academic-card-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.academic-card-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.profile-content-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-content-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.content-card-header {
    background: linear-gradient(135deg, var(--secondary-color), #095854);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-card-header i {
    font-size: 1.5rem;
    color: white;
}

.content-card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.content-card-body {
    padding: 35px;
}

.biography-content,
.research-interests-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

.biography-content p {
    margin-bottom: 15px;
}

.biography-content ul,
.biography-content ol {
    padding-right: 25px;
    margin-bottom: 15px;
}

.biography-content li {
    margin-bottom: 10px;
}

.research-interests-content {
    white-space: pre-line;
}

/* Research Interests Tags */
.research-interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    padding: 5px 0;
}

.research-interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(14, 111, 107, 0.12), rgba(14, 111, 107, 0.06));
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(14, 111, 107, 0.15);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.research-interest-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.research-interest-tag:hover::before {
    width: 100%;
}

.research-interest-tag:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(14, 111, 107, 0.35);
    border-color: var(--secondary-color);
}

.research-interest-tag i {
    font-size: 0.95rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.research-interest-tag:hover i {
    opacity: 1;
    transform: rotate(10deg);
}

.research-interest-tag > span {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-hero-section {
        padding: 60px 0 120px;
    }

    .profile-hero-name {
        font-size: 2rem;
    }

    .profile-hero-position {
        font-size: 1.1rem;
    }

    .profile-hero-department {
        flex-direction: column;
        font-size: 1rem;
    }

    .academic-info-cards {
        grid-template-columns: 1fr;
    }

    .academic-social-links {
        gap: 10px;
    }

    .academic-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .academic-link span {
        display: none;
    }

    .academic-link i {
        font-size: 1.2rem;
    }

    .academic-card {
        padding: 25px;
    }

    .content-card-header {
        padding: 20px 25px;
    }

    .content-card-header h3 {
        font-size: 1.2rem;
    }

    .content-card-body {
        padding: 25px;
    }

    .research-interests-tags {
        gap: 10px;
    }

    .research-interest-tag {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-image-large {
        width: 160px;
        height: 160px;
    }

    .profile-hero-name {
        font-size: 1.7rem;
    }

    .scientific-title {
        font-size: 0.9rem;
    }

    .profile-hero-email {
        flex-direction: column;
        gap: 5px;
    }

    .academic-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .academic-card-icon {
        margin-bottom: 10px;
    }

    .research-interest-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .research-interest-tag i {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .profile-hero-section {
        background: white;
        color: black;
    }

    .profile-hero-name,
    .profile-hero-position,
    .profile-hero-department,
    .scientific-title {
        color: black;
    }

    .academic-social-links {
        display: none;
    }

    .profile-content-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Faculty Footer Styles */
.faculty-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 30px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.faculty-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-text i {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 5px;
}

@media (max-width: 768px) {
    .faculty-footer {
        padding: 25px 0;
        margin-top: 40px;
    }

    .footer-text {
        font-size: 0.9rem;
    }
}

@media print {
    .faculty-footer {
        background: white;
        border-top: 1px solid #ddd;
    }

    .footer-text {
        color: black;
    }
}
