/* Welcome Page Styles - Exact Design Match */

:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #172554;
    --light-blue: #3b82f6;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
}

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

body {
    font-family: 'Figtree', sans-serif;
    background-color: white;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Styles */
.welcome-header {
    padding: 20px 0;
    background-color: var(--light-bg);
}

.navbar {
    padding: 0;
}

.navbar-expand-lg > .container {
    background-color: rgba(0, 152, 218, 0.1);
    border-radius: 50px;
    padding: 8px 16px;

}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 12px;
    line-height: 1.2;
    color: var(--primary-blue);
    font-weight: 600;
}

.navbar-nav {
    gap: 40px;
}

.navbar-nav.mx-auto {
    margin-right: 2rem !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 0;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 18px;
}

.social-icons a:hover {
    color: var(--primary-blue);
}

.btn-signup {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
}

.btn-signin-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
}

.btn-signin-header:hover {
    background-color: var(--dark-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    padding: 30px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.btn-signup-blue {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-signup-blue:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-signin {
    background-color: var(--primary-blue);
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
}

.btn-signin:hover {
    background-color: var(--dark-blue);
    color: white;
}

.hero-image-container {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    padding-left: 40px;
}

.hero-students-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 0;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    width: 220px;
    height: auto;
    min-height: 85px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
    animation: floatAnimation 3s ease-in-out infinite;
    overflow: visible;
}

.floating-card:hover {
    transform: translateY(-50%) scale(1.05) !important;
}

.floating-card p {
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Floating Animation */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(-50%) translateX(0) rotate(var(--rotate-angle));
    }
    50% {
        transform: translateY(-50%) translateX(0) translateY(-5px) rotate(var(--rotate-angle));
    }
}

.card-left {
    background: #EC7B5F;
    color: #ffffff;
    top: 50%;
    left: -40px;
    --rotate-angle: -3deg;
    transform: translateY(-50%) rotate(-3deg);
    animation-delay: 0s;
}

.card-left::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #EC7B5F;
    transform: rotate(0deg);
}

.card-right {
    background: #8AC0B5;
    color: #ffffff;
    top: 45%;
    right: -60px;
    --rotate-angle: 3deg;
    transform: translateY(-50%) rotate(3deg);
    animation-delay: 1.5s;
}

.card-right::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #8AC0B5;
    transform: rotate(0deg);
}

/* About Section */
.about-section {
    background: linear-gradient(to right, #0098DA, #324E8A);
    color: white;
    padding: 100px 0;
}

.about-images-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-row {
    display: flex;
    gap: 15px;
}

.image-item {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-item {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    height: 60%;
}

.grid-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-content {
    padding-left: 60px;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.about-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-signup-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-signup-outline:hover {
    background-color: white;
    color: var(--primary-blue);
}

.btn-signin-white {
    background-color: white;
    color: var(--dark-blue);
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-signin-white:hover {
    background-color: #f1f5f9;
    color: var(--dark-blue);
}

/* Benefits Section */
.benefits-section {
    padding: 50px 0;
    background-color: white;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Unified gradient overlay for all benefit cards */
.benefit-content {
    background: linear-gradient(to right, #0098DA, #324E8A);
    opacity: 0.8;
    color: white;
}

.benefit-number {
    font-size: 60px;
    font-weight: 700;
    opacity: 0.3;
    margin-bottom: 15px;
    line-height: 1;
}

.benefit-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .header-actions {
        margin-top: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image-wrapper {
        margin-top: 60px;
        padding-left: 0;
    }

    .floating-card {
        width: 150px;
        font-size: 10px;
        padding: 15px 18px;
        min-height: 70px;
    }

    .card-left {
        left: -10px;
        top: 60%;
    }

    .card-left::after {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
        right: 25px;
        bottom: -8px;
    }

    .card-right {
        right: -10px;
        top: 60%;
    }

    .card-right::after {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
        left: 25px;
        bottom: -8px;
    }

    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .about-title {
        font-size: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        height: 250px;
    }

    .benefit-content {
        padding: 20px;
    }

    .benefit-number {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .benefit-content h3 {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* Faculty Section */
.faculty-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    color: white;
    padding: 100px 0;
}

.faculty-header {
    margin-bottom: 60px;
}

.faculty-divider {
    border: 0;
    height: 2px;
    background: rgba(255, 255, 255);
    margin: 40px 0;
}

.faculty-intro {
    padding-right: 40px;
}

.faculty-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.faculty-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

.faculty-avatars {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
}

.faculty-avatars .avatar-row {
    display: flex;
    gap: -5px;
}

.faculty-avatars .avatar-row:first-child {
    margin-right: 30px;
}

.faculty-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    cursor: pointer;
    margin: -5px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faculty-avatar .avatar-image {
    width: 100%;
    height: 200%; /* Double height to show only top 50% */
    object-fit: cover;
    object-position: center top; /* Position to show top portion */
    position: absolute;
    top: 0;
    left: 0;
}

.faculty-avatar:hover {
    transform: scale(1.1);
    border-color: white;
    z-index: 100 !important;
}

.faculty-avatar.active {
    border-color: white;
    border-width: 4px;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cohort-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    margin-left: 15px;
}

.faculty-profile-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.faculty-photo {
    text-align: center;
}

.photo-placeholder {
    width: 200px;
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
}

.faculty-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.faculty-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.9) 0%, rgba(37, 99, 235, 0.7) 50%, transparent 100%);
    padding: 20px 15px 15px;
    border-radius: 0 0 15px 15px;
}

.faculty-name-overlay h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.faculty-basic-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faculty-details {
    padding-left: 30px;
}

.faculty-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.faculty-header-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

.faculty-experience {
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.faculty-bio {
    margin-bottom: 25px;
}

.faculty-bio p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0;
}

.faculty-full-bio {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.faculty-full-bio p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 0;
}

.faculty-specialties {
    margin-bottom: 25px;
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

.faculty-achievements {
    margin-bottom: 25px;
}

.faculty-achievements p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 0;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-read-more:hover {
    color: var(--dark-blue);
}

/* Faculty Responsive */
@media (max-width: 768px) {
    .faculty-intro {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .faculty-title {
        font-size: 32px;
    }

    .faculty-avatars {
        justify-content: center;
        margin-bottom: 20px;
    }

    .faculty-avatar {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }

    .cohort-badge {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }

    .faculty-profile-card {
        padding: 25px;
    }

    .faculty-details {
        padding-left: 0;
        margin-top: 30px;
    }

    .photo-placeholder {
        width: 120px;
        height: 120px;
        font-size: 28px;
    }

    .faculty-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Statistics Section */
.stats-section {
    background-color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-description {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #0098DA 0%, #324E8A 100%);
    color: white;
    padding: 80px 0 40px;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 30px 0;
    opacity: 0.9;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
}

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

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 40px 0 30px;
}

.footer-copyright,
.footer-credit,
.footer-program {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.credit-link {
    color: rgba(14, 165, 233, 1);
    font-weight: 500;
}

/* Responsive - Statistics and Footer */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-description {
        font-size: 14px;
    }

    .footer-brand {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-brand .footer-description {
        text-align: center;
    }

    .footer-brand .footer-social {
        justify-content: center;
    }

    .footer-links,
    .footer-contact {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-links ul {
        text-align: center;
    }

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

    .footer-copyright,
    .footer-credit,
    .footer-program {
        text-align: center !important;
        margin-bottom: 15px;
        font-size: 13px;
    }

    .footer-divider {
        margin: 30px 0;
    }
}
