body {
    background-color: #f5f7fa;
    font-family: "Poppins", sans-serif;
    color: #222;
}

.tab-btn.active{
    background-color: #0046ad;
}

.navbar .container-fluid .btn-gradient {
    background: linear-gradient(80deg, #004aad, #67a1ec); /* Adjust colors as needed */
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}
 
.navbar .container-fluid .btn-gradient:hover {
    background: linear-gradient(80deg, #004aad, #67a1ec);
    color: white !important;
}

.search-container button{
    max-width: 100px;
}

@media (max-width: 768px) {
    .navbar .container-fluid .search-box{
        width: 100% !important;
    }

    .mobile-search {
        display: block !important;
        width: 24px !important;
    }

    .system-search-box{
        display: none !important;
    }

    .navbar .container-fluid .mobile-search{
        width: 24px !important;
    }
    .navbar .container-fluid .mobile-search button{
        background: none;
    }
}

.footer {
    background-color: #0049ac;
}

.footer p a {
    color: white;
}

/* Desktop vs Mobile visibility */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .auth-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@keyframes blinkAnimation {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.blink {
  animation: blinkAnimation 1.3s infinite;
}

.landing-header{
    background: linear-gradient(135deg, #0046ad 0%, #002a66 100%);
}

.landing-header .right-image img{
    height: 300px;
}

.modal .modal-content {
    border-radius: 12px;
}

.modal .modal-body h6 {
    font-weight: 600;
}

.modal .modal-body p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal .btn-rounded {
    border-radius: 50px;
}

.modal .error { 
    color: red; 
    display: none; 
    font-size: 0.9rem; 
}

h2 {
    color: #004aad;
    font-weight: 700;
    margin-bottom: 40px;
}

.course-card {
    background: #fff;
    border: 1px solid #e4e8f1;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-body {
    padding: 16px 18px;
}

.course-title {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-instructor {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rating i {
    color: #f7c948;
}

.rating span {
    color: #444;
    font-weight: 500;
    margin-left: 3px;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: #004aad;
}

.price del {
    color: #888;
    font-size: 0.9rem;
    margin-left: 6px;
    font-weight: 400;
}

.tag {
    display: inline-block;
    background: #ffd4d4;
    color: #ff3131;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 10px;
    border: none;
}

.tag:hover{
    background: #ff3131;
    color: #fff;
}

.card-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .know-more{
    color: #004aad;
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.card-footer .know-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .main-card{
        width: 40% !important;
    }

    .course-card img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.3rem;
    }

    .main-card{
        width: 90% !important;
    }

    .course-card {
        margin-bottom: 20px;
    }
}

.universities-logos-section .subtitle{
    font-size: larger;
    font-weight: 600;
}

.universities-logos-section .logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.universities-logos-section .logos-grid img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.universities-logos-section .logos-grid img:hover {
    filter: none;
}

@media (max-width: 768px) {
    .landing-header .right-image img{
        height: 200px;
    }

    #courseContainer{
        display: flex;
        overflow-x: auto;
        justify-content: space-evenly;
    }

    #course-container::-webkit-scrollbar {
        display: none;
    }

    .universities-logos-section .logos-grid {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px;
        justify-content: space-evenly;
        display: flex;
        align-items: center;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }

    #universities-logos-grid::-webkit-scrollbar {
        display: none;
    }

    .universities-logos-section .logos-grid img {
        filter: none;
        transition: transform 0.3s;
    }

    #universities-logos-grid img:hover {
        transform: scale(1.1);
    }
}

.timer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 250px;
    max-width: 90%;
    background: linear-gradient(135deg, #cb1121, #fc5025);
    color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    position: absolute;
    right: 10px;
    top: 70px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.timer p {
    margin: 0 0 12px 0;
    font-weight: bold;
    font-size: 1rem;
}

.countdown-blocks {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    min-width: 50px;
    margin-bottom: 6px;
}

.time-box small {
    font-size: 0.65rem;
    margin-top: 2px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .course-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .timer {
        width: 200px;
        position: static;
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    .time-box {
          padding: 6px 8px;
          font-size: 0.9rem;
    }
    .timer p {
          font-size: 0.9rem;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    .course-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timer {
        position: static;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .time-box {
        flex: 1 1 28%;
        padding: 5px 6px;
        font-size: 0.85rem;
    }

    .timer p {
        font-size: 0.85rem;
    }
}

.category-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .category-courses {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding-bottom: 10px;
  }

  .category-courses::-webkit-scrollbar {
    display: none;
  }

  .main-card {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .category-section h4 {
    text-align: left;
    font-size: 1.1rem;
    margin-left: 10px;
  }
}

