/* --- GLOBAL VARIABLES & THEME --- */
:root {
    /* Main Theme */
    --cv-blue: #0F172A; 
    --cv-light-blue: #F8FAFC; 
    --cv-orange: #F97316; 
    --cv-orange-hover: #EA580C; 
    --cv-green: #10B981; 
    --primary-blue: #4F46E5; 
    --light-blue-bg: #EEF2FF; 
    --whatsapp: #25d366;
    
    /* Header Specific Theme */
    --jpit-black: #0f1115; 
    --jpit-dark: #1e293b; 
    --jpit-gold: #FFB800; 
    --jpit-gold-light: #FFCC33;
    --jpit-gold-dark: #D49A00;
    --jpit-gold-shadow: #b38000;
    
    /* Text & UI */
    --text: #334155;
    --text-main: #334155;
    --text-light: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }

/* Adjusted body to include padding for the fixed header */
body { 
    background-color: var(--cv-light-blue); 
    color: var(--text); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    padding-top: 110px; 
}
.main-content { flex: 1; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--cv-blue); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }

/* --- HEADER WRAPPER --- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

/* --- TOP BAR (Modern) --- */
.top-bar-modern {
    background-color: var(--jpit-dark);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.top-contact { display: flex; gap: 25px; }
.top-contact a { color: #e2e8f0; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.top-contact i { color: var(--jpit-gold); font-size: 0.9rem; }
.top-contact a:hover { color: var(--jpit-gold); }

.top-tagline {
    background: var(--jpit-gold); color: var(--jpit-black);
    padding: 3px 15px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}

/* --- MAIN NAVIGATION --- */
header { 
    position: relative; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #ffffff;
}

.brand-container { display: flex; align-items: center; gap: 15px; text-decoration: none; z-index: 1001; }
.brand-container img { max-height: 60px; width: auto; transition: var(--transition); }
.brand-text { display: flex; flex-direction: column; justify-content: center; border-left: 2px solid #e2e8f0; padding-left: 15px; }
.brand-title { font-size: 1.5rem; font-weight: 800; color: var(--jpit-dark); line-height: 1.1; }
.brand-subtitle { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; margin-top: 4px; }

nav ul { list-style: none; display: flex; gap: 10px; align-items: center; margin: 0; transition: var(--transition); }
nav ul li a:not(.btn-3d) { 
    text-decoration: none; color: var(--jpit-dark); font-weight: 600; font-size: 0.95rem; 
    padding: 8px 0; position: relative; 
}

.btn-3d { 
    background: linear-gradient(145deg, var(--jpit-gold-light), var(--jpit-gold));
    color: var(--jpit-black) !important; padding: 10px 24px; border-radius: 8px; 
    text-decoration: none; font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px; border: 1px solid #D49A00;
}

/* Scrolled state */
.header-wrapper.scrolled .top-bar-modern { display: none; }
.header-wrapper.scrolled header { padding: 10px 5%; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.header-wrapper.scrolled .brand-container img { max-height: 50px; }

/* --- MOBILE TOGGLE BUTTON --- */
.menu-toggle { 
    display: none; 
    font-size: 1.6rem; 
    color: var(--jpit-dark); 
    cursor: pointer; 
    background: #f1f5f9; 
    padding: 6px 8px; 
    border-radius: 4px; 
    border: none; 
    outline: none;
    z-index: 1001; 
    -webkit-tap-highlight-color: transparent; 
}



/* --- FLOATING BUTTONS --- */
.whatsapp-float { position: fixed; bottom: 90px; right: 30px; background-color: var(--whatsapp); color: white; border-radius: 50%; width: 65px; height: 65px; display: flex; justify-content: center; align-items: center; font-size: 34px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 9999; text-decoration: none; animation: pulse-and-rotate 3s infinite ease-in-out; transition: var(--transition); border: 2px solid transparent; }
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); animation: none; border-color: white; }

@keyframes pulse-and-rotate {
    0% { transform: translateY(0) rotate(0deg); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    75% { transform: translateY(5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-video { position: fixed; bottom: 175px; right: 30px; width: 260px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); z-index: 9998; background: black; border: 4px solid white; animation: slideIn 1s ease-out; transition: var(--transition); }
.floating-video:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.floating-video video { width: 100%; display: block; }
.close-video { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.3); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); backdrop-filter: blur(4px); }
.close-video:hover { background: var(--cv-orange); border-color: var(--cv-orange); transform: rotate(90deg); }
@keyframes slideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- HERO SLIDER --- */
.hero-slider-section { position: relative; width: 100%; height: 60vh; min-height: 450px; overflow: hidden; background-color: var(--cv-blue); }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide-content { max-width: 900px; color: white; transform: translateY(30px); opacity: 0; transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s; }
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-quote { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.15; letter-spacing: -1px; text-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.slide-content p { font-size: 1.3rem; color: #F1F5F9; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.6); margin-bottom: 35px; line-height: 1.5; }

.slider-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 4%; z-index: 10; pointer-events: none; }
.slider-controls button { background: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255,255,255,0.3); width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.slider-controls button:hover { background: var(--cv-orange); border-color: var(--cv-orange); transform: scale(1.1); }

.slider-indicators { position: absolute; bottom: 100px; width: 100%; display: flex; justify-content: center; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.dot:hover { background: rgba(255, 255, 255, 0.6); }
.dot.active { background: var(--cv-orange); transform: scale(1.4); border-color: rgba(255,255,255,0.5); box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }

/* --- FLOATING SEARCH --- */
.search-console { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); max-width: 1000px; margin: -50px auto 60px; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 20; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(255,255,255,0.5); }
.search-console select, .search-console input { flex: 1; min-width: 200px; padding: 15px 20px; border: 2px solid #E2E8F0; border-radius: var(--radius-md); font-size: 1rem; font-weight: 500; color: var(--text); outline: none; transition: var(--transition); background: #F8FAFC; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23334155' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 15px) center; }
.search-console select:hover, .search-console select:focus { border-color: var(--primary-blue); background-color: white; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.btn-search { background: linear-gradient(135deg, var(--primary-blue), #4338ca); color: white; border: none; padding: 15px 35px; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.2); text-decoration: none; display: inline-block; text-align: center; }
.btn-search:hover { background: linear-gradient(135deg, #3730a3, var(--primary-blue)); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); color: white; }

/* --- COURSE TABBED LAYOUT --- */
.course-discovery { padding: 40px 5% 60px; background: var(--cv-light-blue); position: relative; }
.discovery-header { text-align: center; margin-bottom: 40px; }
.discovery-header h2 { color: var(--cv-blue); font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.discovery-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.course-layout-container { display: flex; gap: 40px; align-items: stretch; max-width: var(--container-width); margin: 0 auto; }
.course-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }

.course-tab-btn { background: white; border: 2px solid #E2E8F0; padding: 15px 22px; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 600; color: var(--text-light); cursor: pointer; text-align: left; transition: var(--transition); position: relative; overflow: hidden; outline: none; }
.course-tab-btn::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--cv-orange); transform: scaleY(0); transition: var(--transition); transform-origin: center; }
.course-tab-btn:hover { border-color: #CBD5E1; color: var(--cv-blue); background: #FFF7ED; transform: translateX(5px); }
.course-tab-btn.active { background: #FFF7ED; border-color: var(--cv-orange); color: var(--cv-orange); box-shadow: var(--shadow-sm); }
.course-tab-btn.active::before { transform: scaleY(1); }

.course-content-area { flex-grow: 1; }
.course-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; animation: fadeIn 0.4s ease-out; }
.course-grid.active-course-grid { display: grid; }

.smart-card-small { background: white; border-radius: var(--radius-md); border: 1px solid #E2E8F0; text-align: center; display: flex; flex-direction: column; transition: var(--transition); position: relative; padding: 30px 15px 15px; height: 100%; z-index: 1; overflow: hidden; }
.smart-card-small::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--cv-orange), var(--primary-blue)); opacity: 0; transition: var(--transition); }
.smart-card-small:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.smart-card-small:hover::before { opacity: 1; }

.smart-card-small .card-tag { font-size: 0.65rem; padding: 4px 10px; top: 12px; left: 50%; transform: translateX(-50%); position: absolute; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.smart-card-small .card-tag.orange { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.smart-card-small .card-tag.green { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

.smart-card-small .card-icon { font-size: 1.6rem; color: var(--light-blue-bg); -webkit-text-stroke: 1.5px var(--primary-blue); margin: 10px 0; transition: var(--transition); }
.smart-card-small:hover .card-icon { color: var(--primary-blue); -webkit-text-stroke: 0; transform: scale(1.1); }
.smart-card-small .card-title { color: var(--cv-blue); font-size: 0.95rem; margin-bottom: 6px; font-weight: 700; line-height: 1.3; }
.smart-card-small .card-duration { font-size: 0.8rem; color: #64748b; margin-bottom: 12px; font-weight: 500; }
.smart-card-small .btn-card-action { display: inline-block; background: var(--cv-light-blue); color: var(--primary-blue); border: 2px solid transparent; padding: 8px; width: 100%; border-radius: 6px; font-weight: 600; font-size: 0.85rem; transition: var(--transition); margin-top: auto; text-decoration: none; }
.smart-card-small:hover .btn-card-action { background: var(--cv-orange); color: white; }

.view-more-wrapper { text-align: center; margin-top: 10px; padding-top: 20px; border-top: 1px solid #E2E8F0; }
.btn-view-more { display: inline-block; background: var(--light-blue-bg); color: var(--primary-blue); padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: 1px solid #C7D2FE; transition: var(--transition); }
.btn-view-more:hover { background: var(--primary-blue); color: white; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* --- TOOLS & EXPERTS SECTION --- */
.tools-expert-section { background: white; padding: 60px 5%; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; position: relative; }
.tools-expert-container { max-width: var(--container-width); margin: 0 auto; }

.tools-header-wrapper { margin-bottom: 40px; text-align: left; }
.badge-red { display: inline-flex; align-items: center; gap: 8px; background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.tools-header-wrapper h2 { font-size: 2.4rem; color: var(--cv-blue); margin: 0; font-weight: 800; letter-spacing: -1px; }
.text-blue { color: var(--primary-blue); }

.tools-layout { display: flex; gap: 40px; align-items: stretch; }
.tools-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.tool-tab-btn { background: white; border: 2px solid #E2E8F0; padding: 15px 22px; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 600; color: var(--text-light); cursor: pointer; text-align: left; transition: var(--transition); outline: none; position: relative; overflow: hidden; }
.tool-tab-btn::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--primary-blue); transform: scaleY(0); transition: var(--transition); transform-origin: center; }
.tool-tab-btn:hover { border-color: #CBD5E1; color: var(--cv-blue); background: var(--cv-light-blue); transform: translateX(5px); }
.tool-tab-btn.active { background: var(--light-blue-bg); border-color: var(--primary-blue); color: var(--primary-blue); box-shadow: var(--shadow-sm); }
.tool-tab-btn.active::before { transform: scaleY(1); }

.tools-content-area { flex-grow: 1; }
.tool-grid { display: none; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; animation: fadeIn 0.5s ease; }
.tool-grid.active-tool-grid { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.tool-card { background: white; border: 1px solid #F1F5F9; border-radius: var(--radius-lg); padding: 25px 15px; text-align: center; text-decoration: none; color: var(--cv-blue); font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; position: relative; top: 0; }
.tool-card:hover { top: -6px; box-shadow: var(--shadow-md); border-color: #A5B4FC; background: linear-gradient(to bottom, #ffffff, #F8FAFC); }
.tool-icon-wrap { width: 60px; height: 60px; background: var(--light-blue-bg); border: 1px solid #C7D2FE; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 20px; border-radius: 12px; transition: var(--transition); box-shadow: inset 0 2px 4px rgba(255,255,255,0.5); }
.tool-card:hover .tool-icon-wrap { background: var(--primary-blue); color: white; transform: scale(1.1) rotateY(15deg); border-color: var(--primary-blue); box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3); }

.tools-view-all { text-align: center; margin-top: 40px; border-top: 1px solid #E2E8F0; padding-top: 40px; }
.btn-view-all { background: white; color: var(--text); border: 2px solid #E2E8F0; padding: 12px 35px; border-radius: 30px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 8px; }
.btn-view-all:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* --- WHY CHOOSE US SECTION --- */
.why-choose-us { padding: 80px 5%; text-align: center; background: white; }
.why-choose-us h2 { color: var(--cv-blue); font-size: 2.4rem; font-weight: 800; margin-bottom: 50px; letter-spacing: -0.5px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; max-width: var(--container-width); margin: 0 auto; }
.feature-card { padding: 40px 30px; border-radius: var(--radius-lg); background: var(--cv-light-blue); transition: var(--transition); border: 1px solid transparent; position: relative; z-index: 1; }
.feature-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; transition: var(--transition); z-index: -1; }
.feature-card:hover { transform: translateY(-8px); background: white; border-color: #E2E8F0; }
.feature-card:hover::after { opacity: 1; }
.feature-icon { width: 75px; height: 75px; background: linear-gradient(135deg, var(--cv-orange), #fb923c); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3); transition: var(--transition); }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(10deg); }
.feature-card h4 { color: var(--cv-blue); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 1rem; line-height: 1.7; color: #64748b; }

/* --- TESTIMONIALS SECTION --- */
.testimonials { padding: 80px 5%; text-align: center; background: var(--cv-light-blue); position: relative; overflow: hidden; }
.testimonials h2 { color: var(--cv-blue); font-size: 2.4rem; font-weight: 800; margin-bottom: 50px; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: var(--container-width); margin: 0 auto; }
.testi-card { background: white; padding: 40px 30px; border-radius: var(--radius-lg); position: relative; text-align: left; box-shadow: var(--shadow-sm); border: 1px solid #E2E8F0; transition: var(--transition); display: flex; flex-direction: column; }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }
.testi-card i.fa-quote-left { font-size: 3.5rem; color: var(--cv-orange); opacity: 0.1; position: absolute; top: 30px; right: 30px; transition: var(--transition); }
.testi-card:hover i.fa-quote-left { opacity: 0.15; transform: scale(1.1); }
.testi-text { font-style: italic; color: var(--text); margin-bottom: 30px; position: relative; z-index: 2; font-size: 1.05rem; line-height: 1.7; flex-grow: 1; }
.testi-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid #F1F5F9; padding-top: 20px; }
.testi-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cv-orange); box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2); }
.testi-author h5 { margin: 0 0 4px 0; color: var(--cv-blue); font-size: 1.15rem; font-weight: 700; }
.testi-author span { color: var(--cv-green); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Slider Wrapper & Navigation Arrows for Testimonials */
.testimonial-gallery-wrapper { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.testi-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 20px; scrollbar-width: none; -ms-overflow-style: none; }
.testi-slider::-webkit-scrollbar { display: none; }
.testi-slider .testi-card { flex: 0 0 calc(33.333% - 14px); scroll-snap-align: start; box-sizing: border-box; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffff; border: 1px solid #cbd5e1; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 10; color: #334155; font-size: 1.2rem; transition: all 0.3s ease; }
.gallery-arrow:hover { background: #f8fafc; color: #2563eb; border-color: #2563eb; }
.arrow-left { left: -10px; }
.arrow-right { right: -10px; }

/* --- ADVISORS SECTION --- */
.advisors-section { max-width: var(--container-width); margin: 80px auto; padding: 0 5%; text-align: center; overflow: hidden; position: relative; }
.advisors-header { font-size: 2.4rem; font-weight: 800; color: var(--cv-blue); margin-bottom: 15px; line-height: 1.2; letter-spacing: -0.5px; }
.advisors-subtitle { color: var(--text-light); max-width: 800px; margin: 0 auto 40px; font-size: 1.1rem; line-height: 1.7; }

.advisors-avatars { display: flex; justify-content: center; margin-bottom: 40px; padding-left: 20px; }
.advisors-avatars img { width: 55px; height: 55px; border-radius: 50%; border: 3px solid white; object-fit: cover; margin-left: -15px; box-shadow: var(--shadow-md); z-index: 1; transition: var(--transition); cursor: pointer; }
.advisors-avatars img:hover { transform: translateY(-8px) scale(1.1); z-index: 10; border-color: var(--cv-orange); }

.advisors-slider-container { position: relative; max-width: 100%; display: flex; align-items: center; }
.adv-slider-btn { background: rgba(15, 23, 42, 0.7); color: white; border: 2px solid var(--cv-orange); width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 20; transition: var(--transition); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.adv-slider-btn:hover { background: var(--cv-orange); transform: scale(1.1); }
.prev-adv { margin-right: 15px; }
.next-adv { margin-left: 15px; }

.advisors-slider-wrapper { position: relative; width: 100%; overflow: hidden; padding: 20px 0; }
.advisors-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 20px; -ms-overflow-style: none; scrollbar-width: none; }
.advisors-track::-webkit-scrollbar { display: none; }

.advisor-card { min-width: 320px; flex-shrink: 0; scroll-snap-align: start; border-radius: var(--radius-lg); position: relative; overflow: hidden; height: 380px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: flex-end; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; background-color: var(--cv-blue); text-align: left; }
.advisor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.advisor-rating { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); color: #0f172a; font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 5px; z-index: 20; }
.advisor-rating span { color: #eab308; font-size: 1rem; }

.advisor-bg { position: absolute; inset: 0; background-size: cover; background-position: top center; opacity: 0.8; transition: transform 0.6s ease, opacity 0.6s ease; z-index: 0; }
.advisor-card:hover .advisor-bg { opacity: 1; transform: scale(1.08); }

.advisor-content { position: relative; z-index: 10; padding: 25px; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, 0.1); color: white; transition: var(--transition); transform: translateY(0); }
.advisor-card:hover .advisor-content { background: rgba(15, 23, 42, 0.8); padding-bottom: 30px; }

.advisor-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; color: white; letter-spacing: 0.5px; }
.advisor-content p { font-size: 0.85rem; color: var(--cv-orange); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }

.advisor-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.advisor-tag { background: rgba(255, 255, 255, 0.1); padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); letter-spacing: 0.3px; color: #e2e8f0; }

.advisor-action { overflow: hidden; max-height: 0; opacity: 0; transition: all 0.4s ease; margin-top: 0; }
.advisor-card:hover .advisor-action { max-height: 50px; opacity: 1; margin-top: 15px; }
.btn-consult { display: block; width: 100%; text-align: center; background: var(--cv-orange); color: white; padding: 10px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: var(--transition); border: none; font-size: 0.95rem; }
.btn-consult:hover { background: var(--cv-orange-hover); box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4); }

/* --- EMI CALCULATOR --- */
.emi-section { background: white; padding: 80px 5%; margin-bottom: 40px; }
.emi-container { max-width: var(--container-width); margin: 0 auto; }
.emi-text { text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.emi-text h2 { color: var(--cv-blue); font-size: 2.4rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.emi-text p { font-size: 1.1rem; color: var(--text-light); }

.emi-dashboard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid #E2E8F0; overflow: hidden; }
.emi-controls { padding: 50px; background: #F8FAFC; border-right: 1px solid #E2E8F0; }
.input-group { margin-bottom: 35px; }
.input-group:last-child { margin-bottom: 0; }
.input-group label { display: flex; justify-content: space-between; font-weight: 600; color: var(--text); margin-bottom: 15px; font-size: 1.05rem; }
.highlight-val { color: var(--primary-blue); font-weight: 700; background: var(--light-blue-bg); padding: 5px 12px; border-radius: 6px; }

.emi-controls input[type=range] { width: 100%; height: 8px; border-radius: 4px; background: #CBD5E1; outline: none; -webkit-appearance: none; accent-color: var(--cv-orange); cursor: pointer; }
.emi-controls input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; border-radius: 50%; background: var(--cv-orange); cursor: pointer; border: 3px solid white; box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); transition: var(--transition); }
.emi-controls input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.emi-results-card { padding: 50px; display: flex; flex-direction: column; justify-content: center; background: white; }
.emi-results-card h4 { color: var(--text-light); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-weight: 600; text-align: center; }
.emi-amount-main { font-size: 3.2rem; font-weight: 800; color: var(--primary-blue); line-height: 1; text-align: center; margin-bottom: 40px; text-shadow: 0 4px 10px rgba(79, 70, 229, 0.15); }
.emi-amount-main small { font-size: 1.1rem; color: #64748b; font-weight: 500; }

.emi-breakdown { background: var(--cv-light-blue); padding: 25px; border-radius: var(--radius-md); }
.breakdown-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.05rem; color: var(--text); }
.breakdown-row:last-child { margin-bottom: 0; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
    .slide-quote { font-size: 3rem; }
    .hero-slider-section { height: 55vh; }
}

@media (max-width: 1024px) {
    .top-tagline { display: none; }
    .brand-title { font-size: 1.2rem; }
    .menu-toggle { display: block; margin-left: auto; }
    
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-top: 1px solid #e2e8f0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; z-index: 999; }
    nav.active { max-height: 500px; }
    
    nav ul { display: flex; flex-direction: column; padding: 20px 0; margin: 0; }
    nav ul li { width: 100%; text-align: center; margin: 0; }
    nav ul li a:not(.btn-3d) { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid #f1f5f9; }
    nav ul li:last-child a:not(.btn-3d) { border-bottom: none; }
    
    .btn-wrapper { margin-top: 15px; width: 100%; display: flex; justify-content: center; padding: 0 20px; }
    .btn-3d { width: 100%; justify-content: center; padding: 12px; }

    .course-layout-container { flex-direction: column; gap: 25px; }
    .course-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .course-tab-btn { flex: 1 1 calc(33.333% - 15px); text-align: center; }
    .course-tab-btn::before { width: 100%; height: 4px; top: auto; bottom: 0; transform: scaleX(0); }
    .course-tab-btn.active::before { transform: scaleX(1); }
    
    .tools-layout { flex-direction: column; gap: 30px; }
    .tools-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; position: static; }
    .tool-tab-btn { flex: 1 1 calc(33.333% - 15px); text-align: center; align-items: center; }
    .tool-tab-btn::before { width: 100%; height: 4px; top: auto; bottom: 0; transform: scaleX(0); }
    .tool-tab-btn.active::before { transform: scaleX(1); }
    
    .emi-dashboard { grid-template-columns: 1fr; }
    .emi-controls { border-right: none; border-bottom: 1px solid #E2E8F0; padding: 40px 25px; }
    .emi-results-card { padding: 40px 25px; }
}

@media (max-width: 992px) {
    .testi-slider .testi-card { flex: 0 0 calc(50% - 10px); } 
}

@media (max-width: 991px) {
    .hero-slider-section { height: 50vh; min-height: 400px; }
    .slide-quote { font-size: 2.5rem; }
    
    .whatsapp-float { bottom: 80px; right: 20px; width: 50px; height: 50px; font-size: 26px; }
    .floating-video { width: 180px; bottom: 150px; right: 20px; }
    
    .search-console { margin: -40px 5% 40px; padding: 20px; flex-direction: column; }
    .search-console select, .search-console input, .btn-search { width: 100%; }
    
    .tool-tab-btn { flex: 1 1 calc(50% - 10px); }
    .floating-coupon { width: 90%; justify-content: center; bottom: 15px; font-size: 0.85rem; padding: 10px 15px; }
}

@media (max-width: 768px) {
    body { padding-top: 90px; }
    .top-bar-modern { padding: 8px 15px; justify-content: center; }
    .top-contact span { display: none; } 
    .top-contact { gap: 40px; }
    header { padding: 12px 15px; }
    .brand-text { border-left: none; padding-left: 8px; }
    .brand-subtitle { display: none; }
    .brand-title { font-size: 1.1rem; }
    .brand-container img { max-height: 45px; }

    .course-tab-btn { flex: 1 1 100%; }
    .prev-adv { margin-right: 5px; width: 35px; height: 35px; font-size: 1rem;}
    .next-adv { margin-left: 5px; width: 35px; height: 35px; font-size: 1rem;}
    
    .testimonial-gallery-wrapper { padding: 0 20px; }
    .testi-slider .testi-card { flex: 0 0 100%; } 
    .arrow-left { left: -5px; width: 35px; height: 35px; }
    .arrow-right { right: -5px; width: 35px; height: 35px; }
}

@media (max-width: 480px) {
    .hero-slider-section { height: 45vh; min-height: 350px; }
    .slide-quote { font-size: 2rem; margin-bottom: 12px; }
    .slide-content p { font-size: 1.05rem; margin-bottom: 20px; }
    
    .tool-tab-btn { flex: 1 1 100%; }
    .tool-grid.active-tool-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .tools-header-wrapper h2, .emi-text h2, .why-choose-us h2, .testimonials h2, .advisors-header { font-size: 2rem; }
    .emi-amount-main { font-size: 2.5rem; }
    .advisor-card { min-width: 280px; height: 350px; }
    
    .adv-slider-btn { display: none; } 
}

/* --- Card Flexbox Structure --- */
.advisor-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Forces cards in the slider to match height */
    overflow: hidden; 
    background-color: #fff; 
    border-radius: 8px; /* Adjust to match your design */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Optional: Adds a subtle shadow */
}

/* --- Content Area --- */
.advisor-content {
    flex-grow: 1; /* Pushes the action div to the bottom */
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* --- Action/Button Area --- */
.advisor-action {
    margin-top: auto; /* Anchors this container to the bottom edge */
    padding: 15px 20px;
    background-color: #fcfcfc; /* Optional: Slight contrast for the footer */
    border-top: 1px solid #f0f0f0; 
    text-align: center;
}

/* --- Button Styling (Adjust to fit your theme) --- */
.btn-consult {
    width: 100%; /* Makes button full width inside the footer */
    padding: 12px 20px;
    background-color: #0056b3; /* Your primary color */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-consult:hover {
    background-color: #004494; /* Darker shade on hover */
}