/* ========================================
   AFDEL TEAM PAGE - MAIN STYLES
   ======================================== */

:root {
    --afdel-primary: #054777;
    --afdel-secondary: #A48A61;
    --afdel-accent: #61CE70;
    --afdel-gold: #FFD700;
    --afdel-gold-2: #F8C503;
    --afdel-dark: #09122C;
    --afdel-dark-2: #00092C;
    --afdel-text: #333333;
    --afdel-bg: #F5F5F5;
    --afdel-complement: #5E7A9A;
    --afdel-navy: #030E4F;
}

/* ========================================
   HERO SECTION
   ======================================== */

.afdel-team-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--afdel-dark) 0%, var(--afdel-navy) 100%);
    overflow: hidden;
}

.afdel-team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(164, 138, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5, 71, 119, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Particles */
.afdel-team-hero .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--afdel-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.2; }
}

.afdel-team-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.afdel-team-hero .hero-title span {
    background: linear-gradient(90deg, var(--afdel-gold), var(--afdel-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.afdel-team-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

/* Animated Line */
.afdel-team-hero .hero-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--afdel-gold), var(--afdel-secondary));
    margin: 25px auto 0;
    position: relative;
    overflow: hidden;
}

.afdel-team-hero .hero-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shine-line 2s infinite;
}

@keyframes shine-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========================================
   TEAM CARDS GRID
   ======================================== */

.afdel-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

/* Individual Card */
.afdel-team-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 50px rgba(9, 18, 44, 0.08);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.afdel-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--afdel-primary), var(--afdel-secondary), var(--afdel-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}

.afdel-team-card:hover::before {
    transform: scaleX(1);
}

.afdel-team-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 80px rgba(9, 18, 44, 0.15);
}

/* Card Image */
.afdel-team-card .card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.afdel-team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.afdel-team-card:hover .card-image img {
    transform: scale(1.12);
}

/* Image Overlay */
.afdel-team-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(9, 18, 44, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.afdel-team-card:hover .card-overlay {
    opacity: 1;
}

/* Social Icons */
.afdel-team-card .card-socials {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
    z-index: 5;
}

.afdel-team-card:hover .card-socials {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.afdel-team-card .card-socials a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afdel-dark);
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.afdel-team-card .card-socials a:hover {
    background: var(--afdel-gold);
    color: var(--afdel-dark);
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* View Profile Button */
.afdel-team-card .view-profile {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--afdel-gold);
    color: var(--afdel-gold);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
    z-index: 5;
    overflow: hidden;
}

.afdel-team-card .view-profile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--afdel-gold);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.afdel-team-card:hover .view-profile {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.afdel-team-card .view-profile:hover {
    color: var(--afdel-dark);
}

.afdel-team-card .view-profile:hover::before {
    transform: translateX(0);
}

/* Card Info */
.afdel-team-card .card-info {
    padding: 28px;
    text-align: center;
    background: #fff;
    position: relative;
}

.afdel-team-card .card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--afdel-primary), var(--afdel-secondary));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.afdel-team-card:hover .card-info::before {
    width: 100px;
}

.afdel-team-card .member-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--afdel-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.afdel-team-card:hover .member-name {
    color: var(--afdel-primary);
}

.afdel-team-card .member-role {
    font-size: 0.9rem;
    color: var(--afdel-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   STATS SECTION
   ======================================== */

.afdel-stats-section {
    background: linear-gradient(135deg, var(--afdel-dark) 0%, var(--afdel-navy) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.afdel-stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(164, 138, 97, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.afdel-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .afdel-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .afdel-stats-grid {
        grid-template-columns: 1fr;
    }
}

.afdel-stat-item {
    text-align: center;
    padding: 30px;
    position: relative;
}

.afdel-stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(164, 138, 97, 0.3), transparent);
}

.afdel-stat-item:last-child::after {
    display: none;
}

.afdel-stat-item .stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--afdel-gold), var(--afdel-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--afdel-dark);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.afdel-stat-item:hover .stat-icon {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.afdel-stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.afdel-stat-item .stat-number span {
    color: var(--afdel-gold);
}

.afdel-stat-item .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */

.afdel-cta-section {
    padding: 100px 0;
    background: var(--afdel-bg);
    text-align: center;
    position: relative;
}

.afdel-cta-section .cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--afdel-dark);
    margin-bottom: 20px;
}

.afdel-cta-section .cta-subtitle {
    color: var(--afdel-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.afdel-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--afdel-primary), var(--afdel-navy));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(5, 71, 119, 0.3);
}

.afdel-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.afdel-cta-button:hover::before {
    left: 100%;
}

.afdel-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(5, 71, 119, 0.4);
    color: #fff;
}

.afdel-cta-button i {
    transition: transform 0.3s ease;
}

.afdel-cta-button:hover i {
    transform: translateX(-5px);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
    .afdel-team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 50px 0;
    }
    
    .afdel-team-card .card-socials {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    
    .afdel-team-card .view-profile {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    
    .afdel-team-card .card-overlay {
        opacity: 1;
    }
    
    .afdel-team-hero {
        min-height: 50vh;
        padding: 60px 20px;
    }
    
    .afdel-stats-section {
        padding: 50px 0;
    }
    
    .afdel-stat-item::after {
        display: none;
    }
    
    .afdel-stat-item .stat-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS (Initial States)
   ======================================== */

.afdel-team-card.gsap-init {
    opacity: 0;
    transform: translateY(60px);
}

.afdel-stat-item.gsap-init {
    opacity: 0;
    transform: translateY(40px);
}

.afdel-cta-section.gsap-init .cta-title,
.afdel-cta-section.gsap-init .cta-subtitle,
.afdel-cta-section.gsap-init .afdel-cta-button {
    opacity: 0;
    transform: translateY(30px);
}





/* PART 2 */





/* Custom Cursor */
.afdel-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--afdel-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--afdel-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s ease;
}

@media (max-width: 991px) {
    .afdel-cursor {
        display: none;
    }
}




/* PART 3 */


/* ========================================
   SINGLE TEAM MEMBER PAGE
   ======================================== */

/* Profile Hero Section */
.afdel-profile-hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--afdel-dark) 0%, var(--afdel-dark) 60%, var(--afdel-bg) 60%);
    position: relative;
}

.afdel-profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(164, 138, 97, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 71, 119, 0.15) 0%, transparent 40%);
}

.afdel-profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .afdel-profile-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Profile Image */
.afdel-profile-image {
    position: relative;
}

.afdel-profile-image .image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.afdel-profile-image .image-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--afdel-gold), var(--afdel-secondary), var(--afdel-primary));
    border-radius: 32px;
    z-index: -1;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.afdel-profile-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 30px;
}

/* Floating Badge */
.afdel-profile-image .verified-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--afdel-gold), var(--afdel-secondary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.verified-badge i {
    font-size: 24px;
    color: var(--afdel-dark);
}

.verified-badge span {
    font-size: 10px;
    font-weight: 700;
    color: var(--afdel-dark);
    margin-top: 2px;
}

/* Profile Info */
.afdel-profile-info {
    padding-top: 30px;
}

.afdel-profile-info .member-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.afdel-profile-info .member-role {
    font-size: 1.2rem;
    color: var(--afdel-gold);
    font-weight: 500;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.afdel-profile-info .member-role::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--afdel-gold);
}

/* Social Links */
.afdel-profile-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .afdel-profile-socials {
        justify-content: center;
    }
}

.afdel-profile-socials a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.afdel-profile-socials a:hover {
    background: var(--afdel-gold);
    color: var(--afdel-dark);
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

/* Contact Info */
.afdel-profile-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.afdel-profile-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f4f6fb;
    color: #0a1f44;
    border: 1px solid #e2e6ef;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.afdel-profile-contact .contact-item:hover {
    transform: translateX(-10px);
}

.afdel-profile-contact .contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--afdel-primary), var(--afdel-complement));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a437;
    font-size: 16px;
}

.afdel-profile-contact .contact-item span {
    color: #0a1f44;
    font-size: 1rem;
    direction: ltr;
}

/* ========================================
   MINI STATS SECTION
   ======================================== */

.afdel-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
}

@media (max-width: 767px) {
    .afdel-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.afdel-mini-stat {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(9, 18, 44, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.afdel-mini-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--afdel-primary), var(--afdel-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.afdel-mini-stat:hover::before {
    transform: scaleX(1);
}

.afdel-mini-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(9, 18, 44, 0.12);
}

.afdel-mini-stat .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(5, 71, 119, 0.1), rgba(164, 138, 97, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--afdel-primary);
}

.afdel-mini-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--afdel-dark);
    margin-bottom: 5px;
}

.afdel-mini-stat .stat-label {
    font-size: 0.9rem;
    color: var(--afdel-text);
    opacity: 0.7;
}

/* ========================================
   BIO SECTION
   ======================================== */

.afdel-bio-section {
    padding: 80px 0;
    background: var(--afdel-bg);
}

.afdel-bio-card {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(9, 18, 44, 0.06);
    position: relative;
}

.afdel-bio-card::before {
    content: '"';
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--afdel-gold);
    opacity: 0.15;
    line-height: 1;
}

.afdel-bio-card .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--afdel-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.afdel-bio-card .section-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, var(--afdel-gold), var(--afdel-secondary));
    border-radius: 3px;
}

.afdel-bio-card .bio-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--afdel-text);
}

/* ========================================
   EXPERTISE SECTION
   ======================================== */

.afdel-expertise-section {
    padding: 80px 0;
}

.afdel-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .afdel-expertise-grid {
        grid-template-columns: 1fr;
    }
}

.afdel-expertise-item {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(9, 18, 44, 0.05);
}

.afdel-expertise-item .expertise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.afdel-expertise-item .expertise-title {
    font-weight: 600;
    color: var(--afdel-dark);
}

.afdel-expertise-item .expertise-percent {
    font-weight: 700;
    color: var(--afdel-primary);
}

.afdel-expertise-item .progress-bar {
    height: 10px;
    background: rgba(5, 71, 119, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.afdel-expertise-item .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--afdel-primary), var(--afdel-gold));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ========================================
   ARTICLES SECTION
   ======================================== */

.afdel-articles-section {
    padding: 80px 0;
    background: var(--afdel-bg);
}

.afdel-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .afdel-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .afdel-articles-grid {
        grid-template-columns: 1fr;
    }
}

.afdel-article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(9, 18, 44, 0.05);
    transition: all 0.4s ease;
}

.afdel-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(9, 18, 44, 0.1);
}

.afdel-article-card .article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.afdel-article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.afdel-article-card:hover .article-image img {
    transform: scale(1.1);
}

.afdel-article-card .article-content {
    padding: 25px;
}

.afdel-article-card .article-date {
    font-size: 0.85rem;
    color: var(--afdel-secondary);
    margin-bottom: 10px;
}

.afdel-article-card .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--afdel-dark);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.afdel-article-card:hover .article-title {
    color: var(--afdel-primary);
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.afdel-contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--afdel-dark) 0%, var(--afdel-navy) 100%);
    position: relative;
}

.afdel-contact-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.afdel-contact-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.afdel-contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.afdel-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.afdel-contact-form .form-group {
    margin-bottom: 20px;
}

.afdel-contact-form input,
.afdel-contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.afdel-contact-form input::placeholder,
.afdel-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.afdel-contact-form input:focus,
.afdel-contact-form textarea:focus {
    outline: none;
    border-color: var(--afdel-gold);
    background: rgba(255, 255, 255, 0.12);
}

.afdel-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.afdel-contact-form .submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--afdel-gold), var(--afdel-secondary));
    border: none;
    border-radius: 15px;
    color: var(--afdel-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
}

.afdel-contact-form .submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/*  ADDED اگر GSAP لود نشود، محتوای سینگل قابل مشاهده بماند */
html:not(.gsap-ready) .afdel-bio-card,
html:not(.gsap-ready) .afdel-mini-stat,
html:not(.gsap-ready) .afdel-profile-info,
html:not(.gsap-ready) .afdel-article-card {
    opacity: 1 !important;
}

/* بیو همیشه باید قابل خواندن باشد */
.afdel-bio-card .bio-content {
    min-height: 1em;
}



/* ========================================
   PART 4 - SINGLE PAGE MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 991px) {
    /* هیرو پروفایل */
    .afdel-profile-hero {
        padding: 60px 0 50px;
        background: linear-gradient(180deg, var(--afdel-dark) 0%, var(--afdel-dark) 70%, var(--afdel-bg) 70%);
    }

    .afdel-profile-container {
        gap: 35px;
    }

    /* تصویر پروفایل وسط‌چین و کوچک‌تر */
    .afdel-profile-image {
        max-width: 260px;
        margin: 0 auto;
    }

    .afdel-profile-info {
        padding-top: 10px;
    }

    /* کادرهای تماس وسط‌چین */
    .afdel-profile-contact {
        align-items: center;
    }

    .afdel-profile-contact .contact-item {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    /* mini stats */
    .afdel-mini-stats {
        margin: 35px 0;
        gap: 15px;
    }

    .afdel-mini-stat {
        padding: 22px 14px;
    }

    .afdel-mini-stat .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .afdel-mini-stat .stat-value {
        font-size: 1.6rem;
    }

    /* بخش‌ها padding کمتر */
    .afdel-bio-section,
    .afdel-expertise-section,
    .afdel-articles-section {
        padding: 45px 0;
    }

    .afdel-bio-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .afdel-bio-card .bio-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .afdel-bio-card::before {
        font-size: 80px;
        top: 15px;
        right: 20px;
    }

    /* expertise */
    .afdel-expertise-item {
        padding: 22px;
    }

    .afdel-expertise-item .expertise-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* فرم تماس */
    .afdel-contact-section {
        padding: 55px 20px;
    }

    .afdel-contact-section .section-title {
        font-size: 1.5rem;
    }

    /* جلوگیری از سرریز افقی */
    .afdel-profile-info .member-name {
        font-size: 1.8rem;
    }
}

/* جلوگیری از overflow افقی کل صفحه */
.afdel-profile-hero,
.afdel-bio-section,
.afdel-expertise-section {
    overflow-x: hidden;
}