/**
 * Modern Subjects Showcase Section Styles
 * Subject cards with icons, stats, and quick links
 * Created: December 2024
 */

/* ============================================
   Subjects Section Base
   ============================================ */
.subjects-modern-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Section Title */
.subjects-modern-section .section-title {
    margin-bottom: 60px;
}

.subjects-modern-section .section-subtitle {
    display: inline-block;
    color: #f77112;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.subjects-modern-section .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.subjects-modern-section .section-description {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Subjects Grid
   ============================================ */
.subjects-grid {
    margin-bottom: 40px;
}

.subjects-grid .row {
    margin: 0 -15px;
}

.subjects-grid [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* ============================================
   Subject Card
   ============================================ */
.subject-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.popular-badge i {
    font-size: 0.85rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Subject Icon */
.subject-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.subject-card:hover .subject-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.subject-icon {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.1);
}

/* Subject Content */
.subject-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subject-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.subject-description {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Subject Stats */
.subject-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.stat-item i {
    color: #f77112;
    font-size: 0.9rem;
}

/* Subject Links */
.subject-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subject-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-link {
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
}

.primary-link:hover {
    background: linear-gradient(135deg, #d65d0a 0%, #c04e08 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 113, 18, 0.3);
    color: #ffffff;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.quick-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quick-link:hover {
    background: #f77112;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Hover Effect */
.subject-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: all 0.4s ease;
}

.subject-card:hover .subject-hover-effect {
    opacity: 1;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* ============================================
   Subjects CTA
   ============================================ */
.subjects-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}

.subjects-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.subjects-cta p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 25px;
}

.subjects-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subjects-cta .cta-btn:hover {
    background: linear-gradient(135deg, #d65d0a 0%, #c04e08 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 113, 18, 0.3);
    color: #ffffff;
}

/* ============================================
   Class-wise Section
   ============================================ */
.class-wise-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.section-subtitle-2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.class-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.class-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.class-link-card:hover {
    background: linear-gradient(135deg, #f7711215 0%, #f7711210 100%);
    border-color: #f77112;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 113, 18, 0.2);
}

.class-number {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.class-arrow {
    color: #f77112;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.class-link-card:hover .class-arrow {
    transform: translateX(5px);
}

/* ============================================
   Background Decoration
   ============================================ */
.subjects-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
}

.decoration-shape.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    top: -250px;
    left: -250px;
}

.decoration-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
    bottom: -200px;
    right: -200px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .subjects-modern-section {
        padding: 80px 0;
    }

    .subjects-modern-section .title {
        font-size: 2rem;
    }

    .subject-card {
        padding: 30px 25px;
    }

    .class-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .subjects-modern-section {
        padding: 60px 0;
    }

    .subjects-modern-section .title {
        font-size: 1.75rem;
    }

    .subjects-modern-section .section-description {
        font-size: 1rem;
    }

    .subject-card {
        padding: 25px 20px;
    }

    .subject-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .subject-icon {
        font-size: 2rem;
    }

    .subject-title {
        font-size: 1.25rem;
    }

    .subject-description {
        font-size: 0.9rem;
    }

    .subject-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .subjects-cta {
        padding: 40px 25px;
    }

    .subjects-cta h3 {
        font-size: 1.5rem;
    }

    .subjects-cta p {
        font-size: 1rem;
    }

    .class-wise-section {
        padding: 30px 20px;
    }

    .class-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .class-link-card {
        padding: 12px 15px;
    }

    .class-number {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .subjects-modern-section {
        padding: 50px 0;
    }

    .subjects-modern-section .title {
        font-size: 1.5rem;
    }

    .subject-card {
        padding: 20px 18px;
    }

    .subject-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .subject-icon {
        font-size: 1.75rem;
    }

    .subject-title {
        font-size: 1.15rem;
    }

    .popular-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .subjects-cta {
        padding: 30px 20px;
    }

    .subjects-cta h3 {
        font-size: 1.25rem;
    }

    .subjects-cta .cta-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .class-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .subjects-decoration,
    .popular-badge,
    .quick-links,
    .subjects-cta {
        display: none;
    }

    .subject-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }

    .subject-card:hover {
        transform: none;
    }
}
