/* Global Styles */
:root {
    --primary-color: #6a0dad; /* Deep Purple */
    --secondary-color: #9d4edd; /* Lighter Purple */
    --dark-bg: #1a1a2e; /* Dark Blue-Purple */
    --light-bg: #f8f9fa;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --overlay-color: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--dark-bg);
}

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

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

    h2{
        color: #fff;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--light-text-color);
    color: var(--light-text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn {
    text-decoration: none !important; /* Remove underline from buttons */
    white-space: normal;
    word-break: break-word;
    text-align: center;
    display: inline-block;
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.navbar-brand .site-logo {
    height: 40px;
    width: auto;
}

.navbar-brand .site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text-color);
}

.offcanvas-header {
    background-color: var(--dark-bg);
    color: var(--light-text-color);
}

.offcanvas-title {
    color: var(--light-text-color);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Hero Section */
.hero-section {
    background-image: url('images/content/abstract_concept_technology_background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px; /* Adjust for fixed header */
    padding-bottom: 50px;
}

.hero-overlay {
    background-color: var(--overlay-color);
    z-index: 0;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--light-text-color);
}

.hero-section p.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--light-text-color);
}

/* Section Padding */
section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Headings Responsive */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}
h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* About Section */
.about-image {
    max-width: 100%;
    height: auto;
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-card .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Statistics Section */
.statistic-item {
    background-color: var(--primary-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.statistic-item:hover {
    transform: translateY(-5px);
}

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

.statistic-item .display-4 {
    color: var(--light-text-color);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

/* Popular Course Section */
#popular-course .card {
    border-radius: 0.75rem;
}

#popular-course .card img {
    border-radius: 0.5rem;
}

/* Learning Process Cards */
.process-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.process-card i {
    color: var(--primary-color);
}

/* Your Path Timeline */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    min-height: 50px;
    margin-bottom: 50px;
}



.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    left: 50%;
    margin-left: -25px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.timeline-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    position: relative;
    width: 45%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 8px 0 8px 15px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 8px 15px 8px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-icon {
        left: 15px;
        margin-left: -25px;
    }

    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        float: none;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 8px 15px 8px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
}

/* Mentor Cards */
.mentor-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.mentor-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 0.75rem;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.blog-thumbnail {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Contact Form */
#contact form {
    background-color: var(--dark-bg);
    color: var(--light-text-color);
}

#contact .form-label {
    color: var(--light-text-color);
}

#contact .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text-color);
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(157, 78, 237, 0.25);
}

/* Quote Section */
.blockquote-footer {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg) !important;
}

.footer .site-logo-footer {
    height: 30px;
    width: auto;
}

.footer .site-name-footer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text-color);
}

/* Modals */
.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.modal-title {
    color: var(--light-text-color);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1070;
    background-color: var(--dark-bg) !important;
    color: var(--light-text-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner a {
    color: var(--secondary-color) !important;
}

.cookie-banner .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-banner .btn-outline-light {
    border-color: var(--light-text-color);
    color: var(--light-text-color);
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    z-index: 1071; /* Higher than cookie banner */
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Delay utility classes */
.animate-delay-0 { transition-delay: 0s; }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* Media Queries for Responsive Design */
@media (max-width: 1199.98px) {
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav .nav-item {
        flex: 0 0 auto;
    }
    .navbar-toggler {
        display: block;
    }
    .offcanvas-body {
        padding-bottom: 2rem;
    }
    .navbar-brand .site-name {
        font-size: 1.5rem;
    }
    .navbar-brand .site-logo {
        height: 35px;
    }
    h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    h2 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
    h3 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 70px;
        min-height: 80vh;
    }
    .hero-section h1 {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }
    .hero-section p.lead {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    .navbar-brand .site-name {
        font-size: 1.25rem;
    }
    .navbar-brand .site-logo {
        height: 30px;
    }
    h1 {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    h3 {
        font-size: clamp(1.25rem, 3vw, 1.8rem);
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .cookie-banner p {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    .cookie-banner .d-flex {
        width: 100%;
    }
    .cookie-banner .btn {
        width: 100%;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-icon {
        left: 15px;
        margin-left: -25px;
    }
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        float: none;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 8px 15px 8px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
}
/* Wrapper for policy content */
.policyScopeWrap {
    /* Padding for the content area */
    padding: 40px 20px;
    /* Max width to improve readability on large screens, centered */
    max-width: 800px;
    margin: 0 auto;
}

/* Heading 1 styles */
.policyScopeWrap h1 {
    font-size: 2em; /* Approximately 32px if base font is 16px */
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

/* Heading 2 styles */
.policyScopeWrap h2 {
    font-size: 1.75em; /* Approximately 28px */
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
}

/* Heading 3 styles */
.policyScopeWrap h3 {
    font-size: 1.5em; /* Approximately 24px */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

/* Heading 4 styles */
.policyScopeWrap h4 {
    font-size: 1.25em; /* Approximately 20px */
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

/* Heading 5 styles */
.policyScopeWrap h5 {
    font-size: 1.1em; /* Approximately 17.6px */
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

/* Paragraph styles */
.policyScopeWrap p {
    font-size: 1em; /* Base font size */
    line-height: 1.6;
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.policyScopeWrap ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em; /* Indentation for bullet points */
}

/* List item styles */
.policyScopeWrap li {
    margin-bottom: 0.5em; /* Spacing between list items */
    line-height: 1.5; /* Ensure readability for list item text */
}

.hidden{
    display: none !important;
}

#configure-cookies:hover{
    color: #1a1a2e;
}

#hero{
    .d-flex.align-items-start{
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center !important;
        justify-content: center;
    }
}

.offcanvas-header .btn-close{
    filter: invert(1);
}

img{
    display: block;
    width: 100%;
}

section{
    overflow-x: hidden;
}

.wr{
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    main{
        flex: 1;
    }
}