/* Main Container */
.study-materials-container {
    padding: 30px;
    background: linear-gradient(135deg, #667eea4e 0%, #764ba245 100%);
    min-height: 100vh;
}

/* Header Styles */
.materials-header {
    text-align: center;
    margin-bottom: 40px;
    color:#764ba2;
}

.materials-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-description {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.materials-card, .support-card, .resources-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* Source Info */
.source-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Chapters Section */
.section-title {
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-subtitle {
    color: #718096;
    margin-bottom: 30px;
}

/* Chapter Items */
.chapter-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.chapter-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.chapter-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.chapter-content h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.chapter-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.chapter-topics li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.chapter-topics li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.study-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.study-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Test Section */
.test-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin-top: 40px;
}

.test-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #667eea;
}

/* Support Card */
.support-card {
    position: sticky;
    top: 20px;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.support-header h3 {
    color: #2d3748;
    margin: 0;
}

.heart-icon {
    color: #e53e3e;
    font-size: 2rem;
    animation: heartbeat 1.5s infinite;
}

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

.support-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Donate Section */
.donate-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.donate-section h4 {
    color: #2d3748;
    margin-bottom: 20px;
}

.donate-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.donate-option {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.donate-option:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.custom-amount {
    grid-column: span 3;
}

.payment-methods {
    margin: 20px 0;
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.payment-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.donate-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Quick Test Section */
.quick-test-section {
    text-align: center;
    padding: 25px;
    background: #48bb78;
    border-radius: 10px;
    color: white;
    margin-top: 30px;
}

.quick-test-section h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quick-test-btn {
    display: inline-block;
    background: white;
    color: #48bb78;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.quick-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #48bb78;
}

/* Resources Card */
.resources-card h3 {
    color: #2d3748;
    margin-bottom: 20px;
}

.resources-list {
    list-style: none;
    padding: 0;
}

.resources-list li {
    margin-bottom: 12px;
}

.resources-list a {
    color: #4a5568;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resources-list a:hover {
    background: #f7fafc;
    color: #667eea;
    padding-left: 20px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.modal-body .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .study-materials-container {
        padding: 20px;
    }
    
    .chapter-item {
        flex-direction: column;
        text-align: center;
    }
    
    .chapter-number {
        margin: 0 auto 20px;
    }
    
    .donate-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-amount {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .materials-header h1 {
        font-size: 2.2rem;
    }
    
    .donate-options {
        grid-template-columns: 1fr;
    }
    
    .custom-amount {
        grid-column: span 1;
    }
    
    .chapter-item {
        padding: 20px;
    }
}