:root {
 
 --primary-color: #007ffe;
 --secondary-color: #28a745; 
--background-light: #f8f9fa;
--text-dark: #343a40;
--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
--header-bg: #007ffe; 
--logo-gold: #c59e02;


 --navbar-gradient: linear-gradient(to right, #007ffe, lch(16.66% 19.24 259.68 / 0.831));
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  margin: 0;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;    
  background-attachment: fixed; 
  background-position: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: black;
  line-height: 1.6;
}


.homepage-video {
    width: 100%;
    height: auto;
    display: block; 
    object-fit: cover;
}



.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--header-bg) 0%, #0056b3 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-text h2 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: var(--logo-gold);
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.tagline {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    margin-top: 2px;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.5px;
}


.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
    display: flex;
    gap: 10px;
}

.nav li {
    margin: 0;
}

.nav a {
    color: white;
  text-decoration: none;
    font-size: 16px;
  font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    background: rgba(197, 158, 2, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 158, 2, 0.3);
}


@media (max-width: 768px) {
    .header {
    flex-direction: column;
    text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .logo h1, .logo h2 {
        font-size: 36px;
    }
    
    .logo img {
        width: 70px;
        height: 60px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 14px;
    }
}


main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}


.filter-form-container, .results-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    flex: 1; 
    min-width: 300px; 
}

.filter-form-container {
    flex-basis: 35%;
}

.results-container {
    flex-basis: 60%; 
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}


.form-group > div {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-group input[type="radio"] {
    width: auto;
}


#filterButton {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#filterButton:hover {
    background-color: #1e7e34;
}


#scholarshipResults {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

.placeholder {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

.scholarship-card {
    border: 1px solid rgba(0, 127, 254, 0.1);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--logo-gold));
}

.scholarship-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--logo-gold);
}

.scholarship-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.scholarship-card p {
    margin-bottom: 5px;
    font-size: 15px;
}

.scholarship-card .criteria {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.scholarship-actions {
    margin-top: 15px;
    text-align: center;
}

.btn-apply-now {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #1e7e34);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-apply-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply-now:hover::before {
    left: 100%;
}

.btn-apply-now:hover {
    background: linear-gradient(135deg, #1e7e34, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}


.btn-apply-now.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-apply-now.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


.loading-container {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-container p {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}


footer {
    background-color: var(--text-dark);
    color: white;
    margin-top: 60px;
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--logo-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 8px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--logo-gold);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .footer-section {
        min-width: auto;
    }
}

@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    .filter-form-container, .results-container {
        flex-basis: 100%;
    }
}

.subjects-section {
    text-align: center;
    padding: 60px 20px;
}

.subjects-section h2 {
   color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.subjects-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    max-width: 1200px;
    margin: 40px auto;
    flex-wrap: wrap;
}

.subject-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    flex-basis: 30%; 
    text-align: center;
    transition: transform 0.3s;
}

.subject-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgb(129, 127, 126);
}

.subject-icon {
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scholarship-type-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.subject-card:hover .scholarship-type-image {
    transform: scale(1.1);
}

.subject-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
}

.subject-card p {
    font-size: 0.9rem;
    color: #888;
    min-height: 40px; 
}

.btn-learn-more {
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-learn-more:hover {
    background-color: var(--accent-gold);
    color: white;
}



main.contact-page-layout {
    justify-content: center;
    align-items: flex-start;
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    flex-basis: 700px; 
    max-width: 100%;
}


.contact-form-container h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-form-container p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
}


input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box; 
}


input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 127, 254, 0.5);
}


#contactSubmitBtn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}


.about-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--logo-gold));
    border-radius: 2px;
}

.about-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 127, 254, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--logo-gold));
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}



.about-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.1rem;
}

.about-section ul {
    margin-left: 0;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.about-section li {
    margin-bottom: 12px;
    color: #555;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 127, 254, 0.1), rgba(197, 158, 2, 0.1));
    transition: all 0.3s ease;
    display: inline-block;
}

.about-section a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--logo-gold));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 127, 254, 0.3);
}


@media (max-width: 768px) {
    .about-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .about-container h1 {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .subjects-container {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }

    .subject-card {
        flex-basis: 90%; 
        max-width: 400px; 
    }

    .subjects-section h2 {
        font-size: 2.5rem; 
    }
}