/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Description: A child theme of the Twenty Twenty-Four WordPress theme
Author: Your Name
Author URI: https://example.com
Template: twentytwentyfour
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-child
*/

/* This file will load the parent theme's style.css automatically */

/* =============================================
   CUSTOM POSTS ARCHIVE & SINGLE POST STYLES
   ============================================= */

/* Archive Page Styles */
.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.archive-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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.archive-header-content {
    position: relative;
    z-index: 2;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stats-item {
    text-align: center;
}

.stats-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Archive Filters */
.archive-filters {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.filter-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.archive-search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 300px;
}

.archive-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.archive-search-submit {
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-search-submit:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

#category-filter {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

#category-filter:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Posts Grid */
.posts-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

.post-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-post-card:hover .post-card-overlay {
    opacity: 1;
}

.read-more-overlay {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-overlay:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

.post-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-categories {
    margin-bottom: 15px;
}

.post-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 8px;
    text-decoration: none;
}

.post-card-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

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

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-date, .post-author, .reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: #5a6fd8;
    transform: translateX(-5px);
    color: white;
}

/* No Posts Found */
.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-posts-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-posts-icon {
    margin-bottom: 30px;
    color: #ccc;
}

.no-posts-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.no-posts-content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    color: white;
}

/* Pagination */
.archive-pagination {
    margin-top: 50px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e9ecef;
    color: #333;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Single Post Styles */
.single-post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-header {
    margin-bottom: 40px;
}

.post-header-container {
    padding: 40px 0;
}

/* Breadcrumb */
.post-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #5a6fd8;
}

.breadcrumb-list .current {
    color: #666;
    font-weight: 500;
}

/* Post Categories */
.post-categories {
    margin-bottom: 20px;
}

.post-category-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 10px;
    text-decoration: none;
}

/* Post Title */
.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-bottom: 30px;
}

/* Post Meta */
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    flex-wrap: wrap;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid #667eea;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: #666;
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: #ddd;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item svg {
    color: #667eea;
}

/* Social Share */
.post-social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    margin-bottom: 30px;
}

.share-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

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

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

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Image */
.single-post-featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.single-post-content {
    margin-bottom: 50px;
}

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

.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    color: #333;
    font-weight: 700;
    margin: 30px 0 20px 0;
}

.post-content-wrapper h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.post-content-wrapper h3 {
    font-size: 1.5rem;
}

.post-content-wrapper h4 {
    font-size: 1.3rem;
}

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

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin: 20px 0;
    padding-right: 30px;
}

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

.post-content-wrapper blockquote {
    background: #f8f9fa;
    border-right: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
    color: #555;
}

.post-content-wrapper code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.post-content-wrapper pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.post-content-wrapper pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Post Tags */
.single-post-tags {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.tags-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

/* Author Bio */
.single-post-author {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.author-bio-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar-large img {
    border-radius: 50%;
    border: 3px solid #667eea;
}

.author-bio-content {
    flex: 1;
}

.author-bio-content .author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

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

.author-social .author-link {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.author-social .author-link:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-bottom: 50px;
}

.related-posts-container {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 20px;
}

.related-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-post-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    margin-bottom: 50px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-link {
    display: block;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #333;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 8px;
}

.nav-title {
    font-weight: 600;
    line-height: 1.4;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-container {
        padding: 20px 15px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-stats {
        gap: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .archive-search-form {
        min-width: auto;
    }
    
    .posts-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meta-divider {
        display: none;
    }
    
    .post-social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .author-bio-container {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
    }
}

/* =============================================
   COURSE & LESSON STYLES
   ============================================= */

/* Course Menu Items */
.menu-item.no-lessons a {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.menu-item.no-lessons .coming-soon {
    font-size: 0.8em;
    color: #95a5a6;
    margin-right: 5px;
}

.menu-item.has-lessons a {
    font-weight: 600;
    transition: color 0.2s ease;
}

.menu-item.has-lessons a:hover {
    color: #4e73df;
}

/* Course Cards Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0 15px;
}

/* Course Card Styling */
.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-card.no-lessons {
    opacity: 0.7;
    filter: grayscale(20%);
}

.course-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f5f7fa;
}

.course-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.course-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.4;
}

.course-card-title a {
    color: inherit;
    text-decoration: none;
}

.course-card-description {
    color: #636e72;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.course-card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

.course-card-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4e73df;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.course-card.no-lessons .course-card-button {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.course-card:hover .course-card-button:not([disabled]) {
    background-color: #2e59d9;
    transform: translateY(-2px);
}

/* Lesson List on Single Course Page */
.course-lessons {
    margin-top: 2em;
}

.course-lessons h2 {
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #eee;
}

.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-item {
    padding: 1em;
    margin-bottom: 0.5em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lesson-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lesson-link {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.lesson-link:hover {
    color: #0066cc;
}

.lesson-excerpt {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #666;
}

/* Archive Page Specific Styles */
.archive .page-header {
    margin-bottom: 2.5em;
    text-align: center;
}

.archive .page-title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

/* =============================================
   MISC & UTILITY STYLES
   ============================================= */

/* Fix blurry code blocks */
code[class*="language-"], pre[class*="language-"] {
    font-family: 'Fira Mono', 'Consolas', 'Monaco', 'monospace' !important;
    font-size: 1em !important;
    color: #222 !important;
    background: #f8f8f8 !important;
    filter: none !important;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
    border-radius: 4px;
    padding: 0.5em 1em;
    box-shadow: none !important;
    transform: none !important;
}

/* Registration Suggestion Button */
.btn-register-suggestion {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: rgba(78, 115, 223, 0.1);
    color: #4e73df;
    border: 1px dashed #4e73df;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-register-suggestion:hover {
    background-color: rgba(78, 115, 223, 0.2);
    transform: translateY(-2px);
}

/* =============================================
   ADMIN STYLES
   ============================================= */

@media screen and (min-width: 782px) {
    .term-group img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 5px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .term-group .ct_tax_media_remove {
        margin-left: 10px;
        color: #a00;
    }

    .term-group .ct_tax_media_remove:hover {
        color: #dc3232;
    }

    #course-image-wrapper img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 5px;
        background: #fff;
    }
    
    .form-field.term-group img,
    #course-image-wrapper img {
        max-width: 300px;
    }
}


/* =============================================
   PROFESSIONAL FOOTER STYLES
   ============================================= */

/* Footer Container */
.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 4rem;
    border-top: 1px solid #dee2e6;
}

/* Professional Gradient Border */
.footer-border-top {
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    position: relative;
    z-index: 1;
}

.footer-border-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-footer:hover .footer-border-top::after {
    opacity: 1;
}

/* Main Footer Content */
.footer-main {
    padding: 3.5rem 0 2rem;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Column Styles */
.footer-brand-column {
    grid-column: span 1;
}

.footer-links-column,
.footer-services-column {
    grid-column: span 1;
}

.footer-contact-column {
    grid-column: span 1;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-wrapper {
    margin-bottom: 1rem;
}

.footer-logo-wrapper img.custom-logo {
    max-width: 180px;
    height: auto;
}

.footer-site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Professional Credentials */
.footer-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.credential-icon {
    font-size: 1.2rem;
    color: #667eea;
}

.credential-item span:last-child {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* Footer Headings */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Navigation Lists */
.footer-nav-list,
.footer-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-services-list li {
    margin-bottom: 0.75rem;
}

.footer-nav-list a,
.footer-services-list a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.2rem;
}

.footer-nav-list a::before,
.footer-services-list a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    transition: transform 0.3s ease;
}

.footer-nav-list a:hover,
.footer-services-list a:hover {
    color: #667eea;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-nav-list a:hover::before,
.footer-services-list a:hover::before {
    transform: translateX(3px);
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-details span {
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Social Media Section */
.footer-social-section {
    margin-top: 2rem;
}

.social-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.social-link svg {
    position: relative;
    z-index: 1;
}

/* Footer Bottom Bar */
.footer-bottom {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-left {
    justify-self: start;
}

.footer-bottom-center {
    justify-self: center;
}

.footer-bottom-right {
    justify-self: end;
}

.copyright-text {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.certification-badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ecf0f1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.certification-badge:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.footer-legal-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal-nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-legal-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-legal-nav .separator {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

/* RTL Support */
[dir="rtl"] .course-card-image img {
    right: auto;
    left: 0;
}

[dir="rtl"] .coming-soon-badge {
    right: 15px;
    left: auto;
}

[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-nav-list a,
[dir="rtl"] .footer-services-list a {
    padding-left: 0;
    padding-right: 1.2rem;
}

[dir="rtl"] .footer-nav-list a::before,
[dir="rtl"] .footer-services-list a::before {
    content: '←';
    left: auto;
    right: 0;
}

/* Tablet View */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-brand-column, .footer-contact-column {
        grid-column: span 2;
    }

    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        justify-self: center;
    }
}

/* Mobile View */
@media (max-width: 767px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .course-card-content { padding: 15px; }
    .course-card-title { font-size: 1.1rem; }
    .archive .page-title { font-size: 2em; }

    .site-footer {
        text-align: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-brand-column, .footer-contact-column {
        grid-column: span 1;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo-wrapper .custom-logo-link {
        display: inline-block;
    }

    .footer-logo-wrapper img.custom-logo {
        margin: 0 auto;
    }

    .footer-nav-list a,
    .footer-services-list a {
        padding-left: 0;
        display: inline-block;
    }

    .footer-nav-list a::before,
    .footer-services-list a::before {
        display: none;
    }

    .credential-item {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 0.5rem;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        gap: 1.25rem;
    }
    
    .footer-legal-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-legal-nav .separator {
        display: none;
    }
}