/* ==========================================================================
   1. HEADER NAVBAR (Centered Logo & Responsive Navigation)
   ========================================================================== */
.site-header {
    width: 100%;
    background: #f8f3eb !important; /* Solid fallback */
    background: rgba(248, 243, 235, 0.95) !important;
    box-shadow: 0 4px 20px rgba(23, 59, 61, 0.05);
}

.header-inner {
    display: flex;
    flex-direction: column;  /* Stacks logo on top of navigation */
    align-items: center;     /* Centers flex items */
    justify-content: center; 
    text-align: center;      /* Centers inline elements */
    padding: 20px;
    gap: 15px;
}

/* CRITICAL FIX: Forces the link block into the middle */
.logo {
    display: block;
    margin: 0 auto; 
}

/* CRITICAL FIX: Forces the image into the middle */
.logo img {
    display: block;
    margin: 0 auto;
    max-width: 240px; /* Keeps logo proportionate on phones */
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows links to wrap on small screens */
    gap: 25px;
}

/* ==========================================================================
   2. EXISTING PAGES (Hero, Detail, Forms, Contact)
   ========================================================================== */
.page-hero { padding: 170px 20px 75px; background: #f5efe6; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 78px); max-width: 900px; margin: 0 auto; line-height: 1.1; }
.page-hero p { font-size: 18px; max-width: 720px; margin: 22px auto 0; }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 0 20px; }
.detail h2 { font-size: clamp(32px, 5vw, 45px); line-height: 1.2; }
.detail-list { display: grid; gap: 12px; }
.detail-list li { padding: 18px; border: 1px solid #e8dfd4; border-radius: 15px; background: #fff; }
.detail-list strong { display: block; color: #243c40; }
.detail-list span { font-size: 12px; color: #8a9797; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11px; font-weight: 700; color: #243c40; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e2d9ce; border-radius: 12px; padding: 13px; background: #fffdf9; outline: 0; color: #243c40; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #cf6a3b; box-shadow: 0 0 0 3px rgba(201,107,67,.1); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; padding: 0 20px; }
.contact-card { padding: 32px; border: 1px solid #e8dfd4; border-radius: 25px; background: #fff; }
.contact-card h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 20px; }
.contact-detail { padding: 17px 0; border-bottom: 1px solid #e8dfd4; }
.contact-detail:last-child { border: 0; }
.contact-detail small { display: block; color: #8a9797; font-size: 10px; text-transform: uppercase; }
.contact-detail strong { display: block; color: #243c40; margin-top: 3px; }

/* ==========================================================================
   3. ABOUT PAGE SPECIFICS
   ========================================================================== */
.about-hero { padding: 50px 20px 80px; background: #fdfaf6; text-align: center; }
.about-hero h1 { font-size: clamp(36px, 6vw, 72px); color: #243c40; max-width: 900px; margin: 15px auto 20px; letter-spacing: -1px; line-height: 1.1; }

.founder-section { padding: 80px 20px; background: #fffdf9; overflow: hidden; }
.founder-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.founder-image-wrapper { position: relative; border-radius: 200px 200px 0 0; overflow: hidden; box-shadow: 0 30px 60px rgba(23, 59, 61, 0.12); margin: 0 auto; width: 100%; max-width: 420px; }
.founder-image-wrapper img { width: 100%; display: block; object-fit: cover; aspect-ratio: 3/4; }
.founder-typography h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(40px, 6vw, 82px); color: #cf6a3b; font-style: italic; line-height: 1.05; margin-bottom: 35px; font-weight: 600; }
.founder-typography p { font-size: 16px; color: #58696a; line-height: 1.8; margin-bottom: 24px; }

/* --- Education Timeline (Grid Center Desktop + Mobile Swipe) --- */
.edu-wrapper { background: #fdfaf6; border-radius: 24px; padding: 40px 20px; margin-top: 50px; box-shadow: 0 10px 40px rgba(23, 59, 61, 0.04); }
.edu-scroll { 
    display: grid; 
    grid-template-columns: repeat(3, 320px); 
    justify-content: center; /* PERFECTLY CENTERS CARDS ON DESKTOP */
    gap: 20px; 
    padding-top: 50px; 
    padding-bottom: 50px; 
}
.edu-card-container { position: relative; width: 100%; }
.edu-year { background: #2a2a2a; color: #fff; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; text-align: center; padding: 12px 0; position: absolute; width: 100%; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1; }

/* Desktop Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .edu-card-container:nth-child(odd) .edu-year { top: -46px; bottom: auto; border-radius: 12px 12px 0 0; transform: translateY(15px); }
    .edu-card-container:nth-child(odd):hover .edu-year { opacity: 1; visibility: visible; transform: translateY(0); background-color: #243c40}
    .edu-card-container:nth-child(odd):hover .edu-card { border-color: #cf6a3b; border-top-left-radius: 0; border-top-right-radius: 0; }
    
    .edu-card-container:nth-child(even) .edu-year { bottom: -46px; top: auto; border-radius: 0 0 12px 12px; transform: translateY(-15px); }
    .edu-card-container:nth-child(even):hover .edu-year { opacity: 1; visibility: visible; transform: translateY(0); background-color: #243c40 }
    .edu-card-container:nth-child(even):hover .edu-card { border-color: #cf6a3b; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

.edu-card { width: 100%; border: 1px solid #e8dfd4; border-radius: 16px; padding: 20px; background: #fff; display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; height: 100%; transition: all 0.3s ease; }
.edu-logo { width: 55px; height: 55px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-weight: bold; font-size: 20px; color: #fff; overflow: hidden; }
.edu-logo.lse { background: #c11b17; font-family: Arial, sans-serif; }
.edu-logo.sxc { background: #fff; border: 1px solid #e8dfd4; }
.edu-logo.sxc img { width: 80%; height: 80%; object-fit: contain; }
.edu-text strong { display: block; font-size: 13px; color: #cf6a3b; line-height: 1.4; margin-bottom: 6px; }
.edu-text span { font-size: 11px; color: #8a9797; line-height: 1.5; display: block; }

/* Mission / Vision */
.mission-vision-section { background: #243c40; padding: 100px 20px; position: relative; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 50px auto 0; max-width: 1000px; }
/* Base Card Style with Transition added */
.mv-card { 
    background: #ffffff; 
    padding: 50px 40px; 
    border-radius: 20px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    transition: all 0.3s ease; /* Ensures the hover animation is smooth */
}

/* New Hover Effect */
.mv-card:hover {
    transform: translateY(-10px); /* Lifts the card up slightly */
    box-shadow: 0 40px 70px rgba(0,0,0,0.25); /* Makes the shadow deeper and softer */
}
.mv-card h3 { color: #cf6a3b; font-size: 32px; margin-bottom: 15px; }
.mv-card p { color: #58696a; font-size: 16px; line-height: 1.7; margin: 0; }

/* ==========================================================================
   4. FULL MOBILE RESPONSIVENESS (Media Queries)
   ========================================================================== */
@media (max-width: 1100px) {
    /* Transforms Education Grid back to Swipeable Scroll on Tablets */
    .edu-scroll { 
        display: flex; 
        overflow-x: auto; 
        justify-content: flex-start;
        padding-left: 10px; padding-right: 10px; 
        -webkit-overflow-scrolling: touch;
    }
    .edu-card-container { flex: 0 0 320px; }
}

@media (max-width: 980px) {
    /* Stacks columns safely */
    .founder-grid, .detail, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .mv-grid { grid-template-columns: 1fr; gap: 25px; }
    
    /* Re-centers typography for mobile devices */
    .founder-typography { text-align: center; }
    .founder-typography p { text-align: left; }
    
    /* Adjusts padding for smaller screens */
    .founder-section, .mission-vision-section { padding: 60px 20px; }
    .edu-wrapper { padding: 30px 15px; }
}

@media (max-width: 768px) {
    /* Mobile Form Stacking */
    .page-hero { padding-top: 140px; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-card, .mv-card { padding: 30px 25px; }
    
    /* Mobile Timeline Touch Fix: Forces badges visible at top */
    .edu-scroll { padding-top: 50px; padding-bottom: 20px; }
    .edu-card-container .edu-year { 
        opacity: 1; visibility: visible; transform: translateY(0);
        top: -42px; bottom: auto; border-radius: 12px 12px 0 0; 
    }
    .edu-card-container .edu-card {
        border-top-left-radius: 0 !important; border-top-right-radius: 0 !important;
        border-bottom-left-radius: 16px !important; border-bottom-right-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    /* Ultra-small phone tweaks */
    .main-nav { gap: 12px; }
    .main-nav a { font-size: 14px; }
    .founder-image-wrapper { max-width: 100%; border-radius: 100px 100px 0 0; }
}
/* ==========================================================================
   TEAM FLIP CARDS (Photo Front, Info Back)
   ========================================================================== */
.team-card {
  background: transparent;
  perspective: 1000px; /* Enables the 3D flip effect */
  cursor: pointer;
  min-height: 420px; /* Keeps all cards the exact same height */
  width: 100%;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); /* Smooth rotation */
  transform-style: preserve-3d;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(23, 59, 61, 0.05);
}

.team-card:hover .team-card-inner {
  box-shadow: 0 20px 55px rgba(23, 59, 61, 0.15); /* Slight lift on hover */
}

/* This triggers the flip when you click the card */
.team-card.flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-front, .team-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Hides the reverse side */
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e8dfd4;
}

/* --- FRONT (PHOTO) STYLES --- */
.team-front img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the photo fills the card nicely */
  display: block;
}

.front-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(23, 59, 61, 0.95) 0%, rgba(23, 59, 61, 0) 100%);
  padding: 40px 20px 20px;
  text-align: center;
}
.front-overlay h3 {
  margin: 0 0 5px;
  font-size: 22px;
  color: #fff;
}
.front-overlay small {
  color: #cf6a3b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- BACK (INFO) STYLES --- */
.team-back {
  transform: rotateY(180deg); /* Starts hidden backwards */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the text vertically inside the card */
}

.team-back .card-num {
  color: #cf6a3b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-back p {
  font-size: 14px;
  color: #58696a;
  line-height: 1.6;
}
/* ==========================================================================
   LOGIN PAGES (Investor & Adviser)
   ========================================================================== */
.login-section {
    padding: 180px 20px 120px;
    background: #fdfaf6;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(23, 59, 61, 0.08);
    border: 1px solid #e8dfd4;
    text-align: center;
}

.login-card .eyebrow {
    color: #cf6a3b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.login-card h1 {
    color: #243c40;
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.login-card p {
    color: #8a9797;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-form .field {
    text-align: left;
    margin-bottom: 20px;
}

.login-form .field input {
    background: #fffdf9;
    padding: 15px;
    font-size: 14px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #58696a;
    cursor: pointer;
}

.login-options a {
    color: #cf6a3b;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.login-options a:hover {
    color: #243c40;
}

.btn-login {
    width: 100%;
    background: #243c40;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background: #0f2628;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .login-card {
        padding: 40px 25px;
    }
    .login-card h1 {
        font-size: 28px;
    }
}
/* ==========================================================================
   FORGOT PASSWORD - RECOVERY METHOD TOGGLE
   ========================================================================== */
.recovery-method {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.recovery-method input[type="radio"] {
    display: none; /* Hides the default radio circles */
}

.recovery-method label {
    flex: 1;
    text-align: center;
    background: #fffdf9;
    border: 1px solid #e8dfd4;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 700;
    color: #58696a;
}

/* When a method is selected, it turns dark green */
.recovery-method input[type="radio"]:checked + label {
    background: #243c40;
    color: #ffffff;
    border-color: #243c40;
    box-shadow: 0 4px 15px rgba(23, 59, 61, 0.2);
}

/* Hides the inactive input field */
.recovery-input-group {
    display: none;
}

/* Shows the active input field */
.recovery-input-group.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-to-login {
    display: inline-block;
    margin-top: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #8a9797;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-login:hover {
    color: #cf6a3b;
}
/* ==========================================================================
   TRAINEE DASHBOARD (Document List & Progress)
   ========================================================================== */
.dashboard-section {
    padding: 150px 20px 100px;
    background: #fdfaf6;
    min-height: 80vh;
}

.dashboard-header {
    max-width: 1000px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.dashboard-header h1 {
    color: #243c40;
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #8a9797;
    font-size: 15px;
}

.doc-table-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(23, 59, 61, 0.08);
    border: 1px solid #e8dfd4;
    overflow-x: auto; /* Makes table swipeable on phones */
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.doc-table th {
    background: #243c40;
    color: #fff;
    padding: 18px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-table td {
    padding: 20px;
    border-bottom: 1px solid #e8dfd4;
    color: #58696a;
    font-size: 14px;
    vertical-align: middle;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:hover {
    background: #fffdf9;
}

/* Document Title Styling */
.doc-title {
    font-weight: 700;
    color: #243c40;
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Progress Bar Styling */
.progress-wrapper {
    width: 100%;
    min-width: 120px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #cf6a3b;
    margin-bottom: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e8dfd4;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #cf6a3b;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Action Button */
.btn-view {
    display: inline-block;
    padding: 10px 20px;
    background: #243c40;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-view:hover {
    background: #cf6a3b;
    color: #fff;
}

.btn-view.completed {
    background: #8a9797;
}

@media (max-width: 768px) {
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}