/* Base Styles */
:root {
    --primary-color: #9d0208; /* Deep red instead of blue */
    --secondary-color: #6a040f; /* Darker red instead of red */
    --accent-color: #d00000; /* Light red instead of blue */
    --light-color: #f5f5f5; /* Light gray instead of light green */
    --dark-color: #161616; /* Near black instead of dark blue */
    --text-color: #333;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo .header-logo {
    height: 50px;  /* Match header height */
    margin-right: 15px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
    position: relative;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--dark-color);
}

.dropdown-menu a::after {
    display: none;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Featured Section */
.featured {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.featured-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quote-box {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
}

.quote-box p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.quote-box .author {
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-item.full-width .featured-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .featured-item.full-width .featured-video,
    .featured-item.full-width .featured-text {
        flex: 1;
    }
}

.featured-content .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.featured-content .about-image,
.featured-content .about-text {
    flex: 1;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content.side-by-side .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-content.side-by-side .about-image,
.about-content.side-by-side .about-text {
    flex: 1;
}

.download-section {
    text-align: center;
    margin-top: 20px;
}

.featured-image {
    flex: 1;
}

.featured-image img,
.featured-video iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.featured-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.featured-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.caption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: var(--accent-color);
}

.featured-text {
    flex: 1;
}

.featured-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.featured-text p {
    margin-bottom: 15px;
}

.featured-text h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.practice-paths {
    list-style: none;
    margin: 20px 0;
}

.practice-paths li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.practice-paths li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Locations Section */
.locations {
    padding: 80px 0;
}

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

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.location-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.location-flag {
    width: 100%;
    height: 120px;
    margin: -25px -25px 20px -25px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

.location-card:hover .location-flag img {
    transform: scale(1.1);
}

.location-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Affiliates Section */
.affiliates {
    padding: 60px 0;
    background-color: #f8f8f8; /* Slightly different shade of light gray */
}

.affiliate-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.affiliate-links a {
    background-color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

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

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

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    color: #ddd;
}

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

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

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

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

/* Ki no Kenko Section Styles */
.kinokenko {
    padding: 80px 0;
}

.kinokenko-content {
    /* Add specific styles for the content within the Ki no Kenko section */
}

.kinokenko-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.kinokenko-content td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-content {
        flex-direction: column;
    }
    
    .featured-image, 
    .featured-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: #f8f8f8;
        width: 100%;
        padding: 10px 0;
        margin-top: 10px;
    }
    
    .dropdown-menu a {
        padding: 10px;
    }
    
    .dropdown-toggle {
        margin-left: 5px;
        cursor: pointer;
    }
    
    .active-dropdown .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .featured, 
    .locations, 
    .affiliates {
        padding: 50px 0;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliate-links {
        flex-direction: column;
        align-items: center;
    }
    
    .affiliate-links a {
        width: 80%;
        text-align: center;
    }
}
