/* 
 * Main Stylesheet for Tikia With Grace
 * Version: 1.0.0
 * Last updated: 2025-06-07
 */

/* Import additional stylesheets */
@import url('footer.css');

/* Global reset to remove all default browser focus styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default focus styles globally */
*:focus,
*:active {
    outline: none !important;
}

/* Remove default button focus styles */
button:focus,
button:active,
input[type="button"]:focus,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:active {
    outline: none !important;
}

/* Remove default link focus styles */
a:focus,
a:active {
    outline: none !important;
}

/* Remove default form element focus styles */
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active {
    outline: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f0;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: #333;
    margin: 15px auto 0;
}

/* Header Styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10; /* Ensure header is always above cards */
    transition: all 0.3s ease;
}

/* Sticky header when scrolling */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 45px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.site-header.sticky .logo img {
    filter: none;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    padding: 4px 0;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7F503D;
    transition: width 0.3s ease;
    box-shadow: 0 1px 4px rgba(127, 80, 61, 0.5);
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Remove ugly focus borders and add custom focus styles */
.main-nav a:focus,
.main-nav a:active {
    outline: none;
    color: #7F503D;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
}

.main-nav a:focus::after,
.main-nav a:active::after {
    width: 100%;
}

.site-header.sticky .main-nav a:focus,
.site-header.sticky .main-nav a:active {
    outline: none;
    color: #7F503D;
}

/* Logo focus styles */
.logo a:focus,
.logo a:active {
    outline: none;
}

.logo img:focus,
.logo img:active {
    outline: none;
}

/* Button focus styles */
.btn:focus,
.btn:active {
    outline: none;
    background: #7F503D;
    color: #ffffff;
    border-color: #7F503D;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

.site-header.sticky .btn:focus,
.site-header.sticky .btn:active {
    outline: none;
    background: #7F503D;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

/* Mobile menu button focus styles */
.mobile-menu-btn:focus,
.mobile-menu-btn:active {
    outline: none;
}

/* General link focus styles */
a:focus,
a:active {
    outline: none;
}

/* Card link focus styles */
.card a:focus,
.card a:active {
    outline: none;
}

/* User dropdown focus styles */
.user-dropdown-btn:focus,
.user-dropdown-btn:active {
    outline: none;
}

.user-dropdown-content a:focus,
.user-dropdown-content a:active {
    outline: none;
    background: #f8f9fa;
    color: #7F503D;
}

/* Subscribe button focus styles */
.subscribe-form button:focus,
.subscribe-form button:active {
    outline: none;
    background: #7F503D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

/* Footer link focus styles */
.footer-nav-link:focus,
.footer-nav-link:active {
    outline: none;
    color: #7F503D;
}

/* Social icon focus styles */
.social-icon:focus,
.social-icon:active {
    outline: none;
    transform: translateY(-2px);
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #7F503D;
    box-shadow: 0 0 0 2px rgba(127, 80, 61, 0.2);
}

/* Comment form focus styles */
.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #7F503D;
    box-shadow: 0 0 0 2px rgba(127, 80, 61, 0.2);
}

.comment-form button:focus,
.comment-form button:active {
    outline: none;
    background: #7F503D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

/* Sticky navigation styles */
.site-header.sticky .main-nav a {
    color: #333;
    text-shadow: none;
}

.site-header.sticky .main-nav a::after {
    background: #7F503D;
    box-shadow: none;
}

.site-header.sticky .main-nav a:hover {
    color: #7F503D;
}

/* Donate button styling */
.btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
}

.btn:hover {
    background: #7F503D;
    color: #ffffff;
    border-color: #7F503D;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

.site-header.sticky .btn {
    background: transparent;
    color: #7F503D;
    border-color: #7F503D;
    text-shadow: none;
}

.site-header.sticky .btn:hover {
    background: #7F503D;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(127, 80, 61, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.site-header.sticky .mobile-menu-btn span {
    background-color: #333;
    box-shadow: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-bg-image, url('../images/hero-bg.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-content {
    z-index: 3;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.5s both;
    position: relative;
    z-index: 2;
}

.hero-taglines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
    width: 100%;
    max-width: 100%;
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.tagline .text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    transition: all 0.3s ease;
}

.tagline .line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: expandWidth 1s ease-out 1.1s both;
    transition: all 0.3s ease;
}

.tagline:hover .text {
    transform: translateY(-2px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.tagline:hover .line {
    max-width: 80px;
    background: linear-gradient(90deg, transparent, #ffffff, #ffffff, transparent);
}

/* Add a call-to-action button */
.hero-cta {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 1.4s both;
}

.hero-cta .btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Latest Articles Section */
.articles {
    padding: 5rem 2rem;
    background-color: #f5f5f0;
}

.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
}

.article-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(127,80,61,0.08), 0 1.5px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    width: 100%;
    max-width: 420px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.article-card .article-image {
    margin-top: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.article-card .article-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    margin: 0;
}

.article-card .card-content {
    padding: 0 0 2.2rem 0;
    background: #fff;
    border-radius: 0 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-card .card-divider {
    width: 40px;
    height: 3px;
    background: #7F503D;
    border-radius: 2px;
    margin: 1.5rem auto 1.2rem auto;
    opacity: 0.85;
}

.article-card .card-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: #3E2723;
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1.3;
}

/* Responsive adjustments for article cards */
@media (max-width: 900px) {
    .article-card {
        max-width: 100%;
        min-width: 0;
    }
    .article-card .article-image img {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .article-card {
        border-radius: 16px;
    }
    .article-card .article-image,
    .article-card .article-image img {
        border-radius: 16px 16px 0 0;
    }
    .article-card .card-content {
        border-radius: 0 0 16px 16px;
        padding-bottom: 1.2rem;
    }
    .article-card .card-title {
        font-size: 1.1rem;
        padding: 0 0.7rem;
    }
    .article-card .card-divider {
        margin: 1rem auto 0.7rem auto;
        height: 2px;
    }
}

.mindfulness-image {
    background-image: url('../images/mindfulness-image.jpg');
}

.meditation-image {
    background-image: url('../images/meditation-image.jpg');
}

.yoga-image {
    background-image: url('../images/yoga-image.jpg');
}

.card-image.services-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.9;
}

.card-image.services-placeholder i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-top: 8px;
}

.card h3 {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

/* About Section */
.about {
    background-color: #fff;
    padding: 80px 0;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.about-image {
    background-color: #f8f8f8;
    background-image: var(--about-bg-image, url('../images/about-placeholder.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #333;
    margin: 0 0 20px 0;
    text-align: left;
}

.about-divider {
    width: 40px;
    height: 2px;
    background-color: #8B4513;
    margin: 0 0 40px 0;
}

.about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    max-width: 480px;
    text-align: left;
}



/* Subscribe Section */
.subscribe {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
}

.subscribe p {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscribe-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background-color: #f5f5f0;
}

.subscribe-form button {
    padding: 0.7rem 2rem;
    background-color: #f5f5f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #333;
    color: #fff;
}

/* Flash Messages Styling */
.flash-message {
    padding: 16px 20px;
    margin: 15px auto;
    max-width: 90%;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    animation: slideInDown 0.4s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    backdrop-filter: blur(10px);
}

.flash-message .flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.flash-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.flash-message span {
    font-weight: 500;
    line-height: 1.4;
}

.flash-message.flash-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-message.flash-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-message.flash-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.flash-message.flash-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 12px;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Toast Container for AJAX notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    border-left: 4px solid;
    max-width: 100%;
}

.toast.success {
    border-left-color: #28a745;
    color: #155724;
}

.toast.error {
    border-left-color: #dc3545;
    color: #721c24;
}

.toast.warning {
    border-left-color: #ffc107;
    color: #856404;
}

.toast.info {
    border-left-color: #17a2b8;
    color: #0c5460;
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast .toast-content {
    flex: 1;
    font-weight: 500;
}

.toast .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: inherit;
}

.toast .toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100%); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideOutRight {
    from { 
        opacity: 1; 
        transform: translateX(0); 
    }
    to { 
        opacity: 0; 
        transform: translateX(100%); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Article Page Styles */
.article-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/mindfulness-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.article-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.article-hero h1 {
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1.5rem;
}

.article-hero h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: #fff;
    margin: 1.5rem auto 0;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: #fff;
}

.article-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 0.8;
    float: left;
    padding-right: 8px;
    margin-top: 5px;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.article-text h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    color: #333;
}

/* Comments Section */
.comments-section {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    background-color: #fff;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.comment-form {
    margin-bottom: 3rem;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    resize: none;
    background-color: #f5f5f0;
}

.comment-form button {
    padding: 0.7rem 2rem;
    background-color: #f5f5f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    float: right;
}

.comment-form button:hover {
    background-color: #333;
    color: #fff;
}

.comments-list {
    margin-top: 4rem;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.comment-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

/* Book Page Styles */
.book-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/book-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.book-hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.book-hero h1 {
    font-size: 3rem;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.book-hero h2 {
    font-size: 1.2rem;
    color: #f5f5f0;
    font-weight: 300;
    letter-spacing: 1px;
}

.book-content {
    padding: 4rem 2rem;
    background-color: #fff;
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.book-image-gallery {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.main-book-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-book-image img {
    width: 100%;
    height: auto;
    display: block;
}

.book-thumbnails {
    display: flex;
    justify-content: space-between;
}

.thumbnail {
    width: 30%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    opacity: 0.8;
}

.book-description {
    flex: 1;
    min-width: 300px;
}

.book-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.book-description p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.book-details {
    padding: 1.5rem 0;
}

.detail {
    display: flex;
    margin-bottom: 0.8rem;
}

.detail:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 600;
    width: 100px;
}

.book-purchase {
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 2rem;
    margin-bottom: 0;
}

.purchase-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background-color: #555;
}

/* Book Highlights Section */
.book-highlights {
    padding: 4rem 2rem;
    background-color: #f5f5f0;
}

.highlights-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.highlight-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.book-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.book-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quote-page {
    font-size: 0.9rem;
    color: #888;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.reviews-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.review {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.review-stars {
    color: #ffb400;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* Write Review Form */
.write-review {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f5f5f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.write-review h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ddd;
    background-color: #fff;
}

.rating-select {
    font-size: 1.5rem;
    color: #ccc;
}

.rating-select i {
    cursor: pointer;
    margin-right: 0.2rem;
}

.rating-select i:hover,
.rating-select i.active {
    color: #ffb400;
}

.submit-review {
    padding: 0.7rem 2rem;
    background-color: #f5f5f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    float: right;
}

.submit-review:hover {
    background-color: #333;
    color: #fff;
}

/* Authentication Nav Styling */
.auth-nav {
    display: flex;
    align-items: center;
}

.btn-login {
    margin-right: 10px;
    border: 1px solid #ccc;
    color: #333;
}

.btn-register {
    background-color: #333;
    color: white;
    border: 1px solid #333;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.user-dropdown-btn i:first-child {
    font-size: 1.2rem;
    margin-right: 8px;
}

.user-dropdown-btn i:last-child {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.2s;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 180px;
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.user-dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.user-dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.user-dropdown-content a:hover {
    background-color: #f5f5f5;
}

.user-dropdown-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.login-to-review {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
    margin-bottom: 2rem;
}

.login-to-review a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .about-image {
        min-height: 400px;
        order: 1;
    }
    
    .about-content {
        padding: 60px 40px;
        order: 2;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f5f5f0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        transition: background-color 0.3s;
    }
    
    .main-nav a:hover {
        background-color: #f5f5f0;
    }
    
    /* Hide dropdown functionality in mobile */
    .main-nav .dropdown-menu {
        display: none !important;
    }
    
    /* Remove dropdown indicators */
    .main-nav .dropdown-toggle::after {
        display: none;
    }
    
    /* Show donate as normal nav item in mobile */
    .donate-btn {
        display: block !important;
    }
    
    .main-nav .donate-btn {
        border: none !important;
        padding: 15px 20px !important;
        color: #333 !important;
        background: none !important;
        font-size: 16px !important;
        font-weight: normal !important;
        letter-spacing: normal !important;
        transition: background-color 0.3s !important;
        border-radius: 0 !important;
    }
    
    .main-nav .donate-btn:hover {
        background-color: #f5f5f0 !important;
        color: #333 !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hamburger animation */
    .mobile-menu-btn span {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
        .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 20px;
        min-height: 100%;
        justify-content: center;
    }
    
    .site-header {
        padding: 1rem 1.5rem;
        top: 15px;
    }

    .logo img {
        max-height: 40px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .hero-taglines {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tagline {
        gap: 0.8rem;
    }

    .tagline .text {
        font-size: clamp(0.8rem, 3vw, 1rem);
        letter-spacing: 2px;
    }

    .tagline .line {
        max-width: 35px;
    }

    .hero-cta .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
    
    .article-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 90%;
        max-width: 400px;
    }
    
    .about-content {
        padding: 40px 30px;
    }
    
    .about-title {
        font-size: 20px;
        letter-spacing: 1.5px;
    }
    
    .about-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* Footer responsive styles are handled in footer.css */
    
    /* Article page responsive */
    .article-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .first-letter {
        font-size: 3rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 1rem;
    }
    
    /* Book page responsive */
    .book-hero h1 {
        font-size: 2.5rem;
    }
    
    .book-container {
        flex-direction: column;
    }
    
    .book-image-gallery {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .highlights-container {
        grid-template-columns: 1fr;
    }
    
    .book-purchase {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price {
        margin-bottom: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviewer-avatar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0 10px;
        min-height: 100%;
        justify-content: center;
        max-width: 100%;
        width: 100%;
    }
    
    .site-header {
        padding: 0.8rem 1rem;
        top: 10px;
    }

    .logo img {
        max-height: 35px;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }

    .hero-taglines {
        gap: 0.3rem;
        margin-bottom: 1rem;
    }

    .tagline {
        gap: 0.5rem;
    }

    .tagline .text {
        font-size: clamp(0.45rem, 2.5vw, 0.65rem);
        letter-spacing: 0.8px;
        white-space: nowrap;
    }

    .tagline .line {
        max-width: 8px;
        height: 1px;
    }

    .hero-cta .btn {
        padding: 10px 25px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .scroll-indicator {
        bottom: 15px;
        font-size: 10px;
    }

    .scroll-indicator i {
        font-size: 20px;
    }
    
    /* Extra small mobile devices */
    @media (max-width: 360px) {
        .tagline .text {
            font-size: clamp(0.4rem, 2.5vw, 0.6rem);
            letter-spacing: 0.6px;
        }
        
        .tagline .line {
            max-width: 6px;
        }
        
        .hero-taglines {
            gap: 0.2rem;
            margin-bottom: 0.8rem;
        }
        
        .tagline {
            gap: 0.3rem;
        }
    }
    
    /* iPhone 14 Pro Max and similar devices */
    @media (max-width: 430px) {
        .tagline .text {
            font-size: clamp(0.45rem, 2.6vw, 0.65rem);
            letter-spacing: 0.7px;
        }
        
        .tagline .line {
            max-width: 10px;
        }
        
        .hero-taglines {
            gap: 0.2rem;
            margin-bottom: 0.9rem;
        }
        
        .tagline {
            gap: 0.4rem;
        }
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .article-hero h1 {
        font-size: 1.5rem;
    }
    
    .article-text {
        font-size: 0.9rem;
    }
    
    .article-content {
        padding: 2rem 1rem;
    }
    
    .book-hero h1 {
        font-size: 2rem;
    }
    
    .book-hero h2 {
        font-size: 1rem;
    }
    
    .book-description h2 {
        font-size: 1.5rem;
    }
    
    .book-quote blockquote {
        font-size: 1rem;
    }
    
    .write-review {
        padding: 1.5rem;
    }
}

/* TWG Brand Variables */
:root {
    /* Brand Colors */
    --brand-primary: #8B4513; /* Saddle Brown */
    --brand-secondary: #A0522D; /* Sienna */
    --brand-accent: #D2B48C; /* Tan */
    --brand-text-dark: #3E2723; /* Dark brown */
    --brand-text-light: #6D4C41; /* Medium brown */
    --brand-background-light: #F5F5DC; /* Beige */
    --brand-success: #4CAF50; /* Green */
    --brand-error: #D32F2F; /* Red */
    --brand-warning: #FF9800; /* Orange */
    
    /* Legacy compatibility - update these to brand colors */
    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-secondary);
    --accent-color: var(--brand-accent);
    --text-color: var(--brand-text-dark);
    --text-light: var(--brand-text-light);
    --background-light: var(--brand-background-light);
    --success-color: var(--brand-success);
    --error-color: var(--brand-error);
    --warning-color: var(--brand-warning);
    
    /* Spacing and layout */
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --hover-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Logo Styling */
.site-header .logo {
    display: flex;
    align-items: center;
    z-index: 1000;
}

.main-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Subscribe button in header */
.subscribe-btn {
    margin: 0 15px;
}

.subscribe-btn .btn {
    background-color: var(--brand-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--brand-primary);
}

.subscribe-btn .btn:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--hover-box-shadow);
}

/* Navigation active states - only on mobile */
@media (max-width: 768px) {
    .main-nav a.active {
        color: var(--brand-primary);
        font-weight: 600;
        position: relative;
    }

    .main-nav a.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        right: 0;
        height: 3px;
        background-color: var(--brand-primary);
        border-radius: 2px;
    }
}

/* Button Styles */
.btn {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--hover-box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
    background-color: var(--brand-primary);
    color: white;
}

/* Flash Messages */
.flash-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--brand-success);
    border-left: 4px solid var(--brand-success);
}

.flash-error {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--brand-error);
    border-left: 4px solid var(--brand-error);
}

.flash-warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--brand-warning);
    border-left: 4px solid var(--brand-warning);
}

/* User Dropdown Styling */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: none;
    border: none;
    color: var(--brand-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-dropdown-btn:hover {
    background-color: var(--brand-background-light);
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--brand-text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown-content a:hover {
    background-color: var(--brand-background-light);
    color: var(--brand-primary);
}

/* Article specific styling */
.first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.9;
    margin-right: 12px;
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
    color: var(--brand-primary);
    font-weight: 600;
}

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

.article-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--brand-background-light) 0%, rgba(255,255,255,0.9) 100%);
}

.article-header h1 {
    font-size: 3rem;
    color: var(--brand-text-dark);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

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

.article-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--brand-text-dark);
}

.article-text h2, .article-text h3 {
    color: var(--brand-primary);
    margin: 40px 0 20px 0;
}

.article-text p {
    margin-bottom: 20px;
}

/* Mobile Menu Responsive */
@media (max-width: 768px) {
    .main-logo {
        height: 40px;
    }
    
    .subscribe-btn {
        display: none; /* Hide in mobile menu, show in mobile nav */
    }
    
    .main-nav.active .subscribe-btn {
        display: block;
        margin: 10px 0;
    }
    
    .first-letter {
        font-size: 3em;
        margin-right: 8px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
}

/* New Article Page Styles */
/* Hero Section */
.article-hero-new {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.article-hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.article-hero-divider {
    width: 100px;
    height: 2px;
    background: white;
    margin: 0 auto;
}

/* Main Content */
.article-main-content {
    background: #f8f9fa;
    padding: 4rem 0;
    min-height: 100vh;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-content-inner {
    padding: 3rem;
}

.article-text-new {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-text-new p {
    margin-bottom: 1.5rem;
}

.article-text-new h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.article-text-new img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.article-info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.article-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.article-info-divider {
    width: 50px;
    height: 2px;
    background: #8B4513;
    margin: 1rem 0 1.5rem;
}

.article-meta-new p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Comments Section */
.comments-section-new {
    background: #f8f9fa;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.comments-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.comments-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comments-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

.comments-header p {
    color: #666;
    font-size: 1rem;
}

/* Comment Form */
.comment-form-new {
    margin-bottom: 3rem;
}

.comment-form-group {
    margin-bottom: 1.5rem;
}

.comment-form-new textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.comment-form-new textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.comment-submit-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-submit-btn:hover {
    background: #6d3410;
}

.login-to-comment-new {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.login-to-comment-new a {
    color: #8B4513;
    text-decoration: none;
}

.login-to-comment-new a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list-new {
    margin-top: 2rem;
}

.comment-item-new {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.comment-item-new:last-child {
    border-bottom: none;
}

.comment-avatar-new {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.comment-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content-new {
    flex: 1;
}

.comment-header-new {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-header-new h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    margin-right: 1rem;
}

.comment-time {
    font-size: 0.8rem;
    color: #999;
}

.comment-content-new p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Comments Sidebar */
.comments-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.comments-sidebar-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.comments-sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.comments-sidebar-divider {
    width: 50px;
    height: 2px;
    background: #8B4513;
    margin: 1rem 0 1.5rem;
}

.comments-sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comments-sidebar-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

.comments-sidebar-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Sidebar Comment Form */
.sidebar-comment-form {
    margin-bottom: 2rem;
}

.sidebar-form-group {
    margin-bottom: 1rem;
}

.sidebar-comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.sidebar-comment-form textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.sidebar-comment-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.sidebar-comment-btn:hover {
    background: #6d3410;
}

/* Sidebar Comments List */
.sidebar-comments-list {
    margin-top: 2rem;
}

.sidebar-comment-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-comment-item:last-child {
    border-bottom: none;
}

.sidebar-comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.sidebar-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-comment-content {
    flex: 1;
}

.sidebar-comment-content h5 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.sidebar-comment-time {
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

.sidebar-comment-content p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .article-content-inner {
        padding: 2rem;
    }
    
    .comments-section-new {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .comments-container {
        padding: 2rem;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .comments-sidebar {
        position: static;
    }
    
    .article-hero-new {
        height: 70vh;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .article-hero-content h1 {
        font-size: 2rem;
    }
    
    .article-hero-content {
        padding: 0 1rem;
    }
    
    .article-content-inner {
        padding: 1.5rem;
    }
    
    .comments-container {
        padding: 1.5rem;
    }
    
    .article-info-card,
    .comments-sidebar-card {
        padding: 1.5rem;
    }
    
    .article-hero-new {
        height: 60vh;
    }
}

/* === Reference Article Page Styles === */
.article-hero-ref {
    position: relative;
    width: 100vw;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6rem; /* Add more space below hero for card separation */
}
.article-hero-overlay-ref {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}
.article-hero-content-ref {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-bottom: 4rem;
}
.article-hero-content-ref h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}
.article-hero-divider-ref {
    width: 60px;
    height: 3px;
    background: #fff;
    margin: 0 auto;
    border-radius: 2px;
}

.article-content-card-ref {
    position: relative;
    max-width: 700px;
    margin: -4.5rem auto 0 auto; /* Increase negative margin for more separation */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.article-content-inner-ref {
    width: 100%;
}
.article-image-ref {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}
.article-image-ref img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.article-meta-ref {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #888;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}
.article-meta-ref .author {
    font-weight: 500;
}
.article-text-ref {
    font-size: 1.08rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
}
.article-text-ref p {
    margin-bottom: 1.5rem;
}
.article-text-ref h2, .article-text-ref h3 {
    font-family: 'Playfair Display', serif;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    color: #222;
}

/* Comments Section */
.comments-section-ref {
    max-width: 700px;
    margin: 4rem auto 0 auto;
    padding: 0 1rem 4rem 1rem;
    background: #f7f7f4;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
}
.comments-header-ref {
    text-align: center;
    margin-bottom: 2.5rem;
}
.comments-header-ref h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.3rem;
}
.comments-header-ref p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0;
}
.comments-form-ref {
    margin-bottom: 2.5rem;
    text-align: center;
}
.comment-form-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.comment-form-ref textarea {
    width: 100%;
    max-width: 500px;
    min-height: 60px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafaf7;
    resize: vertical;
    margin-bottom: 0.5rem;
}
.comment-form-ref textarea:focus {
    outline: none;
    border-color: #8B4513;
}
.comment-submit-btn-ref {
    background: none;
    color: #222;
    border: 2px solid #222;
    padding: 0.7rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.comment-submit-btn-ref:hover {
    background: #222;
    color: #fff;
}
.login-to-comment-ref {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1.5rem;
    color: #888;
    font-size: 1rem;
}
.login-to-comment-ref a {
    color: #8B4513;
    text-decoration: none;
}
.login-to-comment-ref a:hover {
    text-decoration: underline;
}
.comments-list-ref {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}
.comment-item-ref {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.comment-avatar-ref {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-avatar-ref img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-content-ref {
    flex: 1;
}
.comment-header-ref {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.2rem;
}
.comment-author-ref {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}
.comment-time-ref {
    color: #aaa;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}
.comment-text-ref {
    color: #444;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .article-content-card-ref {
        max-width: 95vw;
        padding: 2rem 1rem 1.5rem 1rem;
    }
    .comments-section-ref {
        max-width: 95vw;
        padding: 0 0.5rem 3rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .article-hero-content-ref h1 {
        font-size: 1.5rem;
    }
    .article-content-card-ref {
        margin: -3rem auto 0 auto;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
    .article-meta-ref {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    .comments-section-ref {
        margin-top: 2rem;
        padding: 0 0.2rem 2rem 0.2rem;
    }
    .comments-list-ref {
        gap: 1.2rem;
    }
    .comment-avatar-ref {
        width: 36px;
        height: 36px;
    }
    .article-image-ref-fixed {
        width: 100%;
    }
    .article-image-ref-fixed img {
        width: 100%;
        height: 140px;
    }
    .comment-avatar-ref img {
        width: 36px;
        height: 36px;
    }
}

.article-image-ref-fixed {
    width: 320px;
    max-width: 90%;
    margin: 2.5rem auto 2.5rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
}
.article-image-ref-fixed img {
    width: 320px;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.comment-avatar-ref img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #f5f5f5;
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3.5px 13px 3.5px 7px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(127,80,61,0.10), 0 1px 4px rgba(0,0,0,0.06);
    letter-spacing: 1.1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(6px) saturate(1.1);
    border: 1.2px solid rgba(127,80,61,0.10);
    opacity: 0.97;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    cursor: default;
    min-height: 32px;
    min-width: 64px;
    box-sizing: border-box;
    filter: drop-shadow(0 1px 2px rgba(127,80,61,0.07));
    pointer-events: none; /* Prevent accidental hover issues */
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 60%, #f7f7f7 100%);
    box-shadow: 0 1px 4px rgba(127,80,61,0.07);
    margin-right: 3px;
    border: 1.2px solid rgba(127,80,61,0.10);
    font-size: 1em;
}

.badge-icon i {
    font-size: 0.98em;
    opacity: 0.82;
    color: inherit;
}

.badge-label {
    font-weight: 500;
    letter-spacing: 1.1px;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    padding-right: 2px;
}

.badge-blog {
    background: linear-gradient(90deg, #fff7f2 60%, #fbeee6 100%);
    color: #7F503D;
    border-color: #e5c7b8;
}

.badge-blog .badge-icon {
    background: linear-gradient(135deg, #fbeee6 60%, #fff7f2 100%);
    color: #7F503D;
}

.badge-book {
    background: linear-gradient(90deg, #f2f7ff 60%, #e6f0fb 100%);
    color: #3a5a8c;
    border-color: #b8c7e5;
}

.badge-book .badge-icon {
    background: linear-gradient(135deg, #e6f0fb 60%, #f2f7ff 100%);
    color: #3a5a8c;
}

.badge-services {
    background: linear-gradient(90deg, #f7fff2 60%, #e6fbf0 100%);
    color: #3d7f50;
    border-color: #b8e5c7;
}

.badge-services .badge-icon {
    background: linear-gradient(135deg, #e6fbf0 60%, #f7fff2 100%);
    color: #3d7f50;
}

.badge:hover, .card:hover .badge {
    box-shadow: 0 6px 18px rgba(127,80,61,0.13), 0 2px 8px rgba(0,0,0,0.10);
    transform: scale(1.04) translateY(-1.5px);
    background: rgba(255,255,255,0.62);
}
