/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
}
body{
    background:linear-gradient(135deg, #f8f9fa, #c2ddf7);
}
/* Navigation Bar */
header {
    
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.nav-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.course-title{
    flex:1;
text-align: center;
}
/* Sign In Button */
.btn-signin {
    background: linear-gradient(90deg, #fdeb85, #f8a4d8); /* Gradient Colors */
    color: white !important; /* Text Color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5)!important;
    /*text-decoration: inherit;*/
    font-weight: bold; /* Bold Text */
    text-align: center;
    justify-content: center;
    height: 100%;
    padding: 10px 20px; /* Button Padding */
    border-radius: 20px; /* Rounded Edges */
    border: none; /* No Border */
    cursor: pointer; /* Pointer Cursor */
    display: inline-flex; /* Aligns Icon with Text */
    align-items: center; /* Centers Content */
    gap: 5px; /* Spacing between text and icon */
  }

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.search-container input {
    width: 100%;
    padding: 12px 50px 12px 50px; /* Leave space for both icons */
    border-radius: 25px;
    border: 2px solid #f7cac9;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
    outline: none;
}

.searchButton {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    z-index: 2;
}
#micButton {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    z-index: 2;
}

#micButton:hover {
    color: #000;
}

#micButton.listening i {
    color: red;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/*stop border from turning black on click*/
.search-container input:focus{
    border-color: #f5a9a9;
    outline:none;
}
header h1 {
    color: #007bff;
}

.logo img {
    height:50px;
    width: 50px;
    border-radius: 50%;
}
nav{
    display: flex;
    align-items: center;
    gap: 65px;
}
nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease-in-out;
}
nav a:hover {
    color:#6202ac;
}
nav button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .nav-container{
       display: flex;
       align-items: center;
       justify-content: space-between;
       width: 100%;
    }
    .courses-title {
        order: 1;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .logo {
        flex:1;
    }

    nav {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
}
/*hero-section*/
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Space between banner & resources box */
    flex-wrap: wrap; /* Makes it responsive */
    padding: 40px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100vw;
    overflow-x: hidden;
  }
  
  .banner-container {
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .banner {
    width: 100vw;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .banner img {
    width: 100%;
    height: auto;
    display: block;
  }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        align-items: center;
    }

    .banner-container {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .banner-container
    {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .banner {
        width: 100%;
        height: auto;
        background-size: contain;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .courses-title {
        order: 1;
        width: 100%;
        text-align: center;
    }

    nav {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .hero {
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .search-container {
        width: 90%;
    }
    .search-container input {
        font-size: 14px;
        padding: 10px 40px 10px 40px;
    }

    .search-container i {
        right: 10px;
    }
}


/* Course Categories */
.course-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 20px; /* Adds space between buttons */
    align-items: center; /* Centers buttons horizontally */
    margin-top: 10px; /*moves button section down*/
}

.course-buttons button {
    display: flex;
    flex-direction: column; /*stack icon above text*/
    align-items: center;
    justify-content: center;
    gap: 10px; /*space between icon &text*/
    width: 300px;
    height: 50px; 
    padding: 22px 30px; 
    color: white;
    font-size: 20px;
    font-weight: bold; 
    border: none; 
    border-radius: 16px;
    width: 100%;
    max-width: 380px; /*make button wider*/
    min-height: 80px;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0; /*prevent shrinking*/
    background: gray; /* Or any color */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover Effect */
.course-buttons button:hover {
    transform: translateY(-5px); /* Lifts button */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); /* Increases shadow */
}
.course-buttons button i{
    font-size: 30px;
    color: white;
}
.course-buttons button:nth-child(1) { background-color: #319eeb; }
button:nth-child(2) { background-color: rgb(140, 238, 123);}
button:nth-child(3) { background-color: #ff66c4; }
button:nth-child(4) { background-color: #cb6ce6; }
button:nth-child(5) { background-color: #ff8f4a; }

/* Footer */
.interactive-footer {
    background: #222; /* Dark background for contrast */
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid #007bff;
    font-family: 'Poppins', sans-serif;
    position: relative;
    width:100px;
    margin-top: 50px ;
    bottom:0;
    width:100%;
}

.footer-buttons {
    margin: 20px 0;
}

.footer-buttons button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 18px;
    margin: 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.footer-buttons button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

#footer-message {
    margin-top: 15px;
    font-size: 16px;
    font-style: italic;
    color: #f8f9fa;
}

.footer-bottom {
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.7;
}
.highlighted {
    outline: 3px solid #000000;
    border-radius: 10px;
    transition: outline 0.3s ease-in-out;
  }
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* prevents accidental horizontal scroll */
}