*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
font-family: 'Poppins', sans-serif;
}

html{
scroll-behavior:smooth;
} 






.mf-hero{

background: linear-gradient(135deg,#0c8aa3,#6f7edb);

padding: calc(var(--navbar-height, 82px) + 24px) 8% 80px;
color:white;

display:flex;
align-items:center;
position:relative;
isolation:isolate;
overflow:hidden;

}

.mf-hero-video{
position:absolute;
inset:0;
z-index:0;
width:100%;
height:100%;
min-width: 100%;
min-height: 100%;
object-fit:cover;
object-position: center center;
}

.mf-hero::before{
content:"";
position:absolute;
inset:0;
z-index:1;
background:linear-gradient(90deg,rgba(5,24,59,.86),rgba(5,24,59,.56));
}


.mf-hero-container{

display:flex;
align-items:center;
justify-content:space-between;
gap:100px;
margin: auto ;
position:relative;
z-index:2;



}

/* TEXT */

.mf-hero-text{


max-width: 100%;

}

.mf-hero-text h1{

font-size:60px;
font-weight:700;
line-height:1.2;
margin-bottom:20px;

}

.mf-hero-text span{

color:#ffd400;

}

.mf-hero-text p{

font-size:16px;
line-height:1.7;
margin-bottom:30px;
opacity:.9;

}

/* BUTTONS */

.mf-buttons{

display:flex;
gap:20px;

}

.btn-primary{

background:transparent;
border:2px solid #8fe3f0;
padding:12px 24px;
border-radius:30px;
text-decoration:none;
color:white;
transition:.3s;

}

.btn-secondary{

background:rgba(255,255,255,0.15);
padding:12px 24px;
border-radius:30px;
text-decoration:none;
color:white;

}

/* BUTTON HOVER */

.btn-primary:hover{

background:#8fe3f0;
color:#0a5c6b;

}

.btn-secondary:hover{

background:white;
color:#0a5c6b;

}

/* IMAGE */

.mf-hero-img img{

width:520px;
animation: float 4s ease-in-out infinite;

}

/* FLOAT ANIMATION */

@keyframes float{

0%{transform:translateY(0)}

50%{transform:translateY(-15px)}

100%{transform:translateY(0)}

}

.reveal-left{

opacity:0;
transform:translateX(-60px);
transition:1s;

}

.reveal-right{

opacity:0;
transform:translateX(60px);
transition:1s;

}

.reveal-active{

opacity:1;
transform:translateX(0);

}

@media(max-width:900px){

.mf-hero-container{

flex-direction:column;
text-align:center;
gap: 30px;

}

.mf-buttons{

justify-content:center;

}

.mf-hero-text h1{

font-size:36px;

}

.mf-hero-img img{

width:320px;

}

}


@media(max-width:500px){

.mf-hero{

padding: calc(var(--navbar-height, 70px) + 20px) 5% 50px;

}

.mf-hero-text h1{

font-size:28px;

}

.mf-hero-img img{

width:260px;

}

}


/* mf-intro */

.mf-intro{

padding:80px 8%;
text-align:center;
background:#f7f7f7;

}

.mf-intro-container{

max-width:800px;
margin:auto;

}

.mf-intro h2{

font-size:40px;
color:#2437d1;
margin-bottom:20px;

}

.mf-intro p{

font-size:18px;
line-height:1.8;
color:#555;

}

.reveal{
opacity:0;
transform:translateY(40px);
transition:0.8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

@media(max-width:768px){

.mf-intro{

padding:60px 6%;

}

.mf-intro h2{
font-size:26px;
}

.mf-intro p{
font-size:15px;
}

}

/* mf-trending */

.mf-trending{
padding:20px 8% 70px;
padding-top: 2px;
text-align:center;
background:#f5f7fb;
margin: auto;

}

.mf-trending-header h2{
font-size:40px;
margin-bottom:40px;
}

/* container */

.mf-trending-container{
background:#dce7f1;
padding:40px;
border-radius:25px;
}

/* tabs */

.mf-tabs{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
flex-wrap:wrap;
gap:20px;
}

.tab-buttons{
display:flex;
gap:25px;
}

.tab-btn{
background:none;
border:none;
font-size:16px;
cursor:pointer;
padding-bottom:5px;
}

.tab-btn.active{
border-bottom:2px solid #0099cc;
color:#0099cc;
}

/* button */

.know-more-btn{
background:#8fbad6;
padding:10px 20px;
border-radius:10px;
text-decoration:none;
color:#000;
font-weight:500;
transition:.3s;
}

.know-more-btn:hover{
transform:translateY(-3px);
}

/* fund grid */

.fund-grid{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(120px,1fr));
gap:15px;
}

/* cards */


.fund-card{
padding:12px;
border:1px solid #444;
border-radius:10px;
background:#fff;
text-align:center;
font-size:14px;
word-wrap:break-word;
}

.fund-card:hover{
transform:translateY(-4px);
box-shadow:0 6px 15px rgba(0,0,0,0.1);
}

/* tab content */

.tab-content{
display:none;
animation:fade .4s ease;
}

.tab-content.active{
display:block;
}

@keyframes fade{
from{opacity:0}
to{opacity:1}
}

.reveal{
opacity:0;
transform:translateY(40px);
transition:0.8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

.explore-mf{
padding:80px 8%;
padding-top: 10px;
background:#eaf4f8;
}

.explore-title{
text-align:center;
margin-bottom:40px;
}

.explore-title h2{
font-size:40px;
}

/* layout */

.explore-container{
display:flex;
gap:30px;
align-items:stretch;
}

/* sidebar */

.mf-sidebar{
width:180px;
background:#dbe7ef;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
margin-left:-4%;
display:flex;
flex-direction:column;
gap:16px;
}

.mf-sidebar h4{
margin-bottom:15px;
}

.mf-category{
padding:14px;
margin-bottom:18px;
border-radius:6px;
cursor:pointer;
background:#e9f1f6;
transition:.3s;
font-size:16px;
}

.mf-category.active{
background:#6ea6c5;
color:white;
}

.mf-category:hover{
background:#8fbad6;
color:white;
}

/* table */

.mf-table-container{
flex:1;
overflow-x:auto;
}

.mf-table{
width:100%;
border-collapse:collapse;
background:white;
box-shadow:0 6px 15px rgba(0,0,0,0.1);
}

.mf-table thead{
background:#b8d0df;
}
.mf-table thead th{
    font-size:16px;
    font-weight:600;
}

.mf-table th,
.mf-table td{
padding:20px;
text-align:center;
font-size:15.5px;
}
.mf-table th:first-child,
.mf-table td:first-child{
    text-align:left;
}

.mf-table tbody tr{
border-bottom:1px solid #eee;
transition:.2s;
}

.mf-table tbody tr:hover{
background:#27AEB9;
}

.table-wrapper{
width:100%;
overflow-x:auto;
}

.table-wrapper::-webkit-scrollbar{
height:6px;
}

.table-wrapper::-webkit-scrollbar-thumb{
background:#b9d0df;
border-radius:10px;
}

@media(max-width:900px){

.explore-container{
flex-direction:column;
}

.mf-sidebar{
width:100%;
display:flex;
gap:10px;
flex-wrap:wrap;

}

.mf-category{
flex:1 1 45%;
text-align:center;
}

}.reveal{
opacity:0;
transform:translateY(40px);
transition:0.8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

.mf-table tbody{
transition:0.3s;
animation:fadeTable .4s ease;
}

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

@media (max-width:768px){

.mf-table th,
.mf-table td{
padding:12px;
font-size:13px;
white-space:nowrap;
}

}

.mf-benefits{
    padding:40px;
    background:#f6f8f9;
    padding-top:20px;
    padding-left:8%;
    padding-right:8%;


}

.mf-container{
    max-width:1200px;   /* prevents content stretching */
    margin:0 auto;      /* centers the section */
    text-align:center;
}
.mf-header{
    text-align:center;
    margin-bottom:60px;
}

.mf-header h2{
    font-size:40px;
    font-weight:700;
    color:#1d1d1d;
    margin-top:15px;
}

.mf-content{
    display:block;
    margin:0 auto;
}
/* cards */

.mf-cards{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:24px;
}

.mf-card{
    background:#d5e6ea;
    padding:25px;
    min-height:320px;
    border-radius:12px;
    box-shadow:0 8px 18px rgba(0,0,0,0.08);
    transition:0.4s ease;
    opacity:0;
    transform:translateY(40px);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.mf-card.show{
    opacity:1;
    transform:translateY(0);
}

.mf-card:hover{
    transform:translateY(-8px);
}

.mf-card h3{
    margin:10px 0;
    font-size:18px;
    font-weight:600;
}

.mf-card p{
    font-size:18px;
    line-height:1.6;
}

.icon{
    font-size:27px;
}


/* RESPONSIVE */

@media(max-width:900px){

.mf-content{
display:block;
}

.mf-cards{
grid-template-columns:repeat(2, minmax(0, 1fr));
}

.mf-image{
    order:-1;
    max-width:500px;
    margin:auto;
}

}

@media(max-width:768px){

.mf-header h2{
font-size:28px;
}

.mf-cards{
grid-template-columns:1fr;
}

}

@media(max-width:480px){

.mf-benefits{
padding:60px 20px;
}

.mf-header h2{
font-size:24px;
}

.mf-card{
padding:20px;
}

}

.calculator-section{
    padding-top:40px;
    padding-bottom:30px;
    padding-left:8%;
    padding-right:8%;
    background:#f7f7f7;
}

.calculator-container{
    max-width:1100px;
    margin:auto;
    text-align:center;
}

.calculator-title{
    font-size:40px;
    font-weight:700;
    margin-bottom:50px;
}

/* GRID */

.calculator-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
 
}

/* BUTTON STYLE */

.calc-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:16px 20px;
    border-radius:12px;
    text-decoration:none;
    color:#000;
    font-weight:600;
    background:#b9d4da;
    box-shadow:0 6px 12px rgba(0,0,0,0.15);
    transition:all .3s ease;
}


/* HOVER EFFECT */

.calc-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 18px rgba(0,0,0,0.2);
    background:#a7c8cf;
}

/* TABLET */

@media(max-width:900px){

.calculator-grid{
grid-template-columns:repeat(2,1fr);
}

}

/* MOBILE */

@media(max-width:500px){

.calculator-grid{
grid-template-columns:1fr;
justify-items:center;
}

.calc-btn{
width:260px;
}

.calculator-title{
font-size:28px;
}

}

/* SCROLL ANIMATION BASE */

.scroll-animate{
opacity:0;
transform:translateY(60px);
transition:all 0.8s ease;
}

/* WHEN ELEMENT IS VISIBLE */

.scroll-animate.show{
opacity:1;
transform:translateY(0);
}

.fade-left{
opacity:0;
transform:translateX(-60px);
transition:all .8s ease;
}

.fade-right{
opacity:0;
transform:translateX(60px);
transition:all .8s ease;
}

.fade-left.show,
.fade-right.show{
opacity:1;
transform:translateX(0);
}


.investment-section{
padding-top:10px;
padding-bottom:20px;
background:#f7f7f7;
}

.investment-container{
max-width:1200px;
margin:auto;
text-align:center;
}

.investment-title{
font-size:40px;
font-weight:700;
margin-bottom:50px;
padding-top:5px;

}

.investment-sub{
color:#666;
margin-bottom:50px;
}

.investment-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
max-width:1900px;
margin:auto;
}

.investment-card{
background:#fff;
padding:40px;
border-radius:16px;
box-shadow:0 12px 30px rgba(0,0,0,0.08);
text-align:left;
transition:0.3s;
min-height:320px;
}

.investment-card:hover{
transform:translateY(-10px);
}
.investment-card h3{
margin-bottom:10px;
font-size:20px;
}

.investment-info{
background:#e6f2f4;
padding:15px;
border-radius:10px;
margin:15px 0;
display:flex;
justify-content:space-between;
flex-wrap:wrap;

}

.investment-info span{
font-size:18px;
color:#555;
}

.investment-info h4{
margin:2px 0;
color:#1e8a98;
}

.investment-card h3{
font-size:22px;
margin-bottom:12px;
}

.investment-card p{
font-size:18px;
}

.investment-info{
background:#e6f2f4;
padding:20px;
border-radius:12px;
margin:20px 0;
}

.min-invest{
width:100%;
margin-top:10px;
font-weight:600;
}

.investment-card ul{
margin-top:15px;
padding-left:0;
list-style:none;
}

.investment-card li{
margin-bottom:6px;
color:#444;
font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){

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

}

.reveal{
opacity:0;
transform:translateY(60px);
transition:all 0.8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

.why-mf-section{
padding:80px 20px;
background:#ffffff;
}

.why-mf-container{
max-width:1000px;
margin:auto;
text-align:center;
}

.why-mf-title{
font-size:40px;
font-weight:700;
margin-bottom:50px;
}

.why-mf-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:30px;
}

.why-mf-card{
background:#e6f2f4;
padding:25px;
border-radius:12px;
box-shadow:0 8px 20px rgba(0,0,0,0.05);
transition:0.3s;
}

.why-mf-card:hover{
transform:translateY(-6px);
}

.why-mf-icon{
font-size:30px;
margin-bottom:15px;
}

.why-mf-card h4{
font-size:18px;
margin-bottom:10px;
}

.why-mf-card p{
font-size:18px;
color:#555;
}

/* =========================================================
   MUTUAL FUNDS COMPREHENSIVE DARK MODE STYLING
   ========================================================= */
body.dark-mode {
    background-color: #080c14 !important;
    color: #f8fafc !important;
}

body.dark-mode .mf-hero {
    background: transparent !important;
}

body.dark-mode .mf-hero::before {
    background: linear-gradient(90deg, rgba(5, 24, 59, 0.75), rgba(5, 24, 59, 0.45)) !important;
}

body.dark-mode .mf-hero-video {
    filter: none !important;
    opacity: 1 !important;
}

body.dark-mode .mf-hero-text h1 {
    color: #ffffff !important;
}

body.dark-mode .mf-hero-text span {
    color: #ffd400 !important;
}

body.dark-mode .mf-hero-text p {
    color: #f8fafc !important;
}

body.dark-mode .mf-intro {
    background-color: #080c14 !important;
}

body.dark-mode .mf-intro h2 {
    color: #ffffff !important;
}

body.dark-mode .mf-intro p {
    color: #e2e8f0 !important;
}

body.dark-mode .mf-trending {
    background-color: #0b0f19 !important;
}

body.dark-mode .mf-trending-header h2 {
    color: #ffffff !important;
}

body.dark-mode .tab-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .tab-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

body.dark-mode .tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .know-more-btn {
    background: #2563eb !important;
    color: #ffffff !important;
}

body.dark-mode .fund-card {
    background: #111827 !important;
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .fund-card:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

body.dark-mode .explore-mf {
    background-color: #080c14 !important;
}

body.dark-mode .explore-title h2 {
    color: #ffffff !important;
}

body.dark-mode .mf-sidebar {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
}

body.dark-mode .mf-sidebar h4 {
    color: #ffffff !important;
    border-bottom: 1px solid #1e293b !important;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

body.dark-mode .mf-category {
    color: #e2e8f0 !important;
    background: transparent !important;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

body.dark-mode .mf-category:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

body.dark-mode .mf-category.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

body.dark-mode .table-wrapper {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
}

body.dark-mode .mf-table {
    background: #111827 !important;
}

body.dark-mode .mf-table thead,
body.dark-mode .mf-table thead tr {
    background: #1e293b !important;
}

body.dark-mode .mf-table th {
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #334155 !important;
}

body.dark-mode .mf-table tbody tr {
    background: #111827 !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-mode .mf-table tbody tr:nth-child(even) {
    background: #0d1527 !important;
}

body.dark-mode .mf-table tbody tr:hover {
    background: #172033 !important;
}

body.dark-mode .mf-table td {
    color: #f8fafc !important;
}

body.dark-mode .mf-table td:first-child {
    color: #38bdf8 !important;
    font-weight: 500 !important;
}

body.dark-mode .mf-table td:nth-child(2) {
    color: #cbd5e1 !important;
}

body.dark-mode .mf-table td:nth-child(n+3) {
    color: #4ade80 !important;
    font-weight: 600 !important;
}

body.dark-mode .mf-benefits {
    background-color: #0b0f19 !important;
}

body.dark-mode .mf-header h2 {
    color: #ffffff !important;
}

body.dark-mode .mf-card {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .mf-card h3 {
    color: #ffffff !important;
}

body.dark-mode .mf-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .mf-card .icon {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

body.dark-mode .investment-section {
    background-color: #080c14 !important;
}

body.dark-mode .investment-title {
    color: #ffffff !important;
}

body.dark-mode .investment-sub {
    color: #cbd5e1 !important;
}

body.dark-mode .investment-card,
body.dark-mode .investment-grid .investment-card {
    background: #111827 !important;
    background-color: #111827 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .investment-card h3 {
    color: #ffffff !important;
}

body.dark-mode .investment-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .investment-info {
    background: #172033 !important;
    border: 1px solid #1e293b !important;
}

body.dark-mode .investment-info span {
    color: #94a3b8 !important;
}

body.dark-mode .investment-info h4 {
    color: #38bdf8 !important;
}

body.dark-mode .investment-info .min-invest {
    color: #fbbf24 !important;
}

body.dark-mode .investment-card ul li {
    color: #e2e8f0 !important;
}

body.dark-mode .calculator-section {
    background-color: #0b0f19 !important;
}

body.dark-mode .calculator-title {
    color: #ffffff !important;
}

body.dark-mode .calc-btn {
    background: #111827 !important;
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
}

body.dark-mode .calc-btn:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

body.dark-mode .why-mf-section {
    background-color: #080c14 !important;
}

body.dark-mode .why-mf-title {
    color: #ffffff !important;
}

body.dark-mode .why-mf-card {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .why-mf-card h4 {
    color: #ffffff !important;
}

body.dark-mode .why-mf-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .why-mf-icon {
    color: #38bdf8 !important;
}
