﻿html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-y: scroll; /* it it is stop jumping*/
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: 80px;
    padding-bottom: 60px;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f0f0f0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap; /* ছোট স্ক্রিনে ব্রেক করবে */
}

/* Logo */
.logo {
    height: 50px;
    width: auto;
}

/* Text */
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    text-align: left;
    margin-left: 10px;
}

    .header-text h2 {
        margin: 0;
        font-size: 30px;
        color: #B22222;
        font-weight: 700;
        font-family: 'Playfair Display', serif;
    }

    .header-text p {
        margin: 0;
        font-size: 14px;
        color: darkgreen;
        font-family: 'Raleway', sans-serif;
        font-weight: 500;
    }

.header-nav {
    display: flex;
    flex-wrap: wrap; /* ছোট স্ক্রিনে লাইন ব্রেক হবে */
}

    .header-nav .nav-link {
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
        margin: 28px 5px 0 0;
        padding: 0 4px;
        color: black;
        
    }

        .header-nav .nav-link:hover {
            color: #B22222;
            text-decoration: underline;
        }
.about-text {
    font-size: 1.2rem; /* readable size */
    line-height: 1.8; /* spacing between lines */
    color: #333; /* text color */
    text-align: center; /* center align */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
 
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
    padding: 0 30px;
}

    .footer .text {
        display: inline-block;
        white-space: nowrap;
        font-weight: bold;
        font-size: 18px;
        color: #B22222;
        animation: slide-left 15s linear infinite;
    }

    .footer .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
        width: 100%;
        overflow: hidden;
    }

@keyframes slide-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.login-form-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}


.card-img-left {
    width: 100px; /* fixed image width */
    height: 100px; /* fixed height */
    object-fit: cover; /* crop nicely */
   
    margin-right: 15px; /* space between image and text */
}

.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.card-body {
    padding: 0;
}




section {
    padding: 0;
}

    section h2 {
        font-weight: bold;
        color: #333;
        margin-top: 0;
        padding: 0;
    }

    section p.lead {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    section.container.my-1 {
        padding-top: 10px;
    }

    section h2, section p {
        margin-top: 0;
        margin-bottom: 10px;
    }

.home-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.Home-image {
    width: 100%;
    height: auto; /* ছবিকে responsive বানাবে */
    max-width: 600px; /* বড় স্ক্রিনে limit */
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px !important;
    }
}

.login-title {
    color: #B22222;
    line-height: 1.3;
    text-align: center;
  
}


.member-card-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.member-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    height: 550px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease-in-out;
    background-image: url('../webimage/gemin.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

    .member-card:hover {
        transform: translateY(-4px);
    }

.member-card-section,
.col-12.col-md-4.d-flex,
.col-12.col-md-4.member-card-section {
    padding: 5px; /* কম padding */
    margin: 0; /* margin মুছে ফেলা */
}


/* শুধুমাত্র Home Image আর Login Form এর কলামের gap কমাবে */
.home-image-col,
.login-form-col {
    padding-left: 5px !important;
    padding-right: 5px !important;
}



/* ==============================
   ✅ RESPONSIVE FIXES
   ============================== */

/* Tablet */
@media (max-width: 991px) {
    .header-text h2 {
        font-size: 24px;
    }

    .header-nav {
        margin-top: 10px;
        justify-content: center;
    }

    .Home-image {
        max-width: 100%;
        height: auto;
    }

    .member-card {
        height: auto;
        min-height: 250px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .member-card-section,
    .col-12.col-md-4.d-flex,
    .col-12.col-md-4.member-card-section {
        padding: 5px;
        margin: 0;
    }

    .member-card {
        max-width: 100%;
        height: 300px; /* shrink card height */
    }

    .Home-image {
        max-width: 100%;
        height: auto;
    }

    .login-form-container,
    .w-100 {
        max-width: 100%;
        padding: 0 10px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .header-text h2 {
        font-size: 22px;
    }

    .header-text p {
        font-size: 12px;
    }

    .header-nav .nav-link {
        margin: 5px 5px 0 0;
        font-size: 12px;
    }
}
/*Laptop (768–991.98px)*/

@media (min-width: 768px) and (max-width: 991.98px) {
    .member-card {
        height: 450px;
    }

    .Home-image {
        max-width: 90%;
    }

    .login-form-container {
        max-width: 320px;
    }

    .header-text h2 {
        font-size: 26px;
    }

    .login-title {
        font-size: 1.8rem;
    }
}



/*Desktop (992–1199.98px)*/

@media (min-width: 992px) {
    .Home-image {
        height: 585px; /* desktop এ fix height */
        max-width: 100%;
    }


.login-form-container {
    max-width: 350px;
}

.login-title {
    font-size: 2rem;
}
}

/*Large Desktop (1200px+)*/

@media (min-width: 1200px) {
    .member-card {
        height: 550px;
    }

    .Home-image {
        max-width: 100%;
        height: 580px;
        
    }

    .login-form-container {
        max-width: 350px;
    }

    .login-title {
        font-size: 2.2rem;
    }
}