/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Softer, eye-friendly color palette */
    --primary-color: #FF6B35;
    --secondary-color: #FFA500;
    --accent-color: #00D9FF;
    --highlight-color: #FFD700;
    --success-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(255, 107, 53, 0.1);
    --shadow-lg: 0 10px 25px rgba(255, 107, 53, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-brand .logo {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo {
    transform: scale(1.1) rotate(5deg);
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(247, 147, 30, 0.95) 50%, rgba(0, 217, 255, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23FF6B35" width="1200" height="600"/><g fill="%2300D9FF" opacity="0.3"><circle cx="200" cy="100" r="80"/><circle cx="800" cy="400" r="100"/><circle cx="1000" cy="150" r="60"/><circle cx="400" cy="450" r="90"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
}

.btn-small:hover {
    background-color: var(--secondary-color);
}

/* ===== Sections ===== */
.training-gallery,
.features,
.popular-courses,
.stats,
.about-content,
.courses-section,
.contact-section {
    padding: 80px 0;
}

/* ===== Training Gallery ===== */
.training-gallery {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

/* ===== About Page Images ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ===== Features Grid ===== */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FFC857 100%);
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* ===== Courses Grid ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    background: linear-gradient(135deg, #FF6B35 0%, #00D9FF 50%, #FFC857 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.placeholder-img {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Course Image Icons */
.course-image::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Stats Section ===== */
.stats {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #00D9FF 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #00D9FF 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== About Page Styles ===== */
.about-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mv-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mv-card p {
    color: var(--text-light);
}

.values {
    margin-bottom: 4rem;
}

.values h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.value-item p {
    color: var(--text-light);
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FF6B35 0%, #00D9FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
}

.team-member:hover .member-photo::before {
    left: 100%;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Courses Page Styles ===== */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-detail-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-header h2 {
    color: var(--text-dark);
}

.course-badge {
    background: linear-gradient(135deg, #06FFA5 0%, #00D9FF 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(6, 255, 165, 0.3);
}

.course-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.course-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    color: var(--text-light);
}

.info-item strong {
    color: var(--text-dark);
}

.curriculum {
    margin-bottom: 1.5rem;
}

.curriculum h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.curriculum ul {
    list-style: none;
    padding-left: 0;
}

.curriculum li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.curriculum li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== Contact Page Styles ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container h2,
.contact-info-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links-vertical a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links-vertical a:hover {
    color: var(--secondary-color);
}

.office-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.office-hours h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.office-hours ul {
    list-style: none;
}

.office-hours li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.map-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.map-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.map-container {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-placeholder {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-placeholder p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.map-note {
    font-size: 0.9rem !important;
    margin-top: 1rem;
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .features,
    .popular-courses,
    .stats,
    .about-content,
    .courses-section,
    .contact-section {
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ===== Login Page Styles ===== */
.login-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
}

.form-message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 25px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.demo-credentials h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.demo-credentials p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-logout {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* ===== Learning Portal Styles ===== */
.portal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.portal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Subscription Banner */
.subscription-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    border-bottom: 3px solid var(--primary-color);
    padding: 15px 0;
    margin-bottom: 30px;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.subscription-status {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--success-color);
    color: white;
    font-size: 0.9rem;
}

.subscription-status.expired {
    background: #e74c3c;
}

.subscription-status.expiring-soon {
    background: var(--secondary-color);
}

.subscription-status.free {
    background: var(--text-light);
}

.subscription-expiry {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.learning-dashboard {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.progress-overview {
    margin-bottom: 50px;
}

.progress-overview h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.progress-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.progress-icon {
    font-size: 3rem;
}

.progress-info h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.progress-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.video-courses {
    margin-top: 40px;
}

.video-courses > h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.course-module {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.module-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.module-header h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.module-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-progress span {
    color: var(--text-light);
    font-weight: 500;
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 21px;
    max-width: 980px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    max-width: 280px;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #000;
}

.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: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.video-thumbnail:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.video-meta .completed {
    color: var(--success-color);
    font-weight: 600;
}

.video-meta .in-progress {
    color: var(--secondary-color);
    font-weight: 600;
}

.video-meta .not-started {
    color: var(--text-light);
    font-weight: 600;
}

.btn-video {
    width: 100%;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-controls {
    padding: 20px;
    text-align: center;
    background-color: var(--bg-light);
}

/* PDF and Resource Cards */
.resource-card .pdf-thumbnail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.resource-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.resource-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #667eea;
}

.btn-view-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-view-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pdf-container {
    background-color: #525659;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Styles for Learning Portal */
@media (max-width: 768px) {
    .portal-header h2 {
        font-size: 1.8rem;
    }

    .progress-cards {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .module-progress {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-progress span {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .portal-header {
        padding: 30px 0;
    }

    .course-module {
        padding: 20px 15px;
    }
}

/* ===== Subscription Page Styles ===== */
.course-overview-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.course-overview-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.course-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.course-overview-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

.course-overview-content {
    color: var(--text-color);
}

.subscription-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.recommended {
    background: var(--primary-color);
}

.plan-card h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 5px;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-light);
    align-self: flex-end;
    margin-bottom: 10px;
    margin-left: 5px;
}

.plan-savings {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-subscribe {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.current-subscription {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.current-subscription h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sub-detail {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.sub-detail strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.sub-detail span {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.status-active {
    color: var(--success-color) !important;
}

.status-expired {
    color: #e74c3c !important;
}

.guarantee-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(6, 255, 165, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid var(--success-color);
}

.guarantee-box h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.guarantee-box p {
    color: var(--text-light);
    font-size: 1rem;
}

.payment-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.payment-summary h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
}

/* Responsive for Subscription */
@media (max-width: 768px) {
    .subscription-plans {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-info {
        flex-direction: column;
        gap: 10px;
    }

    .subscription-info {
        grid-template-columns: 1fr;
    }
}

/* ===== Premium Unlock Section Styling ===== */
.premium-unlock-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.premium-unlock-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.premium-unlock-icon {
    font-size: 70px;
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.premium-unlock-section h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.premium-unlock-section > p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

.premium-feature-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 12px 10px;
    transition: all 0.3s;
    text-align: left;
}

.premium-feature-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.premium-feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.premium-feature-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.premium-feature-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.premium-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 9px 25px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.premium-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
}

.premium-cta-button::before {
    content: '🚀';
    margin-right: 10px;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .premium-unlock-section {
        padding: 20px 10px;
    }
    
    .premium-unlock-section h3 {
        font-size: 1.8rem;
    }
    
    .premium-unlock-section > p {
        font-size: 1rem;
    }
    
    .premium-features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .premium-cta-button {
        font-size: 1.1rem;
        padding: 8px 18px;
    }
}
