/* ============================================
   Finance University - Stylesheet
   ============================================ */

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.dropdown-menu a.all-courses {
    font-weight: 600;
    color: var(--primary-color);
}

/* University Hero Section */
.university-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.university-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.university-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--light);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb-nav a:hover {
    opacity: 0.7;
}

.breadcrumb-nav span {
    color: var(--gray);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

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

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.category-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.category-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.category-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Learning Path Levels */
.learning-levels {
    background: var(--light);
    padding: 3rem 0;
}

.level-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.level-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.level-tab.active {
    color: var(--primary-color);
}

.level-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.level-tab:hover {
    color: var(--primary-color);
}

/* Topic Cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border-left: 4px solid var(--primary-color);
}

.topic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.topic-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.topic-card p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.625rem;
}

.difficulty-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.difficulty-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Content Page Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-nav h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar-nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.sidebar-nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.sidebar-nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
}

/* Main Content Area */
.main-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.main-content h1 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.content-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: var(--gray);
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-content h2 {
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.main-content h3 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.main-content ul,
.main-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.main-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
}

.callout-tip {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--secondary-color);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: var(--accent-color);
}

.callout-danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
}

.callout h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Navigation Buttons */
.content-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    gap: 1rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    max-width: 250px;
}

.nav-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-button.prev {
    flex-direction: row;
}

.nav-button.next {
    flex-direction: row-reverse;
    margin-left: auto;
}

/* Progress Indicator */
.progress-indicator {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--gray);
    text-align: center;
}

/* Book/Resource Cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.resource-card:hover {
    box-shadow: var(--shadow-md);
}

.resource-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.resource-author {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.resource-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .sidebar-nav {
        margin-bottom: 2rem;
    }

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

    .university-hero h1 {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1.5rem;
    }

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

    .level-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .level-tab {
        white-space: nowrap;
    }

    .content-nav {
        flex-direction: column;
    }

    .nav-button {
        max-width: 100%;
    }

    .nav-button.next {
        margin-left: 0;
    }
}
