/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ffa500;
    --tertiary-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --text-color: #444;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #0f5899;
    --gradient-end: #0077cc;
    --header-height: 80px;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

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

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

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

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #004494;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #e69500;
    color: white;
}

.btn-tertiary {
    background-color: #f5f5f5;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background-color: #e9e9e9;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 50%;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

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

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

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.post-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: white;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* View Counter */
.view-counter {
    background-color: #f0f8ff;
    padding: 20px 0;
    text-align: center;
}

.view-counter p {
    margin: 0;
    font-size: 1.1rem;
}

.view-counter #counter {
    font-weight: bold;
    color: var(--primary-color);
}

/* 3D Button */
.cta-3d {
    padding: 60px 0;
    text-align: center;
}

.btn-3d {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    box-shadow: 0 8px 0 #003c7e, 0 15px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
    transform-style: preserve-3d;
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 0 #003c7e, 0 12px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-3d:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #003c7e, 0 0 0 rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 20px;
    color: #bbb;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-col ul li a {
    color: #bbb;
    transition: all var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col i {
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-content a {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

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

/* Blog Filter */
.blog-filter {
    padding: 30px 0;
    background-color: var(--light-color);
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.category-filter select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 200px;
}

/* Blog Posts */
.blog-posts {
    padding: 60px 0;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
    flex-wrap: wrap;
}

.post-meta i {
    margin-right: 5px;
}

.post-category {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    padding: 30px 0;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.pagination ul li a.active,
.pagination ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
    margin: 0;
}

.map {
    padding: 60px 0;
    background-color: var(--light-color);
}

.map h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.accordion-item {
    background-color: white;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Thank You Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.thank-you-content i {
    font-size: 3rem;
    color: var(--tertiary-color);
}

.close-btn {
    margin-top: 15px;
}

/* About Page */
.about-intro {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.about-text h2 {
    margin-bottom: 20px;
}

.mission-values {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.mission-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
}

.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--light-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.mission-item ul {
    text-align: left;
    padding-left: 20px;
    list-style-type: disc;
}

.mission-item ul li {
    margin-bottom: 5px;
}

.team {
    padding: 80px 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

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

.member-info {
    padding: 20px;
}

.member-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

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

.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    margin: 0;
    color: #777;
}

/* Single Post */
.post-single {
    padding: 60px 0;
}

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

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-featured-image img {
    width: 100%;
}

.post-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.post-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

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

.post-content ul li, 
.post-content ol li {
    margin-bottom: 10px;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.disclaimer {
    background-color: #f8f8f8;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 40px;
}

.disclaimer p {
    margin: 0;
    font-size: 0.9rem;
}

.post-author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
}

.author-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.post-nav-prev a,
.post-nav-next a {
    display: block;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 8px;
    transition: transform var(--transition-speed) ease;
}

.post-nav-prev a:hover,
.post-nav-next a:hover {
    transform: translateY(-3px);
    background-color: #e9f0f7;
}

.post-nav-prev a {
    text-align: left;
}

.post-nav-next a {
    text-align: right;
}

.post-nav-prev span,
.post-nav-next span {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.post-nav-prev h4,
.post-nav-next h4 {
    margin: 0;
    font-size: 1rem;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-posts .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.related-posts .post-card {
    margin-bottom: 0;
}

.related-posts .post-content h4 {
    font-size: 1.1rem;
}

.portfolio-example {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.example-box {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        box-shadow: 2px 0 10px var(--shadow-color);
        transition: left var(--transition-speed) ease;
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: 10px;
    }
}
