/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Styles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.about-list li i {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.about-image {
    position: relative;
}

.about-image .image-container img {
    position: absolute;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image .image-container img:first-child {
    top: 0;
    left: 0;
    z-index: 1;
    width: 70%;
}

.about-image .image-container img:last-child {
    bottom: 0;
    right: 0;
    z-index: 2;
    width: 60%;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.service-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card .card-text {
    color: #666;
    margin-bottom: 20px;
}

.service-card .btn-link {
    padding: 0;
    font-weight: 500;
}

/* Video Cards */
.video-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-button {
    opacity: 1;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
    font-size: 12px;
    z-index: 1;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.duration {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Testimonials */
.testimonials-slider .testimonial-item {
    padding: 20px;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 80px;
    color: rgba(52, 152, 219, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h5 {
    margin-bottom: 0;
    font-size: 16px;
}

.testimonial-author span {
    font-size: 14px;
    color: #666;
}

/* Contact Section */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-title {
    margin-bottom: 30px;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-links h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Dashboard Styles */
.user-dashboard, .admin-dashboard {
    padding: 20px 0;
}

.sidebar {
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

.user-profile, .admin-profile {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8f9fa;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 5px;
    color: #555;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-weight: 600;
}

/* Subscription Status */
.subscription-status .card-body {
    padding: 30px;
}

.subscription-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-inactive {
    text-align: center;
    padding: 20px;
}

.subscription-inactive p {
    margin-bottom: 20px;
}

.progress {
    height: 8px;
    margin: 10px 0;
    background-color: #f1f1f1;
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

/* Video Player */
.video-player-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px 0;
}

.access-expiry {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.related-videos {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-video-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-video-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-video-item img {
    border-radius: 5px;
}

.related-video-item h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.related-video-item small {
    color: #666;
    font-size: 12px;
}

/* Plan Cards */
.plan-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card .card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 15px 0;
}

.plan-card .duration {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.plan-features li i {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.plan-card-sm {
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.plan-card-sm:hover {
    border-color: var(--primary-color);
}

.plan-card-sm .price {
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .about-image .image-container img {
        position: static !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Utility Classes */
.rounded-lg {
    border-radius: 15px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thumbnail-sm {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

/* Admin Specific Styles */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-group .btn {
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Form Styles */
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.video-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* In your CSS file */
.plan-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.current-plan {
    border: 2px solid #28a745;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}


/* Sidebar Styles */
.user-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.profile-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.nav-link {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    color: #495057;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .user-sidebar {
        margin-bottom: 20px;
    }
}