/* Formation Category Styles */
.category-container {
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, #2E86AB 0%, #A23B72 100%);
    border-radius: 20px;
    padding: 60px 0;
    margin-bottom: 60px;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Formation Domains */
.formation-domains {
    margin-bottom: 60px;
}

.formation-domains h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2E86AB;
}

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

.domain-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: #2E86AB;
}

.domain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.domain-card h3 {
    font-size: 1.4rem;
    color: #2E86AB;
    margin-bottom: 15px;
}

.domain-card p {
    color: #666;
    line-height: 1.6;
}

/* Formation Guide */
.formation-guide {
    background: #F8F9FA;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.formation-guide h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2E86AB;
}

.guide-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.step-number {
    background: #2E86AB;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2E86AB;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

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

.guide-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Comparison Table */
.formation-comparison {
    margin-bottom: 60px;
}

.formation-comparison h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2E86AB;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
}

.responsive-table th,
.responsive-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #E9ECEF;
}

.responsive-table th {
    background: #2E86AB;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.responsive-table tr:nth-child(even) {
    background: #F8F9FA;
}

.responsive-table tr:hover {
    background: #E3F2FD;
}

/* Calculator */
.formation-calculator {
    background: linear-gradient(135deg, #2E86AB 0%, #F24236 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.formation-calculator h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.calculate-btn {
    background: #F24236;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background: #D73527;
}

.calculator-results {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.calculator-results h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-label {
    font-weight: 600;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
}

/* Resources Grid */
.formation-resources {
    margin-bottom: 60px;
}

.formation-resources h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2E86AB;
}

.resource-count {
    font-size: 1.5rem;
    color: #F24236;
}

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

.resource-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-content {
    padding: 25px;
}

.resource-content h3 {
    margin-bottom: 15px;
    line-height: 1.3;
}

.resource-content h3 a {
    color: #2E86AB;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.resource-content h3 a:hover {
    color: #F24236;
}

.resource-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.resource-link {
    display: inline-block;
    background: #2E86AB;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.resource-link:hover {
    background: #F24236;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #F24236;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #D73527;
}

.no-resources {
    text-align: center;
    padding: 60px 20px;
    background: #F8F9FA;
    border-radius: 15px;
}

.no-resources h2 {
    color: #2E86AB;
    margin-bottom: 20px;
}

.no-resources p {
    color: #666;
    font-size: 1.1rem;
}

/* FAQ Section */
.formation-faq {
    margin-bottom: 60px;
}

.formation-faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2E86AB;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2E86AB;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #F8F9FA;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #F24236;
    font-weight: 700;
}

.faq-answer {
    padding: 0 25px 20px 25px;
    display: none;
}

.faq-answer.open {
    display: block;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.formation-cta {
    background: linear-gradient(135deg, #F24236 0%, #2E86AB 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.formation-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.formation-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2E86AB;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-container {
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .formation-guide {
        padding: 30px 20px;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .formation-calculator {
        padding: 30px 20px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .formation-cta {
        padding: 40px 20px;
    }
    
    .formation-cta h2 {
        font-size: 2rem;
    }
    
    /* Responsive Table */
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 0 30px;
    }
    
    .formation-guide {
        padding: 40px 30px;
    }
    
    .formation-calculator {
        padding: 40px 30px;
    }
}

@media (min-width: 1025px) {
    .category-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}