/* =============================================== */
/* ১. গ্লোবাল স্টাইল (সার্বিক ডিজাইন)                */
/* =============================================== */
:root {
  /* Colors */
  --bx-primary: #3F38A2;
  --bx-accent: #9068FC;
  --bx-text: #111827;
  --bx-muted: #6B7280;
  --bx-white: #FFFFFF;
  --bx-bg: #F9FAFB;
  --bx-card: #FFFFFFCC;
  --bx-border: #E5E7EB;
  --star-color: #F59E0B;
  
  /* Layout */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --max-width: 1200px;
}

@font-face {
  font-family: 'Hind Siliguri';
  src: url('../Font/HindSiliguri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'SolaimanLipi';
  src: url('../Font/SolaimanLipi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* গ্লোবাল অ্যানিমেশন */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--bx-bg);
  color: var(--bx-text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin-inline: auto; padding: 12px; }

.section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; text-align: center; }
.section-lead { color: var(--bx-muted); margin: 0 auto 32px auto; text-align: center; max-width: 600px; }

/* =============================================== */
/* ২. বাটন ও কম্পোনেন্ট                            */
/* =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--bx-primary), var(--bx-accent)); color: var(--bx-white); }
.btn.ghost { background: transparent; border-color: var(--bx-border); color: var(--bx-primary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* =============================================== */
/* General Utility Classes                         */
/* =============================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body.no-scroll {
    overflow: hidden;
}

/* =============================================== */
/* ৩. হেডার (sections/header.php)                 */
/* =============================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bx-border);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding-top: 0px;
    padding-bottom: 0px;
}

/* On-Scroll Effect */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* Fixed underscore typo here */
    padding-top: 0px;
    padding-bottom: 0px;
}

.nav-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 24px;
}

.brand { 
    display: flex; 
    align-items: center; 
    color: var(--bx-text);
    text-decoration: none;
}

.brand img { 
    height: 38px; 
    transition: height 0.3s ease;
}

.site-header.scrolled .brand img {
    height: 28px;
}

.main-menu { 
    display: flex; 
    gap: 28px; 
    align-items: center; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.main-menu a { 
    position: relative;
    font-weight: 600; 
    color: var(--bx-text-secondary, #374151); 
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease; 
}

.main-menu a:hover { 
    color: var(--bx-primary); 
}

.main-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--bx-accent);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.cta-button {
    display: block;
    transition: font-size 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled .cta-button {
    font-size: 12px; 
    padding: 6px 14px; 
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--bx-text);
}

.mobile-toggle .icon-close {
    display: none;
}

/* =============================================== */
/* হেডার রেসপন্সিভ মিডিয়া কোয়েরি                  */
/* =============================================== */
@media (max-width: 768px) {
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--bx-border);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }
    
    .site-header.nav-open .primary-navigation {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-menu {
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
    }

    .main-menu a {
        font-size: 18px;
    }

    .cta-button {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
    
    .site-header.nav-open .mobile-toggle .icon-hamburger {
        display: none;
    }
    .site-header.nav-open .mobile-toggle .icon-close {
        display: block;
    }
}

/* =============================================== */
/* ৪. হিরো সেকশন (sections/hero-section.php)       */
/* =============================================== */
.hero {
    background: linear-gradient(135deg, var(--bx-primary) 0%, #4B44BE 40%, var(--bx-accent) 100%);
    color: #F3F4F6;
    padding: 80px 0;
    overflow: hidden; 
}

.hero-wrap { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 48px; 
    align-items: center; 
}

/* --- Animation Settings --- */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-kpis { animation-delay: 0.5s; }
.hero-art {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

/* --- Content Styling --- */
.hero-badge { 
    display: inline-block; 
    padding: 6px 14px; 
    border: 1px solid rgba(255, 255, 255, 0.35); 
    border-radius: 999px; 
    color: #E8E9FF; 
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 { 
    font-size: clamp(32px, 5vw, 52px); 
    line-height: 1.2; 
    margin: 0 0 16px; 
}

.hero p { 
    font-size: clamp(16px, 2.2vw, 18px); 
    color: #E8E9FF; 
    margin: 0 0 24px; 
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-kpis { 
    display: flex; 
    gap: 18px; 
    flex-wrap: wrap; 
    margin-top: 32px; 
}

.kpi { 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px; 
    border-radius: 14px; 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255, 255, 255, 0.25); 
    font-weight: 600;
}
.kpi svg {
    width: 20px;
    height: 20px;
    color: #c7d2fe;
}

.hero-art .device { 
    border-radius: 16px; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 18px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Responsive styles for Hero Section --- */
@media (max-width: 992px) {
    .hero-wrap {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .hero-actions, .hero-kpis {
        justify-content: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-art {
        margin-top: 48px;
    }
}

/* =============================================== */
/* ৫. ক্লায়েন্ট বেল্ট (sections/clients-belt.php)     */
/* =============================================== */
.client-logos-belt { padding: 48px 0; }
.belt-viewport { position: relative; height: 80px; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.belt-track { display: inline-flex; align-items: center; gap: 56px; padding-inline: 56px; height: 100%; animation: scroll-left 28s linear infinite; will-change: transform; }
.belt-viewport:hover .belt-track { animation-play-state: paused; }
.belt-track img { max-width: 150px; max-height: 60px; object-fit: contain; filter: grayscale(100%) contrast(105%); opacity: 0.85; transition: all .25s ease; }
.belt-track img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.04); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================= */
/* ৬. সার্ভিস সেকশন (sections/services-section.php) */
/* ============================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    perspective: 1000px; 
}

.service-card {
    background: var(--bx-white);
    border-radius: var(--radius);
    border: 1px solid var(--bx-border);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;   
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card article {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.service-card .icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(63, 56, 162, 0.08), rgba(144, 104, 252, 0.12));
    color: var(--bx-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease-out;
}

.service-card .icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin: 0 0 10px 0;
    font-size: 21px;
    color: var(--bx-text);
    transition: color 0.3s ease-out 0.1s;
}

.service-card p {
    color: var(--bx-muted);
    margin: 0;
    line-height: 1.7;
    flex-grow: 1;
    transition: color 0.3s ease-out 0.15s;
}

.service-card-link {
    margin-top: 20px;
    color: var(--bx-primary);
    font-weight: 700;
    display: inline-block;
    transition: color 0.3s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; 
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.service-card:hover {
    border-color: var(--bx-primary);
    transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
    box-shadow: 0 25px 50px rgba(63, 56, 162, 0.2);
}

.service-card:hover::before {
    left: 150%; 
}

.service-card:hover .icon {
    transform: scale(1.1);
    background: var(--bx-primary);
    color: var(--bx-white);
    box-shadow: 0 10px 20px rgba(63, 56, 162, 0.3);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--bx-text); 
}

.service-card:hover .service-card-link {
    color: var(--bx-accent);
}

@media (max-width: 768px) {
    .services-grid {
        gap: 20px;
        perspective: none; 
    }
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(63, 56, 162, 0.15);
    }
    .service-card article {
        padding: 24px;
    }
}

/* =============================================== */
/* ৭. টেস্টিমোনিয়াল                                 */
/* =============================================== */
.modern-testimonial-section {
    padding: 80px 0;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #E6FFFA;
    color: #2C7A7B;
    border: 1px solid #B2F5EA;
    border-radius: 999px;
    font-size: 0.875rem; 
    font-weight: 600;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2.5rem; 
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 16px;
}

.section-heading .highlight-text {
    background-color: #FF6B6B;
    color: white;
    padding: 2px 12px;
    border-radius: 8px;
    white-space: nowrap; 
}

.section-subheading {
    font-size: 1.125rem; 
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 1.25rem; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.card-quote {
    font-size: 3rem; 
    font-weight: 700;
    color: #E2E8F0;
    line-height: 1;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem; 
    color: #718096;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex-grow: 1; 
}

.card-text .text-highlight {
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1A202C;
    font-weight: 500;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; 
}

.author-logo {
    height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.author-details {
    text-align: left;
}

.author-name {
    font-size: 1rem; 
    font-weight: 600;
    margin: 0;
    color: #1A202C;
}

.author-title {
    font-size: 0.875rem; 
    margin: 0;
    color: #718096;
}

@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-heading {
        font-size: 2.25rem; 
    }
}

@media (max-width: 768px) {
    .modern-testimonial-section {
        padding: 60px 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .section-heading {
        font-size: 1.875rem; 
    }
    .section-subheading {
        font-size: 1rem; 
    }
}

/* =============================================== */
/* ৯. ফুটার (sections/footer.php)                 */
/* =============================================== */
.site-footer {
  background-color: #1a1a1a; 
  color: #ffffff;            
  padding: 60px 20px 30px 20px; 
  font-family: 'SolaimanLipi', sans-serif; /* Added quotes for font name */
  line-height: 1.6;                
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; 
  max-width: 1200px; 
  margin: 0 auto;    
  padding-bottom: 30px;
  margin-bottom: 30px; 
  border-bottom: 1px solid #333333; 
}

.footer-col .col-title {
  color: #ab73ff;           
  font-weight: 700;
  font-size: 1.1rem;        
  margin: 0 0 20px 0;       
}

.footer-col .col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;                
}

.footer-col a {
  color: #ffffff;           
  text-decoration: none;    
  transition: color 0.3s ease; 
}

.footer-col a:hover {
  color: #ff9d00;           
  text-decoration: underline; 
}

.copyright {
  text-align: center;
  padding-top: 0;           
  font-size: 0.9rem;
  color: #ffffff;          
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 550px) {
  .footer-grid {
    grid-template-columns: 1fr; 
    gap: 30px;
  }
  .footer-col {
    text-align: center; 
  }
  .site-footer {
     padding-top: 40px;
     padding-bottom: 20px;
  }
}

/* =============================================== */
/* ১০. রেসপন্সিভ ডিজাইন গ্লোবাল (Fix Applied)        */
/* =============================================== */
@media (max-width: 900px) {
  /* Removed .main-menu hide rule from here to prevent conflicts with 768px */
  .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons, .hero-kpis { justify-content: center; }
  .hero-art { margin-top: 32px; }
  .t-grid { grid-template-columns: 1fr; }
  .form-group { grid-column: span 12; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================== */
/* ১১. ফ্লোটিং হোয়াটসঅ্যাপ বাটন                    */
/* =============================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* ======================================================= */
/* ১২. আমরা কেন সেরা সেকশন                                   */
/* ======================================================= */
.why-us-light-theme {
    background-color: #f9fafb;
    padding: 80px 20px; 
    overflow: hidden; 
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px; 
    opacity: 0; 
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.section-header .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.section-header .section-lead {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 50px;
    align-items: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0; 
}

.features-list .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 12px;
}

.features-list .icon svg {
    width: 28px;
    height: 28px;
}

.features-list h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 5px;
}

.features-list p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.features-list li:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}
.features-list li:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}
.features-list li:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.image-container img {
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
    .why-us-light-theme {
        padding: 120px 0; 
    }
    .why-us-grid {
        grid-template-columns: 1.1fr 0.9fr; 
    }
}

/* =============================================== */
/* --- ব্লগ সেকশন --- */
/* =============================================== */
.blog-section .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; 
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
  gap: 1rem;
}

.blog-header .title-part .subtitle {
  font-size: 1rem;
  color: var(--bx-primary); 
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-header .title-part .main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bx-text); 
  margin: 0;
}

.blog-header .view-more-btn {
  background-color: var(--bx-primary);
  color: var(--bx-white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.blog-header .view-more-btn:hover,
.blog-header .view-more-btn:focus {
  background-color: var(--bx-accent); 
  transform: translateY(-2px);
}

.blog-header .view-more-btn:focus-visible {
  outline: none;
  border-color: var(--bx-accent);
  box-shadow: 0 0 0 3px var(--bx-border);
}

.blog-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: var(--bx-card); 
  backdrop-filter: blur(10px); 
  border: 1px solid var(--bx-border);
  border-radius: var(--radius); 
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow); 
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}

.blog-card .category {
  font-size: 0.875rem;
  color: var(--bx-muted); 
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-card .post-title {
  font-size: 1.25rem;
  font-weight: 700; 
  color: var(--bx-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.blog-card .read-more-link {
  font-size: 1rem;
  color: var(--bx-primary);
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; 
}

.blog-card .read-more-link:hover {
  color: var(--bx-accent); 
}

@media (max-width: 1024px) {
  .blog-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-header .title-part .main-title {
    font-size: 1.75rem;
  }
  .blog-cards-container {
    grid-template-columns: 1fr;
  }
}

/* =============================================== */
/* ১৩. পোর্টফোলিও সেকশন (হোমপেইজ)                  */
/* =============================================== */
.portfolio-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.portfolio-card {
    display: block;
    background: var(--bx-white);
    border-radius: var(--radius);
    border: 1px solid var(--bx-border);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card-content {
    padding: 20px;
}

.portfolio-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--bx-text);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--bx-primary);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-actions {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .portfolio-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid-home {
        grid-template-columns: 1fr;
    }
}