@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5dc; /* Beige */
    color: #222222; /* Dark Grey/Black */
    line-height: 1.6;
    padding: 20px;
}

/* 2. Main Content Area */
.text { /* Main container for .part elements */
    max-width: 800px; /* Readable width */
    margin: 0 auto;   /* Centering */
    background-color: #ffffff; /* White background for content area for contrast */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 3. Navbar */
.navbar {
    background-color: #edebe0; /* Slightly darker beige or a very light complementary color */
    padding: 15px 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .khary_bulbul {
    height: 40px; /* Adjusted size */
    width: auto;
    user-select: none;
}

.navbar .a { /* Navigation link in navbar */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222222; /* Match default text color */
    text-decoration: none; /* No underline by default for nav links */
    padding: 8px 0; /* Remove horizontal padding for cleaner text look */
    border-radius: 4px; /* Subtle rounding if background is added on hover */
    transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar .a:hover {
    color: #007bff; /* Accent color on hover */
    opacity: 0.8; /* Slight opacity change on hover */
    text-decoration: none; /* Ensure no underline on hover for these */
}

/* 4. Headings & Text Styling */
.title h1 { /* Changed from .title to .title h1 */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #222222;
    text-align: center;
    margin-bottom: 1.5em;
    padding-top: 1em;
}
/* Remove direct styling from .title div if it only contains h1 */
.title {
    text-align: center; /* Keep this if the h1 itself doesn't fill width */
}


.part {
    margin-bottom: 2.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #dddddd; /* Updated border color */
}

.part:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.part h2 { /* Changed from .part b to .part h2 */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111111;
    display: block;
    margin-bottom: 0.75em;
}

/* Styling for the new .collapsible-content wrapper */
.collapsible-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

.collapsible-content p,
.collapsible-content div { /* Target p and any nested divs within collapsible area */
    margin-bottom: 1em; /* Ensure paragraphs and divs have bottom margin */
}
/* Remove old general .part text styling if .collapsible-content handles it */
/* .part {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
} */


/* 5. Links (General) */
a {
    color: #222222; /* Match default text color */
    text-decoration: underline;
    text-decoration-color: #777777; /* Subtle underline */
    transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    text-decoration-color: #222222; /* Underline becomes solid dark */
    opacity: 0.75; /* Slight fade on hover */
}

/* 6. Scrollbar (Minimalistic) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5dc; /* Body beige color */
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0; /* Mid-grey for thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0; /* Darker grey on hover */
}

/* 7. Toggle Button */
.toggle-btn {
    background-color: transparent;
    color: #333333;
    border: 1px solid #cccccc;
    padding: 4px 8px; /* Slightly adjusted padding */
    font-size: 1rem;   /* Slightly larger for clarity */
    font-weight: normal; /* Normal weight for symbols */
    line-height: 1;    /* For better vertical centering of + / - symbols */
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-left: 10px;
    margin-top: 0px; /* Adjust to align with title baseline if needed */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-btn:hover {
    background-color: #f0f0f0; /* Very light grey on hover */
    border-color: #bbbbbb;
}

/* Clearfix for .part containing floated .toggle-btn */
.part::after {
    content: "";
    clear: both;
    display: table;
}

/* 8. Collapsed State (CSS Driven - JS should only toggle the class) */
.part.collapsed .collapsible-content {
    display: none;
}
/* Ensure title (now h2) and button are always visible - they are outside .collapsible-content */
/* No specific rules needed here if .collapsible-content is the only thing hidden by display:none */


/* 9. iFrame */
iframe {
    width: 100%;
    border: 1px solid #dddddd; /* Subtle border */
    margin-bottom: 20px;
    border-radius: 6px;
}

/* 10. Media Queries (Simplified for new layout) */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .text {
        padding: 20px;
        margin: 0 10px; /* Allow some margin on tablets */
        width: auto;
    }
    .navbar {
        flex-direction: column;
        padding: 15px;
        height: auto;
    }
    .navbar .khary_bulbul {
        margin-bottom: 10px;
    }
    .navbar .a {
        display: block; /* Stack links */
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    .title h1 { /* Targeting h1 inside .title */
        font-size: 1.8rem;
    }
    .part h2 {
        font-size: 1.15rem;
    }
    .toggle-btn {
        padding: 4px 8px; /* Ensure tappable size */
        font-size: 0.9rem; /* Keep it reasonably sized */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 0.9rem; /* Adjust base font size for mobile */
    }
    .text {
        padding: 15px;
        margin: 0; /* Full width on mobile */
        border-radius: 0; /* Optional: full-width feel */
    }
    .title h1 {
        font-size: 1.6rem;
    }
    .part h2 {
        font-size: 1.1rem;
    }
    .navbar .a {
        font-size: 0.9rem;
    }
    .toggle-btn {
        float: none; /* Stack button below title */
        display: block;
        margin: 10px 0 5px 0; /* Add some margin */
        padding: 6px 10px; /* Make it a larger tap target */
        text-align: center; /* Center button text like + / - */
    }
}

/* Remove specific styling for .part 1, .part 2 etc. if any existed beyond general .part */
/* Remove old font families if any linger: 'Oswald', 'Alfa Slab One', 'Comforter' */
/* Remove old gradient text styles, explicit old colors like yellow/red text, etc. */
/* Remove old scrollbar styles if they conflict (new ones are provided) */
/* Remove old opacity on navbar if it existed */
/* Ensure .fb-comments and .fb-like have appropriate styling if needed, or inherit reasonably */
.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget span iframe[style] {
    width: 100% !important;
}
.fb-comments {
    margin-bottom: 20px;
}
.about {
    width: 100%; /* From inline */
    height: auto; /* Changed from fixed 50px */
    color: #555555; /* Darker grey */
    font-size: 0.9rem; /* Was 30px, now smaller */
    margin-top: 40px; /* Was 30px */
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0; /* New border, removed bottom from previous */
}
.about p { /* Ensure p tag inside about has no extra margins if not desired */
    margin: 0;
}
.about a {
    color: #222222;
    text-decoration: underline;
    text-decoration-color: #777777;
    font-weight: 600;
}

.about a:hover {
    text-decoration-color: #222222;
    opacity: 0.8;
}
.collapsible-content {
  will-change: height, opacity;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  overflow: hidden;
  opacity: 0;
  height: 0;
  display: block;
}
.part:not(.collapsed) .collapsible-content {
  opacity: 1;
}
