/* GDPR Course Styles - Benjamin Joseph */

:root {
    --primary: #0F1A33;
    --secondary: #1D2951;
    --accent: #5271FF;
    --light: #E0E1E9;
    --highlight: #8D6BF2;
    --dark-bg: #060D20;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary) 100%);
    color: var(--light);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px;
}

body::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(93, 63, 211, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(82, 113, 255, 0.2) 0%, transparent 30%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--accent) !important;
}

.text-highlight {
    color: var(--highlight);
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--highlight);
    border-color: var(--highlight);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(141, 107, 242, 0.3);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1.5rem;
    background-color: rgba(15, 26, 51, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--light) !important;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--highlight);
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--highlight) !important;
}

/* Module Cards */
.module-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(82, 113, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.module-card h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.module-card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    width: 50px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
}

/* Module Navigation */
.module-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 250px;
}

.module-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-nav li {
    margin-bottom: 1rem;
}

.module-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.module-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.module-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--highlight);
    transition: width 0.3s ease;
}

.module-nav a:hover::after {
    width: calc(100% - 2rem);
}

.module-nav a.active {
    background-color: rgba(141, 107, 242, 0.2);
    color: var(--light);
}

.module-nav a.active::after {
    width: calc(100% - 2rem);
}

/* Custom List Styling */
ul.feature-list {
    list-style: none;
    padding-left: 0;
}

ul.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

ul.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent);
}

/* Main Content Wrapper */
.content-wrapper {
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Action Button Area */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.btn-outline-light {
    border-radius: 30px;
    padding: 0.8rem 2rem;
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 4rem;
}

.title-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-section h1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
}

.title-section p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Progress indicator */
.progress-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-circle.active {
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    box-shadow: 0 0 15px rgba(141, 107, 242, 0.5);
}

.progress-circle.completed {
    background-color: rgba(255, 255, 255, 0.4);
}

.progress-circle.completed::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--light);
    font-size: 0.8rem;
}

.progress-circle span {
    color: var(--light);
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .module-nav {
        position: static;
        transform: none;
        margin: 2rem auto;
        max-width: 100%;
    }
    
    .content-wrapper {
        padding-top: 6rem;
    }
    
    .title-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding-top: 5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}