/* ========================================
   INSTRUCTOR SECTION
   ======================================== */
.instructor {
    background: linear-gradient(
        135deg,
        rgba(198, 216, 193, 0.08) 0%,
        rgba(247, 241, 232, 1) 50%,
        rgba(242, 201, 105, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
    padding: calc(var(--spacing-3xl) * 1.5) 0;
}

.instructor__bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/texture-bamboo.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.02;
    z-index: 0;
}

/* Floating Decorative Elements */
.instructor__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.flow-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(242, 201, 105, 0.12),
        rgba(86, 98, 49, 0.06)
    );
    filter: blur(80px);
    animation: float-gentle 20s ease-in-out infinite;
}

.flow-circle--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.flow-circle--2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 5%;
    animation-delay: -7s;
}

.flow-circle--3 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(40px, -40px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.3;
    }
}

/* Layout */
.instructor__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-3xl) * 1.5);
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .instructor__layout {
        grid-template-columns: 48% 52%;
        gap: calc(var(--spacing-3xl) * 2.5);
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .instructor__layout {
        grid-template-columns: 45% 55%;
        gap: calc(var(--spacing-3xl) * 3);
    }
}

/* Image Section */
.instructor__images {
    position: relative;
    padding: var(--spacing-sm) 0;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.instructor__frame-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .instructor__frame-wrapper {
        max-width: 100%;
    }
}

.instructor__frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.instructor__frame:hover {
    transform: translateY(-12px) scale(1.02);
}

.instructor__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.instructor__photo.active {
    opacity: 1;
}

/* Decorative Borders */
.instructor__frame-border {
    position: absolute;
    border-radius: 32px;
    pointer-events: none;
    transition: all 0.6s ease;
}

.instructor__frame-border--1 {
    inset: -16px;
    border: 3px solid rgba(242, 201, 105, 0.25);
    animation: border-pulse-1 4s ease-in-out infinite;
}

.instructor__frame-border--2 {
    inset: -32px;
    border: 2px solid rgba(86, 98, 49, 0.15);
    animation: border-pulse-2 4s ease-in-out infinite;
}

@keyframes border-pulse-1 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.7;
    }
}

@keyframes border-pulse-2 {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.25;
    }
    50% {
        transform: scale(1.04) rotate(1deg);
        opacity: 0.5;
    }
}

/* Floating Badge */
.instructor__badge {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    animation: badge-float 6s ease-in-out infinite;
    z-index: 10;
}

.instructor__badge-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(242, 201, 105, 0.98),
        rgba(255, 220, 140, 0.98)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 12px 40px rgba(242, 201, 105, 0.35),
        0 0 0 10px rgba(247, 241, 232, 0.9),
        0 0 0 15px rgba(242, 201, 105, 0.15);
    transform: rotate(-12deg);
}

.instructor__badge-text {
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-olive);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0) rotate(-12deg);
    }
    50% {
        transform: translateY(-12px) rotate(-8deg);
    }
}

/* Content Section */
.instructor__content {
    position: relative;
    padding: var(--spacing-lg) 0;
    padding-left: 0;
}

@media (min-width: 900px) {
    .instructor__content {
        padding: var(--spacing-sm) 0;
        padding-left: var(--spacing-sm);
        border-left: 1px solid rgba(86, 98, 49, 0.12);
        margin-left: var(--spacing-lg);
    }
}

.instructor__header {
    position: relative;
    margin-bottom: var(--spacing-sm);
}

.instructor__title {
    margin-bottom: var(--spacing-sm);
}

.instructor__title-accent {
    width: 80px;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--color-brand-yellow),
        rgba(242, 201, 105, 0.3),
        transparent
    );
    margin-top: var(--spacing-md);
    border-radius: 3px;
}

.instructor__name {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-olive);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    background: linear-gradient(
        135deg,
        var(--color-primary-olive),
        rgba(86, 98, 49, 0.7)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Credentials Tags */
.instructor__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: calc(var(--spacing-xs) * 1.5);
}

.credential-tag {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: rgba(242, 201, 105, 0.1);
    border: 1.5px solid rgba(242, 201, 105, 0.25);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary-olive);
    transition: all var(--transition-base);
}

.credential-tag:hover {
    background: rgba(242, 201, 105, 0.18);
    border-color: rgba(242, 201, 105, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 201, 105, 0.2);
}

.instructor__bio {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-primary);
    margin-bottom: calc(var(--spacing-sm) * 1.5);
}

/* Quote Section */
.instructor__quote-wrapper {
    position: relative;
    margin: calc(var(--spacing-sm) * 1.5) 0;
}

.quote-icon {
    position: absolute;
    top: -16px;
    left: -12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(242, 201, 105, 0.25),
        rgba(242, 201, 105, 0.12)
    );
    border-radius: 50%;
    color: var(--color-brand-yellow);
    box-shadow: 0 4px 16px rgba(242, 201, 105, 0.2);
}

.instructor__quote {
    padding: calc(var(--spacing-lg) * 1.25);
    padding-left: calc(var(--spacing-sm) * 1.5);
    background: linear-gradient(
        135deg,
        rgba(247, 241, 232, 0.9),
        rgba(242, 201, 105, 0.06)
    );
    border-left: 5px solid var(--color-brand-yellow);
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.instructor__quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--color-brand-yellow),
        rgba(242, 201, 105, 0.4)
    );
}

.instructor__quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.8;
}

/* CTA Buttons */
.instructor__cta {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.8
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .instructor__name {
        font-size: 2.25rem;
    }
    
    .instructor__content {
        margin-left: 0;
        padding-left: var(--spacing-lg);
        border-left: none;
    }
}

@media (max-width: 900px) {
    .instructor {
        padding: var(--spacing-3xl) 0;
    }
    
    .instructor__layout {
        gap: calc(var(--spacing-3xl) * 1.25);
    }
    
    .instructor__name {
        font-size: 2rem;
    }
    
    .instructor__badge {
        width: 120px;
        height: 120px;
        top: -25px;
        right: -25px;
    }
    
    .instructor__badge-text {
        font-size: 0.72rem;
    }
    
    .quote-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .instructor {
        padding: calc(var(--spacing-sm) * 2) 0;
    }
    
    .instructor__layout {
        gap: var(--spacing-3xl);
    }
    
    .flow-circle {
        display: none;
    }
    
    .instructor__images {
        padding: var(--spacing-md) 0;
    }
    
    .instructor__badge {
        width: 100px;
        height: 100px;
        top: -20px;
        right: -20px;
    }
    
    .instructor__badge-inner {
        box-shadow: 
            0 8px 30px rgba(242, 201, 105, 0.3),
            0 0 0 8px rgba(247, 241, 232, 0.9),
            0 0 0 12px rgba(242, 201, 105, 0.15);
    }
    
    .instructor__badge-text {
        font-size: 0.65rem;
    }
    
    .instructor__content {
        padding: 0;
    }
    
    .instructor__header {
        margin-bottom: var(--spacing-lg);
    }
    
    .instructor__name {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .instructor__credentials {
        gap: 0.5rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .credential-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .instructor__bio {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .instructor__quote-wrapper {
        margin: var(--spacing-sm) 0;
    }
    
    .quote-icon {
        width: 40px;
        height: 40px;
        top: -12px;
        left: -8px;
    }
    
    .instructor__quote {
        padding: var(--spacing-lg);
        padding-left: calc(var(--spacing-lg) + 20px);
    }
    
    .instructor__quote p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .instructor__cta {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-sm);
    }
    
    .instructor__cta .btn {
        width: 100%;
        justify-content: center;
    }
}
