:root {
    --navy:        #2C5F8D;
    --navy-mid:    #3a7ab5;
    --navy-light:  #d6e8f5;
    --navy-pale:   #eef4fa;
    --navy-dark:   #1e4165;
    --accent:      #e8834a;
    --text-pri:    #1b2838;
    --text-sec:    #5a7088;
    --bg:          #f2f6fa;
    --white:       #ffffff;
    --radius:      14px;
    --shadow-sm:   0 2px 8px rgba(44,95,141,.10);
    --shadow-md:   0 4px 20px rgba(44,95,141,.15);
    --shadow-lg:   0 8px 32px rgba(44,95,141,.18);
    --ease:        cubic-bezier(.4,0,.2,1);
}

.hero-wrap {
    background-color: #2C5F8D;
    background-image: linear-gradient(160deg, #2C5F8D 1%, #2C5F8D 100%);
}

.section-hero {
    background: linear-gradient(160deg, #2C5F8D 1%, #2C5F8D 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.section-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 10%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.section-hero .hero-inner {
    position: relative; z-index: 1;
    max-width: 680px; margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.section-hero h1 {
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.6;
}

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

    .section-hero h1 {
        font-size: 2.2rem;
    }
}

/* Start Lecture Pages */
.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .lectures-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.lecture-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
}

.lecture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px #2C5F8D;
    border-color: #2C5F8D;
}

.lecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2C5F8D, #2C5F8D, #2C5F8D);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lecture-card:hover::before {
    opacity: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.lecture-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lecture-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lecture-card:hover .lecture-image {
    transform: scale(1.1);
}

.lecture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecture-card:hover .lecture-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lecture-card:hover .play-icon {
    transform: scale(1);
}

.play-icon::after {
    content: '▶';
    color: #007bff;
    font-size: 24px;
    margin-left: 3px;
}

.lecture-content {
    padding: 1.5rem;
}

.lecture-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #1a202c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lecture-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lecture-card:hover .lecture-title a {
    color: #007bff;
}

.lecture-description {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lecture-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.view-lecture-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.view-lecture-btn:hover {
    background: linear-gradient(135deg, #ff5733 0%, #c70039 100%);
    box-shadow: 0 6px 20px rgba(255, 87, 51, 0.4);
    transform: translateY(-2px);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.3);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #636e72;
}

.subscribe-section {
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: black;
    margin-top: 3rem;
}

.subscribe-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subscribe-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.subscribe-btn {
    background: white;
    color: #667eea;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.subscribe-btn:hover {
    background: #ff5733;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 87, 51, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2C5F8D 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
}

/* Category Accordion Styles */
.category-accordion {
    margin-bottom: 2rem;
}

.cat_btn {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cat_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.cat_btn span {
    position: relative;
    z-index: 1;
}

.cat_btn:hover {
    transform: translateX(5px);
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.cat_btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #0056b3;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.cat_btn.active::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.cat_btn:not(.active)::after {
    content: '▶';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.category-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%);
    margin: 1.5rem 0;
}

.btn-primary:hover {
    background-color: orangered !important;
    border-color: orangered !important;
}

@media (max-width: 768px) {
    .lectures-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .lecture-title a {
        font-size: 16px;
    }

    .lecture-description {
        font-size: 0.75rem;
    }

    .subscribe-section h3 {
        font-size: 1.1rem;
    }

    .subscribe-section p {
        font-size: 0.8rem;
    }

    .subscribe-btn {
        padding: 0.3rem 1.2rem;
        font-size: 0.9rem;
    }

    .subscribe-section {
        margin-top: 0;
    }
}
/* End Lecture Pages */

/* Start Profile Page */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.15);
    border-color: #00d1ff;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    word-break: break-word;
}

.profile-info-section {
    padding: 2rem;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: #f8f9ff;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 10px;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
}

.info-value {
    color: #1a202c;
    font-size: 1.05rem;
    flex: 1;
    word-break: break-word;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/*.edit-profile-btn::before {
    content: '✏️';
    font-size: 1.2rem;
}*/

.edit-profile-btn:hover {
    background: linear-gradient(135deg, #ff5733 0%, #c70039 100%);
    box-shadow: 0 12px 30px rgba(255, 87, 51, 0.4);
    transform: translateY(-3px);
}

.subscriptions-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.section-title::before {
    content: '📋';
    font-size: 1.5rem;
}

.subscription-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.subscription-table thead {
    background: linear-gradient(135deg, #2d3436 0%, #4a5568 100%);
}

.subscription-table thead th {
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.subscription-table tbody tr {
    transition: all 0.3s ease;
}

.subscription-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    transform: scale(1.01);
}

.subscription-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #2d3436;
}

.subscription-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.no-subscription {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(253, 203, 110, 0.3);
}

.no-subscription-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-subscription-text {
    font-size: 1.2rem;
    color: #2d3436;
    font-weight: 600;
}

/* Mobile Card Layout for Subscriptions */
.subscription-card {
    display: none;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 2.5rem;
}

.form-control {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.new-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.new-btn:hover {
    background: linear-gradient(135deg, #ff5733 0%, #c70039 100%);
    box-shadow: 0 12px 30px rgba(255, 87, 51, 0.4);
    transform: translateY(-2px);
}

.span-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767px) {
    .profile-container {
        padding: 0 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-email {
        font-size: 0.95rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-header {
        padding: 2rem 1.5rem;
    }

    .profile-info-section {
        padding: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .info-row:hover {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .info-label {
        flex: none;
        font-size: 0.85rem;
    }

    .info-value {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .edit-profile-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .subscriptions-section {
        padding: 1.5rem;
    }

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

    /* Hide table on mobile */
    .subscription-table-wrapper {
        display: none;
    }

    /* Show card layout on mobile */
    .subscription-card {
        display: block;
        background: white;
        border-radius: 16px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
        border-left: 4px solid #007bff;
        transition: all 0.3s ease;
    }

    .subscription-card:hover {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
        transform: translateY(-2px);
    }

    .subscription-card-header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .subscription-card-id {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.8rem;
        display: inline-block;
        word-break: break-all;
        line-height: 1.4;
    }

    .subscription-card-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .subscription-card-detail:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .subscription-card-label {
        font-weight: 600;
        color: #4a5568;
        font-size: 0.85rem;
    }

    .subscription-card-value {
        color: #1a202c;
        font-size: 0.9rem;
        text-align: right;
    }

    .subscription-card-status {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .no-subscription {
        padding: 2rem 1rem;
    }
}
/* End Profile Page */