/* Course Template Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f3f9fc 0%, #eaf4fb 100%);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 109, 148, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 77, 115, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.course-header {
    background: linear-gradient(135deg, #006994 0%, #004d73 100%);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.course-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #d7eefb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 30px;
}

.course-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
    padding: 20px;
}

.course-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.subscribe-btn {
    background: #072938;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 109, 148, 0.35);
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 77, 115, 0.5);
    color: #072938;
    background-color: white;
    text-decoration: none;
}

.subscribe-btn:hover i {
    color: #072938; 
}

.main-content {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.course-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
    height: 100%;
}

.status-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.status-badge.unavailable {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.course-overview {
    margin-bottom: 40px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.overview-item {
    text-align: center;
    background: linear-gradient(135deg, #f0f8fb, #e6f1f6);
    padding: 25px 15px;
    border-radius: 15px;
    border: 2px solid #d3e6ef;
    transition: all 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 109, 148, 0.2);
}

.overview-item i {
    font-size: 2rem;
    color: #006994;
    margin-bottom: 10px;
}

.overview-item h6 {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.overview-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.section-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.section-title {
    color: #333;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #006994, #004d73);
    border-radius: 2px;
}

.learning-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.learning-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 109, 148, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.6;
}

.learning-list li:last-child {
    border-bottom: none;
}

.learning-list li:hover {
    background: rgba(0, 109, 148, 0.05);
    padding-right: 10px;
    border-radius: 8px;
}

.learning-list li i {
    color: #2cbe4e;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.section-divider {
    height: 2px;
    background: linear-gradient(135deg, #006994, #004d73);
    margin: 50px 0;
    border-radius: 1px;
}

.course-includes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.include-item {
    background: linear-gradient(135deg, #f8f9ff, #e8eeff);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #d3e6ef;
    text-align: center;
    transition: all 0.3s ease;
}

.include-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 109, 148, 0.2);
}

.include-item i {
    font-size: 2.5rem;
    color: #006994;
    margin-bottom: 15px;
}

.include-item h5 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.include-item p {
    color: #666;
    margin: 0;
}

.course-content-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.course-content-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 109, 148, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.course-content-list li:last-child {
    border-bottom: none;
}

.course-content-list li:hover {
    background: rgba(0, 109, 148, 0.05);
    padding-right: 10px;
    border-radius: 8px;
}

.course-content-list li i {
    color: #006994;
    font-size: 1.1rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.requirements-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 109, 148, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li:hover {
    background: rgba(0, 109, 148, 0.05);
    padding-right: 10px;
    border-radius: 8px;
}

.requirements-list li i {
    color: #004d73;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-title {
        font-size: 2rem;
    }
    
    .course-header {
        padding: 40px 0;
    }
    
    .course-info-card {
        padding: 25px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-container {
        padding: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .course-includes {
        grid-template-columns: 1fr;
    }
}

/* PDF content button */
.content-pdf-container {
    display: flex;
    direction: ltr;
    justify-content: flex-start;
    margin-top: 20px;
}

.content-pdf-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #004d73;
    color: #004d73;
    text-decoration: none;
    font-weight: 700;
    background: transparent;
    transition: all 0.2s ease;
}

.content-pdf-btn:hover {
    background: #004d73;
    color: #fff;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced section styling */
.section-container {
    position: relative;
    overflow: hidden;
}

.section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #006994, #004d73);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-container:hover::before {
    opacity: 1;
}

/* Enhanced course image */
.course-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
    padding: 20px;
    transition: all 0.3s ease;
}

.course-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.course-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.course-image-container:hover .course-image {
    transform: scale(1.02);
}

/* Enhanced overview items */
.overview-item {
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff, #e8eeff);
    padding: 25px 15px;
    border-radius: 15px;
    border: 2px solid #e3f2fd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 109, 148, 0.12), rgba(0, 77, 115, 0.12));
    transition: left 0.3s ease;
}

.overview-item:hover::before {
    left: 0;
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 109, 148, 0.2);
    border-color: #006994;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Course Navigation Styles */
.course-nav {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.course-nav h4 {
    margin-bottom: 25px;
    color: #333;
    font-weight: bold;
    font-size: 1.3rem;
    position: relative;
}

.course-nav h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #006994, #004d73);
    border-radius: 2px;
}

.course-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.course-nav-list li {
    margin: 0;
}

.course-nav-link {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9ff, #e8eeff);
    color: #006994;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
}

.course-nav-link:hover {
    background: linear-gradient(135deg, #006994, #004d73);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 109, 148, 0.35);
}

.course-nav-link.active {
    background: linear-gradient(135deg, #006994, #004d73);
    color: white;
    border-color: #006994;
    box-shadow: 0 5px 15px rgba(0, 109, 148, 0.3);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .course-nav {
        padding: 20px;
    }
    
    .course-nav-list {
        gap: 8px;
    }
    
    .course-nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}



/* Share Section Styles */
.share-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f0f8fb, #e6f1f6);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.share-section h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-buttons button {
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
}

.share-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .share-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-buttons button {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
