/*
* Samyak Astrology - Main Stylesheet
* This file contains all styling for the astrology website
* Follows a Mac-inspired design with subtle saintly, guru-like qualities
*/

/* === VARIABLES === */
:root {
    /* Mac-inspired color palette with saintly touches */
    --primary-bg: #fafaf9;
    --card-bg: #ffffff;
    --primary-text: #1c1917;
    --secondary-text: #78716c;
    --accent-blue: #0066cc;
    --accent-saffron: #dc7f30;
    --accent-maroon: #92400e;
    --border-color: #e7e5e4;
    --wisdom-gold: #ca8a04;
    --sage-green: #365314;
    
    /* Spacing and sizing */
    --container-max-width: 1200px;
    --section-spacing: 80px;
    --card-spacing: 24px;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.5;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Sanskrit/Traditional font class */
.tibetan {
    font-family: 'Jomolhari', 'Noto Sans Tibetan', sans-serif;
    line-height: 1.8;
    font-size: 1.1em;
}

/* === HEADER STYLES === */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
}

.logo img {
    height: 60px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-maroon);
}



/* === HERO SECTION === */
.hero {
    padding: 64px 0;
    text-align: center;
}

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

.hero h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-maroon);
}

.hero p {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 32px;
}

.hero-image {
    margin: 32px 0;
}

.hero-image img {
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius);
}

.tibetan-quote {
    margin: 32px auto;
    max-width: 700px;
    font-size: 22px;
    line-height: 1.8;
    color: var(--accent-saffron);
    background: rgba(220, 127, 48, 0.03);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--wisdom-gold);
}

/* === SECTION STYLES === */
section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-maroon);
}

.section-header p {
    font-size: 18px;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
}

/* === CARD STYLES === */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(220, 127, 48, 0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(220, 127, 48, 0.15);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--accent-maroon);
}

.card p {
    color: var(--secondary-text);
    margin-bottom: 16px;
}

/* === VOCABULARY SECTION === */
.vocabulary-section {
    background-color: var(--primary-bg);
}

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

/* === PRODUCT SECTION === */
.products-container {
    position: relative;
    margin: 0 auto;
}

.products-wrapper {
    overflow-x: hidden;
    position: relative;
}

.products-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 280px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent-saffron);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--accent-saffron);
}

.carousel-button:hover {
    background-color: var(--accent-saffron);
    color: white;
}

.carousel-button-prev {
    left: -20px;
}

.carousel-button-next {
    right: -20px;
}

.carousel-indicator {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    gap: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.indicator-dot.active {
    background-color: var(--accent-saffron);
}

/* === BLOG SECTION === */
.blog-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.blog-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 280px;
}

.blog-image {
    width: 100%;
    height: 160px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    background-color: #e6e6e6;
    margin-bottom: 16px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    font-size: 14px;
    color: var(--wisdom-gold);
    margin-bottom: 8px;
    font-weight: 500;
}


/* === BUTTON STYLES === */
.button {
    display: inline-block;
    background-color: var(--accent-saffron);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--accent-maroon);
}

.button-outline {
    background-color: transparent;
    color: var(--accent-saffron);
    border: 1px solid var(--accent-saffron);
}

.button-outline:hover {
    background-color: rgba(220, 127, 48, 0.1);
}

.buttons-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: var(--card-bg);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(220, 127, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-saffron);
}

.contact-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-maroon);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-link {
    color: var(--secondary-text);
    font-size: 20px;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent-saffron);
}

.social-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === FOOTER STYLES === */
footer {
    background-color: var(--accent-maroon);
    color: rgba(255, 255, 255, 0.9);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--wisdom-gold);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.footer-nav h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--wisdom-gold);
}

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

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--wisdom-gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* WhatsApp Link styles */
.whatsapp-link {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.whatsapp-link:hover {
    color: #25D366; /* WhatsApp green color */
}

/* Make WhatsApp icon green */
.fa-whatsapp {
    color: #25D366;
}

/* Direct fix for overflowing images */
.blog-post-content {
    overflow: hidden;
    width: 100%;
}

.blog-post-content figure,
.blog-post-content .blog-content-figure {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.blog-post-content figure img,
.blog-post-content .blog-content-figure img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.blog-post-content figcaption {
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    font-size: 14px;
    color: var(--secondary-text);
}

/* Blog listing page styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post-card {
    height: 100%;
}

/* Individual blog post page styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.blog-post-meta {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.blog-post-content {
    line-height: 1.8;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content .tibetan {
    margin: 30px 0;
    font-size: 1.2em;
}

/* Styling for blog meta information (date and author) */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.9rem;
}

.blog-date {
    margin-right: 15px;
}

.blog-author {
    position: relative;
    padding-left: 15px;
}

.blog-author:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999;
}

/* For blog post page */
.blog-post-meta {
    margin-bottom: 30px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.blog-post-meta .date {
    margin-right: 15px;
}

.blog-post-meta .author {
    position: relative;
    padding-left: 15px;
}

.blog-post-meta .author:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999;
}

.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blog-post-header h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary-text);
}

.blog-post-meta {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.blog-post-meta::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
    color: var(--accent-saffron);
}

.blog-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-text);
}

.blog-post-content p {
    margin-bottom: 25px;
}

.blog-post-content .tibetan {
    font-size: 1.2em;
    line-height: 2;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(220, 127, 48, 0.05);
    border-radius: var(--border-radius);
    text-align: center;
}

.blog-post-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: var(--accent-saffron);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-saffron);
    transition: border-bottom 0.2s ease;
}

.blog-post-content a:hover {
    border-bottom: 1px solid var(--accent-saffron);
}

.blog-post-content blockquote {
    margin: 25px 0;
    padding: 20px;
    border-left: 4px solid var(--accent-saffron);
    background-color: rgba(220, 127, 48, 0.05);
    font-style: italic;
}

.blog-featured-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

/* Styles for images within blog post content */
.blog-content-image {
    margin: 30px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.blog-content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* For images with captions */
.blog-content-figure {
    margin: 30px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.blog-content-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.blog-content-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--secondary-text);
    font-style: italic;
    padding: 0 10px;
}

/* Fix for oversized images in blog posts */
.blog-post-content figure,
.blog-post-content img {
    max-width: 100%;
    height: auto;
}

/* Ensure content doesn't overflow container */
.blog-post-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}



/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .blog-card {
        flex: 0 0 calc(50% - 20px);
    }
}

/* CHANGED: Media query breakpoint from 768px to 1008px */
@media (max-width: 1199px) {
    .header-container {
        position: relative;
    }
    
 
    
    .product-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .blog-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .contact-info {
        flex-direction: column;
        gap: 32px;
    }

    /* Blog post responsive styles */
    .blog-post {
        padding: 20px;
        margin: 20px auto;
    }
    
    .blog-post-header h1 {
        font-size: 28px;
    }
    
    .blog-post-content {
        font-size: 16px;
    }
    
    
}

/* Resources Page Styling - Updated to match existing style.css */

/* Resources Page Styling */
.resources-page-section,
.services-section,
.free-resources-section {
    padding: var(--section-spacing) 0;
}

.resources-grid,
.services-grid,
.free-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.resource-item,
.service-item,
.free-resource-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-item:hover,
.service-item:hover,
.free-resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.resource-image,
.service-image {
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.resource-image img,
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-image img,
.service-item:hover .service-image img,
.free-resource-item:hover .resource-image img {
    transform: scale(1.05);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Resource CTA Section */
.resource-cta-section {
    padding: 60px 0;
    background-color: rgba(220, 127, 48, 0.05);
}

.cta-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.cta-card h2 {
    margin-bottom: 15px;
    color: var(--accent-saffron);
    font-size: 28px;
}

.cta-card p {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--secondary-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* View All Resources Card */
.view-all-product-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    background-color: rgba(220, 127, 48, 0.05);
    border: 2px dashed var(--accent-saffron);
    padding: 30px;
}

.view-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.view-all-icon {
    font-size: 42px;
    color: var(--accent-saffron);
    margin-bottom: 16px;
}

.view-all-product-card h3 {
    color: var(--accent-saffron);
    margin-bottom: 12px;
    font-size: 20px;
}

.view-all-product-card p {
    margin-bottom: 20px;
    color: var(--secondary-text);
}

/* Page Title Section */
.page-title {
    background-color: var(--accent-saffron);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-title h1 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 600;
}

.page-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section intro styling */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-intro h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-intro p {
    color: var(--secondary-text);
    font-size: 18px;
}

/* Join community section */
.join-community-section {
    padding: 60px 0;
    background-color: rgba(220, 127, 48, 0.05);
}

.newsletter-form {
    max-width: 500px;
    margin: 24px auto 0;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

.form-message {
    margin-top: 12px;
    font-size: 14px;
}

.form-message.success {
    color: #2ecc71;
}

.small-text {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: 16px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .form-group {
        flex-direction: column;
    }
}

@media (max-width: 1008px) {
    .resources-grid,
    .services-grid,
    .free-resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .resource-image,
    .service-image {
        height: 180px;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .view-all-product-card {
        padding: 24px;
    }
    
    .view-all-icon {
        font-size: 36px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .resources-grid,
    .services-grid,
    .free-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Services Grid Responsive Enhancements */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}


/* Ensure main content doesn't overlap with navigation */
.resource-content {
    position: relative;
    z-index: 1; /* Lower z-index than header and navigation */
}