/* Academy Plugin Styles */

/* Main Academy Page */
.academy-main-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.academy-header {
    text-align: center;
    margin-bottom: 40px;
}

.academy-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.academy-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Search Bar Styles */
.academy-search-container {
    margin: 30px auto 0;
    max-width: 600px;
}

.academy-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

#academy-search-input,
#academy-category-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #333;
}

#academy-search-input::placeholder,
#academy-category-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-button {
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    border: none;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 0 0 15px;
}

.search-button:hover {
    background: linear-gradient(135deg, #093cd8 0%, #1ecdb4 100%);
    transform: scale(1.05);
}

.search-button i {
    font-size: 18px;
}

/* Search Results */
.search-results-container {
    margin-top: 30px;
    animation: fadeInUp 0.6s ease;
}


.no-search-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-search-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-loading i {
    font-size: 2rem;
    color: #1ecdb4;
    animation: spin 1s linear infinite;
}

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

/* Categories Grid */
.academy-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.academy-category-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academy-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

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

.academy-category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.category-content {
    padding: 20px;
    height: calc(100% - 200px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-content p {
    color: #666;
    line-height: 1.6;
	font-size:14px;
    margin-bottom: 15px;
}

.category-link {
    display: inline-block;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
	font-size:14px;
    transition: all 0.3s ease;
	width: fit-content;
}

.category-link:hover {
    background: linear-gradient(135deg, #093cd8 0%, #1ecdb4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Category Page */
.academy-category-page,
.academy-tag-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-header,
.tag-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.category-header h1,
.tag-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.category-header p,
.tag-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #1ecdb4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #093cd8;
}

.back-link i {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    border-radius: 2px;
}

/* Content Grid - 4 items per row */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.content-image {
    height: 230px;
    overflow: hidden;
    position: relative;
    padding: 12px;
    border-radius: 15px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border-radius: 15px;
}

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

.content-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.content-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

.content-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.content-info p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.content-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
}

.content-link:hover {
    background: linear-gradient(135deg, #093cd8 0%, #1ecdb4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.content-link i {
    margin-right: 6px;
    font-size: 14px;
}

/* Tags Display */
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.content-tag {
    display: inline-block;
    background-color: #0063f50d;
    color: #0063f5;
    padding: 2px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-tag:hover {
    background: linear-gradient(135deg, #093cd8 0%, #1ecdb4 100%);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}



/* Video Player */
.content-image iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: none;
}

.content-image div[id^="aparat"] {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Single Academy Content Page */
.academy-single-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.academy-single-header {
    margin-bottom: 40px;
    text-align: center;
}

.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #1ecdb4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #093cd8;
}

.academy-single-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.academy-single-content {
    margin-bottom: 40px;
    position: relative;
}
.academy-single-content .content-tags{
    position: absolute;
    top: 8px;
    z-index: 2;
    right: 8px;
}
.academy-single-content .content-tag{
    background-color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.video-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-player-container iframe,
.video-player-container div[id^="aparat"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

.video-description {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
}

.video-description h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.video-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.text-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.text-description {
    margin-bottom: 20px;
}

.text-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.external-link:hover {
    background: linear-gradient(135deg, #093cd8 0%, #1ecdb4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.external-link i {
    margin-right: 8px;
    font-size: 16px;
}

.content-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.content-details h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.content-text {
    color: #666;
    line-height: 1.6;
}

.content-text p {
    margin-bottom: 15px;
}

.academy-single-navigation {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.content-categories {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.content-categories span {
    font-weight: 600;
    color: #333;
}

.content-categories a {
    color: #1ecdb4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-categories a:hover {
    color: #093cd8;
}

.back-to-category {
    display: inline-block;
    background: linear-gradient(135deg, #1ecdb4 0%, #093cd8 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.back-to-category:hover {
    color: #093cd8;
}

.back-to-category i {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* RTL Support */
[dir="rtl"] .back-link i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}

[dir="rtl"] .category-link,
[dir="rtl"] .content-link {
    direction: rtl;
}

[dir="rtl"] .external-link i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .back-to-category i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}

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

.academy-category-card,
.content-card {
    animation: fadeInUp 0.6s ease forwards;
}

.academy-category-card:nth-child(1) { animation-delay: 0.1s; }
.academy-category-card:nth-child(2) { animation-delay: 0.2s; }
.academy-category-card:nth-child(3) { animation-delay: 0.3s; }
.academy-category-card:nth-child(4) { animation-delay: 0.4s; }

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }



/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .academy-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .academy-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .academy-header h1,
    .category-header h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
	.category-image{
		    height: 280px;
	}
	.category-content{
		    height: calc(100% - 280px);
	}
}
@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .academy-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .academy-main-page,
    .academy-category-page,
    .academy-single-page {
        padding: 15px;
    }
    
    .academy-header h1,
    .category-header h1,
    .academy-single-header h1 {
        font-size: 1.8rem;
    }
    
    .content-info {
        padding: 15px;
    }
    
    .content-image {
        height: 230px;
    }
    
    .content-image iframe,
    .content-image div[id^="aparat"] {
        height: 230px;
    }
    
    .video-description,
    .text-content-wrapper,
    .content-details {
        padding: 20px;
    }
    
    .video-description h3,
    .content-details h3 {
        font-size: 1.3rem;
    }
    
    /* Search Bar Responsive */
    .academy-search-container {
        margin: 20px auto 0;
        max-width: 100%;
    }
    
    
    #academy-search-input,
    #academy-category-search-input {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 15px 15px 0 0;
    }
    
    .search-button {
        padding: 12px 15px;
        
    }
    
    .search-button i {
        font-size: 16px;
    }
}
