@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Base styles for opportunities page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    /* Don't define body::before here - navigation.css handles it */
}

#main-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 140px 20px 50px; /* Account for fixed navigation */
    box-sizing: border-box;
}

h1 {
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 10px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(128, 128, 128, 0.6),
        6px 6px 12px rgba(128, 128, 128, 0.4);
    letter-spacing: 1px;
}

h2 {
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #FFD700;
    text-align: center;
    margin: 40px 0 20px 0;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(128, 128, 128, 0.6),
        6px 6px 12px rgba(128, 128, 128, 0.4);
    letter-spacing: 1px;
}

h3 {
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFD700;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(128, 128, 128, 0.6);
    letter-spacing: 0.5px;
}

/* Page Title Styles */
.page-title {
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    font-size: 3.5em;
    color: #FF8C00;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.6);
    margin: 0 0 0.5em 0;
    letter-spacing: 1px;
    float: left;
    line-height: 1.1;
}

.page-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2em 0;
    float: left;
    clear: right;
    max-width: 70%;
    line-height: 1.5;
}


hr {
    width: 90%;
    max-width: 1400px;
    margin: 30px auto;
    border: none;
    border-top: 3px solid #f89500;
    opacity: 0.8;
}

/* Competition Item Styles */
.competition-item {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.competition-item:hover {
    transform: translateY(-5px);
}

.competition-image {
    flex: 0 0 40%;
    max-width: 400px;
}

.competition-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Special styling for Cyberthon logo to show full image */
.competition-image img[src*="cyberthon-logo.png"] {
    object-fit: contain;
    background-color: #000000;
    padding: 10px;
    box-sizing: border-box;
}

/* Special styling for CeNCE logo to show full image */
.competition-image img[src*="cence.png"] {
    object-fit: contain;
    background-color: #000000;
    padding: 10px;
    box-sizing: border-box;
}

.competition-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.competition-text h2 {
    font-size: 2rem;
    color: #FFD700;
    margin: 0 0 15px 0;
    text-align: left;
}

.competition-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0 0 20px 0;
}

.competition-details {
    list-style: none;
    padding: 0;
}

.competition-details li {
    color: #aaa;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.competition-details li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #FFB841;
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-content-wrapper {
        padding: 120px 20px 50px;
    }

    .competition-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .competition-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .competition-image img {
        height: 200px;
    }

    .competition-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Scholarship Card Styles */
.scholarship-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 30px;
    margin: 30px 0;
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 1;
}

.scholarship-header h3 {
    font-size: 1.8rem;
    color: #FFB841;
    text-align: center;
    margin: 0 0 10px 0;
}

.scholarship-amount {
    font-size: 1.1rem;
    color: #4fb3d9;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.scholarship-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    text-align: center;
}

.scholarship-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.scholarship-requirements li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.4;
}

.scholarship-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4fb3d9;
    font-weight: bold;
}

.scholarship-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: linear-gradient(45deg, #4fb3d9, #FFB841);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.scholarship-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 179, 217, 0.3);
}