/* Modern Course & Platform Template Styles */

/* Platform Listing Page Styles */
.platform-listing-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.platform-listing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.platform-sections {
    display: block;
}

.platform-sections section {
    margin-bottom: 3rem;
}

.platform-sections section:last-child {
    margin-bottom: 0;
}

/* Distansutbildningar Section - Featured */
.distansutbildningar-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f2ff 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #667eea;
}

.distansutbildningar-section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Online Platforms Section */
.online-platforms-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #dee2e6;
}

.online-platforms-section h2 {
    color: #6c757d;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Platform Grid */
.platform-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.platform-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.distansutbildning-item {
    border-color: #667eea;
}

.platform-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.distansutbildning-item:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.platform-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.platform-item .course-count {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.distansutbildning-item .course-count {
    color: #667eea;
    font-weight: 600;
}

.platform-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #667eea;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.platform-links a:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .distansutbildningar-section,
    .online-platforms-section {
        padding: 1.5rem;
    }
    
    .platform-links {
        justify-content: center;
    }
}
* {
    box-sizing: border-box;
}

/* Container Styles */
.single-course-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.course-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.course-hero {
    background: linear-gradient(135deg, #d6e9f0 0%, #e8eef2 100%);
    color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
}

.course-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.course-platform-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.course-platform-subtitle .platform-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.course-platform-subtitle .platform-link:hover {
    color: #5a6fd8;
    border-bottom-color: #5a6fd8;
    transform: translateY(-1px);
}

.sidebar-platform-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.sidebar-platform-link:hover {
    color: #5a6fd8;
    border-bottom-color: #5a6fd8;
}

.course-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.course-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

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

.course-cta-button {
    background: #ff6b6b !important;
    color: white !important;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.course-cta-button:hover,
.course-cta-button:focus,
.course-cta-button:visited,
.course-cta-button:link,
.course-cta-button:active {
    background: #ff5252 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    text-decoration: none !important;
    color: white !important;
}

.course-pricing-card .course-cta-button.full-width {
    width: 100% !important;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 1rem !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Course Info Section */
.course-info {
    background: white;
    padding: 4rem 0;
}

.course-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.course-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.course-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: #4ecdc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Pricing Card */
.course-pricing-card {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.pricing-features li:hover {
    background: #fafafa;
    padding-left: 0.5rem;
    border-radius: 8px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Curriculum Section */
.course-curriculum {
    background: #f8f9fa;
    padding: 4rem 0;
}

.course-curriculum h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.curriculum-modules {
    display: grid;
    gap: 1.5rem;
}

.curriculum-module {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.curriculum-module:hover {
    transform: translateY(-5px);
}

.curriculum-module h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.curriculum-module .module-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.module-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

/* Instructor Section */
.course-instructor {
    background: white;
    padding: 4rem 0;
}

.instructor-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
}

.instructor-details h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.instructor-title {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.instructor-credentials h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.instructor-credentials p {
    color: #666;
    line-height: 1.6;
}

/* Career Section */
.course-career {
    background: #f8f9fa;
    padding: 4rem 0;
}

.course-career h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.career-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.career-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.career-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.career-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.course-faq {
    background: white;
    padding: 4rem 0;
}

.course-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0;
}

.faq-question:hover {
    color: #667eea;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    display: none;
    padding-top: 1rem;
}

.faq-answer p {
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-pricing-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .course-hero-title {
        font-size: 2.5rem;
    }
    
    .course-hero-subtitle {
        font-size: 1.1rem;
    }

    .course-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        min-width: auto;
    }

    .course-details h2,
    .course-curriculum h2,
    .course-career h2,
    .course-faq h2 {
        font-size: 2rem;
    }

    .course-features {
        grid-template-columns: 1fr;
    }

    .instructor-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .instructor-image,
    .instructor-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .instructor-placeholder {
        font-size: 3rem;
    }

    .career-content {
        grid-template-columns: 1fr;
    }
    
    .module-meta {
        gap: 1rem;
        justify-content: center;
    }
    
    .course-hero,
    .course-info,
    .course-curriculum,
    .course-instructor,
    .course-career,
    .course-faq {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .course-hero-title {
        font-size: 2rem;
    }
    
    .course-hero .course-cta-button {
        display: none;
    }
    
    .course-cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .course-pricing-card {
        padding: 1.5rem;
    }
    
    .curriculum-module {
        padding: 1.5rem;
    }
    
    .career-item {
        padding: 1.5rem;
    }
    
    .instructor-image,
    .instructor-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .instructor-placeholder {
        font-size: 2.5rem;
    }
}

/* Archive/Listing Styles (keep existing styles for backward compatibility) */
/* Ensure consistent styling for both course and distansutbildning pages */
.filter-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.filter-container form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.filter-container select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 150px;
}

.filter-container button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.filter-container button:hover {
    background: #5a6fd8;
}

.course-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateY(-2px);
}

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

/* Text placeholder for courses without images */
.course-text-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Default gradient */
.course-text-placeholder.default-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Instructor gradient */
.course-text-placeholder.instructor-gradient {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.course-text-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.placeholder-text {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .course-text-placeholder {
        height: 150px;
    }
    
    .placeholder-text {
        font-size: 1rem;
        padding: 0.5rem;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Adjust for very long text */
.course-text-placeholder .placeholder-text {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Links inside text placeholder */
.course-text-placeholder a {
    color: white !important;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-text-placeholder a:hover {
    color: white !important;
    text-decoration: none;
}

.course-text-placeholder a .placeholder-text {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.course-text-placeholder:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.course-details h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.course-meta p {
    margin: 0.25rem 0;
    color: #666;
}

.course-link {
    display: inline-block;
    margin-top: 1rem;
    background: #667eea !important;
    color: white !important;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
}

.course-link:hover,
.course-link:focus,
.course-link:visited,
.course-link:link,
.course-link:active {
    background: #5a6fd8 !important;
    text-decoration: none !important;
    color: white !important;
}

.course-pagination-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.course-pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.course-pagination-wrapper .page-numbers:hover,
.course-pagination-wrapper .page-numbers.current {
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .course-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-container form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-container select {
        min-width: auto;
    }
}

/* Form Modal Styles */
.course-form-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.course-form-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

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

.course-form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.course-form-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.course-form-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.course-form-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.course-form-modal-body {
    padding: 25px;
}

/* Override Forminator styles in modal */
.course-form-modal .forminator-ui {
    max-width: none !important;
    width: 100% !important;
}

.course-form-modal .forminator-form {
    width: 100% !important;
    max-width: none !important;
}

/* Fix field alignment and spacing */
.course-form-modal .forminator-row {
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.course-form-modal .forminator-field {
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.course-form-modal .forminator-field--input,
.course-form-modal .forminator-field--textarea,
.course-form-modal .forminator-field--select,
.course-form-modal .forminator-field--email,
.course-form-modal .forminator-field--name {
    width: 100% !important;
}

.course-form-modal .forminator-input,
.course-form-modal .forminator-textarea,
.course-form-modal .forminator-select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}

.course-form-modal .forminator-label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Style the submit button */
.course-form-modal .forminator-button {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    min-width: 150px !important;
    margin-top: 20px !important;
}

.course-form-modal .forminator-button:hover {
    background: #5a6fd8 !important;
    border-color: #5a6fd8 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
}

.course-form-modal .forminator-button:active,
.course-form-modal .forminator-button:focus {
    color: white !important;
    background: #5a6fd8 !important;
}

/* Fix any weird spacing issues */
.course-form-modal .forminator-form .forminator-row .forminator-col {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure form elements don't overflow */
.course-form-modal .forminator-form * {
    box-sizing: border-box !important;
}

/* Fix radio buttons and checkboxes */
.course-form-modal .forminator-radio,
.course-form-modal .forminator-checkbox {
    display: block !important;
    margin-bottom: 10px !important;
}

.course-form-modal .forminator-radio input,
.course-form-modal .forminator-checkbox input {
    width: auto !important;
    margin-right: 8px !important;
}

/* Center the submit button */
.course-form-modal .forminator-button-submit {
    text-align: center !important;
    margin-top: 20px !important;
}

.course-form-modal .forminator-button-submit .forminator-button {
    display: inline-block !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .course-form-modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .course-form-modal-header {
        padding: 15px 20px;
    }
    
    .course-form-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .course-form-modal-body {
        padding: 20px;
    }
}

/* ===== PLATFORM TEMPLATE STYLES ===== */

/* Platform Container */
.single-platform-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.platform-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Platform Hero Section */
.platform-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
}

.platform-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.platform-logo {
    flex-shrink: 0;
}

.platform-logo img {
    height: 80px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.platform-title-section {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.platform-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.platform-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.platform-visit-button {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.platform-visit-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Platform Stats */
.platform-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.platform-stats .stat {
    text-align: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.platform-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8f9fa;
}

.platform-stats .stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Platform Info Grid */
.platform-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

.platform-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.platform-details {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-content {
    margin-bottom: 2rem;
}

.platform-content h1,
.platform-content h2,
.platform-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.platform-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Platform Features */
.platform-features {
    margin-top: 2rem;
}

.platform-features h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list .feature {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.features-list .feature-icon {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Platform Sidebar */
.platform-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.platform-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.platform-info-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.platform-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.platform-info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.platform-info-list li:last-child {
    border-bottom: none;
}

.platform-cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.platform-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Platform Courses Section */
.platform-courses {
    padding: 4rem 0;
    background: white;
}

.platform-courses h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.platform-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-course-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.platform-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.platform-course-item .course-image {
    overflow: hidden;
}

.platform-course-item .course-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.platform-course-item:hover .course-image img {
    transform: scale(1.05);
}

.platform-course-item .course-content {
    padding: 1.5rem;
}

.platform-course-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.platform-course-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.platform-course-item h3 a:hover {
    color: #667eea;
}

.platform-course-item .course-meta {
    margin-bottom: 1.5rem;
}

.platform-course-item .course-meta p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.platform-course-item .course-link {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.platform-course-item .course-link:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.view-more-courses {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-style: italic;
}

/* Single column layouts */
.platform-info-grid:has(.platform-details):not(:has(.platform-sidebar)) {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.platform-info-grid:has(.platform-sidebar):not(:has(.platform-details)) {
    grid-template-columns: 1fr;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .platform-info-grid {
        grid-template-columns: 1fr !important;
        max-width: none !important;
    }
    
    .platform-sidebar {
        order: -1;
    }
    
    .platform-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .platform-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .platform-title {
        font-size: 2.5rem;
    }
    
    .platform-stats {
        gap: 2rem;
    }
    
    .platform-stats .stat-number {
        font-size: 2rem;
    }
    
    .platform-details,
    .platform-info-card {
        padding: 1.5rem;
    }
    
    .platform-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .platform-hero {
        padding: 3rem 0;
    }
    
    .platform-title {
        font-size: 2rem;
    }
    
    .platform-description {
        font-size: 1rem;
    }
    
    .platform-visit-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* ===== PLATFORM ARCHIVE STYLES ===== */

/* Platform Archive Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.platform-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.platform-card-logo {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.platform-card-logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
    border-radius: 8px;
}

.platform-card-content {
    padding: 2rem;
}

.platform-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #2c3e50;
}

.platform-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.platform-card h3 a:hover {
    color: #667eea;
}

.platform-card-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.platform-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-stat {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #e9ecef;
}

.platform-card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.platform-card-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.platform-course-count {
    text-align: center;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

.platform-pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.platform-pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #667eea;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.platform-pagination-wrapper .page-numbers:hover,
.platform-pagination-wrapper .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive Design for Platform Archive */
@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .platform-card-content {
        padding: 1.5rem;
    }
    
    .platform-card-logo {
        padding: 1.5rem;
    }
    
    .platform-card-stats {
        justify-content: center;
    }
}