/* 
   CoachingPro - Main Stylesheet
   Theme: Coaching and Personal Development
   Author: CoachingPro Team
   Version: 1.0
*/

/* ======= Base Styles ======= */
:root {
    --primary-color: #4e8cff;
    --primary-dark: #3a6cd1;
    --secondary-color: #34d399;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f8fafc;
    --border-color: #e5e7eb;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #ef4444;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
}

p, ul, ol, blockquote {
    margin-bottom: var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

button, .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

button:hover, .btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* ======= Layout Components ======= */

/* Welcome Text */
.welcome-text {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 500;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    padding: var(--spacing-sm) 0;
}

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

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin-right: var(--spacing-md);
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a i {
    margin-right: 6px;
}

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

/* Hero Section */
.hero {
    background-color: var(--background-alt);
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-light);
}

/* Featured Posts */
.featured-posts {
    padding: var(--spacing-xl) 0;
}

.featured-posts h2, .benefits h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.post-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: var(--spacing-sm) var(--spacing-sm) 0;
    font-size: 1.3rem;
}

.post-card p {
    padding: 0 var(--spacing-sm);
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    padding: var(--spacing-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

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

/* Benefits Section */
.benefits {
    background-color: var(--background-alt);
    padding: var(--spacing-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.benefit-item h3 {
    margin-bottom: var(--spacing-sm);
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.testimonial {
    background-color: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: 0 auto;
    max-width: 800px;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial h4 {
    margin-bottom: 0;
}

.testimonial span {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    margin-right: var(--spacing-sm);
    margin-bottom: 0;
}

.newsletter-form button {
    background-color: white;
    color: var(--primary-color);
}

.newsletter-form button:hover {
    background-color: var(--background-alt);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: var(--spacing-sm);
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a, .footer-legal ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    margin-top: var(--spacing-sm);
}

.social-icon {
    fill: white;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ======= Page Specific Styles ======= */

/* Blog Page */
.blog-header, .about-header, .contact-header {
    background-color: var(--background-alt);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.blog-header h1, .about-header h1, .contact-header h1 {
    margin-bottom: var(--spacing-sm);
}

.blog-content {
    padding: var(--spacing-xl) 0;
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

/* About Page */
.about-story {
    padding: var(--spacing-xl) 0;
}

.about-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-mission {
    background-color: var(--background-alt);
    padding: var(--spacing-xl) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.team {
    padding: var(--spacing-xl) 0;
}

.team h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.team-card {
    text-align: center;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-card h3 {
    margin: var(--spacing-sm) 0 5px;
}

.team-card p {
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

/* Contact Page */
.contact-info {
    padding: var(--spacing-lg) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-card {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-form-section {
    padding: 0 0 var(--spacing-xl);
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

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

.contact-form h2 {
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.btn-submit {
    margin-top: var(--spacing-sm);
}

.faq-section {
    background-color: var(--background-alt);
    padding: var(--spacing-xl) 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

/* Single Post Page */
.post-content {
    padding: var(--spacing-xl) 0;
}

.post-header {
    margin-bottom: var(--spacing-lg);
}

.post-header h1 {
    margin-bottom: var(--spacing-sm);
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: 0;
}

.post-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-body {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.post-body p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.post-body h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.post-body h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.post-body ul, .post-body ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.post-body li {
    margin-bottom: var(--spacing-xs);
}

.post-footer {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}

.share-post {
    margin-bottom: var(--spacing-lg);
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.facebook {
    background-color: #3b5998;
    color: white;
}

.twitter {
    background-color: #1da1f2;
    color: white;
}

.linkedin {
    background-color: #0077b5;
    color: white;
}

.email {
    background-color: #ea4335;
    color: white;
}

.related-posts h3 {
    margin-bottom: var(--spacing-md);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.related-post a {
    color: var(--text-color);
}

.related-image {
    margin-bottom: var(--spacing-sm);
    height: 150px;
    overflow: hidden;
}

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

.related-post h4 {
    font-size: 1.1rem;
    margin: 0;
}

/* Custom Frame for Images */
.custom-frame {
    position: relative;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 5px;
}

.custom-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    pointer-events: none;
}

.custom-frame img {
    display: block;
    transition: transform 0.5s ease;
}

.custom-frame:hover img {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.thank-you-container {
    text-align: center;
}

.thank-you-container i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
}

.thank-you-container h2 {
    margin-bottom: var(--spacing-sm);
}

.thank-you-container p {
    margin-bottom: var(--spacing-md);
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--spacing-md);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.btn-accept {
    background-color: var(--success-color);
}

.btn-customize {
    background-color: var(--primary-color);
}

.btn-reject {
    background-color: var(--text-light);
}

.cookie-more-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Icon Fonts */
/* These are placeholder styles. In a real implementation, you would either use an icon font like FontAwesome or SVG icons. */
[class^="icon-"] {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: var(--spacing-sm);
    }
    
    nav ul li {
        margin: 0 var(--spacing-sm) var(--spacing-sm) 0;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .benefits-grid, .values-grid, .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .benefit-item, .post-card {
        padding: var(--spacing-sm);
    }
    
    .social-share {
        justify-content: center;
    }
}
