/* General body and container styles */
body {
    font-family: "Inter", sans-serif;
    color: #1a202c;
    background-color: #f7fafc;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container now stretches to full width with side padding */
.main-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5px; /* Adjusted padding to 5px on both sides */
}

/* Header Styles */
.main-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-family: "Inter", sans-serif;
    transition: background-color 0.3s ease;
}

/* Stunning header background with fade effect */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
                url('https://source.unsplash.com/1920x400/?education,university,campus') center/cover no-repeat;
    z-index: -1;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    flex-wrap: nowrap;
    gap: 20px;
}

.header-logo {
    flex-shrink: 0;
    margin-left: 20px;
    margin-right: auto;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 60px;
}

/* Search bar styles - now prominent and in the middle */
.header-search {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.header-search form {
    display: flex;
    width: 100%;
    max-width: 800px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    background: #f0f4f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-search input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 14px 22px;
    font-size: 1.05rem;
    background: transparent;
    outline: none;
    color: #4a5568;
}

.header-search button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background-color 0.2s;
}

.header-search button:hover {
    background: #1a4f9a;
}

/* Header CTA buttons and links */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a2342;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.header-call-btn:hover {
    color: #2563eb;
}
.header-call-btn i {
    font-size: 1.2rem;
}

.auth-btn {
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid transparent;
}
.login-btn {
    background: #e2e8f0;
    color: #0a2342;
}
.login-btn:hover {
    background: #cbd5e1;
    color: #2563eb;
}

.register-btn {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}
.register-btn:hover {
    background: #1a4f9a;
    border-color: #1a4f9a;
}

.header-btn {
    background: #0a2342;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.2s;
    white-space: nowrap;
    margin-right: 20px;
}

.header-btn:hover {
    background: #2563eb;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Navigation menu */
.main-nav ul {
    display: flex;
    gap: 1px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav ul li:first-child {
    margin-left: 20px;
}

.main-nav a {
    color: #0a2342;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 6px;
    display: block;
}

.main-nav a.active {
    color: #fff;
    background-color: #2563eb;
}

.main-nav a:hover {
    color: #fff;
    background-color: #2563eb;
}

/* Explore menu styles - now on hover and with an icon */
.explore-container {
    position: relative;
    z-index: 100;
}
.explore-container:hover .explore-menu {
    display: grid;
    animation: fadeIn 0.3s ease-in-out;
}

.explore-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e2e8f0;
    color: #0a2342;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 20px;
}

.explore-btn:hover {
    background: #d4dbe8;
}

.explore-btn i {
    font-size: 1.2rem;
}

.explore-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 5px;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 320px;
    padding: 10px;
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    list-style: none; /* Removed bullet points for a cleaner look */
    padding: 0; /* Removed default padding to control spacing manually */
}

.explore-menu li {
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px; /* Space between the bullet and the text */
}

/* Creating the custom bullet point */
.explore-menu li::before {
    content: "•"; /* Use the bullet character */
    color: #4a5568; /* Match the color of the text */
    font-size: 1.2rem;
    line-height: 1; /* Aligns the bullet vertically with the text */
}

.explore-menu li a {
    white-space: nowrap;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 400;
    transition: color 0.2s, font-weight 0.2s;
    text-decoration: none;
}

.explore-menu li a:hover {
    color: #2563eb;
    font-weight: 600;
}

.explore-menu li:hover {
    background-color: #f7fafc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .header-top,
    .header-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 12px 8px;
    }
    .header-top {
        align-items: stretch;
    }
    .header-cta,
    .main-nav {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .header-search {
        width: 100%;
        margin: 10px 0;
    }
    .header-search form {
        width: 100%;
        max-width: 100%;
    }
    .explore-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: none;
        grid-template-columns: 1fr;
        padding: 0;
        margin-top: 0;
    }
    .explore-container.active .explore-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        animation: none;
    }
    .explore-menu li a {
        padding: 10px 15px;
        border: 1px solid #e5e7eb;
        background-color: #f9f9f9;
        font-weight: 500;
        border-radius: 4px;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* Gallery Page Styles */
.page-header { background: linear-gradient(90deg, #2563eb 60%, #fff 40%); color: #fff; padding: 60px 0 40px 0; text-align: left; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-header p { font-size: 1.2rem; color: #e0e7ff; }

.gallery-section { background: #fff; padding: 60px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.gallery-item { background: #f1f5f9; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(37,99,235,0.07); position: relative; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(37,99,235,0.85); color: #fff; padding: 12px; font-size: 1rem; text-align: center; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .gallery-section { padding: 28px 0; }
    .page-header { text-align: center; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .gallery-item img { height: 180px; }
}
@media (max-width: 600px) {
    .gallery-section { padding: 24px 0; }
    .gallery-grid { gap: 12px; }
    .gallery-item img { height: 150px; }
}
@media (max-width: 480px) {
    .page-header { padding: 40px 16px 25px 16px; }
    .page-header h1 { font-size: 1.7rem; }
    .page-header p { font-size: 0.95rem; }
    .gallery-item img { height: 140px; }
}

.study-hero {
    background: linear-gradient(90deg, #2563eb 60%, #1e40af 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.study-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.study-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}
.study-hero .btn-primary {
    background: #fff;
    color: #2563eb;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.study-hero .btn-primary:hover {
    background: #2563eb;
    color: #fff;
}
/* Hero Section */
.hero {
    /* margin-top: 50px; */
    background: linear-gradient(to right, #2563eb, #0a2342);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2rem;
    color: #e0e7ff;
}