/*======================================================
  MEDEF MICROFINANCE BANK LTD
  Corporate Website v2.0

  Author: Aliyu Yakubu & ChatGPT

======================================================*/


/*======================================================
  GOOGLE FONT
======================================================*/

:root{

    --primary:#0B8F4D;
    --primary-dark:#086C3B;
    --primary-light:#EAF7F0;

    --white:#FFFFFF;
    --background:#F8FAF9;

    --black:#222222;
    --text:#666666;

    --border:#E8ECE9;

    --shadow:0 10px 35px rgba(0,0,0,.06);

    --transition:.35s ease;

    --radius:12px;

    --container:1280px;

}


/*======================================================
  RESET
======================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--background);

    color:var(--black);

    line-height:1.7;

    overflow-x:hidden;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

button{

    border:none;

    outline:none;

    cursor:pointer;

    font-family:inherit;

}


/*======================================================
  GLOBAL
======================================================*/

.container{

    width:90%;

    max-width:var(--container);

    margin:auto;

}

section{

    padding:90px 0;

}

.section-title{

    font-size:40px;

    font-weight:700;

    margin-bottom:18px;

}

.section-subtitle{

    color:var(--primary);

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:10px;

}

.text-center{

    text-align:center;

}


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

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 30px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}

.btn-outline{

    border:2px solid var(--primary);

    color:var(--primary);

    background:#fff;

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}


/*======================================================
  TOP BAR
======================================================*/

.top-bar{

    background:#222;

    color:#fff;

    font-size:13px;

    padding:10px 0;

}

.top-bar .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}

.top-left,
.top-center,
.top-right{

    display:flex;

    align-items:center;

    gap:20px;

}

.top-right a{

    transition:.3s;

}

.top-right a:hover{

    color:#8fd9ae;

}


/*======================================================
  HEADER
======================================================*/

.header{

    position:sticky;

    top:0;

    z-index:999;

    background:#fff;

    box-shadow:0 2px 15px rgba(0,0,0,.05);

}

.header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:92px;

}

.logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo img{

    width:70px;

}

.logo-text h2{

    font-size:22px;

    font-weight:700;

    color:var(--primary);

    line-height:1.2;

}

.logo-text p{

    font-size:13px;

    color:#777;

}


/*======================================================
  NAVIGATION
======================================================*/

.navbar ul{

    display:flex;

    gap:32px;

}

.navbar a{

    position:relative;

    font-weight:500;

    transition:.3s;

}

.navbar a:hover,
.navbar a.active{

    color:var(--primary);

}

.navbar a::after{

    content:"";

    position:absolute;

    bottom:-8px;

    left:0;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;

}

.navbar a:hover::after,
.navbar a.active::after{

    width:100%;

}


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

.header-buttons{

    display:flex;

    gap:15px;

}

.menu-toggle{

    display:none;

}
/*======================================================
  HERO
======================================================*/

.hero{

    background:linear-gradient(to bottom,#ffffff,#f8fbf9);

    padding:120px 0 80px;

    overflow:hidden;

}

.hero-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:70px;

}

.hero-tag{

    display:inline-block;

    background:var(--primary-light);

    color:var(--primary);

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    margin-bottom:25px;

    letter-spacing:.5px;

}

.hero-content h1{

    font-size:58px;

    line-height:1.15;

    font-weight:700;

    margin-bottom:25px;

    color:var(--black);

}

.hero-content p{

    color:var(--text);

    font-size:18px;

    max-width:620px;

    margin-bottom:40px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.hero-image{

    position:relative;

}

.hero-image img{

    width:100%;

    animation:floatImage 5s ease-in-out infinite;

}

@keyframes floatImage{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0);

    }

}


/*======================================================
  QUICK ACTIONS
======================================================*/

.quick-actions{

    padding:0 0 90px;

    margin-top:-40px;

    position:relative;

    z-index:10;

}

.quick-actions .container{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.action-card{

    background:#fff;

    padding:35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:center;

    transition:var(--transition);

    border:1px solid var(--border);

    cursor:pointer;

}

.action-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.action-card i{

    width:70px;

    height:70px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0 auto 20px;

    background:var(--primary-light);

    color:var(--primary);

    font-size:28px;

}

.action-card h3{

    font-size:20px;

    font-weight:600;

}


/*======================================================
  SECTION HEADINGS
======================================================*/

.section-header{

    max-width:700px;

    margin:0 auto 60px;

    text-align:center;

}

.section-header h2{

    font-size:42px;

    margin-bottom:15px;

}

.section-header p{

    color:var(--text);

    font-size:17px;

}


/*======================================================
  REUSABLE CARD
======================================================*/

.card{

    background:#fff;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    transition:var(--transition);

    overflow:hidden;

}

.card:hover{

    transform:translateY(-8px);

}

.card-body{

    padding:30px;

}


/*======================================================
  IMAGE STYLING
======================================================*/

.rounded{

    border-radius:var(--radius);

}

.shadow{

    box-shadow:var(--shadow);

}


/*======================================================
  BACKGROUND HELPERS
======================================================*/

.bg-white{

    background:#fff;

}

.bg-light{

    background:var(--background);

}

.bg-primary{

    background:var(--primary);

    color:#fff;

}


/*======================================================
  SPACING HELPERS
======================================================*/

.mt-30{

    margin-top:30px;

}

.mt-50{

    margin-top:50px;

}

.mb-30{

    margin-bottom:30px;

}

.mb-50{

    margin-bottom:50px;

}


/*======================================================
  FOOTER
======================================================*/

footer{

    background:#1f1f1f;

    color:#ddd;

    padding:80px 0 20px;

}

.footer-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

}

.footer-title{

    color:#fff;

    margin-bottom:20px;

    font-size:20px;

    font-weight:600;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a{

    transition:var(--transition);

}

.footer-links a:hover{

    color:#ffffff;

    padding-left:8px;

}

.footer-contact li{

    display:flex;

    gap:12px;

    margin-bottom:15px;

    align-items:flex-start;

}

.footer-contact i{

    color:var(--primary);

    margin-top:5px;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.1);

    margin-top:50px;

    padding-top:20px;

    text-align:center;

    font-size:14px;

    color:#999;

}


/*======================================================
  UTILITIES
======================================================*/

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:all .8s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}
/*======================================================
WHY CHOOSE MEDEF
======================================================*/

.why-medef{

    background:#ffffff;

}

.why-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.why-card{

    background:#fff;

    padding:40px 35px;

    text-align:center;

    border:1px solid var(--border);

    border-radius:var(--radius);

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.why-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.why-icon{

    width:80px;

    height:80px;

    margin:0 auto 25px;

    border-radius:50%;

    background:var(--primary-light);

    display:flex;

    align-items:center;

    justify-content:center;

}

.why-icon i{

    color:var(--primary);

    font-size:32px;

}

.why-card h3{

    margin-bottom:15px;

    font-size:22px;

}

.why-card p{

    color:var(--text);

}
/*======================================================
DIGITAL BANKING
======================================================*/

.digital-banking{

    background:var(--background);

}

.digital-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

}

.digital-image{

    text-align:center;

}

.digital-image img{

    max-width:380px;

    margin:auto;

    animation:floatImage 6s ease-in-out infinite;

}

.digital-content h2{

    font-size:46px;

    margin:20px 0;

    line-height:1.2;

}

.digital-content p{

    color:var(--text);

    margin-bottom:35px;

    font-size:17px;

}

.digital-features{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin-bottom:40px;

}

.digital-features div{

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:500;

}

.digital-features i{

    color:var(--primary);

    font-size:18px;

}

.store-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.store-btn{

    background:#222;

    color:#fff;

    padding:14px 22px;

    border-radius:12px;

    display:flex;

    align-items:center;

    gap:15px;

    transition:var(--transition);

}

.store-btn:hover{

    background:var(--primary);

}

.store-btn i{

    font-size:32px;

}

.store-btn small{

    display:block;

    font-size:11px;

    letter-spacing:.5px;

}

.store-btn strong{

    font-size:16px;

}
/*======================================================
PRODUCTS & SERVICES
======================================================*/

.products{

    background:#fff;

}

.products-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.product-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:40px 35px;

    transition:var(--transition);

    box-shadow:var(--shadow);

    position:relative;

}

.product-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.product-icon{

    width:70px;

    height:70px;

    border-radius:18px;

    background:var(--primary-light);

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:25px;

}

.product-icon i{

    font-size:30px;

    color:var(--primary);

}

.product-card h3{

    margin-bottom:15px;

    font-size:24px;

}

.product-card p{

    color:var(--text);

    margin-bottom:30px;

}

.product-card a{

    color:var(--primary);

    font-weight:600;

    display:inline-flex;

    align-items:center;

    gap:8px;

}

.product-card a i{

    transition:var(--transition);

}

.product-card:hover a i{

    transform:translateX(6px);

}

.product-card.featured{

    background:var(--primary);

    color:#fff;

}

.product-card.featured .product-icon{

    background:rgba(255,255,255,.15);

}

.product-card.featured .product-icon i{

    color:#fff;

}

.product-card.featured p{

    color:rgba(255,255,255,.9);

}

.product-card.featured a{

    color:#fff;

}
/*======================================================
ABOUT
======================================================*/

.about-medef{

    background:var(--background);

}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    position:relative;

}

.about-image img{

    width:100%;

    border-radius:20px;

    box-shadow:var(--shadow);

}

.about-content h2{

    font-size:42px;

    margin:18px 0 25px;

    line-height:1.2;

}

.about-content p{

    color:var(--text);

    margin-bottom:20px;

}

.about-highlights{

    margin:40px 0;

    display:grid;

    gap:20px;

}

.highlight-card{

    display:flex;

    gap:20px;

    background:#fff;

    border-radius:15px;

    padding:22px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

.highlight-card i{

    width:60px;

    height:60px;

    background:var(--primary-light);

    color:var(--primary);

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex-shrink:0;

}

.highlight-card h4{

    margin-bottom:8px;

    font-size:20px;

}

.highlight-card p{

    margin:0;

}
/*======================================================
LEADERSHIP
======================================================*/

.leadership{

    background:#fff;

}

.leadership-group{

    margin-top:70px;

}

.group-title{

    font-size:32px;

    margin-bottom:35px;

    color:var(--primary);

}

.featured-profile{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:50px;

    align-items:center;

    background:#fff;

    padding:40px;

    border-radius:20px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    margin-bottom:50px;

}

.featured-profile.reverse{

    grid-template-columns:1fr 320px;

}

.featured-image img{

    width:100%;

    border-radius:20px;

}

.position{

    display:inline-block;

    background:var(--primary-light);

    color:var(--primary);

    padding:8px 18px;

    border-radius:30px;

    margin-bottom:18px;

    font-weight:600;

}

.featured-content h3{

    font-size:34px;

    margin-bottom:20px;

}

.featured-content p{

    color:var(--text);

}

.leadership-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.leader-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    text-align:center;

    padding:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.leader-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.leader-card img{

    width:140px;

    height:140px;

    object-fit:cover;

    border-radius:50%;

    margin:0 auto 20px;

}

.leader-card h4{

    font-size:20px;

    margin-bottom:8px;

}

.leader-card span{

    color:var(--text);

    font-size:15px;

}
/*======================================================
NEWS
======================================================*/

.news{

    background:var(--background);

}

.news-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.news-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    transition:var(--transition);

}

.news-card:hover{

    transform:translateY(-8px);

}

.news-image{

    position:relative;

    overflow:hidden;

}

.news-image img{

    width:100%;

    height:240px;

    object-fit:cover;

    transition:.5s;

}

.news-card:hover .news-image img{

    transform:scale(1.08);

}

.news-category{

    position:absolute;

    top:18px;

    left:18px;

    background:var(--primary);

    color:#fff;

    padding:8px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}

.news-content{

    padding:30px;

}

.news-date{

    color:var(--text);

    font-size:14px;

    display:block;

    margin-bottom:15px;

}

.news-content h3{

    font-size:24px;

    line-height:1.4;

    margin-bottom:15px;

}

.news-content p{

    color:var(--text);

    margin-bottom:25px;

}

.news-content a{

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:var(--primary);

    font-weight:600;

}

.news-content a i{

    transition:var(--transition);

}

.news-card:hover a i{

    transform:translateX(6px);

}

.news-button{

    text-align:center;

    margin-top:60px;

}
/*======================================================
FOOTER
======================================================*/

.footer{

    background:#1C1F1D;

    color:#d8d8d8;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1.4fr;

    gap:50px;

}

.footer-logo{

    width:180px;

    margin-bottom:25px;

}

.footer-column p{

    line-height:1.9;

    margin-bottom:30px;

    color:#bfbfbf;

}

.footer-column h3{

    color:#fff;

    margin-bottom:25px;

    font-size:22px;

}

.footer-column ul{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer-column ul li a{

    color:#bfbfbf;

    transition:var(--transition);

}

.footer-column ul li a:hover{

    color:#fff;

    padding-left:8px;

}

.social-links{

    display:flex;

    gap:15px;

}

.social-links a{

    width:45px;

    height:45px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    display:flex;

    justify-content:center;

    align-items:center;

    transition:var(--transition);

}

.social-links a:hover{

    background:var(--primary);

}

.footer-contact li{

    display:flex;

    gap:15px;

    align-items:flex-start;

}

.footer-contact i{

    color:var(--primary);

    margin-top:5px;

    min-width:18px;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.1);

    margin-top:70px;

    padding-top:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.footer-bottom-links{

    display:flex;

    gap:25px;

}

.footer-bottom-links a{

    color:#bfbfbf;

    transition:var(--transition);

}

.footer-bottom-links a:hover{

    color:#fff;

}
.header.scrolled{
    box-shadow:0 10px 30px rgba(0,0,0,.10);
    transition:box-shadow .3s ease;
}