/* ===== 1. FONTS & FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,500;0,700;1,300;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* ===== 2. BASIC RESET & CORE LAYOUT ===== */
body {    
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif; /* Applied imported font here */
}
         
img {
    max-width: 100%;
    height: auto;
    display: block; 
}

#container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;            
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);            
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer stays at the bottom */
}

#main-content {
    display: flex;
    flex: 1; 
    padding: 20px;
}

/* ===== 3. STANDARD SITE HEADER & FOOTER ===== */
header {
    background-color: #10331a;
    color: white;
    text-align: center;
}

#header-image {
    width: 100%;
    height: 100%; 
    color: black;
    background-color: silver; 
    margin-bottom: 5px;
    overflow: hidden;
}

#header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#header-links {
    padding: 10px 0;
    color: white;
    background-color: #10331a;
}

#header-links a {
    color: yellow;
    text-decoration: none;
    padding: 0 15px;
}

footer {
    text-align: center;
    padding: 10px 20px;
    background-color: #10331a;
    color: white;
    font-size: 0.9em;
    margin-top: auto; 
}

/* ===== 4. MULTI-COLUMN NAVIGATION PANELS ===== */
.navigation {
    padding: 15px;
    background-color: #eee;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navigation h2 {
    margin-top: 0;
    color: darkgreen; 
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.navigation ul {
    list-style: none;
    padding: 0;
}

.navigation li {
    margin-bottom: 8px;
}

.navigation a {
    text-decoration: none;
    color: #33076b; 
    display: block;
}

.navigation a:hover {
    text-decoration: underline;
}

#left-nav {
    flex: 1; 
    margin-right: 20px;
    min-width: 180px;
}

.author-section ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid #ddd;
}

.author-section h3 {
    margin: 0;
    color: #222;
    font-size: 1.1em;
    cursor: pointer;
}

#center-content {
    flex: 3; 
    padding: 20px;
    background-color: white;
    border-left: 1px solid white;
    border-right: 1px solid white;
}

#center-content h2 {
    color: #33076b; 
}

#right-nav {
    flex: 1; 
    margin-left: 20px;
    min-width: 180px;
}

/* ===== 5. SLIM ARTICLE HEADER ===== */
.article-slim-header {
    background-color: #0b2914; 
    padding: 25px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-slim-header h1, 
.article-slim-header h1 a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.article-slim-header #header-links {
    color: #ffffff; 
    font-size: 1.05rem;
}

.article-slim-header #header-links a {
    color: #FFB612 !important; 
    text-decoration: none;
    margin: 0 5px;
}

.article-slim-header #header-links a:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

/* ===== 6. ARTICLE & POST TYPOGRAPHY ===== */
.article {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: black;
    background-color: white;
}

.article p {
    line-height: 1.6;
    margin-bottom: 1.2em;
}

.article h1, .article h2, .article h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.article a {
    color: #10331a;
    text-decoration: underline;
}

.article a:hover {
    color: #0d2915;
}

.post {
    background: white;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.bordered-paragraph {
    border: 5px solid green;
    padding: 5px; 
}

/* ===== 7. COMMENT SYSTEM ===== */
.comments {
    margin-top: 20px;
    width: 100%;
}

.comment {
    background: #f0f0f0;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.comment strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.comment-form {
    margin-top: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form button {
    padding: 8px 12px;
    background-color: #10331a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #0d2915; 
}

.email-note {
    font-size: 12px;
    color: #666;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* ===== 8. THEATRE SCRIPT DESIGN ===== */
.play-script {
    max-width: 750px;       
    margin: 2rem auto;      
    line-height: 1.6;       
    font-size: 1.1rem;      
    color: #333;            
}

.play-script p {
    padding-left: 70px;     
    text-indent: -70px;     
    margin-bottom: 0.25rem; 
    margin-top: 0;
}

.play-script p strong:first-child {
    display: inline-block;
    width: 60px;            
    text-align: right;
    margin-right: 10px;
    text-indent: 0;         
    vertical-align: top;
    color: #000;            
}

.play-script p:not(:has(strong:first-child)) {
    text-indent: 0;
}

/* ===== 9. WHATSAPP DIALOGUE LOOK ===== */
.wa-wrapper {
    display: flex;
    width: 100%;
    margin: 12px 0; 
    clear: both;
}

.wa-right {
    justify-content: flex-end;
}

.wa-bubble {
    display: block;
    max-width: 80%; 
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    word-wrap: break-word; 
}

.wa-received {
    background-color: #f1f1f1 !important;
    color: #111b21 !important;
    border-top-left-radius: 2px;
    margin-right: auto; 
}

.wa-sent {
    background-color: #dcf8c6 !important;
    color: #111b21 !important;
    border-top-right-radius: 2px;
    margin-left: auto; 
}

/* ===== 10. LONGHAND/PARCHMENT TEXTBOX ===== */
.custom-textbox {
    font-family: 'Dancing Script', cursive;
    font-weight: 700; 
    font-size: 1.5rem; 
    line-height: 1.6;
    color: #222; 
    background-color: #fdfaf0; 
    padding: 20px;
    margin: 20px 0;
    border-left: 6px solid #d4a373; 
    border-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.textbox-heading {
    display: block;
    font-weight: bold;
    font-size: 1.7rem;
    margin-bottom: 8px;
    color: #8b5e3c;
    border-bottom: 1px solid #e0d1bc;
}

.custom-textbox p {
    display: inline; 
}

.custom-textbox p ~ p {
    display: block;
    margin-top: 10px;
}
