/*
 * Home Page Stylesheet ("Polished & Dynamic" FINAL DARK THEME)
 * Filename: home.css
*/

/* 1. Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a72 100%);
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero-content>* {
    opacity: 0;
    animation: reveal 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-content .hero-eyebrow {
    animation-delay: 0.2s;
}

.hero-content h1 {
    animation-delay: 0.4s;
}

.hero-content .lead {
    animation-delay: 0.6s;
}

.hero-content .d-flex {
    animation-delay: 0.8s;
}

.hero-content .hero-social-proof {
    animation-delay: 1s;
}

.hero-eyebrow {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    color: #fff;
    line-height: 1.2;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-gradient {
    background: linear-gradient(45deg, var(--secondary), #ffab00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-image-composition {
    position: relative;
    opacity: 0;
    animation: reveal 1s cubic-bezier(0.25, 1, 0.5, 1) 1.2s forwards;
}

.hero-image-frame {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 10;
    transform: scale(1.05);
}

.hero-image {
    border-radius: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-image-frame:hover .hero-image {
    transform: scale(1.05);
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero-deco-1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, hsla(220, 80%, 95%, 1), hsla(48, 100%, 95%, 1));
    opacity: 0.05;
    top: -100px;
    right: -120px;
}

.hero-deco-2 {
    width: 280px;
    height: 280px;
    background: #fff;
    opacity: 0.03;
    bottom: -100px;
    left: -100px;
}

.cta-btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--secondary);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.15);
}

.cta-btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.hero-social-proof p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-social-proof .fa-brands {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.hero-social-proof .fa-brands:hover {
    color: #fff;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
    }

    .hero-content .d-flex {
        justify-content: center !important;
    }

    .hero-image-composition {
        margin-top: 4rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social-proof .d-flex {
        justify-content: center;
    }
}

/* Styling for the searchable and scrolling internship dropdown */
#internship-dropdown-menu {
    max-height: 350px;
    overflow-y: auto;
    padding-top: 0;
}

.dropdown-search {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
    border: none;
    border-radius: 0;
    padding: .75rem 1rem 0 1rem;
    box-shadow: none;
    overflow: hidden;  
}

.dropdown-search:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

.courses-section {
    background-color: #f8f9fa;
    /* A slightly off-white background */
    padding: 100px 0;
}

.course-slider-wrapper {
    position: relative;
}

.course-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    margin: -1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.course-slider::-webkit-scrollbar {
    display: none;
}

/* NEW: Wrapper for each card to handle layout in the slider */
.course-card-wrapper {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 320px;
    /* Ensures cards don't get too squished */
}

/* NEW: The link that wraps the card */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* NEW: The impressive card itself */
.course-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    /* Softer radius */
    padding: 2rem;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-link:hover .course-card {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(33, 41, 52, 0.1);
}

/* NEW: The Icon */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsla(217, 89%, 95%, 1), hsla(210, 89%, 95%, 1));
    color: var(--primary);
    font-size: 1.75rem;
}

/* Card Content */
.card-content {
    flex-grow: 1;
    /* Pushes the arrow down */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    min-height: 72px;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* NEW: The interactive arrow */
.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    /* Aligns to the bottom right */
    transition: all 0.3s ease;
}

.course-card-link:hover .card-arrow {
    background-color: var(--primary);
    color: #fff;
    transform: translateX(5px);
}

/* Slider Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.slider-nav:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slider-nav.prev-btn {
    left: -5px;
}

.slider-nav.next-btn {
    right: -5px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .slider-nav.prev-btn {
        left: 0;
    }

    .slider-nav.next-btn {
        right: 0;
    }
}

@media (max-width: 991.98px) {
    .course-card-wrapper {
        flex: 0 0 50%;
    }
}

@media (max-width: 767.98px) {
    .course-card-wrapper {
        flex: 0 0 85%;
        min-width: 280px;
    }

    .slider-nav {
        display: none;
    }


}

/* 3. Partners Section (ENHANCED) */
.partners-section {
    background-color: var(--light);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    color: var(--primary);
}

.partners-section .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary) !important;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partners-section .section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Partner Cards Container */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Partner Card */
.partner-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.partner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.partner-card:hover::before {
    opacity: 0.05;
}

.partner-logo {
    width: 100%;
    max-width: 140px;
    height: auto;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.partner-card:hover .partner-logo {
    transform: scale(1.08);
}

/* Decorative Elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 8%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Trust Badge */
.trust-badge {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-badge p {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.trust-badge .highlight {
    color: #667eea;
    font-weight: 700;
}

/* Partners Section Responsive Design */
@media (max-width: 768px) {
    .partners-section .section-title {
        font-size: 2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .partner-card {
        padding: 2rem 1rem;
        min-height: 120px;
    }

    .floating-shape {
        display: none;
    }

    #internship-dropdown-menu {
        max-height: 200px;
    }
}