/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding-top: 80px; /* Default padding for fixed navbar */
}

body, html {
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

.banner-slider,
.banner-slide,
.banner-slider img {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block;
}

@media (max-width: 768px) {
  .banner-slider, .banner-slide, .banner-slider img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 0 10px 10px !important;
  }
}

/* Navbar background color black */
.navbar {
  background-color: #000 !important;
}

/* Navigation Bar */
.navbar {
    background-color: #070706;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 80px;
    flex-wrap: nowrap;
    gap: 0;
}

/* Hamburger Menu - Only show on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    order: 1; /* Hamburger on the left */
    margin-right: 3px; /* 3px space from logo */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.logo {
    order: 1;
    margin-right: 20px;
    margin-left: 0;
    flex-shrink: 0;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    order: 3;
    margin-left: 10px; /* 10px gap after search box */
    margin-right: 0;
    flex: 0 1 auto; /* Don't take full width */
    gap: 10px;
}

.nav-links li {
    margin-right: 0; /* Remove margin since we're using gap */
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 18px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Navbar Search Box */
.navbar-search {
    order: 2;
    margin-left: 0; /* No margin, let space-between handle spacing */
    margin-right: 10px;
    flex-shrink: 0;
}

.navbar-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-search-form input {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    width: 260px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.navbar-search-form input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    width: 320px;
}

.navbar-search-form input::placeholder {
    color: #666;
}

.navbar-search-form button {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff9101;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-search-form button:hover {
    background: white;
    transform: scale(1.05);
}

.navbar-search-form button i {
    font-size: 14px;
}

/* Mobile Search Box - Only show on mobile */
.mobile-search {
    display: none;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Mobile Navigation - Only show on mobile */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px; /* Start from right side */
    width: 300px;
    height: 100vh;
    background: #ff9101;
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
}

.mobile-nav.active {
    display: block;
    right: 0; /* Slide in from right */
}

.mobile-nav-links {
    list-style: none;
    padding: 80px 0 0 0; /* Top padding for navbar */
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Overlay for mobile menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-overlay.active {
    display: block;
}

/* Search Box */
.search-container {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
}

.search-box {
    padding: 0.5rem;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.search-button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Get Started Box */
.get-started-container {
    text-align: center;
    padding: 3rem;
    background-color: #e9ecef;
}

.get-started-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.get-started-btn:hover {
    background-color: #0056b3;
}

/* Featured Courses */
.featured-courses {
    padding: 3rem;
}

.featured-courses h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

@media (min-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.course-card {
    min-width: 0;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.course-card img {
    height: 140px;
    object-fit: cover;
}

.course-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    overflow: hidden;
}

.course-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.course-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ffb84d !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    margin: 1rem;
}

.course-btn:hover {
    background-color: #ffa726 !important;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #f8f3f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }

    .navbar {
        padding: 0 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .navbar-search {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Show hamburger only on mobile */
    .hamburger {
        display: flex;
        order: 1;
    }

    .logo {
        display: block !important;
        order: 2;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .logo a {
        font-size: 16px;
        padding: 0;
        color: white;
        text-decoration: none;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Hide desktop nav on mobile */
    .nav-links {
        display: none;
        order: 2;
        margin-left: auto;
        margin-right: 0;
        flex: 1;
        gap: 10px;
    }

    /* Show mobile search only on mobile */
    .mobile-search {
        display: block;
    }

    /* Mobile nav positioning */
    .mobile-nav {
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
    }

    .mobile-nav.active {
        right: 0;
    }

    .search-box {
        width: 200px;
    }

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

    /* Card height for mobile only */
    .course-card {
        height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
    .course-content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        overflow: hidden;
    }
    .course-btn {
        margin-top: auto;
        margin-bottom: 10px;
        align-self: flex-start;
        display: inline-block;
    }

    .course-card img {
        height: 120px;
    }

    .course-content {
        padding: 10px;
        height: calc(100% - 120px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .course-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .course-content p {
        font-size: 14px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    .course-price {
        font-size: 18px;
        margin-bottom: 10px;
        color: #ff9101 !important;
    }

    .course-btn {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0;
        align-self: flex-start;
    }
}

/* Desktop styles - ensure desktop layout is preserved */
@media (min-width: 769px) {
    body {
        padding-top: 80px; /* Normal padding for desktop */
    }

    .hamburger {
        display: none !important;
    }

    .mobile-search {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }

    .navbar {
        justify-content: center !important;
        padding: 0 20px !important;
    }
    .logo {
        order: 1 !important;
    }
    .nav-links {
        order: 2 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 1 auto !important;
        gap: 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .navbar-search {
        order: 3 !important;
        margin-left: 20px !important;
        margin-right: 0 !important;
        display: flex !important;
        align-items: center;
    }
    /* Add extra gap after search box before nav links */
    .navbar-search {
        margin-right: 20px !important;
    }

    /* Reset card styles for desktop */
    .course-card {
        height: auto;
        min-height: auto;
    }

    .course-card img {
        height: 200px;
    }

    .course-content {
        padding: 1.5rem;
        height: auto;
        display: block;
    }

    .course-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .course-content p {
        font-size: inherit;
        margin-bottom: 1.5rem;
        -webkit-line-clamp: 3;
    }

    .course-price {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .course-btn {
        padding: 0.5rem 1rem;
        font-size: inherit;
        margin: 1rem;
        align-self: auto;
    }
}

.student-search {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.student-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.1;
}

.search-box-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 48px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.student-search h2 {
    color: #1e3c72;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.search-form input {
    flex: 1;
    padding: 18px 32px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    min-width: 0;
}

.search-form input:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.search-form button {
    padding: 15px 30px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-form button:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.search-form button:active {
    transform: translateY(0);
}

.search-form i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .search-box-container {
        max-width: 98vw;
        margin: 0 5px;
        padding: 32px 8px;
    }

    .student-search h2 {
        font-size: 24px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
        justify-content: center;
    }
    .search-form input {
        font-size: 17px;
        padding: 15px 18px;
    }
}

@media (max-width: 768px) {
    .search-box-container {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Floating Messenger Icon */
.floating-messenger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-messenger:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.floating-messenger i {
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Chat Box */
.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.sent {
    margin-left: auto;
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
}

.message.received {
    margin-right: auto;
    background: white;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input form {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #45a049;
}

@media (max-width: 768px) {
    .chat-box {
        width: 98vw;
        max-width: 380px;
        min-width: 0;
        height: 60vh;
        max-height: 70vh;
        min-height: 320px;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.18);
        padding: 0;
    }
    .chat-header {
        border-radius: 12px 12px 0 0;
        padding: 10px 16px;
        font-size: 15px;
    }
    .chat-messages {
        padding: 10px;
        font-size: 15px;
    }
    .chat-input {
        padding: 10px;
    }
    .chat-input input {
        font-size: 15px;
        padding: 10px 12px;
    }
    .chat-input button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

.alert {
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Banner Slider Styles */
.banner-slider {
    width: 100%;
    height: 384px; /* 4 inches for desktop */
    overflow: hidden;
    position: relative;
    margin-top: 0; /* No gap - sits directly against navbar */
    margin-bottom: 24px;
    z-index: 1;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border-radius: 0 0 15px 15px;
}

.banner-slide.active {
    transform: translateX(0);
    z-index: 2;
}

.banner-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 15px 15px;
}

/* Gradient overlay for better text readability */
.banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.05) 50%,
        rgba(0,0,0,0.1) 100%
    );
    border-radius: 0 0 15px 15px;
    pointer-events: none;
}

/* Slide indicators */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.banner-indicator.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.8);
}

/* Hover effects */
.banner-slider:hover .banner-slide {
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .banner-slider {
        height: 192px; /* 2 inches for mobile */
        margin-top: 1px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .banner-slide {
        border-radius: 0 0 10px 10px;
    }

    .banner-slider img {
        border-radius: 0 0 10px 10px;
    }

    .banner-slide::after {
        border-radius: 0 0 10px 10px;
    }

    .banner-indicators {
        bottom: 15px;
    }

    .banner-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .navbar-search {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

.navbar-mobile-icons {
    display: none;
}

@media (max-width: 768px) {
    .navbar-mobile-icons {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        order: 3;
        margin-left: auto;
    }
    .navbar-mobile-icons a {
        color: #ff9101;
        background: #fff;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.07);
        transition: background 0.2s, color 0.2s;
    }
    .navbar-mobile-icons a:active,
    .navbar-mobile-icons a:hover {
        background: #ff9101;
        color: #fff;
    }
}

.mobile-banner-search {
    display: none;
}

@media (max-width: 768px) {
    .mobile-banner-search {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1px;
        margin-bottom: 10px;
    }
    .mobile-banner-search-form {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        padding: 4px 10px;
    }
    .mobile-banner-search-form input {
        padding: 13px 16px;
        border: none;
        border-radius: 20px;
        font-size: 16px;
        width: 98vw;
        max-width: 350px;
        background: #f7f7f7;
        color: #333;
        outline: none;
        transition: all 0.3s ease;
    }
    .mobile-banner-search-form input:focus {
        background: #fff;
        width: 150px;
    }
    .mobile-banner-search-form button {
        padding: 6px 10px;
        border: none;
        border-radius: 20px;
        background: #ff9101;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-banner-search-form button i {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .course-details {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        right: auto !important;
        left: -300px !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-nav.active {
        right: auto !important;
        left: 0 !important;
    }
}

.mobile-nav-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 18px 18px 8px 18px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.mobile-nav-back:hover {
    color: #222;
}
@media (max-width: 768px) {
    .mobile-nav-back {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1002;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    body {
        padding-top: 80px !important;
    }
}

/* --- Student View Page Mobile Fixes --- */
@media (max-width: 768px) {
  .container {
    padding: 8px 2vw !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .student-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }
  .student-header h1 {
    font-size: 20px !important;
    margin-bottom: 2px !important;
  }
  .reg-number {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }
  .button-group {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .btn {
    font-size: 14px !important;
    padding: 7px 12px !important;
    min-width: 90px;
    margin-bottom: 0 !important;
  }
  .photo-section {
    display: flex;
    justify-content: center;
    margin: 12px 0 18px 0 !important;
  }
  .student-photo {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 2px solid #eee !important;
  }
  .student-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .info-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 10px 6px 10px;
    margin-bottom: 8px;
  }
  .info-section h3 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  .info-item {
    display: flex;
    flex-direction: column;
    font-size: 14px !important;
    margin-bottom: 7px !important;
    gap: 2px;
  }
  .info-label {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1px;
    font-size: 13px !important;
  }
  .payment-history {
    margin-top: 18px !important;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 4px 10px 4px !important;
  }
  .payment-history h3 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  .payment-table {
    width: 100% !important;
    font-size: 12px !important;
    min-width: 520px;
    border-collapse: collapse;
  }
  .payment-table th, .payment-table td {
    padding: 6px 4px !important;
    font-size: 12px !important;
    word-break: break-word;
  }
  .status-badge {
    font-size: 11px !important;
    padding: 3px 7px !important;
    border-radius: 12px !important;
  }
  .text-center {
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .round,
  .round-pic,
  .round-pic-img {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px !important;
  }
  .container {
    padding: 4px 1vw !important;
  }
  h1, h2, h3, h4 {
    font-size: 1.1em !important;
  }
  .btn {
    font-size: 12px !important;
    padding: 6px 8px !important;
    min-width: 70px !important;
  }
  .student-photo, .photo-section img, img.round, .round-pic-img {
    width: 60px !important;
    height: 60px !important;
  }
  .info-label {
    font-size: 12px !important;
  }
  .info-item {
    font-size: 12px !important;
  }
  .payment-table {
    font-size: 10px !important;
    min-width: 350px !important;
  }
  .navbar, .footer, .student-header, .button-group {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

@media (max-width: 667px) {
  body {
    font-size: 15px !important;
    overflow-x: hidden !important;
  }
  .container {
    padding: 6px 2vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  h1, h2, h3, h4 {
    font-size: 1.12em !important;
    word-break: break-word;
  }
  .btn {
    font-size: 13px !important;
    padding: 7px 10px !important;
    min-width: 70px !important;
    word-break: break-word;
  }
  .student-photo, .photo-section img, img.round, .round-pic-img {
    width: 65px !important;
    height: 65px !important;
  }
  .info-label, .info-item {
    font-size: 12px !important;
    word-break: break-word;
  }
  .payment-table {
    font-size: 10px !important;
    min-width: 320px !important;
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
  }
  .payment-table th, .payment-table td {
    padding: 5px 2px !important;
    font-size: 10px !important;
    word-break: break-word;
  }
  .navbar, .footer, .student-header, .button-group {
    padding-left: 1vw !important;
    padding-right: 1vw !important;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 13px !important;
    overflow-x: hidden !important;
  }
  .container {
    padding: 2px 1vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  h1, h2, h3, h4 {
    font-size: 1em !important;
    word-break: break-word;
  }
  .btn {
    font-size: 11px !important;
    padding: 5px 6px !important;
    min-width: 55px !important;
    word-break: break-word;
  }
  .student-photo, .photo-section img, img.round, .round-pic-img {
    width: 45px !important;
    height: 45px !important;
  }
  .info-label, .info-item {
    font-size: 10px !important;
    word-break: break-word;
  }
  .payment-table {
    font-size: 8px !important;
    min-width: 220px !important;
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
  }
  .payment-table th, .payment-table td {
    padding: 3px 1px !important;
    font-size: 8px !important;
    word-break: break-word;
  }
  .navbar, .footer, .student-header, .button-group {
    padding-left: 0.5vw !important;
    padding-right: 0.5vw !important;
  }
}

/* --- Modern Student Registration Search Box --- */
.search-box-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(30,60,114,0.08);
  padding: 24px 24px 18px 24px;
  margin: 32px auto 24px auto;
  max-width: 420px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.student-search-form {
  width: 100%;
  display: flex;
  gap: 10px;
}

.student-search-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  outline: none;
  transition: border 0.2s;
}

.student-search-input:focus {
  border-color: #1e3c72;
}

.student-search-btn {
  padding: 14px 22px;
  background: #1e3c72;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.student-search-btn:hover {
  background: #2a5298;
}

@media (max-width: 768px) {
  .search-box-container {
    width: 2in !important;
    max-width: 98vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    transition: none !important;
  }
  .student-search-input,
  .student-search-btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-left: 10px !important;
    padding-right: 10px !important;
    /* keep background-color as is */
  }
}

.course-price {
  color: #ff9101 !important;
}

@media (max-width: 768px) {
  .course-price {
    color: #ff9101 !important;
  }
}

/* Add at the top of the file */
:root {
    --navbar-height: 80px;
}

/* Universal top margin for main content containers */
.main,
.container,
.course-header,
.about-section,
.courses-section,
.student-header,
.course-container,
.team-section,
.search-box-container {
    margin-top: var(--navbar-height) !important;
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }
    .main,
    .container,
    .course-header,
    .about-section,
    .courses-section,
    .student-header,
    .course-container,
    .team-section,
    .search-box-container {
        margin-top: var(--navbar-height) !important;
    }
}

