*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background: white;
    min-height: 100vh;
    background-repeat: no-repeat;
     animation: fadeIn 1s ease-in-out;
     font-family: 'Lora';
     display: block;
}
/* ANIMATION */
@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
/* NAV BAR */
.nav-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 14vh;
     background: linear-gradient(135deg, #080622, #030216, #080113);
     position: fixed;
     width: 100%;
     z-index: 1000;
     border-bottom: 0.5px solid white;
      animation: slideDown 0.8s ease-out;
}
/* ANIMATION FOR NAV BAR */
@keyframes slideDown{
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo{
    width: 200px;
}
.nav-links{
    display: flex;
    gap: 30px;
    text-transform: capitalize;
}
.nav-links a{
    color: white;
     text-decoration: none;
     position: relative;
     font-size: 0.8rem;
     letter-spacing: 0.10em;
}
.nav-links a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: rgb(239, 240, 244);
     transition: width 0.3s ease;
}
.nav-links a:hover::after{
    width: 100%;
}

/* DROPDOWN FOR COURSES */

.drop-down{
    position: relative;
}
.dropdown-li {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #6b21a8);
  list-style: none;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.dropdown-li a {
  padding: 8px;
  display: block;
}
.drop-down:hover .dropdown-li{
  display: block;
}
.dropdown-li a:hover {
    background: #2575fc;
    color: white;
}

.back{
    display: flex;
    gap: 30px;
    margin-right: 30px;
}
/* HAMBUGER BTN */
.mobile{
    display: none;
    font-size: 1.5rem;
    background-color: black;
    color: white;
    border: none;
    margin-right: 30px;
}
/* BACKGROUND CHANGER */
.mode{
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    border: none;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.4s ease-in-out;
    animation: fadeIn 1.4s ease-in;
}
/* .fa-moon{
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    border: none;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.4s ease-in-out;
    animation: fadeIn 1.4s ease-in;
} */
/* APPLY BUTTON */
.apply{
  padding: 10px ;
  border: none;
  background: #38bdf8;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.4s ease-in-out;
  animation: fadeIn 1.4s ease-in;
  text-transform: capitalize;
  color: black;
}
.apply:hover{
    color: white;
    background: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}
/* MOBILE MENU */
.mobileMenu{
     display: none;
    padding-top: 100px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px black;
     background: #084298;
}
/* TOGGLE */

.mobileMenu a{
    text-decoration: none;
    text-transform: capitalize;
    padding: 10px;
    color: white;
    margin-left: 40px;
   font-weight: 600;
    animation: fadeIn 1.4s ease-in;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.mobileMenu li{
    list-style: none;
    padding: 10px 30px;
    border-bottom: 0.05px solid rgb(0, 0, 0);
}

/* NAV BAR RESPONSIVENESS */

@media(max-width:768px){
    .nav-links{
        display: none;
    }
    .apply{
        display: none;
    }
    .mode{
        margin-left: 50px;
        background: none;
        color: white;
        font-size: 1.5rem;
    }
    .mobile{
        display: block;
        cursor: pointer;
    }
    .mobileMenu{
        background: #084298;
        margin-top: 20px;
        transition: right 0.3s ease;
    }
    
    .mobileMenu.open{
    display: block;
    }
}


/* =========================
   COURSES SECTION
========================= */

.courses{
    padding: 100px 8%;
    background: #f8fafc;
}

/* =========================
   HEADER
========================= */

.courses-header{
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeUp 1s ease;
}

.courses-header span{
    color: #2563eb;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.courses-header h2{
    font-size: 3rem;
    margin: 15px 0;
}

.courses-header p{
    color: #666;
    line-height: 1.8;
}

.search-course{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}
#search{
    width: 350px;
    height: 30px;
    outline: none;
    padding: 10px;
    border-radius: 30px;
    border: 0.03px solid black;
    font-size: 1rem;
}
#search-course{
    background: #1d4ed8;
    padding: 5px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
/* =========================
   CATEGORY BUTTONS
========================= */

.course-categories{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.btn-c.active{
       background: #2563eb;
       color: white;
}

.course-categories button{
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: #e2e8f0;
    transition: 0.3s;
    font-weight: 500;
}

.course-categories button:hover{
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
}

/* =========================
   COURSES GRID
========================= */

.courses-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* =========================
   COURSE CARD
========================= */

.course-card{
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.4s;
    animation: fadeUp 0.8s ease;
}

.course-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.5s;
}


.course-card:hover img{
    transform: scale(1.05);
}

.course-card:hover{
    transform: translateY(-10px);
}

/* CONTENT */

.course-content{
    padding: 20px;
}

.course-content h3{
    margin-bottom: 10px;
}

.course-content p{
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* INFO ROW */

.course-info{
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

/* BUTTON */

.btn{
    display: inline-block;
    text-decoration: none;
    background: #2563eb;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn:hover{
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .courses-header h2{
        font-size: 2.5rem;
    }

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .courses{
        padding: 80px 5%;
    }

    .courses-header h2{
        font-size: 2rem;
    }

    .course-info{
        flex-direction: column;
        gap: 5px;
    }
    

}

/* =========================
   SMALL PHONES
========================= */

@media(max-width:480px){

    .courses-header h2{
        font-size: 1.7rem;
    }

}

/* =========================
   FOOTER BASE
========================= */

.footer{
    background: #0f172a;
    color: #ffffff;
    padding: 80px 8% 20px;
}

/* =========================
   FOOTER GRID
========================= */

.footer-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* =========================
   BRAND SECTION
========================= */

.footer-brand img{
    width: 200px;
    animation: fadeUp 1s ease;
}

.footer-brand p{
    color: #cbd5e1;
    line-height: 1.8;
}

/* =========================
   LINKS
========================= */

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3{
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
}

/* underline animation */
.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: #2563eb;
}

.footer-links ul{
    list-style: none;
}

.footer-links ul li{
    margin-bottom: 10px;
}

.footer-links ul li a{
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover{
    color: #2563eb;
    padding-left: 5px;
}

/* =========================
   CONTACT
========================= */

.footer-contact p{
    color: #cbd5e1;
    margin-bottom: 10px;
}

/* =========================
   NEWSLETTER
========================= */

.footer-newsletter p{
    color: #cbd5e1;
    margin-bottom: 15px;
}

.footer-newsletter form{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-newsletter input{
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.footer-newsletter button{
    padding: 10px 15px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-newsletter button:hover{
    transform: translateY(-3px);
    background: #1d4ed8;
}

/* =========================
   BOTTOM BAR
========================= */

.footer-bottom{
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){
    .footer-container{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){
    .footer{
        padding: 60px 5% 20px;
    }

    .footer-container{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-newsletter form{
        flex-direction: column;
    }

    .footer-newsletter input,
    .footer-newsletter button{
        width: 100%;
    }
}

/* BACKGROUND CHANGER */
.dark-mode{
    background: black;
}
.dark-mode .courses,
.dark-mode .footer{
    background: black;
}
.dark-mode .courses-header h2,
.dark-mode .courses-header p{
    color: white;
}



