/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation Styles */
.navbar {
    background-color: #FFFFFF;
    color: black;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo a {
    color: black;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #E7E7E7;
    color: black;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #E7E7E7;
    color: black;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Cloud Submenu Styles */
.nav-submenu {
    position: relative;
}

.submenu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2563eb !important;
    border-left: 3px solid #2563eb;
    padding-left: 13px !important;
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #FFFFFF;
    min-width: 600px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1001;
    padding: 1rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.nav-submenu:hover .submenu-content {
    display: grid;
}

.submenu-section h4 {
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.submenu-section a {
    display: block;
    color: #374151 !important;
    padding: 0.25rem 0 !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.submenu-section a:hover {
    color: #2563eb !important;
    background-color: transparent !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: #E7E7E7;
    color: black;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #000;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border-color: #000;
}

.btn-outline:hover {
    background-color: #000;
    color: white;
    transform: translateY(-2px);
}

/* Ad Space Styles */
.ad-space {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.courses h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #000;
}

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

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.course-card h3 {
    margin-bottom: 1rem;
    color: #000;
}

.course-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #000;
}

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

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

.feature h3 {
    margin-bottom: 1rem;
    color: #000;
}

.feature p {
    color: #666;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 60px;
}

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

.breadcrumb-nav a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6c757d;
}

/* Content Page Styles */
.content-page {
    padding: 2rem 0;
    margin-top: 60px;
}

/* Bullet Point Indentation Fix */
#course-content ul,
#course-content ol {
    margin-left: 0;
    padding-left: 1.5rem;
}

#course-content li {
    margin-left: 0;
    padding-left: 0;
}

/* Course Content Section Spacing */
.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    color: #000;
    margin-bottom: 1rem;
}

.content-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.examples-section {
    margin-top: 4rem;
}

.examples-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Checkpoint Questions */
.checkpoint-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.checkpoint-question p {
    margin-bottom: 0.5rem;
}

.checkpoint-question p:last-child {
    margin-bottom: 0;
}

.example {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.example-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.example-code {
    padding: 0;
}

.example-explanation {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Code Highlighting */
pre[class*="language-"] {
    margin: 0;
    border-radius: 0;
}

code[class*="language-"] {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #E7E7E7;
    color: black;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-media {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-link {
    color: black;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #666;
    transform: translateY(-2px);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: black;
}

.footer-bottom {
    color: black;
    font-size: 0.9rem;
}

/* Course Navigation */
.course-nav {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.course-nav h2 {
    margin-bottom: 1.5rem;
    color: #000;
}

/* Learning Phase - Add spacing between sections */
.learning-phase {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.learning-phase:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.learning-phase h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.topic-link {
    display: block;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.topic-link:hover {
    background-color: #000;
    color: white;
    transform: translateY(-2px);
}

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background-color: #E7E7E7;
        margin-top: 0.5rem;
    }

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

    .hero {
        padding: 100px 0 60px;
    }

    .courses, .about {
        padding: 60px 0;
    }

    .course-card, .feature {
        padding: 1.5rem;
    }
}

/* About Us Page Styles */
.about-content {
    padding: 3rem 0;
    background-color: #ffffff;
}

.about-main {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: left;
}

.about-main h2 {
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.courses-overview {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.courses-overview h2 {
    text-align: center;
    color: #000;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.course-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.course-item i {
    font-size: 2rem;
    color: #007bff;
    margin-top: 0.25rem;
}

.course-item h4 {
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.course-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-radius: 8px;
    margin-top: 3rem;
    color: white;
}

.about-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-cta p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-cta .btn {
    background-color: white;
    color: #000;
    font-weight: bold;
    border: 2px solid white;
}

.about-cta .btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
    .about-main h2 {
        font-size: 1.5rem;
    }
    
    .about-main p {
        font-size: 1rem;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
    }
    
    .about-cta h2 {
        font-size: 1.5rem;
    }
    
    .about-cta p {
        font-size: 1rem;
    }
}
