/* Public Pages Styles - Extracted from inline styles for browser caching */
/* Course and Article Show Pages */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    margin-bottom: 30px;
}

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

.hero-meta {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero-meta i {
    margin-right: 5px;
}

/* Course/Article Content Container */
.content-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #34495e;
}

.content-body ul, .content-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.content-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.content-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.content-body pre code {
    background: transparent;
    padding: 0;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: white;
    margin: 30px 0;
}

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    background: white;
    color: #f5576c;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #f5576c;
    text-decoration: none;
}

.download-btn i {
    margin-right: 10px;
}

/* File Info */
.file-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.file-info-item {
    display: inline-block;
    margin-right: 25px;
    font-size: 0.95rem;
    color: #666;
}

.file-info-item i {
    margin-right: 8px;
    color: #667eea;
}

.file-info-item strong {
    color: #333;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.related-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    color: #667eea;
    padding-left: 5px;
    text-decoration: none;
}

.related-item i {
    margin-right: 8px;
    color: #667eea;
}

/* Category Tags */
.category-tags {
    margin: 25px 0;
}

.category-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #764ba2;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Share Buttons */
.share-buttons {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.share-buttons h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.breadcrumb-custom a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.comment-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.comment-text {
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .content-body {
        font-size: 1rem;
    }
    
    .download-section {
        padding: 25px;
    }
    
    .download-section h3 {
        font-size: 1.5rem;
    }
    
    .download-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Author Bio Section - Headshot Styles */
.author-bio {
    overflow: auto; /* Self-clearing for floated elements */
}

.author-headshot-container {
    float: left;
    margin: 0 20px 15px 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-headshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for author headshots */
@media (max-width: 576px) {
    .author-headshot-container {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
}
