/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Global Styles */
.iw-learning-journey-page {
    font-family: 'Philosopher', sans-serif;
    color: #234e52;
    line-height: 1.6;
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Carousel Styles */
.iw-carousel-container {
    width: 100%;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.iw-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.iw-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.iw-carousel-item {
    min-width: 100%;
    height: 100%;
}

.iw-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.iw-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 78, 82, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.iw-carousel-control:hover {
    background: #234e52;
}

.iw-carousel-control-prev {
    left: 15px;
}

.iw-carousel-control-next {
    right: 15px;
}

.iw-carousel-control-icon {
    font-size: 20px;
    font-weight: bold;
}

.iw-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.iw-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iw-carousel-indicator.iw-active {
    background: white;
    transform: scale(1.2);
}

/* Welcome Section */
.iw-welcome-section {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(to bottom, #f8f5f0, #fff);
}

.iw-greeting {
    font-size: 28px;
    color: #7f1102;
    margin-bottom: 20px;
}

.iw-title {
    font-size: 32px;
    color: #234e52;
    margin-bottom: 20px;
    line-height: 1.3;
}

.iw-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #333;
}

.iw-subtitle {
    font-size: 24px;
    color: #d4a373;
    font-weight: 700;
}

/* Learning Paths Section */
.iw-learning-paths {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.iw-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.iw-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.iw-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.iw-card-image {
    height: 200px;
    overflow: hidden;
}

.iw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iw-card:hover .iw-card-image img {
    transform: scale(1.05);
}

.iw-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iw-card-title {
    font-size: 22px;
    color: #234e52;
    margin-bottom: 10px;
}

.iw-card-description {
    font-size: 18px;
    color: #7f1102;
    margin-bottom: 15px;
    font-weight: 700;
}

.iw-card-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.iw-card-details h4 {
    font-size: 18px;
    color: #d4a373;
    margin: 15px 0 8px;
}

.iw-card-details ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.iw-card-details li {
    margin-bottom: 5px;
    font-size: 16px;
}

.iw-card-button {
    display: inline-block;
    background: #234e52;
    color: white;
    padding: 12px 25px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
}

.iw-card-button:hover {
    background: #7f1102;
    transform: translateY(-2px);
}

/* Hadith Section */
.iw-hadith-section {
    padding: 60px 0;
    background: linear-gradient(to right, #234e52, #3a6c70);
    color: white;
    text-align: center;
}

.iw-hadith-content blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    font-size: 18px;
}

.iw-hadith-arabic {
    font-family: 'Amiri', serif;
    font-size: 24px;
    margin: 20px 0;
    line-height: 1.8;
}

.iw-hadith-content cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 700;
}

/* Final Message Section */
.iw-final-message {
    padding: 60px 0;
    background-color: #f8f5f0;
}

.iw-final-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.iw-final-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.iw-cta {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.iw-cta h2 {
    color: #7f1102;
    margin-bottom: 20px;
}

.iw-support {
    margin-top: 40px;
    padding: 25px;
    background: #a3be8c;
    border-radius: 12px;
    color: #234e52;
}

.iw-contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.iw-contact-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.iw-whatsapp {
    background: #25D366;
}

.iw-email {
    background: #234e52;
}

.iw-contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .iw-carousel {
        height: 350px;
    }
    
    .iw-title {
        font-size: 28px;
    }
    
    .iw-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .iw-carousel {
        height: 300px;
    }
    
    .iw-carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .iw-greeting {
        font-size: 24px;
    }
    
    .iw-title {
        font-size: 24px;
    }
    
    .iw-subtitle {
        font-size: 20px;
    }
    
    .iw-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .iw-contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .iw-carousel {
        height: 250px;
    }
    
    .iw-container {
        padding: 0 15px;
    }
    
    .iw-card-content {
        padding: 20px;
    }
    
    .iw-hadith-arabic {
        font-size: 20px;
    }
    
    .iw-final-content p {
        font-size: 16px;
    }
}