/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    margin: 0;
    position: relative;
    font-size: 50px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 30px;
        /* FIX: prevent text overflow on mobile */
        white-space: normal;
    }
}


.feature-top {
    position: relative;
    background: #2c3e50;
    margin-bottom: 45px;
}

.feature-top .col-md-3 {
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 575.98px) {
    .feature-top .col-md-3:nth-child(1n) {
        border-right: none;
    }
    
    .feature-top .col-md-3:last-child {
        border-bottom: none;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .feature-top .col-md-3:nth-child(2n) {
        border-right: none;
    }
    
    .feature-top .col-md-3:nth-child(3n),
    .feature-top .col-md-3:nth-child(4n) {
        border-bottom: none;
    }
}

@media (min-width: 768px) {
    .feature-top .col-md-3 {
        border-bottom: none;
    }
    
    .feature-top .col-md-3:nth-child(4n) {
        border-right: none;
    }
}

.feature-top .feature-item {
    padding: 30px 0;
    text-align: center;
}

.feature-top .feature-item i {
    color: #d4af37;
    font-size: 35px;
    margin-bottom: 10px;
}

.feature-top .feature-item h3 {
    color: #f5f5f0;
    font-size: 30px;
    font-weight: 600;
}

.feature-top .feature-item p {
    color: #f5f5f0;
    margin: 0;
    font-size: 18px;
}

/* Page Header with Image Background */
.page-head {
    position: relative;
    margin-bottom: 45px;
    padding: 90px 0;
    text-align: center;
    background: #d4af37;
    overflow: hidden;
}

.page-head.about-header {
   background-image: url('../assets/images/banner/ban6.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.page-head h2 {
    position: relative;
    color: #f5f5f0;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-head h2::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 2px;
    left: calc(50% - 50px);
    bottom: 0;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.page-head a {
    position: relative;
    padding: 0 12px;
    font-size: 22px;
    color: #f5f5f0;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.page-head a:hover {
    color: #d4af37;
}

.page-head a::after {
    position: absolute;
    content: "/";
    width: 8px;
    height: 8px;
    top: -2px;
    right: -7px;
    text-align: center;
    color: #d4af37;
}

.page-head a:last-child::after {
    display: none;
}


/* Mission & Vision Section */
.mission-vision {
    position: relative;
    padding: 60px 0;
    background: #f5f5f0;
}

.mv-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .mv-item {
        margin-bottom: 0;
    }
}

/* FIX: gap between stacked cards on mobile */
@media (max-width: 767.98px) {
    .mission-vision .row {
        gap: 24px 0;
    }

    /* reset height: 100% so gap works cleanly */
    .mv-item {
        height: auto;
    }
}

.mv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.mv-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a961 0%, #d4af37 100%);
    border-radius: 50%;
    margin-bottom: 25px;
}

.mv-icon i {
    font-size: 32px;
    color: #2c3e50;
}

.mv-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.mv-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}


/* Founder Section */
.founder-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2332 100%);
}

.founder-section .section-header h2,
.founder-section .section-header p {
    color: #f5f5f0;
}

.founder-section .section-header p {
    color: #d4af37;
    font-size: 18px;
    font-style: italic;
}

.founder-image {
    position: relative;
    padding: 20px;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 6px solid #d4af37;
    min-height: 700px;
}

.image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: linear-gradient(135deg, #c9a961 0%, #d4af37 100%);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10;
}

.experience-badge .years {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.founder-content {
    padding: 20px 0 20px 40px;
}

.founder-title h3 {
    font-size: 42px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 10px;
}

.founder-title h4 {
    font-size: 24px;
    font-weight: 500;
    color: #f5f5f0;
    margin-bottom: 20px;
}

.founder-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.founder-credentials span {
    display: inline-flex;
    align-items: center;
    color: #ddd;
    font-size: 15px;
}

.founder-credentials span i {
    color: #d4af37;
    margin-right: 8px;
    font-size: 16px;
}

.founder-bio {
    margin: 30px 0;
}

.founder-bio p {
    font-size: 16px;
    line-height: 1.9;
    color: #ddd;
    margin-bottom: 20px;
}

.founder-expertise {
    margin: 30px 0;
}

.founder-expertise h5 {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tags span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(201, 169, 97, 0.15);
    border: 2px solid #d4af37;
    border-radius: 25px;
    color: #f5f5f0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expertise-tags span:hover {
    background: #d4af37;
    color: #2c3e50;
    transform: translateY(-2px);
}

.founder-connect {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 35px;
}

.linkedin-btn,
.consult-btn,
.profile-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.linkedin-btn {
    background: #0077b5;
    color: #ffffff;
    border: 2px solid #0077b5;
}

.linkedin-btn:hover {
    background: transparent;
    color: #0077b5;
    transform: translateY(-3px);
}

.linkedin-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.consult-btn {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.consult-btn:hover {
    background: #d4af37;
    color: #2c3e50;
    transform: translateY(-3px);
}

.profile-btn {
    background: transparent;
    color: #f5f5f0;
    border: 2px solid rgba(245, 245, 240, 0.5);
}

.profile-btn:hover {
    background: rgba(245, 245, 240, 0.12);
    border-color: #f5f5f0;
    color: #f5f5f0;
    transform: translateY(-3px);
    text-decoration: none;
}

.profile-btn i {
    margin-right: 8px;
    font-size: 16px;
    color: #d4af37;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e6e0 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #c9a961 0%, #d4af37 50%, #c9a961 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 60px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 60px;
    animation-name: fadeInRight;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
    border: 5px solid #2c3e50;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 10px rgba(201, 169, 97, 0.3),
                0 6px 20px rgba(201, 169, 97, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -16px;
}

.timeline-content {
    position: relative;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    border-left: 5px solid #d4af37;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid #d4af37;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 12px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #ffffff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -15px;
    border-left: none;
    border-right: 15px solid #ffffff;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.35);
    border-left-width: 8px;
}

.timeline-item:nth-child(even) .timeline-content:hover {
    border-left-width: 0;
    border-right-width: 8px;
}

.timeline-date {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2332 100%);
    color: #d4af37;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
}

.timeline-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    transition: color 0.3s ease;
}

.timeline-content:hover h4 {
    color: #d4af37;
}


/* ============================================
   RESPONSIVE - TABLET (992px and below)
   ============================================ */
@media (max-width: 992px) {
    .founder-content {
        padding: 40px 0 0 0;
    }
    
    .founder-title h3 {
        font-size: 36px;
    }
    
    .experience-badge {
        right: 20px;
    }
    
    .image-wrapper {
        min-height: 600px;
    }
    
    .image-wrapper img {
        height: 600px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (768px and below)
   ============================================ */
@media (max-width: 768px) {

    .founder-section {
        padding: 60px 0;
    }

    /* FIX: remove padding so image fills full width */
    .founder-image {
        padding: 0;
    }
    
    .founder-title h3 {
        font-size: 32px;
    }
    
    .founder-title h4 {
        font-size: 20px;
    }
    
    .image-wrapper {
        min-height: 500px;
    }
    
    .image-wrapper img {
        height: 500px;
    }

    .founder-content {
        padding: 30px 0 0 0;
    }
    
    /* Timeline - collapse to single left-aligned column */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 4px;
        right: auto;
        width: 28px;
        height: 28px;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 5px solid #d4af37;
        border-right: none;
    }

    /* FIX: disable scale hover on mobile - feels janky on touch */
    .timeline-content:hover,
    .timeline-item:nth-child(even) .timeline-content:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-left-width: 5px;
        border-right-width: 0;
    }
    
    .founder-connect {
        flex-direction: column;
        gap: 12px;
    }

    .linkedin-btn,
    .consult-btn,
    .profile-btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (576px and below)
   ============================================ */
@media (max-width: 576px) {
    /* FIX: tighten founder content spacing on small screens */
    .founder-content {
        padding: 25px 0 0 0;
    }

    .founder-title h3 {
        font-size: 26px;
    }

    .founder-title h4 {
        font-size: 18px;
    }

    .expertise-tags span {
        padding: 8px 14px;
        font-size: 13px;
    }

    .image-wrapper {
        min-height: 400px;
    }

    .image-wrapper img {
        height: 400px;
    }

    .timeline-content {
        padding: 20px 20px;
    }

    .timeline-content h4 {
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (400px and below)
   ============================================ */
@media (max-width: 400px) {
    /* FIX: badge bleeds off screen on tiny phones */
    .experience-badge {
        right: 10px;
        bottom: 15px;
        padding: 15px 18px;
    }

    .experience-badge .years {
        font-size: 28px;
    }

    .experience-badge .text {
        font-size: 11px;
    }

    .founder-title h3 {
        font-size: 24px;
    }

    .image-wrapper {
        min-height: 350px;
    }

    .image-wrapper img {
        height: 350px;
    }

    .timeline-content {
        padding: 18px 15px;
    }
}