/* -------------------- Navbar ------------ */
html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff; /* Body is white as requested */
    color: #333;
}


/* --- Navbar (Adjusted for visibility) --- */
.polysmart-navbar { 
    padding: 10px 0; 
    background-color: #ffffff !important; /* Pure white background */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* --- Mobile Menu Space Fix --- */
@media (max-width: 991px) {
    /* 1. Remove extra padding from the container */
    .navbar-nav {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* 2. Reset the horizontal margins you used for desktop */
    .navbar-nav .nav-item {
        margin-left: 0 !important; /* Removes the ms-lg-3 / ms-lg-2 gaps */
        margin-bottom: 0px;       /* Controlled small gap between items */
        width: 100%;
        text-align: center;
    }

    /* 3. Adjust the links to not have extra side padding */
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    /* 4. Ensure buttons don't have desktop-only spacing */
    .login-btn-outline, 
    .signup-btn-solid {
        margin-top: 5px !important;
        display: block; /* Makes them full width and centered */
        width: 90%;     /* Optional: makes buttons look better on mobile */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


.polysmart-navbar .nav-link { 
    color: #333333 !important; /* Dark text for visibility on white */
    font-weight: 500;
}

.navbar-brand { 
    font-weight: 800; 
    color: #4361ee !important; /* Blue brand color */
    font-size: 22px; 
}

/* --- Login & Signup Buttons --- */
.login-btn-outline {
    border: 1px solid #4361ee !important;
    color: #4361ee !important;
    border-radius: 8px;
    padding: 6px 20px !important;
    transition: 0.3s;
}

.login-btn-outline:hover {
    background: #4361ee;
    color: #fff !important;
}

.signup-btn-solid {
    background: #4361ee;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 7px 20px !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.signup-btn-solid:hover {
    background: #3c40c6;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}




.hero-gradient-wrapper {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #7367f0 100%);
    color: white;
    padding-bottom: 40px; 
    margin-top: 50px;
}

.hero-content { 
    padding: 60px 0 30px 0; 
}

.hero-title { 
    font-weight: 800; 
    font-size: 2.5rem; 
    margin-bottom: 8px; 
}

.hero-subtitle { 
    font-weight: 400;
    font-size: 1.5rem;
    opacity: 0.9; 
    margin-bottom: 30px; 
}

.glass-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px; 
    max-width: 900px;
}
.form-select-custom, .form-input-custom {
    background: white;
    border: none;
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.view-btn {
    background: #3c40c6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}

.more-btn {
    background: #3c40c6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 25px;
}

/* Styling for the Select inputs inside the modal */
#searchModal .form-select {
    border-radius: 12px;
    font-size: 15px;
    color: #444;
}

#searchModal .modal-content {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Ensure the Search button inside modal looks prominent */
#searchModal .view-btn {
    background: #4361ee;
    transition: all 0.3s ease;
    margin-left: 0; /* Override your previous margin */
}

#searchModal .view-btn:hover {
    background: #3c40c6;
    transform: translateY(-2px);
}

/* Professional Modal Styling */
/* Styling for inputs and selects within the modal */
.custom-modal-input {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-size: 14px;
}

.custom-modal-input:focus {
    background-color: #fff !important;
    border-color: #4361ee !important;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1) !important;
}

/* Modal Title Polish */
.search-modal-glass {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Fix for the Search button inside the modal to stay consistent */
#searchModal .view-btn {
    margin-left: 0; 
    padding: 12px;
}

.search-button-blue {
    background: #3c40c6;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}

.more-filters-button {
    background: #3c40c6;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}

/* --- Marquee Spacing Wrapper --- */
.marquee-spacing-wrapper {
    margin-top: 60px; 
    padding: 20px 0; 
    background-color: #ffffff;
}

.marquee-pill {
    /* background: #f8f9fa; */
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #7367f0 100%);
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 10px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* --- The Animation Logic --- */
.marquee-text-flow {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text-flow span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause when user hovers mouse */
.marquee-text-flow:hover span {
    animation-play-state: paused;
}
/* --- White Section Cards --- */
.section-label {
    display: inline-block;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #3c40c6;
    padding-bottom: 5px;
}

.link-card-white {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    font-weight: 600;
    transition: 0.3s;
}

.course-card-white {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.course-icon-box {
    background: #eef2ff;
    color: #3c40c6;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


.contact-section {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.contact-card {
    width: 80%;
    max-width: 900px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.full-width {
    margin-top: 20px;
}

.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.send-btn {
    background: #4361ee;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.send-btn:hover {
    background: #0f1de6;
}

@media(max-width:768px) {

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

    .contact-card {
        width: 95%;
    }
}

/* --- Footer with Gradient --- */
.footer {
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid #444;
  }
  
  .footer-links {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .footer-disclaimer {
    font-size: 13px;
    margin: 8px 0;
  }
  
  .footer-legal {
    font-size: 12px;
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .footer-links a {
      display: block;
      margin: 5px 0;
    }
  }


/* Fix navbar translate position */
#google_translate_element {
  display: flex;
  align-items: center;
}

/* Clean UI */
.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-combo {
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  font-size: 14px !important;
  cursor: pointer;
}

/* Hide unwanted Google UI */
.goog-logo-link,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}



.link-card-white {
    background: #fff;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Gives all cards the same height */
    text-align: center;
}

.link-card-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.15);
    color: #007bff;
}





/* Hero Dropdown Text Style */
.custom-hero-dropdown {
    cursor: pointer;
    /*background: rgba(255, 255, 255, 0.15); /* Light translucent background */
    padding: 2px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.custom-hero-dropdown:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Remove default Bootstrap arrow (optional, cleaner look) */
.custom-hero-dropdown::after {
    margin-left: 10px;
    vertical-align: middle;
}

/* Modern Menu Design */
.modern-dropdown-menu {
    border-radius: 15px;
    padding: 10px;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin-top: 10px !important;
}

.modern-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.modern-dropdown-menu .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0d6efd;
    transform: translateX(5px);
}
#degree-badges{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    border-bottom:1px solid #dee2e6;
    margin-bottom:35px;
}

.degree-btn{
    background:transparent;
    border:none;
    color:#212529;
    font-size:18px;
    font-weight:600;
    padding:12px 20px;   /* Increased horizontal padding */
    cursor:pointer;
    border-bottom:3px solid transparent;
    transition:all .25s ease;
}

.degree-btn:hover{
    color:#0d6efd;
}

.degree-btn.active{
    color:#0d6efd;
    border-bottom:3px solid #0d6efd;
}

.stats-section .container{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:30px;
}

.stat-item{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:18px;
    font-weight:500;
}

.stat-number{
    font-size:28px;
    font-weight:700;
}

.stat-label{
    font-size:18px;
}


@media (max-width:768px){

    .stats-section .container{
        grid-template-columns:repeat(2,1fr);
        row-gap:25px;
    }

    .stat-item{
        border-right:none;
    }

    .stat-item h3{
        font-size:26px;
    }
}

.featured-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.featured-card:hover{
    transform:translateY(-6px);
}

.featured-image{
    width:100%;
    height:220px;
    object-fit:cover;
}

.featured-body{
    padding:20px;
}

.featured-body h5{
    font-weight:600;
    margin-bottom:10px;
}

.video-item{
    cursor:pointer;
    transition:.3s;
}

.video-item:hover{
    background:#f8f9fa;
}

.video-thumb{
    width:120px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
}

.news-card{
    border:none;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.news-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.news-card img{
    height:220px;
    object-fit:cover;
}

.news-title{
    font-size:1.1rem;
    font-weight:600;
    line-height:1.4;
    margin-bottom:10px;
}

.news-description{
    color:#666;
    font-size:.95rem;
}

.news-date{
    font-size:.85rem;
    color:#999;
}

.news-badge{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 14px;
    border-radius:30px;
    color:#fff;
    font-size:.75rem;
    font-weight:600;
}

.news-type{
    background:#dc3545;
}

.article-type{
    background:#0d6efd;
}

.news-home-card {
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    display:flex;
    min-height:160px;
    height:auto;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.news-image {
    width:120px;
    flex-shrink:0;
}

.news-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.news-content {
    padding:14px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.news-content h5 {
    margin:8px 0;
    font-size:17px;
    font-weight:700;
    line-height:1.2;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.news-content p {
    font-size:13px;
    color:#666;
    margin-bottom:10px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.news-content .btn {
    align-self:flex-start;
    padding:4px 12px;
    font-size:13px;
}

.news-content .badge {
    align-self:flex-start;
    width:max-content;
}

@media(max-width:768px){

    .news-home-card{
        height:auto;
        flex-direction:column;
    }

    .news-image,
    .news-content{
        width:100%;
    }

    .news-image{
        height:180px;
    }

}