/*
Theme Name: KitchenCyprus
Theme URI:
Author: Oleg Mesheriakov
Author URI: https://compiny.ru
Description: A custom WordPress theme for Kitchen Cyprus
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
Tags: custom, responsive

This theme, like WordPress, is licensed under the GPL.
*/
/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.quote-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quote-btn:hover {
    background-color: #c0392b;
}

/* Hero Section */
.hero {
    padding: 8rem 5% 5rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1556911220-bff31c812dba');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Solutions Section */
.solutions {
    padding-top: 5rem;
    padding-right: 5%;
    padding-bottom: 5rem;
    padding-left: 5%;
    background-color: var(--light-gray);
}

.solutions h2 {
    text-align: center;
    font-size: 2.5rem;
}

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

.solution-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.solution-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.solution-card h3 {
    padding: 1.5rem;
    text-align: center;
}

.solution-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.solution-card a:hover {
    text-decoration: none;
}

.product-count {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
    font-weight: 400;
    text-align: center;
    padding: 0 1.5rem 1.5rem;
}

.solutions .text-center {

}

.solutions .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.solutions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Category Header Image */
.category-header-image {
    margin: 20px 0;
    text-align: center;
}

.category-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Admin Category Image Styles */
.term-image-wrap {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.term-image-wrap input[type="text"] {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

.term-image-wrap button {
    margin-right: 5px;
    margin-bottom: 10px;
}

.term-image-wrap #upload_from_disk_button {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.term-image-wrap #upload_from_disk_button:hover {
    background: #005a87;
    border-color: #005a87;
}

.term-image-wrap #category_image_preview {
    margin-top: 10px;
}

.term-image-wrap #category_image_preview img {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}

.term-image-wrap #category_image_preview img:hover {
    border-color: #0073aa;
}

.term-image-wrap .upload-success {
    color: #46b450;
    font-weight: 500;
    margin-top: 5px;
}

.term-image-wrap .upload-error {
    color: #dc3232;
    font-weight: 500;
    margin-top: 5px;
}

/* Process Section */
.process {
    padding: 5rem 5%;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 1rem 0;
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
}

.dropdown-menu li:hover {
    background-color: var(--light-gray);
}

/* Header scroll states */
.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
}

.header {
    transition: transform 0.3s ease;
}

/* Services Hero Section */
.services-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1556912173-3bb406ef7e77');
    min-height: 60vh;
}

/* Main Services Section */
.main-services {
    padding: 5rem 5%;
    background-color: var(--white);
}

.main-services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #c0392b;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    background-color: var(--light-gray);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.testimonial-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.client-location {
    color: #666;
    font-size: 0.9rem;
}

/* Active Navigation Link */
.nav-item .active {
    color: var(--secondary-color);
}

.inner-title {
    padding-bottom: 30px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu li {
        display: block;
        margin: 1rem 0;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: var(--light-gray);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 5%;
    background-color: var(--white);
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.feature-card-content {
    padding: 2rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

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

.service-card {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.service-card-content {
    padding: 2rem;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Blog Section */
.blog {
    padding: 5rem 5%;
    background-color: var(--white);
}

.blog h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

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

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
}

/* CTA Section */
.cta {
    padding: 5rem 5%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1556911261-6bd341186b2f');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-form input {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #c0392b;
}

/* Form Response Messages */
.form-response {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-response.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form validation styles */
.cta-form input:invalid,
.contact-form input:invalid,
.subscribe-form input:invalid {
    border-color: #dc3545;
}

.cta-form input:focus,
.contact-form input:focus,
.subscribe-form input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.25);
}

/* Quote Form Section */
.quote-form {
    padding: 5rem 5%;
    background-color: var(--light-gray);
}

.quote-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.quote-form > p {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 0 1rem;
    }

    .feature-card img {
        height: 220px;
    }
}

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1600&h=900&fit=crop');
    min-height: 60vh;
}

/* Contact Information Section */
.contact-info {
    padding: 5rem 5%;
    background-color: var(--white);
}

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

.contact-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 5%;
    background-color: var(--light-gray);
}

.form-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.form-content {
    padding: 3rem;
}

.form-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.form-content > p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.map-container {
    position: relative;
    height: 100%;
}

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

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    text-align: center;
}

.map-overlay h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.direction-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.direction-btn:hover {
    background-color: #c0392b;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 5%;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

.faq-item {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1600&h=900&fit=crop');
    min-height: 60vh;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 5rem 5%;
    background-color: var(--white);
}

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

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
}

.read-more i {
    transition: transform 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 5px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.page-link.active {
    background: var(--secondary-color);
    color: var(--white);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-dots {
    color: var(--text-color);
}

/* Subscribe Section */
.subscribe-section {
    padding: 5rem 5%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1556911261-6bd341186b2f?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subscribe-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscribe-form {
    display: grid;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto 0;
}

.subscribe-form .form-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.subscribe-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 200px;
    }

    .subscribe-content h2 {
        font-size: 2rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* Article Hero Section */
.article-hero {
    padding: 8rem 5% 3rem;
    background-color: var(--white);
}

.article-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.article-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.article-hero img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

/* Article Content */
.article-content {
    padding: 5rem 5%;
    background-color: var(--white);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {

}

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

.article-intro {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
}

.article-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

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

.article-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.material-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.material-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.color-card {
    padding: 2rem;
    border-radius: 10px;
    color: var(--white);
    text-align: center;
}

.color-card.navy {
    background-color: #34495e;
}

.color-card.grey {
    background-color: #7f8c8d;
}

.color-card.white {
    background-color: #ecf0f1;
    color: var(--primary-color);
}

.color-card.two-tone {
    background: linear-gradient(45deg, #2c3e50 50%, #e74c3c 50%);
}

.color-card.black {
    background-color: #2c3e50;
}

.color-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.related-articles ul {
    list-style: none;
}

.related-articles li {
    margin-bottom: 1rem;
}

.related-articles a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Article CTA Section */
.article-cta {
    padding: 5rem 5%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1556911261-6bd341186b2f?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

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

.article-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .materials-grid,
    .color-grid {
        grid-template-columns: 1fr;
    }

    .article-cta h2 {
        font-size: 2rem;
    }
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.author-widget h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-widget p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Table of Contents */
.toc-widget ul {
    list-style: none;
    padding: 0;
}

.toc-widget li {
    margin-bottom: 0.8rem;
}

.toc-widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Popular Posts */
.post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-item:last-child {
    margin-bottom: 0;
}

.post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.post-info {
    flex: 1;
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.post-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-date {
    font-size: 0.9rem;
    color: #666;
}

/* Categories */
.categories ul {
    list-style: none;
    padding: 0;
}

.categories li {
    margin-bottom: 0.8rem;
}

.categories a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.categories span {
    color: #666;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-main {
        max-width: 100%;
    }

    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

/* Projects Hero Section */
.projects-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.projects-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

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

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

/* Materials Section */
.materials-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.counter-item {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    margin: 0;
}

/* Video Section */
.video-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.video-container {
    max-width: 1000px;
    margin: 40px auto;
    aspect-ratio: 16/9;
}

.video-placeholder {
    background-color: #333;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover i {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1556909190-d9b181c26b1e?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .projects-hero h1 {
        font-size: 2.5rem;
    }

    .counter {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Hero Section */
.category-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 20px 100px;
    text-align: center;
}

.category-hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}
.pt-3 {
    padding-top: 30px;
}
.pb-3 {
    padding-bottom: 30px;
}
.red {
    color: var(--secondary-color);
}
.text-center {
    text-align: center;
}

/* Product Category Section */
.product-category {
    padding-right: 20px;
    padding-left: 20px;
    text-align: center;
}

.product-category:nth-child(even) {
    background-color: #f9f9f9;
}

.product-category h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
    padding: 20px;
}

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

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

.category-item h3 {
    padding: 20px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.category-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.design-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.design-btn:hover {
    background-color: #1a252f;
}

/* Process Section */
.process-section {
    padding: 80px 20px;
    background-color: white;
}

.process-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.process-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Materials Info Section */
.materials-info {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.materials-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.material-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.material-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.material-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Video Resources Section */
.video-resources {
    padding: 80px 20px;
    background-color: white;
}

.video-resources h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-item .video-placeholder {
    aspect-ratio: 16/9;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-item h3 {
    padding: 20px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-cta {
        flex-direction: column;
        align-items: center;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}


/* Term Thumbnails System Styles */
.term-image-wrap {
    margin: 15px 0;
}

.term-image-preview {
    margin: 10px 0;
    position: relative;
}

.term-image-preview img {
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.term-image-preview img:hover {
    border-color: #0073aa;
}

.term-image-preview img:active {
    transform: scale(0.98);
}

/* Admin column styles */
.column-image {
    width: 50px !important;
    text-align: center;
}

.column-image img {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Loading states */
.term-image-loading {
    opacity: 0.6;
    pointer-events: none;
}

.term-image-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.term-image-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid;
}

.term-image-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.term-image-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Button styles */
#remove_term_image {
    margin-top: 10px;
}

#remove_term_image:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Page Template Styles */
.page-content {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-body {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-body h1 {
    font-size: 2rem;
}

.page-body h2 {
    font-size: 1.8rem;
}

.page-body h3 {
    font-size: 1.5rem;
}

.page-body h4 {
    font-size: 1.3rem;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 5px 5px 0;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.page-body a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-body a:hover {
    border-bottom-color: var(--secondary-color);
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-body table th,
.page-body table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.page-body table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.page-body table tr:hover {
    background-color: #f5f5f5;
}

.page-links {
    margin: 2rem 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.page-links a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background: var(--secondary-color);
}

.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.edit-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

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

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive Page Styles */
@media (max-width: 768px) {
    .page-content {
        padding: 20px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-body {
        font-size: 1rem;
    }

    .page-body h1 {
        font-size: 1.8rem;
    }

    .page-body h2 {
        font-size: 1.6rem;
    }

    .page-body h3 {
        font-size: 1.4rem;
    }

    .page-body table {
        font-size: 0.9rem;
    }

    .page-body table th,
    .page-body table td {
        padding: 8px 10px;
    }
}