/* ===== HADITH SECTION ===== */
.iw-hadith-section {
    position: relative;
    background: linear-gradient(135deg, #234e52 0%, #152e31 100%);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.iw-hadith-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #f8f3e6;
}

.iw-hadith-arabic {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.iw-hadith-translation {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.iw-hadith-reference {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
}

.iw-hadith-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,10 100,0 L100,100 Q50,90 0,100 Z" fill="%23d4a373" opacity="0.1"/></svg>');
    background-size: cover;
}

/* ===== TITLE SECTION ===== */
.iw-faculty-title-section {
    padding: 4rem 0 2rem;
    text-align: center;
}

.iw-title-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.iw-faculty-title-section h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 3rem;
    color: #234e52;
    margin-bottom: 1.5rem;
    position: relative;
}

.iw-title-divider {
    height: 4px;
    width: 100px;
    background: #7f1102;
    margin: 0 auto;
    position: relative;
}

.iw-title-divider::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #d4a373;
    border-radius: 50%;
    border: 4px solid #fff;
}

/* ===== FACULTY GRID ===== */
.iw-faculty-grid-section {
    padding: 3rem 0;
    background: #f8f9f5;
}

.iw-faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.iw-faculty-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.1);
    transition: all 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
}

.iw-faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.2);
}

.iw-faculty-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.iw-faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iw-faculty-card:hover .iw-faculty-image img {
    transform: scale(1.05);
}

.iw-faculty-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a3be8c 0%, #7f9c68 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.2rem;
}

.iw-faculty-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(35,78,82,0.9) 0%, transparent 100%);
    z-index: 1;
}

.iw-faculty-info {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.iw-faculty-name {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.8rem;
    color: #234e52;
    margin-bottom: 0.5rem;
}

.iw-faculty-position {
    font-family: 'Philosopher', sans-serif;
    color: #7f1102;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.iw-faculty-bio {
    color: #234e52;
    line-height: 1.7;
    font-size: 1.05rem;
}

.iw-no-faculty {
    text-align: center;
    grid-column: 1 / -1;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    color: #234e52;
    padding: 3rem;
}

/* ===== KNOW MORE BUTTON ===== */
.iw-know-more-btn {
    position: absolute;
    bottom: 30px;
    right: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    background: rgba(163, 190, 140, 0.9);
    color: #234e52;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Philosopher', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
}

.iw-faculty-card:hover .iw-know-more-btn {
    transform: translateY(0);
    opacity: 1;
}

.iw-know-more-btn span {
    margin-right: 8px;
}

.iw-know-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.iw-know-more-btn:hover {
    background: #d4a373;
    color: #fff;
}

.iw-know-more-btn:hover svg {
    transform: translateX(5px);
}

/* ===== RIPPLE EFFECT ===== */
.iw-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: iw-ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes iw-ripple-animation {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===== QUALITIES SECTION ===== */
.iw-qualities-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9f5 0%, #ffffff 100%);
}

.iw-qualities-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.iw-qualities-header h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.5rem;
    color: #234e52;
    margin-bottom: 1.5rem;
}

.iw-qualities-header p {
    font-size: 1.2rem;
    color: #234e52;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.iw-qualities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.iw-quality-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(35, 78, 82, 0.08);
    display: flex;
    transition: all 0.3s ease;
    border-left: 4px solid #a3be8c;
    opacity: 0;
    transform: translateY(30px);
}

.iw-quality-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(35, 78, 82, 0.15);
    border-left-color: #7f1102;
}

.iw-quality-icon {
    min-width: 50px;
    height: 50px;
    background: #d4a373;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
}

.iw-quality-card p {
    color: #234e52;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.iw-qualities-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 1.5rem;
    text-align: center;
    background: rgba(163, 190, 140, 0.15);
    border-radius: 12px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: #234e52;
    font-weight: 600;
    position: relative;
}

.iw-qualities-footer::before {
    content: """;
    font-family: 'Amiri', serif;
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: 30px;
    color: #d4a373;
    opacity: 0.4;
}

/* ===== CTA SECTION ===== */
.iw-faculty-cta {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #234e52 0%, #152e31 100%);
    overflow: hidden;
    text-align: center;
}

.iw-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.iw-faculty-cta h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.iw-faculty-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.iw-cta-button {
    display: inline-block;
    background: #d4a373;
    color: #234e52;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #d4a373;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.iw-cta-button:hover {
    background: transparent;
    color: #d4a373;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.iw-cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q75,50 100,0 L0,100 Z" fill="%23a3be8c" opacity="0.15"/></svg>');
    background-size: cover;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .iw-hadith-arabic {
        font-size: 2rem;
    }
    
    .iw-hadith-translation {
        font-size: 1.3rem;
    }
    
    .iw-faculty-title-section h1 {
        font-size: 2.5rem;
    }
    
    .iw-faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .iw-hadith-section,
    .iw-faculty-cta {
        padding: 3rem 1.5rem;
    }
    
    .iw-qualities-section {
        padding: 3rem 1.5rem;
    }
    
    .iw-qualities-container {
        grid-template-columns: 1fr;
    }
    
    .iw-faculty-title-section h1 {
        font-size: 2.2rem;
    }
    
    .iw-faculty-cta h2 {
        font-size: 2.2rem;
    }
    
    .iw-faculty-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .iw-hadith-arabic {
        font-size: 1.8rem;
    }
    
    .iw-faculty-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .iw-quality-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .iw-quality-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .iw-know-more-btn {
        bottom: 20px;
        right: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}