/* Section Hero */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #006633;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section cards */
.section-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #006633;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-icon {
    font-size: 3rem;
    color: #006633;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Documents grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.document-item:hover {
    border-color: #006633;
    background: #f3f8f4;
    transform: translateY(-3px);
}

.doc-icon {
    font-size: 2.5rem;
    color: #006633;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.doc-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.doc-size {
    background: #006633;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-download {
    background: #006633;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    background: #004d26;
    transform: scale(1.1);
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #006633;
    background: white;
    color: #006633;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #006633;
    color: white;
}

/* Attestations grid */
.attestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.attestation-item {
    display: flex;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.attestation-item:hover {
    border-color: #006633;
    background: #f3f8f4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,102,51,0.1);
}

.attestation-icon {
    font-size: 2.5rem;
    color: #006633;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.attestation-content {
    flex: 1;
}

.attestation-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.attestation-details p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.attestation-details strong {
    color: #006633;
}

.btn-request {
    background: #006633;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-request:hover {
    background: #004d26;
    transform: translateY(-2px);
}

/* Procedure steps */
.procedure-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: #006633;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}


/* Highlight section */
.highlight-section {
    background: #006633;
    color: white;
}

.highlight-section .section-icon,
.highlight-section .section-title {
    color: white;
}

.highlight-section .section-subtitle {
    color: rgba(255,255,255,0.9);
}

/* Online services */
.online-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.service-item i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-item p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

/* Buttons */
.btn-primary {
    background: #006633;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #004d26;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #006633;
    border: 2px solid #006633;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #006633;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #006633;
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006633;
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.document-item.hide {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-card {
        padding: 25px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .attestations-grid {
        grid-template-columns: 1fr;
    }
    
    .procedure-steps {
        grid-template-columns: 1fr;
    }
    
    .online-services {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .document-item,
    .attestation-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .doc-icon,
    .attestation-icon {
        margin: 0 0 15px 0;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .btn-download {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .doc-info h3 {
        font-size: 1.1rem;
    }
    
    .attestation-content h3 {
        font-size: 1.2rem;
    }
}
