/* Professional styles for study-materials.php with square card buttons and animations */

.study-section {
    margin-bottom: 3rem;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    animation: pulse 2s infinite;
}

.section-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s infinite, rotate 4s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    text-align: center;
    font-style: italic;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.material-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.material-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.material-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
    }
}

.material-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.material-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.download-btn, .video-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.download-btn:hover, .video-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    color: white;
    text-decoration: none;
    animation: buttonGlow 0.6s ease-out;
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.8);
    }
    100% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    }
}

.download-btn::before, .video-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before, .video-btn:hover::before {
    left: 100%;
}

.video-card {
    background: linear-gradient(135deg, white 0%, #f0f9ff 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.video-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 0 0 15px 15px;
}

.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-card h4 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

/* New Sections Styles */
.benefits-section, .testimonials-section, .faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 50px 0;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.benefits-section::before, .testimonials-section::before, .faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.benefit-card, .testimonial-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.benefit-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.benefit-card:hover, .testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.benefit-icon, .stars {
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.benefit-card h4, .testimonial-card h4 {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    animation: twinkle 2s infinite;
}

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

.testimonial-card p {
    font-style: italic;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    position: relative;
}

.testimonial-card p::before {
    content: '"';
    font-size: 4rem;
    color: #3b82f6;
    position: absolute;
    top: -20px;
    left: 0;
    opacity: 0.3;
}

.testimonial-author {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.faq-section .accordion-item {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section .accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-section .accordion-button {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    font-weight: 600;
    padding: 20px;
    border-radius: 15px !important;
    transition: all 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-section .accordion-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateX(5px);
}

.faq-section .accordion-body {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #374151;
    line-height: 1.6;
    border-radius: 0 0 15px 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .study-section {
        padding: 25px 20px;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        flex-direction: column;
        gap: 10px;
    }

    .section-title i {
        font-size: clamp(1.8rem, 4vw, 2rem);
    }

    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 2rem;
    }

    .material-card {
        padding: 20px 15px;
        min-height: 300px;
    }

    .card-icon {
        width: clamp(50px, 15vw, 60px);
        height: clamp(50px, 15vw, 60px);
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .material-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.2rem);
    }

    .material-card p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 1rem;
    }

    .download-btn, .video-btn {
        padding: 10px 20px;
        font-size: clamp(0.9rem, 3vw, 0.95rem);
        width: 100%;
        justify-content: center;
    }

    .video-card {
        padding: 20px 15px;
    }

    .video-card h4 {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }

    .benefits-section, .testimonials-section, .faq-section {
        padding: 30px 0;
        margin: 20px 0;
    }

    .benefit-card, .testimonial-card {
        padding: 20px;
        min-height: 250px;
    }

    .benefit-card h4, .testimonial-card h4 {
        font-size: clamp(1.1rem, 4vw, 1.2rem);
    }

    .benefit-card p, .testimonial-card p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .faq-section .accordion-button {
        padding: 15px;
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .faq-section .accordion-body {
        padding: 20px;
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

@media (max-width: 576px) {
    .study-section {
        padding: 20px 15px;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
    }

    .material-card {
        padding: 15px 10px;
        min-height: 280px;
    }

    .material-card p {
        font-size: 0.9rem;
    }

    .download-btn, .video-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
    }

    .video-card {
        padding: 15px 10px;
    }

    .benefit-card, .testimonial-card {
        padding: 15px;
        min-height: 220px;
    }

    .testimonial-card p::before {
        font-size: 3rem;
        top: -15px;
    }
}
