/* Opportunity Page Styles */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.opportunity-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.opportunity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.opp-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4; /* Typical poster shape */
    background: #f4f4f4;
}

.opp-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opp-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.opp-badge.grad { background: #40439c; }
.opp-badge.job { background: #c58b43; }
.opp-badge.learn { background: #27ae60; }

.opp-info {
    padding: 20px;
    flex-grow: 1;
}

.opp-info h3 {
    font-size: 1.2rem;
    color: #40439c;
    margin-bottom: 10px;
}

.opp-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}



/* Lightbox Styles */
/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* Stays on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Darker backdrop */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(5px); /* Adds a modern touch */
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Zoom effect when it opens */
.lightbox[style*="display: flex"] .lightbox-content {
    transform: scale(1);
}

#lightboxCaption {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ff4d4d; /* Subtle red hover */
}

/* Indicate the images are clickable */
.opp-poster {
    overflow: hidden;
    cursor: zoom-in;
}

.opp-poster img {
    transition: transform 0.4s ease;
}

.opp-poster:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Hero Section */
    .hero-section {
        position: relative;
    /* Account for header height to avoid scrolling on load */
        min-height: calc(100vh - 115px);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        background-color: #40439c; /* Fallback Academy Blue */
        padding: 100px 5%;
        text-align: center;
        color:#f9f9ff;
        text-shadow: #f9f9ff;

        padding: 60px 5%;
    /* Center the content vertically and horizontally */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }

    .hero-section h1 {
        font-size: clamp(3rem, 8vw, 5rem); /* Scales based on screen size */
        font-weight: 700; /* Extra Bold */
        line-height: 1.1; /* Tighter lines make it look 'fuller' */
        letter-spacing: -1px; /* Slightly closer letters for a modern look */
        color:#c58b43;
        max-width: 900px; /* Prevents text from stretching too wide on desktops */
        margin-bottom: 20px;
        text-transform: uppercase; /* Optional: adds more visual weight */
        text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    }

/* Highlighted word within H1 */
    .hero-section h1 span {
        color: #c58b43; /* Academy Gold */
    }

    .hero-text-content {
        max-width: 800px;
        margin: auto auto;;
    }

    .hero-text-content .subtitle {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        font-weight: 400;
        color: #f9f9ff;
        max-width: 750px;
        margin: 0 auto 40px auto;
        line-height: 1.5;
        margin-bottom: 40px;
        opacity: 0.9;
    }

    /* HERO BUTTON */
    .hero-actions {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap; /* Wraps buttons on small screens */
    }

    .hero-actions .button {
        margin: 0;
        padding: 16px 40px;
        font-size: 1.2rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
    }

/* RESPONSIVE */
    @media (max-width: 768px) {
        .hero-section {
            padding: 40px 20px;
            min-height: 80vh; /* Shorter on mobile to show content below */
        }

        .hero-actions {
            flex-direction: column;
            width: 100%;
            max-width: 300px;
            /* Center everything*/
            margin: 0 auto; 
        }

        .hero-actions .button {
            width: 100%;
            text-align: center;
            /* Center the buttons */
            margin-bottom: 15px;
        }
    }
