/* ============================================
   FACULTY HERO SECTION (FIXED VERSION)
   ============================================ */

.faculty-hero {
    position: relative;
    min-height: 650px;
    height: 90vh;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;

    /* 🔥 FIX: prevent navbar overlap */
    margin-top: 80px; /* adjust if navbar height differs */
}

/* ============================================
   BACKGROUND IMAGE
   ============================================ */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../images/Faculty Finder/FF-Banner.webp');

    /* 🔥 PERFECT FIT LIKE REFERENCE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}

/* Optional soft overlay like original site */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0) 70%
    );
}

/* Mobile background image */
@media (max-width: 768px) {
    .hero-bg {
        background-image: url('../images/Faculty Finder/FF-Banner-Mob.webp');
        background-position: center ;
    }
}

/* ============================================
   RED SHAPE
   ============================================ */

.hero-red-shape {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;

    /* 🔥 FIX: increase width */
    width: 65%;
    max-width: 1000px;

    animation: slideInLeft 1s ease-out forwards;
}

.hero-red-shape img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* ============================================
   HERO CONTENT
   ============================================ */

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* 🔥 CENTER ALIGN TEXT INSIDE RED SHAPE */
.hero-text {
    padding-left: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 300px;

    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TEXT STYLING
   ============================================ */

.welcome-text {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 5px;
}

.hero-text h1 {
    color: #fff;
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* ============================================
   BUTTONS
   ============================================ */

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Recruiter Button */
.btn-recruiter {
    background-color: #1a3a6e;
    color: #fff;
}

.btn-recruiter:hover {
    background-color: #fff;
    color: #BF0A30;
    transform: translateX(4px);
}

/* Faculty Button */
.btn-faculty {
    background-color: #fff;
    color: #BF0A30;
    border: 1px solid #BF0A30;
}

.btn-faculty:hover {
    background-color: #1a3a6e;
    color: #fff;
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE FIX
   ============================================ */

@media (max-width: 992px) {
    .faculty-hero {
        height: auto;
        min-height: 500px;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-red-shape {
        width: 90%;
    }

    .hero-text {
        padding-left: 30px;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .welcome-text {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .faculty-hero {
        min-height: 650px;
        position: relative;
    }

    .hero-content {
        position: absolute;
        top: 8%;
        left: 0;
        right: 0;
        z-index: 10;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 130px;
        flex: none;
        max-width: none;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero-red-shape {
        padding-top: 20%;
        width: 120%;
        display: flex;
        justify-content: center;
        top: 15%;
        transform: translateY(0);
        z-index: 5;
    }

    .hero-red-shape img {
        max-width: 100%;
    }
}

/* ============================================
   SECTION 2: WELCOME & VIDEO
   ============================================ */

.faculty-welcome {
    background-color: #DBEFFD;
    padding: 50px 0;
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-text-col {
    flex: 0 0 45%;
    max-width: 500px;
}

.section-subtitle,
.section-title,
.section-description {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0 !important;
    padding: 0;
    line-height: 1.2;
    display: block;
}

.section-description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

.welcome-video-col {
    flex: 0 0 50%;
    max-width: 560px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive for Section 2 */
@media (max-width: 992px) {
    .welcome-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .welcome-text-col,
    .welcome-video-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .section-description {
        max-width: 100%;
    }

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

@media (max-width: 576px) {
    .faculty-welcome {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 40px;
        text-align: center;
    }

    .section-subtitle {
        font-size: 35px;
        text-align: center;
    }

    .section-description {
        text-align: center;
    }

    .welcome-video-col {
        width: 100%;
    }

    .video-wrapper {
        padding-bottom: 56.25%;
        min-height: 200px;
    }

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
}

/* ============================================
   SECTION 3: WHAT IS FACULTY FINDER
   ============================================ */

.faculty-whatis {
    background-color: #eef6ff;
    padding: 60px 0 60px 0;
    position: relative;
    overflow: visible;
    margin-top: 40px;
}

.whatis-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.whatis-image-col {
    flex: 0 0 40%;
    max-width: 450px;
    position: relative;
    margin-top: -60px;
}

.whatis-image-wrapper {
    position: relative;
    width: 100%;
}

.whatis-image {
    width: 100%;
    height: auto;
    display: block;
}

.whatis-content-col {
    flex: 0 0 50%;
    max-width: 550px;
    padding-top: 60px;
}

.whatis-text {
    text-align: left;
}

.whatis-title {
    margin: 0 0 20px 0;
    padding: 0;
}

.title-line1 {
    display: block;
    font-size: 36px;
    font-weight: 400;
    color: #1a3a6e;
    line-height: 1.2;
}

.title-line2 {
    display: block;
    font-size: 36px;
    font-weight: 600;
    color: #1a3a6e;
    line-height: 1.2;
}

.whatis-description {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 20px 0;
    max-width: 480px;
}

.whatis-highlight {
    font-size: 14px;
    font-weight: 500;
    color: #1a3a6e;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.btn-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a3a6e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.3);
}

.btn-know-more:hover {
    background-color: #0f2650;
    color: #fff;
    transform: translateX(4px);
}

.btn-know-more i {
    font-size: 12px;
}

/* Responsive for Section 3 */
@media (max-width: 992px) {
    .whatis-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .whatis-image-col {
        flex: 0 0 100%;
        max-width: 350px;
        margin-top: -40px;
    }

    .whatis-content-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }

    .whatis-text {
        text-align: center;
    }

    .whatis-description {
        max-width: 100%;
    }

    .title-line1,
    .title-line2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .faculty-whatis {
        padding: 40px 20px;
    }

    .title-line1,
    .title-line2 {
        font-size: 35px;
        text-align: center;
    }

    .whatis-image-col {
        max-width: 240px;
        margin-top: 0;
        padding: 20px 0;
    }

    .whatis-content-col {
        padding: 20px 0;
    }

    .btn-know-more {
        width: auto;
        min-width: 180px;
        margin: 0 auto;
        display: inline-flex;
    }
}

/* ============================================
   SECTION 4: REGISTRATION CTA
   ============================================ */

.faculty-register {
    background: linear-gradient(135deg, #1B4DA8 0%, #1A3E80 100%);
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

.register-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* Red Cards */
.register-card {
    background-color: #BF0A30;
    padding: 50px 40px;
    text-align: center;
    width: 600px;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.register-card-left {
    border-radius: 0 16px 16px 0;
    animation: slideInFromLeft 1s ease-out forwards;
}

.register-card-right {
    border-radius: 16px 0 0 16px;
    animation: slideInFromRight 1s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.card-subtitle {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.card-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px 0;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1B4DA8;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-register:hover {
    background-color: #143a7a;
    color: #fff;
    transform: translateX(4px);
}

.btn-register i {
    font-size: 11px;
}

/* Center Text */
.register-center {
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.center-text {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.center-text .highlight {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .register-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .register-card {
        max-width: 100%;
        width: 100%;
        border-radius: 16px;
    }

    .register-card-left,
    .register-card-right {
        border-radius: 16px;
    }

    .register-center {
        order: -1;
        max-width: 100%;
    }

    .center-text {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .faculty-register {
        padding: 40px 15px;
    }

    .register-container {
        padding: 0;
    }

    .register-card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-subtitle {
        font-size: 13px;
    }

    .center-text {
        font-size: 18px;
    }

    .btn-register {
        width: auto;
        min-width: 180px;
        margin: 0 auto;
        display: inline-flex;
    }
}

/* ============================================
   SECTION 5: MISSION & GOAL
   ============================================ */

.faculty-mission {
    background-color: #eef6ff;
    padding: 80px 0 0 0;
    position: relative;
    overflow: visible;
}

.mission-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 0;
    position: relative;
    overflow: visible;
}

.mission-content-box {
    background-color: #BEE1FF;
    border-radius: 50px 0 0 0;
    padding: 40px 40px 50px 50px;
    flex: 0 0 55%;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.mission-item {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateX(10px);
}

.mission-item:last-child {
    margin-bottom: 0;
}

.mission-icon {
    margin-bottom: 10px;
}

.mission-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.mission-title {
    font-size: 42px;
    font-weight: 300;
    color: #1a3a6e;
    margin: 0 0 5px 0;
    line-height: 1.2;
    -webkit-text-stroke: 1.5px #1a3a6e;
    -webkit-text-fill-color: transparent;
    paint-order: stroke fill;
}

.mission-text {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 270px;
}

.mission-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(26, 58, 110, 0.3);
    margin: 25px 0;
}

.mission-image-col {
    flex: 0 0 35%;
    max-width: 360px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
}

.mission-person-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

/* Responsive for Section 5 */
@media (max-width: 992px) {
    .mission-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .mission-content-box {
        flex: 0 0 100%;
        max-width: 100%;
        border-radius: 20px;
        padding: 40px 30px;
    }

    .mission-image-col {
        flex: 0 0 100%;
        max-width: 400px;
        margin-left: 0;
    }

    .mission-person-image {
        margin-bottom: 0;
    }

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

@media (max-width: 576px) {
    .faculty-mission {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .mission-container {
        padding: 0;
        flex-direction: column;
        position: relative;
    }

    .mission-content-box {
        padding: 30px 25px 200px;
        border-radius: 16px;
        order: 1;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .mission-image-col {
        order: 2;
        max-width: 350px;
        margin: -250px auto 0;
        padding: 0 20px;
        position: relative;
        z-index: 3;
    }

    .mission-person-image {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }

    .mission-title {
        font-size: 32px;
        -webkit-text-stroke: 2.5px #1a3a6e;
        -webkit-text-fill-color: transparent;
        paint-order: stroke fill;
    }

    .mission-icon img {
        width: 32px;
        height: 32px;
    }

    .mission-text {
        max-width: 100%;
    }
}

/* ============================================
   SECTION 6: FACULTY FINDER FILTERS
   ============================================ */

.faculty-filters-section {
    background-color: #eef6ff;
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
}

.filters-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
}

.filters-content-col {
    flex: 0 0 50%;
    max-width: 550px;
    margin-left: 160px;
}

.filters-title {
    font-size: 36px;
    font-weight: 400;
    color: #1a3a6e;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.filters-title-line1 {
    display: block;
}

.filters-title-line2 {
    display: block;
}

.filters-description {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin: 0 0 25px 0;
    max-width: 480px;
}

.btn-filters-know-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1B4DA8;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filters-know-more:hover {
    background-color: #1A3E80;
    color: #fff;
}

.btn-filters-know-more i {
    font-size: 12px;
}

.filters-image-col {
    flex: 0 0 45%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filters-person-image {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive for Section 6 */
@media (max-width: 992px) {
    .filters-container {
        flex-direction: column;
        gap: 40px;
    }

    .filters-content-col,
    .filters-image-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .filters-person-image {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .faculty-filters-section {
        padding: 60px 20px;
    }

    .filters-container {
        padding: 0;
    }

    .filters-title {
        font-size: 30px;
        text-align: center;
    }

    .filters-description {
        font-size: 13px;
        text-align: center;
    }

    .filters-person-image {
        max-height: 375px;
    }

    .btn-filters-know-more {
        width: auto;
        min-width: 180px;
        display: inline-flex;
        margin: 0 auto;
    }

    .filters-content-col {
        text-align: center;
    }
}

/* ============================================
   SECTION 7: FACULTY BY FILTER
   ============================================ */

.faculty-by-filter-section {
    background-color: #fff;
    padding: 0 0 80px 0;
    position: relative;
    overflow: hidden;
}

.filter-diagram-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-diagram-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.filter-diagram-image:hover {
    transform: scale(1.08);
}

/* Responsive for Section 7 */
@media (max-width: 992px) {
    .faculty-by-filter-section {
        padding: 40px 0 60px;
    }

    .filter-diagram-container {
        padding: 0 20px;
    }

    .filter-diagram-image {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .faculty-by-filter-section {
        padding: 0 0 40px 0;
    }

    .filter-diagram-container {
        padding: 0 15px;
    }
}

/* ============================================
   SECTION 8: FILTER DETAILS
   ============================================ */

.filter-details-section {
    background-color: #fff;
    padding: 0 0 40px 0;
}

.filter-row {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-image-col {
    flex: 0 0 50%;
    overflow: hidden;
}

.filter-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.filter-content-col {
    flex: 0 0 50%;
    background-color: #1A3E80;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: #EF002E;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.filter-detail-text {
    max-width: 500px;
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    margin: 0;
}

/* Zigzag layout - image right variant */
.filter-row-image-right .filter-content-col {
    order: 1;
}

.filter-row-image-right .filter-image-col {
    order: 2;
}

/* Responsive for Section 8 */
@media (max-width: 992px) {
    .filter-row {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .filter-image-col,
    .filter-content-col {
        flex: 0 0 100%;
    }

    .filter-content-col {
        padding: 40px 30px;
    }

    .filter-detail-title {
        font-size: 28px;
    }

    /* Reset order for mobile */
    .filter-row-image-right .filter-content-col,
    .filter-row-image-right .filter-image-col {
        order: unset;
    }
}

@media (max-width: 576px) {
    .filter-content-col {
        padding: 30px 20px;
    }

    .filter-detail-title {
        font-size: 24px;
        text-align: center;
    }

    .filter-detail-text {
        font-size: 13px;
        text-align: center;
    }
}

/* ============================================
   MOBILE BUTTONS FIX
   ============================================ */

@media (max-width: 576px) {
    .btn-know-more,
    .btn-register,
    .btn-filters-know-more {
        width: auto !important;
        min-width: 180px;
        margin: 0 auto !important;
        display: inline-flex;
        flex: none !important;
        max-width: none !important;
    }
}

/* ============================================
   BUTTON HOVER EFFECT (All except Section 1)
   ============================================ */

.btn-know-more,
.btn-register,
.btn-filters-know-more {
    --grad1: #1A3E80;
    --grad2: #1A3E80D1;
    --grad3: #E44450;
    --grad4: #03a9f4;
    background: linear-gradient(90deg, var(--grad1), var(--grad2), var(--grad3), var(--grad4));
    background-size: 400%;
    z-index: 1;
    position: relative;
}

.btn-know-more:hover,
.btn-register:hover,
.btn-filters-know-more:hover {
    animation: gradientAnimate 8s linear infinite;
}

@keyframes gradientAnimate {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 400%;
    }
}