/* Page Header */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 95, 60, 0.8), rgba(15, 95, 60, 0.6));
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-yellow);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-family: 'Amiri', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title .highlight-green {
    color: var(--primary-green);
}

.section-title .highlight-orange {
    color: var(--secondary-yellow);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 3px solid var(--secondary-yellow);
    transform: scale(1.02);
}

.service-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-yellow);
    color: var(--orange-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.service-image {
    display: none;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(15, 95, 60, 0.2);
    flex-shrink: 0;
}

.service-card.featured .service-icon {
    background: var(--secondary-yellow);
    color: var(--orange-text);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin: 0 0 25px 0;
}

.service-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.service-card.featured .service-features li:before {
    color: var(--secondary-yellow);
}

.service-price {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.service-price span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.service-card.featured .service-price span {
    color: var(--secondary-yellow);
}

.service-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
}

.service-card.featured .service-btn {
    background: var(--secondary-yellow);
    color: var(--orange-text);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 95, 60, 0.3);
}

.service-card.featured .service-btn:hover {
    box-shadow: 0 8px 20px rgba(246, 199, 68, 0.3);
}

/* Why Choose Our Services Section */
.why-choose-services {
    padding: 80px 0;
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-choose-item {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-choose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-choose-item:hover::before {
    transform: scaleX(1);
}

.why-choose-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: white;
}

.choose-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.why-choose-item:hover .choose-icon {
    background: var(--secondary-yellow);
    color: var(--text-dark);
    transform: scale(1.1);
}

.why-choose-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.why-choose-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Service Process Section */
.service-process {
    padding: 80px 0;
    background: var(--bg-section);
    position: relative;
}

.service-process::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='%2315604c' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--secondary-yellow);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.process-step:hover .step-number::before {
    opacity: 1;
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Services CTA Section */
.services-cta {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.services-cta::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.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.services-cta .cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-text {
    padding: 40px 0;
}

.services-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.services-cta h2 .highlight-green {
    color: var(--primary-green);
}

.services-cta h2 .highlight-orange {
    color: var(--secondary-yellow);
}

.services-cta p {
    font-size: 20px;
    margin-bottom: 35px;
    line-height: 1.6;
    color: var(--text-muted);
}

.services-cta .cta-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-primary {
    background: var(--secondary-yellow);
    color: var(--orange-text);
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-primary:hover {
    background: var(--primary-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 95, 60, 0.3);
}

.cta-secondary {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 18px 20px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    background: transparent;
}

.cta-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.cta-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-circle {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(15, 95, 60, 0.2);
}

.cta-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--secondary-yellow);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

.cta-inner {
    text-align: center;
    color: white;
}

.cta-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--orange-text);
}

.cta-label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Islamic Courses Section */
.courses-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border: 3px solid var(--secondary-yellow);
    transform: scale(1.02);
}

.course-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-card.featured .course-badge {
    background: var(--secondary-yellow);
    color: var(--orange-text);
}

.course-content {
    padding: 25px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.course-duration,
.course-category {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-duration {
    background: rgba(15, 95, 60, 0.1);
    color: var(--primary-green);
}

.course-category {
    background: rgba(246, 199, 68, 0.2);
    color: #b8860b;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.stat i {
    font-size: 12px;
    color: var(--primary-green);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.course-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
}

.courses-cta {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.courses-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20l10-10v20l-10-10zm-10 0l-10 10V10l10 10z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.courses-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.courses-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: var(--secondary-yellow);
    color: var(--orange-text);
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(246, 199, 68, 0.3);
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::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.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-yellow);
    color: var(--orange-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(246, 199, 68, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 60px;
}

.testimonials-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    color: var(--secondary-yellow);
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Testimonials Slider Section */
.testimonials-slider-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    height: 300px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

.testimonial-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 80px;
    color: var(--primary-green);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
    color: var(--secondary-yellow);
}

.testimonial-content blockquote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.author-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-prev,
.testimonial-next {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-green-hover);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-green);
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 95, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-green);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.blog-date .date {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 2px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-category {
    background: rgba(15, 95, 60, 0.1);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-author {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-green-hover);
    gap: 12px;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 95, 60, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::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.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Service Cards Images - Make them responsive */
.service-card img,
.services-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card img:hover {
    transform: scale(1.02);
}

/* Gallery Section Images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

/* Course Card Images */
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Blog Card Images */
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Testimonial Section Images */
.testimonial-content img,
.instructor-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 968px) {
    .services-section,
    .courses-section,
    .gallery-section,
    .blog-section,
    .testimonials-slider-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-step {
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .services-cta {
        padding: 60px 0;
    }
    
    .services-cta .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cta-circle {
        width: 250px;
        height: 250px;
    }
    
    .cta-number {
        font-size: 40px;
    }
    
    .services-cta h2 {
        font-size: 36px;
    }
    
    .services-cta p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .services-section,
    .why-choose-services,
    .service-process,
    .services-cta {
        padding: 60px 0;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .why-choose-item {
        padding: 30px 25px;
    }
    
    .choose-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .why-choose-item h4 {
        font-size: 20px;
    }
    
    .process-steps {
        gap: 25px;
    }
    
    .process-step {
        padding: 20px;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .services-cta {
        padding: 80px 0;
    }
    
    .services-cta h2 {
        font-size: 32px;
    }
    
    .services-cta p {
        font-size: 16px;
    }
    
    .services-cta .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-circle {
        width: 200px;
        height: 200px;
    }
    
    .cta-number {
        font-size: 32px;
    }
    
    .cta-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .services-section,
    .why-choose-services,
    .service-process,
    .services-cta {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 15px;
    }
    
    .why-choose-item {
        padding: 25px 20px;
    }
    
    .choose-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .why-choose-item h4 {
        font-size: 18px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .services-cta {
        padding: 60px 0;
    }
    
    .services-cta h2 {
        font-size: 28px;
    }
    
    .services-cta p {
        font-size: 15px;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .cta-circle {
        width: 180px;
        height: 180px;
    }
    
    .cta-number {
        font-size: 28px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .section-title {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 16px;
        margin: 30px 15px 10px;
    }
    
    .service-card p,
    .service-features,
    .service-price {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .service-btn {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }
}

/* Image loading and performance optimizations */
.service-card img,
.gallery-item img,
.course-image img,
.blog-image img {
    loading: lazy;
    background-color: var(--bg-light);
}

/* Image hover effects for larger screens only */
@media (min-width: 769px) {
    .service-card:hover img,
    .gallery-item:hover img,
    .course-card:hover .course-image img,
    .blog-card:hover .blog-image img {
        transform: scale(1.05);
    }
}

/* Ensure images don't break layout */
.service-card,
.gallery-item,
.course-card,
.blog-card {
    overflow: hidden;
}

.service-card img,
.gallery-item img,
.course-image img,
.blog-image img {
    display: block;
    max-width: 100%;
    height: auto;
}