/*
Theme Name: Fujiwara
Theme URI: https://japancsi.com/
Author: Antigravity
Author URI: https://google.com
Description: A replica theme of JapanCSI.com.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fujiwara
*/

:root {
    --color-primary: #19309A;
    --color-nav-bg: #333333;
    --color-footer-bg: #222222;
    --color-text-main: #333333;
    --color-link-hover: #B3E4F9;
    --color-white: #FFFFFF;
    --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "YuGothic", "Meiryo", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.9;
    color: var(--color-white);
}

/* Header Styles */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--color-white);
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Ensure logo is constrained */
.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Flex container for Logo + Description */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    margin: 0;
    font-size: 26px;
    line-height: 1;
}

.site-title a {
    color: var(--color-primary);
}

.site-branding .site-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: 400;
    border-left: 2px solid #ddd;
    padding-left: 20px;
    line-height: 1.4;
    max-width: 200px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-label {
    font-size: 13px;
    color: #666;
}

.phone-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-primary);
}

.btn-consultation {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-consultation:hover {
    background: linear-gradient(135deg, #e55d00 0%, #e57d00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 9999;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px;
}

/* Navigation */
.main-navigation {
    background-color: var(--color-nav-bg);
    color: var(--color-white);
}

.main-navigation .container {
    max-width: 1400px;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: var(--color-white);
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.main-navigation li:last-child a {
    border-right: none;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Hero Styles */
/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    /* Set a default height for the hero area */
    overflow: hidden;
    background-color: #eee;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 2;
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-widget {
    color: #ccc;
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #ccc;
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-navigation {
    border-top: 1px solid #444;
    padding-top: 20px;
}

.footer-navigation ul {
    display: flex;
    gap: 20px;
    font-size: 13px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #999;
}

.footer-navigation a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #777;
    padding-top: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #444;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: var(--color-white);
}

.footer-social a:hover {
    background-color: var(--color-primary);
}

/* Sections Styling */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
}

/* Title spacing for full width sections */
.dynamic-section.container-full .section-title {
    padding-left: 40px;
    padding-right: 40px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6b00;
}

/* Reasons Section */
.reasons-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-item {
    background: var(--color-white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.reason-item .number {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.reason-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Features Section */
.features-section {
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-left-color: #ff6b00;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.feature-item .badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Staff Section */
.staff-section {
    background-color: #f8f9fa;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-item {
    text-align: center;
}

.staff-item img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.staff-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.staff-item .position {
    font-size: 14px;
    color: #666;
}

/* News/Blog Section */
.news-section {
    background-color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.news-thumb {
    height: 200px;
    overflow: hidden;
    background-color: #ddd;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Widget Styles */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reasons-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        flex-direction: column;
    }
    
    .site-branding .site-description {
        border-left: none;
        border-top: 2px solid #ddd;
        padding-left: 0;
        padding-top: 10px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .reasons-grid,
    .features-grid,
    .news-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff6b00;
    transform: translateY(-5px);
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .site-footer,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Dynamic Page Builder Styles */
.dynamic-section {
    width: 100%;
    position: relative;
}

/* Container Width Options for All Sections */
.dynamic-section.container-full {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.dynamic-section.container-full > * {
    max-width: none;
}

.dynamic-section.container-boxed {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.dynamic-section.container-custom {
    max-width: var(--custom-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.content-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.content-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.content-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.grid-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.grid-item .item-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.cta-content .btn-large {
    font-size: 18px;
    padding: 15px 40px;
}

@media (max-width: 1024px) {
    .content-grid.grid-3,
    .content-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid.grid-3,
    .content-grid.grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ADVANCED PAGE BUILDER SECTIONS
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0s linear 0s;
}

/* Carousel Horizontal Animation */
.hero-section.hero-carousel .hero-slide {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hero-section.hero-carousel .hero-slide.active {
    transform: translateX(0);
    z-index: 2;
}

.hero-section.hero-carousel .hero-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
}

/* Full Width - Content also full width */
.hero-section.container-full .hero-content {
    max-width: none;
    padding: 0 40px;
}

/* Boxed - Default 1200px */
.hero-section.container-boxed .hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Custom Width - Use CSS variable */
.hero-section.container-custom .hero-content {
    max-width: var(--custom-width, 1200px);
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Rich Text Content Styling */
.hero-text p,
.item-text p,
.list-text p,
.member-bio p,
.feature-description p,
.cta-text p,
.text-content p,
.testimonial-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.hero-text strong,
.item-text strong,
.list-text strong,
.cta-text strong,
.text-content strong {
    font-weight: 700;
}

.hero-text em,
.item-text em,
.list-text em,
.cta-text em,
.text-content em {
    font-style: italic;
}

.hero-text ul,
.item-text ul,
.list-text ul,
.cta-text ul,
.text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.hero-text ol,
.item-text ol,
.list-text ol,
.cta-text ol,
.text-content ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
}

.hero-text a,
.item-text a,
.list-text a,
.cta-text a,
.text-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.hero-text a:hover,
.item-text a:hover,
.list-text a:hover,
.cta-text a:hover,
.text-content a:hover {
    opacity: 0.8;
}

.btn-hero {
    background: #fff;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Grid Section */
.grid-section {
    display: grid;
    gap: 30px;
    width: 100%;
}

.dynamic-section.container-full .grid-section,
.dynamic-section.container-full .list-section,
.dynamic-section.container-full .gallery-section,
.dynamic-section.container-full .team-section,
.dynamic-section.container-full .testimonials-section {
    padding: 0 40px; /* Add padding for full width sections */
}

.grid-section.columns-2 { grid-template-columns: repeat(2, 1fr); }
.grid-section.columns-3 { grid-template-columns: repeat(3, 1fr); }
.grid-section.columns-4 { grid-template-columns: repeat(4, 1fr); }
.grid-section.columns-5 { grid-template-columns: repeat(5, 1fr); }
.grid-section.columns-6 { grid-template-columns: repeat(6, 1fr); }

.grid-section .grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.grid-section .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.grid-section .item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-section .item-content {
    padding: 20px;
}

.grid-section .item-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.grid-section .item-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* List Section */
.list-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.list-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    display: grid;
    gap: 15px;
}

.gallery-section.layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-section.layout-masonry {
    columns: 4;
    column-gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    break-inside: avoid;
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Team Section */
.team-section {
    display: grid;
    gap: 30px;
}

.team-section.columns-2 { grid-template-columns: repeat(2, 1fr); }
.team-section.columns-3 { grid-template-columns: repeat(3, 1fr); }
.team-section.columns-4 { grid-template-columns: repeat(4, 1fr); }

.team-member {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.member-position {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.member-bio {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    display: grid;
    gap: 30px;
    width: 100%;
}

.testimonials-section.layout-slider { grid-template-columns: 1fr; }
.testimonials-section.layout-grid { grid-template-columns: repeat(2, 1fr); }

.dynamic-section.container-full .testimonials-section {
    padding: 0 40px;
}

.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    font-size: 80px;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
}

.author-position {
    font-size: 14px;
    color: #666;
}

/* Features Section */
.features-section {
    display: grid;
    gap: 30px;
    width: 100%;
}

.features-section.columns-2 { grid-template-columns: repeat(2, 1fr); }
.features-section.columns-3 { grid-template-columns: repeat(3, 1fr); }
.features-section.columns-4 { grid-template-columns: repeat(4, 1fr); }

.dynamic-section.container-full .features-section {
    padding: 0 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    display: grid;
    gap: 30px;
    width: 100%;
}

.stats-section.columns-2 { grid-template-columns: repeat(2, 1fr); }
.stats-section.columns-3 { grid-template-columns: repeat(3, 1fr); }
.stats-section.columns-4 { grid-template-columns: repeat(4, 1fr); }

.dynamic-section.container-full .stats-section {
    padding: 0 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* Pricing Section */
.pricing-section {
    display: grid;
    gap: 30px;
    width: 100%;
}

.pricing-section.columns-2 { grid-template-columns: repeat(2, 1fr); }
.pricing-section.columns-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-section.columns-4 { grid-template-columns: repeat(4, 1fr); }

.dynamic-section.container-full .pricing-section {
    padding: 0 40px;
}

.pricing-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
}

.pricing-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pricing-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.btn-pricing {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-pricing:hover {
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 30px;
    width: 100%;
}

.dynamic-section.container-full .cta-section {
    padding: 60px 40px;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.cta-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--color-primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Text Section */
.text-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.dynamic-section.container-full .text-section {
    max-width: none;
    padding: 0 40px;
}

.text-section .text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.text-section h2, .text-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.text-section p {
    margin-bottom: 20px;
}

/* Accordion Section */
.accordion-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.dynamic-section.container-full .accordion-section {
    max-width: none;
    padding: 0 40px;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--color-primary);
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.expanded .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.accordion-item.expanded .accordion-content {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* Tabs Section */
.tabs-section {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Section */
.video-section {
    max-width: 900px;
    margin: 0 auto;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Map Section */
.map-section {
    max-width: 100%;
}

.map-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group .required {
    color: #f44336;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Widget Section */
.widget-section .widget {
    margin-bottom: 30px;
}

/* Custom Section */
.custom-section {
    /* User can add custom styles */
}

/* Responsive Styles for Builder Sections */
@media (max-width: 768px) {
    /* Adjust full width padding on mobile */
    .dynamic-section.container-full,
    .dynamic-section.container-full .grid-section,
    .dynamic-section.container-full .list-section,
    .dynamic-section.container-full .section-title {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .grid-section,
    .team-section,
    .features-section,
    .stats-section,
    .pricing-section {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-section.layout-masonry {
        columns: 2;
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .list-image {
        width: 100%;
        height: 250px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
}

/* ==========================================
   DYNAMIC HEADER & FOOTER BUILDER STYLES
   ========================================== */

/* Dynamic Header */
.dynamic-header {
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}

.dynamic-header.width-full .container {
    max-width: 100%;
    padding: 0 40px;
}

.dynamic-header.width-boxed .container {
    max-width: 1200px;
    margin: 0 auto;
}

.dynamic-header.width-custom .container {
    margin: 0 auto;
}

.dynamic-header.is-sticky {
    position: sticky;
    top: 0;
}

.dynamic-header-inner {
    display: grid;
    gap: 20px;
    align-items: center;
}

.dynamic-header-inner[data-columns="1"] {
    grid-template-columns: 1fr;
}

.dynamic-header-inner[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.dynamic-header-inner[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.dynamic-header-inner[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.header-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-logo img {
    max-width: 100%;
    height: auto;
}

.header-text {
    font-size: 16px;
    line-height: 1.6;
}

.header-wysiwyg {
    font-size: 14px;
    line-height: 1.6;
}

.header-wysiwyg p {
    margin: 0 0 10px;
}

.header-menu nav {
    width: 100%;
}

.header-nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-menu li {
    margin: 0;
}

.header-nav-menu a {
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: all 0.3s ease;
}

.header-nav-menu a:hover {
    opacity: 0.8;
}

.header-button .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-button .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.header-image img {
    max-width: 100%;
    height: auto;
}

.header-icon {
    font-size: 24px;
}

.header-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.header-search button {
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Dynamic Footer */
.dynamic-footer {
    padding: 60px 0 40px;
    margin-top: 80px;
}

.dynamic-footer-inner {
    display: grid;
    gap: 40px;
}

.dynamic-footer-inner[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.dynamic-footer-inner[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.dynamic-footer-inner[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-text,
.footer-wysiwyg {
    font-size: 14px;
    line-height: 1.8;
}

.footer-text h3,
.footer-text h4 {
    margin: 0 0 15px;
    font-size: 18px;
}

.footer-wysiwyg p {
    margin: 0 0 10px;
}

.footer-menu nav {
    width: 100%;
}

.footer-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-menu li {
    margin: 0 0 10px;
}

.footer-nav-menu a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav-menu a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dynamic-footer .footer-columns {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-social .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.footer-logo img,
.footer-image img {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .dynamic-header-inner[data-columns="2"],
    .dynamic-header-inner[data-columns="3"],
    .dynamic-header-inner[data-columns="4"] {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .header-nav-menu {
        justify-content: center;
    }
    
    .dynamic-footer-inner[data-columns="2"],
    .dynamic-footer-inner[data-columns="3"],
    .dynamic-footer-inner[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ==========================================
   DYNAMIC HEADER & FOOTER BUILDER STYLES
   ========================================== */

/* Dynamic Header */
.dynamic-header {
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dynamic-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.dynamic-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dynamic-header-inner[data-columns="2"] {
    grid-template-columns: 1fr 1fr;
}

.dynamic-header-inner[data-columns="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.dynamic-header-inner[data-columns="4"] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.header-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Header Elements */
.header-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.header-text {
    font-size: 14px;
    line-height: 1.6;
}

.header-wysiwyg {
    font-size: 14px;
    line-height: 1.6;
}

.header-wysiwyg p {
    margin: 0 0 10px;
}

.header-menu {
    display: block;
}

.header-nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.header-nav-menu li a:hover {
    color: var(--color-primary);
}

.header-button .btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-button .btn-primary:hover {
    background: #0d1f6e;
    transform: translateY(-2px);
}

.header-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header-icon {
    font-size: 24px;
}

.header-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.header-search {
    max-width: 300px;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.header-search input[type="submit"] {
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Dynamic Footer */
.dynamic-footer {
    padding: 60px 0 30px;
}

.dynamic-footer-inner {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.dynamic-footer-inner[data-columns="2"] {
    grid-template-columns: 1fr 1fr;
}

.dynamic-footer-inner[data-columns="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.dynamic-footer-inner[data-columns="4"] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer Elements */
.footer-text {
    font-size: 14px;
    line-height: 1.8;
}

.footer-wysiwyg {
    font-size: 14px;
    line-height: 1.8;
}

.footer-wysiwyg h3,
.footer-wysiwyg h4 {
    margin: 0 0 15px;
    font-weight: 600;
}

.footer-wysiwyg p {
    margin: 0 0 10px;
}

.footer-wysiwyg a {
    color: inherit;
    text-decoration: underline;
}

.footer-wysiwyg a:hover {
    opacity: 0.8;
}

.footer-menu {
    display: block;
}

.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 10px;
}

.footer-nav-menu li a {
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-nav-menu li a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.footer-social a {
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-social .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.footer-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .dynamic-header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .dynamic-footer-inner[data-columns="2"],
    .dynamic-footer-inner[data-columns="3"],
    .dynamic-footer-inner[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}