/* Referencing Guides - Clean Academic Style */
/* Professional book-like design with improved readability */

.document-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3.5rem 4rem;
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.02);
}

/* Typography - Book Style with Enhanced Readability */
h1 {
    font-size: 2.8rem;
    font-weight: 500;
    color: #1a2a2a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #e2e2e0;
    padding-bottom: 1.2rem;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
}

h1 span {
    color: #8B5A2B;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a2a2a;
    margin: 2.5rem 0 1.2rem;
    padding-top: 1rem;
    font-family: 'Cormorant Garamond',  'Times New Roman', 'Georgia', Times, serif;
    letter-spacing: -0.2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e2f;
    margin: 1.8rem 0 1rem;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #8B5A2B;
    margin: 1.5rem 0 0.75rem;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
}

p {
    margin-bottom: 1.25rem;
    color: #2c3e2f;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Hero / Title Section */
.hero {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e2e2e0;
    padding-bottom: 1.5rem;
}

.hero h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.2rem;
    color: #6b5a4a;
    font-style: normal;
    font-weight: 400;
}

.badge {
    display: inline-block;
    background: #f5efe6;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    color: #8B5A2B;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
    margin-top: 0.75rem;
    letter-spacing: 0.3px;
}

/* Table of Contents - Elegant Style */
.toc {
    background: #faf8f3;
    border: 1px solid #e6e2d8;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8B5A2B;
    font-weight: 500;
}

.toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    list-style: none;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    text-decoration: none;
    color: #4a5b4a;
    font-size: 1rem;
    transition: color 0.2s ease;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
    border-bottom: 1px dotted transparent;
}

.toc-list a:hover {
    color: #8B5A2B;
    border-bottom-color: #8B5A2B;
}

/* Citation Formats - Clean Monospace with Better Readability */
.citation-format {
    background: #f9f7f2;
    border-left: 4px solid #8B5A2B;
    padding: 1rem 1.5rem;
    font-family: 'Times New Roman';
    font-size: 0.95rem;
    margin: 1.25rem 0;
    overflow-x: auto;
    color: #2c3e2f;
    line-height: 1.5;
}

.citation-example {
    background: #fefefb;
    border: 1px solid #e8e4dc;
    padding: 1rem 1.5rem;
    font-family: 'Times New Roman';
    font-size: 0.95rem;
    margin: 0.75rem 0 1.25rem;
    overflow-x: auto;
    color: #2c3e2f;
    line-height: 1.5;
}

.example-quote {
    background: #f9f7f2;
    padding: 1.25rem 1.75rem;
    margin: 1.25rem 0;
    border-left: 4px solid #8B5A2B;
    font-style: normal;
    font-family: 'Times New Roman';
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Boxes - Subtle Academic Style */
.info-box {
    background: #f5f2eb;
    border: 1px solid #e2dcd0;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    font-size: 1rem;
    line-height: 1.65;
}

.warning-box {
    background: #fef6ea;
    border: 1px solid #e8d9c4;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    font-size: 1rem;
    line-height: 1.65;
}

.note-box {
    background: #ecf3e8;
    border: 1px solid #d4decb;
    padding: 1.25rem 1.75rem;
    margin: 1.75rem 0;
    font-size: 1rem;
    line-height: 1.65;
}

.info-box strong,
.warning-box strong,
.note-box strong {
    color: #8B5A2B;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Lists */
ul, ol {
    margin: 1rem 0 1.25rem 2rem;
    color: #2c3e2f;
    font-size: 1.05rem;
}

li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Tool Links */
.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e6e2d8;
}

.tool-link {
    background: none;
    padding: 0;
    text-decoration: none;
    color: #8B5A2B;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
    border-bottom: 1px dotted transparent;
}

.tool-link:hover {
    color: #5a3a1a;
    border-bottom-color: #5a3a1a;
}

.tool-link i {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* CTA Section - Understated */
.cta-section {
    background: #faf8f3;
    border: 1px solid #e6e2d8;
    padding: 2.5rem;
    text-align: center;
    margin: 3.5rem 0 1.5rem;
}

.cta-section h3 {
    color: #1e2a2e;
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 500;
}

.cta-section p {
    color: #5a6b5a;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2c6e4f;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease;
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', Times, serif;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover {
    background: #1e5a3e;
}

hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #e6e2d8;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .document-container {
        max-width: 95%;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .document-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p, .info-box, .warning-box, .note-box {
        font-size: 1rem;
    }
    
    .citation-format,
    .citation-example,
    .example-quote {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .toc {
        padding: 1.25rem;
    }
    
    .toc-list a {
        font-size: 0.9rem;
    }
    
    .tool-links {
        gap: 1rem;
    }
    
    .tool-link {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .document-container {
        padding: 1.2rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .citation-format,
    .citation-example,
    .example-quote {
        font-size: 0.75rem;
    }
    
    .toc-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}