/*
    =====================================================
    |   UPDATED: সকল পেইজের জন্য প্রয়োজনীয় সাধারণ সিএসএস কোড (Light Theme)    |
    =====================================================
*/

/* --- Universal Scaling and Scrollbar Fix --- */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

/* --- Universal Header Logo Size --- */
/* More specific selector to avoid using !important */
header.site-header nav a img {
    height: 68px;
    width: auto;
}

/* --- Body and General Styles --- */
body {
    //*background-color: #F9FAFB;*/
    background-color: #FFFFFF;
    color: #374151;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- Main Layout Grid --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    flex-grow: 1;
}

.content-area {
    width: 100%;
    padding: 1rem;
}

/* --- Header Styles --- */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

/* More specific selector to avoid using !important */
.site-header .nav-link {
    color: #111827;
    transition: color 0.2s;
    font-weight: 700;
    font-size: 20px;
}
.nav-link:hover {
    color: #4F46E5;
}
.search-input {
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #111827;
    min-height: 44px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
}
.search-input::placeholder {
    color: #6B7280;
}

/* --- Utility Button Styles --- */
.utility-btn {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.my-button-class {
    color: white;
    background-color: #4F46E5;
}
#mobile-menu-button {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility Rule: This is a correct and important use of !important. 
    It forcefully stops animations for users who need it. So, we will keep it.
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Back to Top Button Styles */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #4F46E5;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}
#back-to-top.show {
    display: block;
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background-color: #4338CA;
}

/* --- Dark Footer Styles --- */
.site-footer {
    background-color: #1F2937;
    color: #D1D5DB;
}
.site-footer a {
    color: #A5B4FC;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* --- Reusable Container for Main Page Content --- */
.content-wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================================
    STYLES MOVED FROM OTHER FILES
=================================================
*/

/* === Common Form & Button Styles === */
.form-input, .form-textarea {
    background-color: #F9FAFB;
    border: 1px solid #D1D5DB;
    color: #111827;
    border-radius: 0.375rem;
}
.form-input:focus, .form-textarea:focus {
    border-color: #4F46E5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.glow-cta {
    position: relative;
    z-index: 1;
}
.glow-cta:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 9999px;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(15px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}
.glow-cta:hover:after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}
a.secondary-cta {
    background-color: transparent;
    border: 1px solid #D1D5DB;
    color: #374151;
    font-weight: 600;
}
a.secondary-cta:hover {
    background-color: #F3F4F6;
}

/* === Common Card Style === */
.contact-card {
    background-color: #FFFFFF;
    /* border: 1px solid #E5E7EB; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === Common Image Placeholder === */
.image-placeholder {
    background-color: #FFFFFF;
    /*border: 1px solid #E5E7EB;*/
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-style: italic;
    height: auto;
    min-height: 200px;
    margin: 1.5rem 0;
    padding: 1rem;
}

/* === Common Table Styles === */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
th, td {
    border: 1px solid #E5E7EB;
    padding: 0.75rem;
    text-align: left;
    color: #374151;
}
th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #111827;
}

/* === Common Final CTA Link === */
.final-cta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.125rem;
}

/* === Common Table of Contents (TOC) === */
.toc-container {
    background-color: #f3f4f6;
    border-left: 4px solid #4f46e5;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 0.5rem;
}
/* More specific selector to avoid using !important */
main .toc-container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    padding: 0;
    border: none;
}
.toc-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}
.toc-list li {
    margin-bottom: 0.5rem;
}
.toc-list a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}
.toc-list a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* === Common Content Box for Pages like Policy, Story, Tips === */
.content-box {
    background-color: #FFFFFF;
    /* The border is now applied by the box-shadow in most cases, or by the container like #practice-section */
}
.content-box h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1F2937;
    text-align: center;
    margin-bottom: 2rem;
}
.content-box h2, .content-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4338CA;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #C7D2FE;
}
.content-box p, .content-box li {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #374151;
}
.content-box ul {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 1rem;
}
.content-box p a, .content-box li a {
    color: #4F46E5;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.content-box p a:hover, .content-box li a:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* === Common Primary Button === */
.view-btn {
    background-color: #4F46E5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}
.view-btn:hover {
    background-color: #4338CA;
}

/* === Common Modal Style === */
#modal-content {
    background-color: #FFFFFF;
    color: #1F2937;
}
/* === Common Success & Error Message Colors === */
.success {
    color: #4ade80; /* Tailwind's green-400 */
}
.error {
    color: #f87171; /* Tailwind's red-400 */
}


