:root {
    --primary-red: #cc3333;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --bg-nav: #f0f0f0;
    --footer-bg: #333333;
    --footer-bottom: #000000;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Caveat', cursive;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.site-header {
    text-align: center;
    padding-top: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
}

.logo-img {
    width: 50px;
    height: auto;
}

.site-nav {
    background-color: var(--bg-nav);
    padding: 15px 0;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.site-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #555;
}

.site-nav a:hover {
    color: var(--primary-red);
}

/* Featured Section */
.featured-section {
    padding: 50px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.section-header .line {
    height: 1px;
    background-color: #ccc;
    flex-grow: 1;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 15px;
}

.script-title {
    font-family: var(--font-script);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #000;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ui-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* Latest Articles Grid */
.latest-section {
    padding: 20px 20px 60px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.post-card {
    text-align: center;
}

.post-img-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 280px;
}

.post-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-red);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.post-info {
    padding: 0 20px;
}

.post-info .script-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.post-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Welcome Section */
.welcome-section {
    padding: 40px 20px 60px;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.welcome-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.welcome-content p {
    color: var(--text-light);
}

/* Partner Box */
.partner-box {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    background: #fff;
}

.partner-box .script-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.partner-logos {
    margin-bottom: 20px;
}

.partner-logos img {
    max-height: 50px;
    width: auto;
}

.partner-box p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #aaa;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--footer-bottom);
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #fff;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #a02622;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    right: -400px;
    bottom: 50px;
    width: 320px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    right: 20px;
}

.cookie-content {
    padding: 20px;
}

.cookie-content h4 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-accept {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
    flex-grow: 1;
}

.btn-accept:hover {
    background-color: #a02622;
}

.btn-close {
    background: none;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-close img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.btn-close:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .site-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        bottom: 20px;
    }
    
    .cookie-modal.show {
        right: 20px;
    }
}

/* Inner page styles */
/* INTERNAL PAGE SPECIFIC CSS */

.article-container {
    max-width: 900px;
    padding: 40px 20px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.hero-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.toc {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-red);
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.toc h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.toc ul {
    list-style: none;
    padding-left: 5px;
}

.toc ul li {
    margin-bottom: 10px;
}

.toc ul a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.toc ul a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.toc ul a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    font-family: var(--font-heading);
    margin: 40px 0 20px;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.8rem;
}

.article-content h4 {
    font-size: 1.5rem;
}

.article-content h5 {
    font-size: 1.3rem;
}

.article-content h6 {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-content span.highlight {
    background-color: #fff0f0;
    color: var(--primary-red);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
}

.in-article-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0 10px;
    display: block;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.img-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 35px;
    font-style: italic;
    display: block;
}

.article-content ul, 
.article-content ol {
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.article-content ul li {
    margin-bottom: 12px;
    list-style-type: square;
    color: var(--primary-red);
}

.article-content ul li span {
    color: #444;
}

.article-content ol li {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.article-content ol li span {
    font-weight: 400;
    color: #444;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: var(--footer-bg);
    color: #ffffff;
    text-align: left;
}

.styled-table th, 
.styled-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--bg-light);
}

.styled-table tbody tr:hover {
    background-color: #fcf4f4;
    transition: background-color 0.2s;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 3px solid var(--primary-red);
}

.forms-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #eaeaea;
}

@media(min-width: 768px) {
    .forms-container {
        grid-template-columns: 1fr 1fr;
    }
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #a02622;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 51, 51, 0.3);
}

.related-posts {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.related-posts-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
    .article-content h2 {
        font-size: 1.8rem;
    }
    .custom-form {
        padding: 20px;
    }
    .styled-table th, 
    .styled-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}