* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Gotu', sans-serif;
}

body {
    width: 100%;
    max-width: 100%;
}

.navbar {
    width: 100%;
    min-height: 40px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    position: relative;
}

.logo {
    display: flex;
    margin-left:10px;
    font-weight: 600;
    font-size: 1.2rem;
}
.logo img{
    width:120px;
    height:30px;
    margin-top:8px;
    
}
.logo img:hover{
  transform:scale(1.15);
    transition:0.3s ease-in;  
}
.logo a {
    text-decoration:none;
    color: #fff;
    margin:0px, 10px;
    padding:2px 10px;
}

/* Flex Container holding both Nav Links & Search/Auth */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin:auto;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    padding: 1px 15px;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    font-size:14px;
}

.nav-links li a:hover {
    color: #FFC0CB;
    transform:scale(1.2) ease;
    transition:0.3s;
    
}

.searchbar {
    justify-content: flex-end;
    align-items: center;
    padding: 5px;
    margin:auto;
    color: #fff;
    display: flex;
}

.search-btn {
    border: none;
    border-radius: 10px;
    margin-left: 5px;
    padding: 4px 5px;
    background:#000;
    color: #fff;
    font-size:20px;
    font-weight: 600;
    cursor: pointer;
}

.login-btn {
    border: none;
    border-radius: 10px;
    margin-left: 20px;
    padding: 2px 5px;
    background: none;
    font-weight: 600;
}

.login-btn a,
.register-btn a {
    text-decoration: none;
    color: #fff;
}

.register-btn a:hover {
    
    color: #ccc;
}
.login-btn a:hover{
    color:#ccc;
}
.register-btn {
    border: none;
    border-radius: 10px;
    margin-left: 10px;
    padding: 2px 5px;
    background: none;
    font-weight: 600;
}

/* Hamburger button hidden by default on Desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}


/* --- Mobile View (< 768px) --- */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .nav-menu {
        display: none; /* Hide menu items by default */
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 15px 0;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .logo{
        padding:0;
    }
    .logo a{
        text-decoration:none;
    }
    /* JavaScript toggles this class on click */
    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .searchbar {

        flex-direction: column;
        gap: 10px;
    }
    .searchbar input{
        width: 80%;
        flex-direction: column;
        gap: 10px;
    }
    .search-btn {
    border: none;
    padding:4px;
    background:#000;
    color: #fff;
    display:flex;
    align-items:center;
    font-weight: 600;
    cursor: pointer;
}

    .login-btn,
    .register-btn {
        margin-left: 0;
    }
}

/* -------------------- Index page Content ------------------------*/

.row{
    width:100%;
    padding: 0px,20px,20px,20px;
    border-radius:10px;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    
   
}

.card{
    width:300px;
    height:200px;
    border-radius:10px;
    display:flex;
    justify-content:center;
    background:#fff;
    padding:10px;
    margin:10px;
    box-shadow: 0px 0px 5px #020617;
}
.card:hover{
    box-shadow:0px 0px 15px #000;
    transform:scale(1.05);
    transition:0.3s;
}  
.hero-notes-row1{
    width:100%;
    height:500px;
    display:flex;
    justify-content:center;
    padding:5px 20px;
    background-color: #ffdee9;
    margin-top:30px;
    background: linear-gradient(135deg, #00c4cc 0%, #5a32fa 50%, #7d2ae8 100%);
}
.hero-notes-row2{
    width:100%;
    padding: 20px 0px;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    align-items:start;
    height:auto;
    background-color: #000;
}

.class-notes{
    width:20%;
    color:#fff;
    justify-content:center;
}
.class-notes h2{
    margin:auto;
    padding-left:0;
    text-align:left;
}
.class-notes ul{
    padding-left:25px;
}
.class-notes ul li{
    padding-left:0px;
}
.class-notes ul li a{
    text-decoration:none;
    font-size:16px;
    font-weight:400;
    color:#fff;
}
.class-notes ul li a:hover{
    color:#0EA5E9;
    font-weight:400;
}
/*------------------- Dropdown --------------------------*/
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -25px;
  min-width: 180px;
  list-style: none;
  padding: 4px;
  padding-right:10px;
  margin: 0;
  color:#fff;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 8px 10px;
  color: #000;
  border-radius:5px;
  text-decoration: none;
  font-size: 15px;
}
.dropdown-menu li a:hover {
  background-color: #f3efff;
  color: #000;
}

/* --- Slider Container --- */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2px auto;
  overflow: hidden; /* Clips non-visible horizontal slides */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background-color: #000;
}

h1,h2{
    
    max-width: 1000px; 
    margin: 20px auto; 
    padding: 20px; 
    text-align: center;
}
.heading-p{
    text-align:center;
}


/* --- Slide Track (Forces horizontal row & prevents wrapping/blinking) --- */
.slider-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* Prevents slides from wrapping into vertical stack */
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* --- Individual Slide Items --- */
.slide {
  min-width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important; /* Prevents flex shrink and forces exact 100% width per slide */
  box-sizing: border-box;
  position: relative;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}


/* --- Caption Styling --- */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  text-align: center;
}

.slide-caption h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.slide-caption p {
  font-size: 1rem;
  color: #ddd;
}

/* --- Navigation Buttons --- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* --- Pagination Dots --- */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #fff;
  transform: scale(1.2);
}

/*--------------- Footer -------------------*/
.footer{
    width:100%;
    max-width:100%;
    padding:30px 20px;
    background-color:#fff;
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;

}
.footer-col{
    width:25%;
    justify-content:center;
    display:inline-block;
}
.footer-col h3{
    margin-bottom:20px;
    font-weight:600;
}
.footer-col p{
    padding-right:40px;
    text-align:justify;
    font-size:14px;
    font-weight:600;
}
.footer-contact{
    padding:10px 0px;
}
.footer-col img{
    width:200px;
    height:55px;
    margin-bottom:20px;
    margin-right:50px;
    
}
.footer-col img:hover{
    transform:scale(1.2);
    transition:0.3s ease-in;
    
}
.footer-col ul {
    list-style-type: none;
    padding: 0; /* Removes default browser left-indentation */
}

.footer-col ul li {
    margin-bottom: 5px; /* Adds clean spacing between links */
}
.social-links a{
    margin:2px;
    padding:8px;
}

.footer-col ul li a,
.footer-col .social-links a {
    display: inline-block; /* Required for transform to work */
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight:600;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth animation */
}

.footer-col ul li a:hover
 {
    color: #00008B;
    transform: translateX(6px); /* Slides right (usually better for vertical lists) */
    /* Or use transform: translateY(-4px); to lift it slightly up */
}
.footer-col .social-links a:hover{
    transform:scale(1.5);
    transition:0.3s;
    color:red;
}
.footer-bottom{
    background:#000;
    padding:20px;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
}
.footer-bottom2{
    background:#000;
    text-align:center;
    color:#fff;
}


/*-------------------- Comment Section ------------------*/
.edu-comments {
    max-width: 850px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.edu-comments h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 22px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.comment-form .form-row {
    display: flex;
    gap: 12px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #310E7C;
}

.comment-form button {
    align-self: flex-start;
    background-color: #310E7C;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #0E167C;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #310E7C;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.student-name {
    font-weight: 700;
    color: #0f172a;
}

.student-badge {
    background: #ede9fe;
    color: #310E7C;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.comment-date {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
}

.comment-body {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    font-size: 15px;
}


/* --- Mobile Responsive Adjustments --- */
@media screen and (max-width: 768px) {
  
  .logo {
    display: flex;
    font-weight: 600;
    font-size: 1.2rem;
}

  .card{
    width:100%;
    height:300px;
    border-radius:10px;
    display:flex;
    justify-content:center;
    background:#fff;
    padding:20px;
    margin:30px 20px;
    box-shadow: 0px 0px 5px #020617;
}
.hero-notes-row1{
    width:100%;
    height:400px;
    background-color: #ffdee9;
    margin-top:30px;
    background: linear-gradient(135deg, #00c4cc 0%, #5a32fa 50%, #7d2ae8 100%);
}
.hero-notes-row2{
    width:100%;
    height:400px;
    background-color: #000;
    margin-top:30px;
}


.slide img {
    height: auto !important;
    max-height: 250px;
    object-fit: contain !important; /* Preserves full image without cutting left/right */
  }

  .slider-container {
    border-radius: 3px; /* Slightly tighter radius for mobile */
  }
  .slide-caption h2 {
    font-size: 1.2rem;
    display:none;
  }

  .slide-caption p {
    font-size: 0.85rem;
  }

  .slider-btn {
    padding: 8px 12px;
    font-size: 1.1rem;
  }

/* ---------- Class-notes --------- */
.hero-notes-row2{
    width:100%;
    padding: 20px 20px;
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    height:auto;
    gap:24px;
    background-color: #000;
}
.class-notes{
    width:100%;
    color:#fff;
    max-width:280px;
}

.footer{
    width:100%;
    max-width:100%;
    padding:20px;
    background-color:#fff;
    display:flex;
    flex-direction:colomn;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    margin:auto;

}
.footer{
    width:100%;
    margin:auto;
}
.footer-col{
    width:100%;
    align-items:center;
    margin:0% 25%;
}
.footer-col h3{
    font-weight:600;
    margin:20px auto;
}
.footer-col ul li{
    text-align:start;
    margin:auto;
}
.footer-bottom{
    background:#000;
    padding:10px 10px;
    color:#fff;
    display:flex;
    text-align:center;
}
/*------- Comment Section ---------*/
.comment-form .form-row {
        flex-direction: column;
    }
}