footer .container {
    background-color: transparent !important;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
 }

 /* layout style */
body {
    margin-top: 0px; /* Adjust this value based on your navbar height */
    background-color: #f5f7fa;
    color: #333333;
    line-height: 1.6;
}

:root{
    --primary: #0984e3;
    --accent: #00b894;
    --muted: #6c757d;
    --card-radius: 12px;
    --surface: #ffffff;
}

/* Modern base tweaks */
html,body{height:100%;}
body{background: linear-gradient(180deg, #f7fbfd 0%, #f5f7fa 100%);} 
.container{max-width:1200px}
.section-title{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--primary);}
.section-title i{font-size:1.05rem}
.section-legend{color:var(--muted);font-size:.95rem;margin-bottom:1rem}

/* Buttons */
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:#0777c9;border-color:#0777c9}
.btn-outline-primary{color:var(--primary);border-color:var(--primary)}
.btn-outline-primary:hover{background:var(--primary);color:#fff}

/* Cards: unified modern look */
.card{border-radius:var(--card-radius);overflow:hidden}
.card.border-0{border:0}
.card .card-img-top{width:100%;height:auto;display:block}
.shadow-lg{box-shadow:0 10px 30px rgba(17,24,39,0.06)!important}
.shadow-sm{box-shadow:0 6px 18px rgba(17,24,39,0.04)!important}

/* Section spacing */
section{padding-top:3rem;padding-bottom:3rem}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.solving-simply {
    font-family: 'pacifico', cursive;
    font-size: 0.75rem;
    color: olive;
    letter-spacing: 1px;
    margin-top: 0.12rem;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}



/* Navbar style */

nav  {
    background-color: #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2.5rem;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}
.brand-name {
    font-family: 'poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3436;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-name:hover {
    color: #0984e3;
    transform: translateY(-1px);
}
.header-logo {
    height: 26px;
    width: auto;
    transition: transform 0.3s ease;
}
.nav-links {
    display: flex;
    gap: 1.0rem;
    align-items: center;
}
.nav-links a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    font-family: 'poppins', sans-serif;
}
.nav-links a:hover {
    color: #0984e3;
    transform: translateY(-1px);
}

/* Footer style */
footer {
    background-color: #2d3436;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}
footer .container {
    background-color: black !important;
}
.footer-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap:1rem;
}
.footer p{
    margin: 0;
    font-size: 0.95rem;
}
.footer a {
    color: #0984e3;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #6c5ce7;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}  
.footer-links a {
    margin: 0 8px;
    color: #007bff;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* registration form style */
  .registration-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .form-label {
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 0.5rem;
  }
  


/* login form style */
.login-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  align-content: center;
  align-items: center;
}   

.form-label {
    color: #495057;
}

.hidden {
  display: none;
}

/* card style*/

/* News & Gallery custom styles */
.news-gallery .carousel-img {
    height: 320px;
    object-fit: cover;
}
.news-gallery .caption-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Article cards styling - matching service section */
.news-gallery .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.news-gallery .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.news-gallery .card-body {
    padding: 1.5rem;
}

.news-gallery .card {
    display: flex;
    flex-direction: column;
}

.news-gallery .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-gallery .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.news-gallery .card-text {
    font-size: 0.8rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
    margin-bottom: 0.5rem;
}

/* Make text even smaller on mobile */
@media (max-width: 767px) {
    .news-gallery .card-title {
        font-size: 0.9rem;
    }
    .news-gallery .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.8em;
    }
}
/* unified article-thumb wrapper (keeps 4:3 ratio) */
.news-gallery .article-thumb-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 0.75rem 0.75rem 0 0;
    max-height: 160px; /* Control maximum height */
}

.news-gallery .article-thumb-wrapper::before {
    content: '';
    display: block;
    padding-top: 75%; /* Maintain 4:3 aspect ratio */
}

.news-gallery .article-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* small CTA card under the carousel on the left */
.news-gallery .gallery-cta-card {
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}
.news-gallery .gallery-cta-card .card-body {
    padding: 1rem 1.25rem;
}

@media (max-width: 767px) {
    .news-gallery .article-thumb-wrapper {
        padding-top: 60%; /* slightly shorter on mobile */
    }
    .news-gallery .gallery-cta-card { margin-top: .75rem; }
}

/* Admin dashboard small polish */
.admin-dashboard .card { transition: transform .15s ease, box-shadow .15s ease; }
.admin-dashboard .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(17,24,39,0.08); }
.admin-dashboard .card .me-3 { width:48px; height:48px; display:flex; align-items:center; justify-content:center; font-size:1.1rem }
.admin-dashboard .quick-actions .btn { text-align:left }

/* Study material: book-like reading styles */
.content-area {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.85;
    color: #1e1e1e;
    max-width: 72ch; /* comfortable measure */
    margin: 1.25rem auto;
    padding: 2.2rem 2.4rem;
    background: #fcfbf8; /* soft paper tone */
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(17,24,39,0.03);
    text-align: justify;
    hyphens: auto;
}
.content-area p { margin-bottom: 1.05rem; font-size: 1rem; }
.content-area h2, .content-area h3, .content-area h4 { font-family: 'Merriweather', serif; margin-top: 1.15rem; margin-bottom: 0.6rem; color: #162029 }
.content-area img { max-width: 100%; display: block; margin: 1rem auto; border-radius: 4px }

/* Drop cap for the first paragraph */
.content-area p:first-of-type::first-letter {
    float: left;
    font-size: 3.6rem;
    line-height: 0.8;
    padding-right: 0.65rem;
    padding-top: 0.04rem;
    font-weight: 700;
    color: var(--primary);
}

/* Slightly increase font on larger screens */
@media (min-width: 992px) {
    .content-area { font-size: 19px; padding: 2.6rem 3rem; }
    .content-area p { font-size: 1.02rem }
    .content-area p:first-of-type::first-letter { font-size: 4rem }
}

/* Reduce measure & padding on small screens for readability */
@media (max-width: 767px) {
    .content-area { max-width: 100%; padding: 1rem; font-size: 16px; line-height: 1.7 }
    .content-area p:first-of-type::first-letter { font-size: 2.6rem }
}

/* Lustria reading variant: elegant display serif for topics */
.content-area.lustria {
    font-family: 'Lustria', 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    letter-spacing: 0.2px;
    line-height: 1.95;
    color: #111317;
}
.content-area.lustria p { margin-bottom: 1.1rem; }
.content-area.lustria p:first-of-type::first-letter {
    color: #094a86; /* slightly darker accent */
}

/* Font variant helpers */
.content-area.font-merriweather { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }
.content-area.font-roboto { font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif; }
.content-area.font-lustria { font-family: 'Lustria', 'Merriweather', Georgia, serif; }
.content-area.font-notoserifbengali { font-family: 'Noto Serif Bengali', 'Merriweather', Georgia, serif; }

/* Utility font classes used across templates */
.book-font { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }
.bn-font { font-family: 'Kalpurush', 'Noto Serif Bengali', 'Hind Siliguri', serif; line-height:1.7; }


