/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --link-color: #3498db;
    --link-hover-color: #2980b9;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial', sans-serif;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

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

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

ul, ol {
    list-style-type: none;
}

button, .btn {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    font-weight: bold;
}

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

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    max-width: 150px;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px;
    position: relative;
}

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

.navbar li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 var(--shadow-color);
    z-index: 1001;
    border-radius: var(--border-radius);
    top: 100%;
    left: 0;
    transition: all 0.3s ease;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

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

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .dropbtn {
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.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;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
    font-weight: 600;
}

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

/* Intro Section */
.intro {
    background-color: white;
}

.intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-content {
    padding-right: 20px;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Blog Posts Section */
.blog-posts {
    background-color: var(--gray-light);
}

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

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

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

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

.post-info {
    padding: 20px;
}

.date {
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Testimonials Section */
.testimonials {
    background-color: white;
}

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

.testimonial-card {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.quote {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.user {
    font-weight: 600;
    color: var(--dark-color);
}

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

.cta h2, .cta p {
    color: white;
}

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

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.subscribe-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--secondary-color);
}

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

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

.footer-logo img {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: var(--light-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    font-size: 1.2rem;
}

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

.footer-social .social-icons 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: background-color var(--transition-speed) ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icons */
.icon-location, .icon-phone, .icon-email {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.icon-location::before {
    content: '📍';
}

.icon-phone::before {
    content: '📞';
}

.icon-email::before {
    content: '✉️';
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px var(--shadow-color);
    padding: 15px;
    z-index: 9999;
    display: block; /* Will be controlled by JavaScript */
}

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

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

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
}

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

.btn-tertiary {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-tertiary:hover {
    background-color: var(--gray-medium);
}

/* Tooltips */
.tooltip {
    position: absolute;
    display: none;
    background-color: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--dark-color);
}

/* About Page Styles */
.page-banner {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/7.jpg');
    background-size: cover;
    background-position: center;
}

.page-banner h1, .page-banner p {
    color: white;
}

.about-intro {
    padding: 80px 0;
}

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

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

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

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

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

.team-member h3, .team-member p {
    padding: 0 15px;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-member p {
    margin-bottom: 20px;
}

.team-member p:nth-child(3) {
    color: var(--primary-color);
    font-weight: bold;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

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

.values {
    padding: 80px 0;
    text-align: center;
}

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

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

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

.achievements {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.achievements h2 {
    color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
}

.achievement-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Contact Page Styles */
.contact-info {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.contact-card h3 {
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 5px;
}

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

.contact-form h2, .contact-form > p {
    text-align: center;
}

.form {
    max-width: 800px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease;
}

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

.required {
    color: var(--error-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.map {
    padding: 60px 0;
}

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

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

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

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

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

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

.modal-body {
    padding: 20px 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--success-color);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Blog Post Page */
.post-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0;
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.post-header .container {
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    color: var(--light-color);
}

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

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

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

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    background-color: var(--gray-light);
    font-style: italic;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .intro .container {
        grid-template-columns: 1fr;
    }
    
    .intro-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-form input {
        border-radius: var(--border-radius);
    }
    
    .subscribe-form .btn {
        border-radius: var(--border-radius);
    }
    
    .form {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .posts-grid, .testimonials-grid, .team-grid, .values-grid, .achievements-grid, .contact-grid, .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

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

.slideInRight {
    animation: slideInRight 0.8s ease forwards;
}
