/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --background-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* Loading Animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80%;
    max-width: 400px;
    max-height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.loader-image {
    height: 10px;
    border-radius: 5px;
    width: 2px;
    padding-right: 213px;
    margin-bottom: 130px;
    font-size: 1.3rem;
    align-items: center;
}

.loader-bar {
    height: 10px;
    background: linear-gradient(90deg, #faf9f7,  #eee3d2, #f0c672, #fcf1f0, #44f844);
    border-radius: 5px;
    width: 0;
    animation: load 3s ease-in-out infinite;
}

.loader-text {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

@keyframes load {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger .line1, .line2, .line3 {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('images/BG.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease;
}

.search-bar input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #2980b9;
}

/* Container Styles */
.container {
    padding: 5rem 5%;
    padding-left: 60px;
    background-color: white;
    margin: 2rem 0;
    border-width: 100px;
    border-color: #0d0f10;
    border-bottom: #1a2a6c;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.container h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/*Bookmark*/
.bookmark-btn {
    background: none;
    border: none;
    color:linear-gradient(80deg, #282c0e, #4f6106);
    cursor: pointer;
    font-size: 1.0rem;
    transition: color 0.3s;
}

.bookmark-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-btn.active {
    background-color: linear-gradient(80deg, #282c0e, #4f6106);
}

.bookmark-btn:hover {
    color: #929709;
}

/*Bookmark*/
.bookmark-cou{
    background: none;
    border: none;
    color:linear-gradient(80deg, #282c0e, #4f6106);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 10;
}

.bookmark-cou.active {
    background-color: linear-gradient(80deg, #282c0e, #4f6106);
}

.bookmark-cou:hover {
    color: #929709;
}

/* Rankings Grid */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.ranking-card {
    background: rgb(244, 250, 242);
    border-radius: 10px;
    overflow: hidden;
    /*max-height: 420px;*/
    box-shadow: 1 7px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.ranking-card:hover {
    transform: translateY(-10px);
    background: #f8f9fa;
    box-shadow: 0 28px 30px rgba(0, 0, 1, 0.3);
}

.ranking-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ranking-card .card-content {
    padding: 1.5rem;
}

.ranking-card .rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ranking-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ranking-card p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.ranking-card a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    /*margin-bottom: 3px;*/
    transition: background-color 0.3s ease;
}

.ranking-card a:hover {
    background-color: #2980b9;
}

/* Scholarships Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.scholarship-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.scholarship-card .card-header {
    padding: 1.5rem;
    background: linear-gradient(90deg, #eae0d0,  #f2cd92, #f8d59d, #fabbb4, #cbf6b0);
    border-bottom: 1px solid #eee;
}

.scholarship-card .card-header h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.scholarship-card .card-body {
    padding: 1.5rem;
   /* margin-top: 2.5rem;*/
}

.scholarship-card .info-item {
    display: flex;
    margin-top: 0.8rem;
}

.scholarship-card .info-item i {
    margin-right: 10px;
    color: #132d02;
}

.scholarship-card .info-item-s {
    display: flex;
    font-size: medium;
    font-style: italic;
    font-weight: 270;
    justify-content: space-between;
    padding-right: 175px;
    margin-top: 0.9rem;
}

.scholarship-card .info-item-s {
    margin-right: 2px;
    color: #f40808;
}
.scholarship-card .card-footer {
    padding: 1rem 1.5rem;
    background-color: #d9dadc;
    border-top: 1px solid #6d6666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.course-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Comparison Tool */
.comparison-tool {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.selector {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.selector h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.selector select {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.selector button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.selector button:hover {
    background-color: #2980b9;
}

.comparison-results {
    background: rgb(250, 243, 243);
    padding: 2rem;
    border-color: #0d0f10;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    min-height: 51px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.result-table th, .result-table td {
    padding: 2px;
    text-align: left;
    border-bottom: 1px solid #b4aeae;
}

.result-table th {
    background-color: #c6d4dd;
    color: var(--dark-color);
}

.result-table tr {
    background-color: #d3eeee;
    min-height: auto;
    color: var(--dark-color);
}

.result-table tr:hover {
    background-color: #f5f5f5;
}

/* Requirment Grid */
.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.requirement-card {
    background: rgb(244, 250, 242);
    border-radius: 10px;
    overflow: hidden;
    /*max-height: 420px;*/
    box-shadow: 1 7px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.requirement-card:hover {
    transform: translateY(-10px);
    background: #f8f9fa;
    box-shadow: 0 28px 30px rgba(0, 0, 1, 0.3);
}

.requirement-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.requirement-card .card-content {
    padding: 1.5rem;
}

.requirement-card .rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.requirement-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.requirement-card p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.requirement-card a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    /*margin-bottom: 3px;*/
    transition: background-color 0.3s ease;
}

.requirement-card a:hover {
    background-color: #2980b9;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
    max-width: 76%;
    max-height: 44%;
    font-weight: 5%;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text h3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    color: #074c5e;
    margin: 10px 0;
    justify-content: space-between;
    padding-left: 10px;
}

.about-text ul {
    padding-left: 10px;

}
.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.info-item p {
    margin: 5px 0 0;
}

/* Footer */
footer {
    background: #182848;
    /*background-color: var(--dark-color);*/
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* Bookmarks Popup */
.bookmarks-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
    border-radius: 20px;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    animation: popIn 0.3s ease;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--accent-color);
}

.bookmarks-list {
    margin-top: 1.5rem;
}

.bookmark-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-item:last-child {
    border-bottom: none;
}

.bookmark-item h4 {
    color: #23d5ab;
    margin-bottom: 0.5rem;
}

.bookmark-item p {
    color: #666;
    font-size: 0.9rem;
}

.bookmark-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.bookmark-item .remove-bookmark {
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Scroll Up Button Styles */
.scroll-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right,  #253c74, #0b2861);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-up-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-up-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-up-btn:active {
    transform: translateY(0);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Background Animation */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .scroll-up-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links li a {
        margin-left: 0;
       /* padding-right: 188px;*/
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        width: auto;
        padding: auto;
        padding: 3rem 5%;
    }

    .ranking-card, .scholarship-card {
        max-width: 90%;
    }

    .scholarship-card, .cards-container {
        padding-right: 10px;
    }

    .scholarship-card .info-item-s {
        font-size: small;
        font-weight: 270;
        justify-content: space-between;
        padding-right: 155px;
        margin-top: 0.9rem;
    }
    
    .comparison, .comparison-tool {
        padding-right: 120px;
    }

    .selector, .comparison-results {
        padding-right: 100px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 0.9rem;
    }

    .container h2 {
        padding-right: 35px;
    }

    .container h2::after {
        left: 45%;
    }

    .container {
        font-size: 1rem;
        padding-left: 36px;
        padding-right: 12px;
    }

    .scholarship-card {
        flex-direction: column;
        align-items: center;
    }

    .scholarship-card .info-item-s {
        font-size: small;
        font-weight: 270;
        justify-content: space-between;
        padding-right: 125px;
        margin-top: 0.9rem;
    }

    .courses-grid{
        padding-right: 35px;
    }

    .ranking-card {
        width: 100%;
        margin: 5px 0;
    }

    .result-table {
        padding-right: 50px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #27ae60;
}
