/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    padding-bottom: 20px;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar */
.navbar {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 40px;
}

.menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: #007BFF;
    color: #fff;
}

.nav-menu li a.login {
    background-color: #28a745;
    color: #fff;
}

.nav-menu li a.login:hover {
    background-color: #218838;
}

/* Main Section */
.main-section {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.left-content {
    flex: 1 1 50%;
    padding: 40px 40px 40px 40px;
    padding-top: 60px;
    background-color: #e9ecef;
}

.right-content {
    flex: 1 1 50%;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-rdown h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.left-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.left-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.explore-button {
    font-size: 1.2rem;
    background-color: #007BFF;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 1rem;
    margin: 4px;
}

.explore-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Section 2 */
#main-section2 {
    padding: 60px 20px;
    background-color: #fff;
}

.container2 h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.box {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

#main-section2 .column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 5px solid #007BFF;
}

#main-section2 .column:nth-child(2) {
    border-left-color: #DC3545;
}

#main-section2 .column h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
}

#main-section2 ol {
    padding-left: 20px;
}

#main-section2 ol li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Section 3 */
.section3 {
    padding: 40px 20px;
    background-color: #e9ecef;
}

.uni-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.uni-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.uni-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.uni-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.uni-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.uni-card-content p {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.uni-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.uni-card-footer i {
    margin-right: 5px;
}

/* Foreign Colleges Section */
.foreign-colleges-section {
    padding: 40px 20px;
    background-color: #fff;
}

.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.college-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.college-card img {
    max-height: 60px;
    margin-bottom: 15px;
}

.college-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #007BFF;
}

.college-card p {
    font-size: 0.9rem;
    color: #555;
}

/* New Footer Section */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.site-footer h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-about p {
    line-height: 1.6;
}

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

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: #1abc9c;
}

.social-media a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1abc9c;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .content {
        flex-direction: column;
    }

    .left-content, .right-content {
        flex: 1 1 100%;
    }

    .right-content {
        display: none;
    }
    
    .title {
        font-size: 2rem;
    }

    .card {
        flex: 1 1 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Slider styles */
.homepage-slider {
    width: 100%;
    height: 100vh; /* Set a fixed height for the slider */
    position: relative;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

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

.slide-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
    font-size: 1.5rem;
}

.slide-text-overlay h1 {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
}

.slide-prev, .slide-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 10;
}

.slide-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.slide-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slide-prev:hover, .slide-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .right-content {
        flex: 1 1 100%;
        min-height: 250px;
    }
    .slide-text-overlay {
        font-size: 0.8rem;
        padding: 5px 10px;
        bottom: 10px;
    }
    .slide-text-overlay h1 {
        font-size: 1em;
    }
    .slide-prev, .slide-next {
        padding: 10px;
        font-size: 16px;
    }
}
