/* Home page specific styles */

/* Utility classes for home page */
.section-title-with-margin {
    margin-top: 64px;
}

.instructor-led-section {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

/* Training options section spacing */
.training-options-section {
    margin-top: 64px;
}


/* Material Design 3 Award-Winning Styles */

.home-content-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.custom-solutions .home-content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Award-winning Section Layouts */
section {
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 48px;
    color: #1a1c1e;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.section-description {
    font-size: 22px;
    font-weight: 500;
    color: #44474f;
    text-align: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}


/* Custom Topic CTA Section - Now with white background */
.custom-topic {
    background: #ffffff;
    color: #1a1c1e;
    text-align: center;
    position: relative;
}

.custom-topic .section-title {
    color: #1a1c1e;
    position: relative;
    z-index: 2;
}

.custom-topic .section-description {
    color: #44474f;
    position: relative;
    z-index: 2;
}

.custom-topic .btn {
    position: relative;
    z-index: 2;
    /* Ensure button is clickable and styled properly */
}

/* Custom Solutions Section - Video background with static image fallback */
/* Base video styles are in /css/bg-video.css */
.custom-solutions {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}



@keyframes blueFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 16px;
}

/* Solution card base styling is now in main.css */

.solution-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    /* No hover effects - informational cards only */
}

.solution-icon .icon {
    width: 36px;
    height: 36px;
}

.solution-card h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #1a1c1e;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-solutions .section-title {
    color: #1a1c1e;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.9), 
                 0px 0px 12px rgba(255, 255, 255, 0.8),
                 -2px -2px 8px rgba(255, 255, 255, 0.9);
}

.custom-solutions .section-description {
    color: #44474f;
    position: relative;
    z-index: 2;
}

/* Courses loading spinner - centered overlay */
.courses-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.courses-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Courses Data Table Styles */
.courses-table-container {
    position: relative;
    z-index: 2;
    background: rgba(254, 251, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 32px;
    margin-top: 80px;
    margin-bottom: 65px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.courses-table-container.visible {
    opacity: 1;
}

.courses-table-with-top-margin {
    margin-top: 96px !important;
}

.courses-table-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-align: center;
    margin-top: 15px !important;
    margin-bottom: 32px;
    color: #1a1c1e;
    text-transform: uppercase;
}

.courses-table-container .section-description {
    margin-bottom: 32px;
    text-transform: uppercase;
}

.courses-table-container .btn {
    display: block;
    margin: 0 auto 32px;
    text-align: center;
}

/* Title Search Filter */
.table-search-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Search input icon - override width from forms.css */
.search-input-wrapper .search-input-icon {
    width: 65px !important;
}

.filter-input {
    flex: 1;
    padding: 10px 16px 10px 85px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 32px;
    background: #ffffff;
    color: #333333;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.filter-input::placeholder {
    color: rgba(51, 51, 51, 0.3);
    font-weight: bold;
    text-transform: uppercase;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Data Table */
.courses-data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.courses-data-table thead {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.courses-data-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.courses-data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.courses-data-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.courses-data-table th.has-filter {
    cursor: default;
}

.th-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.th-content.has-dropdown {
    justify-content: flex-start;
}

.th-label {
    display: none;
}

.th-label:hover {
    opacity: 0.8;
}

.header-filter-select {
    padding: 6px 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1c1e;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: normal;
    text-transform: none;
    cursor: pointer;
    width: 100%;
}

.header-filter-select:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.header-filter-select:hover {
    border-color: white;
    background: white;
}

.courses-data-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.courses-data-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
}

.courses-data-table td {
    padding: 12px;
    font-size: 14px;
    color: #44474f;
}

.courses-data-table td:first-child {
    font-weight: bold;
    color: #1a1c1e;
}

/* Right-align details column */
.col-details {
    text-align: right !important;
}

.details-cell {
    text-align: right;
    padding: 12px !important;
}

.details-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.4s ease !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15) !important;
}

.details-btn:hover {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.details-btn:active {
    transform: translateY(0);
}

/* Loading State */
.loading-row {
    height: 100%;
}

.loading-row td {
    text-align: center;
    padding: 48px;
    height: 100%;
}

.loading-cell {
    height: 100%;
}

.loading-cell .loading-spinner {
    margin: 0 auto;
}

.table-wrapper:has(.loading-row) {
    flex: 1;
}

.table-wrapper:has(.loading-row) .courses-data-table {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-wrapper:has(.loading-row) thead {
    display: none;
}

.table-wrapper:has(.loading-row) tbody {
    flex: 1;
    display: flex;
}

.table-wrapper:has(.loading-row) .loading-row {
    flex: 1;
    display: flex;
}

.table-wrapper:has(.loading-row) .loading-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-row td {
    text-align: center;
    padding: 48px;
    color: #44474f;
    font-style: italic;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-info {
    color: #44474f;
    font-size: 14px;
    font-weight: 500;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.25 !important;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Responsive Table Design */
@media (max-width: 1200px) {
    .table-wrapper {
        overflow-x: scroll;
    }

    .courses-data-table {
        min-width: 900px;
    }
}

@media (max-width: 905px) {
    .courses-table-container {
        padding: 24px;
    }

    .table-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .courses-table-container {
        padding: 16px;
    }

    .courses-data-table th,
    .courses-data-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .courses-data-table .schedule-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

.solution-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    display: block;
    text-align: left;
    width: fit-content;
}

.solution-card ul li {
    padding: 8px 0;
    color: #44474f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    line-height: 1.5;
    padding-left: 16px;
    text-transform: uppercase;
}

.solution-card ul li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.solution-card .btn {
    margin-top: 24px;
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Training Solutions Section - Blue animation */
.custom-training-solutions {
    background: linear-gradient(135deg, #1976d2 0%, #545f70 100%);
    position: relative;
    overflow: hidden;
}

.custom-training-solutions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: blueFloat 20s ease-in-out infinite;
}

.custom-training-solutions .section-title {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.custom-training-solutions .section-description {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    margin-bottom: 64px;
}

/* Get Started Section */
.get-started {
    background: #fefbff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.get-started::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(25, 118, 210, 0.05) 0%, transparent 70%);
    transform: rotate(15deg);
}

/* All button styling now handled by main.css */

/* All button styling removed - now handled globally by main.css */

/* Responsive Design with Material Breakpoints */
@media (max-width: 1240px) {
    .home-content-container {
        padding: 0 16px;
    }
}

@media (max-width: 905px) {
    section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 28px;
        font-weight: bold;
        letter-spacing: 1.5px;
        margin-bottom: 32px;
    }
    
    .training-options,
    .topics-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .training-option,
    .solution-card {
        padding: 32px;
    }
    
    .topic-card {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .home-content-container {
        padding: 0 16px;
    }
    
    section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 24px;
        font-weight: bold;
        letter-spacing: 1.5px;
    }
    
    .training-option,
    .solution-card {
        padding: 24px;
    }
    
    .option-icon,
    .solution-icon {
        width: 64px;
        height: 64px;
    }
    
    .topic-icon {
        width: 72px;
        height: 72px;
    }
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .topic-card,
    .training-option,
    .solution-card {
        border-width: 2px;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Course Details Modal */
.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
}

.course-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(60px + 15px); /* Header height (60px) + 15px spacing */
    padding-bottom: 25px;
}

.course-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.course-modal-content {
    position: relative;
    background: #fefbff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: calc(100vh - 60px - 15px - 25px); /* Screen height - header - top spacing - bottom spacing */
    display: flex;
    flex-direction: column;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3), 0px 16px 32px 8px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.course-modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    position: relative;
}

.modal-course-id-header {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.course-modal-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.modal-category-path {
    font-size: 14px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.modal-category-path .category-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0.7;
}

.modal-category-path .category-link:hover {
    opacity: 1;
}

.modal-category-path .category-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.7);
}

.course-modal-close {
    background: transparent !important;
    border: 2px solid rgba(240, 240, 240, 0.8) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.2s ease, border-color 0.4s ease !important;
    position: absolute;
    top: 16px;
    right: 16px;
}

.course-modal-close:hover {
    background: rgba(220, 80, 80, 0.7) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: rotate(90deg);
}

.course-modal-close .icon {
    color: rgba(240, 240, 240, 0.8);
    width: 24px;
    height: 24px;
    transition: color 0.4s ease;
}

.course-modal-close:hover .icon {
    color: rgba(255, 255, 255, 1);
}

.modal-category-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.modal-category-path {
    text-align: left;
}

.course-modal-share {
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    justify-self: end;
}

.course-modal-share:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.course-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.course-modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.course-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-meta-item strong {
    font-size: 12px;
    font-weight: bold;
    color: #44474f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-meta-item span {
    font-size: 14px;
    color: #1a1c1e;
    font-weight: 500;
}

.course-modal-section {
    margin-bottom: 32px;
}

/* Duration and Price Section - Two Column Layout */
.duration-price-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.duration-column,
.price-column {
    display: flex;
    flex-direction: column;
}

.duration-column .course-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: calc(14px + 2px);
    height: 100%;
}

.price-column .course-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.price-column .course-content .btn {
    width: 100% !important;
}

@media (max-width: 768px) {
    .duration-price-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.course-modal-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1a1c1e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 8px;
}

.course-content {
    font-size: 14px;
    line-height: 1.6;
    color: #44474f;
}

#modal-overview,
#modal-target-student,
#modal-objectives {
    font-size: 16px;
    line-height: 1.7;
}

.course-content p {
    margin-bottom: 12px;
}

.course-content ul,
.course-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.course-content li {
    margin-bottom: 8px;
}

/* Headings within course content (different from section headings) */
.course-content h1,
.course-content h2,
.course-content h3,
.course-content h4,
.course-content h5,
.course-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2c3e50;
    margin-top: 16px;
    margin-bottom: 12px;
    margin-left: 20px;
    padding: 10px 16px;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 4px;
}

/* Indent all content that follows headings until next heading */
.course-content h1 ~ p,
.course-content h2 ~ p,
.course-content h3 ~ p,
.course-content h4 ~ p,
.course-content h5 ~ p,
.course-content h6 ~ p,
.course-content h1 ~ ul,
.course-content h2 ~ ul,
.course-content h3 ~ ul,
.course-content h4 ~ ul,
.course-content h5 ~ ul,
.course-content h6 ~ ul,
.course-content h1 ~ ol,
.course-content h2 ~ ol,
.course-content h3 ~ ol,
.course-content h4 ~ ol,
.course-content h5 ~ ol,
.course-content h6 ~ ol {
    margin-left: 40px;
}

/* Make paragraphs that follow headings display as list items with bullets */
.course-content h1 ~ p,
.course-content h2 ~ p,
.course-content h3 ~ p,
.course-content h4 ~ p,
.course-content h5 ~ p,
.course-content h6 ~ p {
    display: list-item;
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 60px; /* 40px indent + 20px for bullet */
}

/* Ensure lists have proper styling */
.course-content h1 ~ ul,
.course-content h2 ~ ul,
.course-content h3 ~ ul,
.course-content h4 ~ ul,
.course-content h5 ~ ul,
.course-content h6 ~ ul,
.course-content h1 ~ ol,
.course-content h2 ~ ol,
.course-content h3 ~ ol,
.course-content h4 ~ ol,
.course-content h5 ~ ol,
.course-content h6 ~ ol {
    list-style-position: outside;
    padding-left: 20px;
}

.course-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Delivery Methods in Modal */
.delivery-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.delivery-method-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.08);
}

.delivery-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
}

.delivery-method-icon .icon {
    width: 28px;
    height: 28px;
}

.delivery-method-card h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1a1c1e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.delivery-method-card ul {
    list-style: disc;
    padding: 0 0 0 20px;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.delivery-method-card ul li {
    padding: 6px 0;
    color: #44474f;
    font-size: 16px;
    font-weight: 500;
    list-style: disc;
    text-align: left;
}

.delivery-method-card ul li::marker {
    color: #3498db;
}


/* Responsive modal */
@media (max-width: 905px) {
    .course-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .course-modal-header,
    .course-modal-body,
    .course-modal-footer {
        padding: 20px;
    }

    .course-modal-header h2 {
        font-size: 20px;
    }

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

    .delivery-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .course-modal-header h2 {
        font-size: 16px;
    }

    .course-modal-section h3 {
        font-size: 18px;
    }
}

/* Share Course Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.share-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.share-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.share-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.share-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.4s ease, transform 0.2s ease, border-color 0.4s ease !important;
}

.share-modal-close:hover {
    background: rgba(220, 80, 80, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    transform: rotate(90deg);
}

.share-modal-close .icon {
    color: rgba(0, 0, 0, 0.6);
    width: 24px;
    height: 24px;
    transition: color 0.4s ease;
}

.share-modal-close:hover .icon {
    color: rgba(255, 255, 255, 1);
}

.share-modal-body {
    padding: 24px;
}

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

#share-course-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#share-course-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#share-course-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.share-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}