@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

/* Default Header Styles */
header {
    background: url('images/header7.jpg') no-repeat center center/cover;
    color: rgb(247, 246, 250);
    text-align: center;
    padding: 5px 0;
    height: 35vh;
    position: relative;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgb(8, 8, 8);
}




/* Media Query for Small Screens (349px and up) */
@media screen and (min-width: 349px) {
    header {
        font-size: 22px; /* Reduce font size for smaller screens */
        height: 30vh; /* Adjust height */
        padding: 15px 0;
    }
}

/* Media Query for Tablets (600px and up) */
@media screen and (min-width: 600px) {
    header {
        font-size: 26px;
        height: 32vh;
        padding: 18px 0;
    }
}

/* Media Query for Desktops (900px and up) */
@media screen and (min-width: 900px) {
    header {
        font-size: 32px;
        height: 35vh;
        padding: 20px 0;
    }
}

/* Media Query for Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    header {
        font-size: 36px;
        height: 40vh;
        padding: 25px 0;
    }
}



/* Menu Button (Hamburger) */
.menu-button {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px; /* Move hamburger menu to the left */
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    color: white;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown link */
.dropdown-link {
    text-decoration: none;
}

/* Dropdown content - initially hidden */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    z-index: 1;
}

/* Dropdown link inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown when hovering over the parent */
.dropdown:hover .dropdown-content {
    display: block;
}




/* Close Button for Mobile Navigation */
.close-button {
    position: absolute;
    top: 15px;
    left: 15px; /* Position close button on the left */
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* Navigation Menu */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgb(40, 105, 149);
    padding: 10px 0;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

nav a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #f4a261;
}

.white {
    padding-top: 25px;
    color: #fff;
}

span{
        color: #f4a261 !important;
}


.main_background {
    background-color: #fffefd;
}

/* Box Container */
.box-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 5px;
    background: #fff;
}

/* Box */
.box {
    
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease-in-out;
    overflow: hidden; /* Ensures image fits inside */
    display: flex;
    flex-direction: column;
}

/* Image - Fills Entire Top */
.box img {
    width: 100%; /* Removes side gaps */
    height: 400px; /* Set a fixed height */
    object-fit: cover; /* Ensures image fully covers area */
    display: block;
}

/* Text Content */
.box h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #222;
}

.box hr {
    width: 80%;
    margin: 10px auto;
    border: 0;
    height: 2px;
    background: #c3bb88;
}

.box p {
    padding: 10px;
    font-size: 16px;
    color: #555;
}


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


/* Section Container */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    
}

.text-content {
    flex: 1;
}

.text-content h2, .text-content p {
    color: #fff;
}

.section-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
}

/* Information Activity Section */
.main_info {
    background: rgb(228, 228, 228);
}

.centered-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 55vh;
    padding: 20px;
}

.activity-section {
    max-width: 1200px;
    background: rgb(228, 228, 228);
    border-radius: 2px;
}

.activity-section h2, .activity-section h3, .activity-section h4 {
    margin-bottom: 10px;
}

.activity-section p {
    margin-bottom: 20px;
}

.activity-section ul {
    list-style-type: none;
    padding: 0;
}

.activity-section li {
    margin-bottom: 5px;
}


/* new section */
.new-section {
    background: rgb(251, 252, 252) !important; /* Forces this color to apply */
    color: rgb(4, 4, 4); /* Ensures text is visible */
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Flex container for two columns */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* First column styles */
.col-1 {
    flex: 1;
    max-width: 55%; /* Ensures it's smaller than the second column */
    padding: 10px;
    margin-right: 2%; /* Space between columns */
}

.col-1 h3 {
    font-size: 1.8rem;
    color: #000;
}

.col-1 ul {
    list-style-type: none;
    padding: 0;
}

.col-1 li {
    margin-bottom: 15px;
}

.col-1 h4 {
    font-size: 1.3rem;
    color: #000;
}

.col-1 p {
    font-size: 1rem;
    color: #000;
}

/* Second column styles */
.col-2 {
    flex: 1;
    max-width: 50%; /* Adjust size to fit the second column */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.block {
    max-width: 45%; /* Adjust size to fit the second column */
    background-color: #dad6d6;
    padding: 3px;
    margin-bottom: 3px;
    padding-top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
}
.block  img{
    max-width: 100%; /* Adjust size to fit the second column */
    background-color: #b0abab;
    padding: 1px;
    margin-bottom: 2px;
    margin-top: 1px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.block a {
    text-decoration: none;
    color: rgb(71, 70, 70);
    
}


.block hr{
    color: rgb(250, 252, 252);
  
}

.block h3{
    font-size: 15px;
    margin: 0; /* Remove extra space */
    padding: 0;
}

.block h4 {
    font-size: 12px;
    color: #333;
}

.block p {
    font-size: 1rem;
    color: #555;
}



/* button front page */
.btn {
    display: block; /* Ensures it takes full width */
    margin: 5px 0; /* Adjust to reduce top and bottom space */
    padding: 8px 12px;
    font-size: 14px;
    background-color: #eef2ee;
    color: rgb(8, 8, 8); 
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    text-align: center;
}


.btn:hover {
    background-color: #e0e4e7;
    color: #32acbf; /* Ensure text changes on hover */
}





/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-1, .col-2 {
        max-width: 100%;
        margin-right: 0;
    }
}




/* ---------------------------------------------------------------footer  */
/* Footer styling */
footer {
    /* background-color: #2a2a2a; */
    background: rgb(40, 105, 149);
    color: white;
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
    width: 100%;
    margin-top: 40px; /* Space above the footer */
}

/* Footer container */
.footer-container {
    max-width: 1200px; /* Ensures the footer fits within the page's max width */
    margin: 0 auto; /* Centers the footer */
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px; /* Padding for inner content */
}

.footer-column a{
    color: #fff;
    text-decoration: none;
}

/* Each column within the footer */
.footer-column {
    flex: 1;
    min-width: 220px;
    max-width: 250px;
    margin: 10px 0;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.footer-column ul li a:hover {
    color: #f4a261;
}

.footer-column p {
    font-size: 16px;
    color: #ccc;
}

/* Video container */
.video-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .footer-column {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .video-container iframe {
        width: 100%;
        max-width: 250px;
        height: 140px;
    }
}

/* Consistency with other sections */
footer p {
    font-size: 14px;
    color: #fff;
    margin-top: 20px;
    font-weight: 400;
}


/* Media Queries */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: rgb(40, 105, 149);
        transition: left 0.3s ease;
        padding-top: 60px;
    }

    nav.active {
        left: 0;
    }

    nav a {
        font-size: 16px;
        padding: 15px;
    }
}

@media (min-width: 349px) and (max-width: 480px) {
    header {
        height: 20vh;
    }

    nav a {
        font-size: 14px;
        padding: 8px;
    }

    .box img {
        height: 180px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    header {
        height: 25vh;
    }

    .section-container {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .section-container {
        flex-direction: row;
    }
}

/*----------------------------------------------------------------- About  */

/* Container for the columns */
.section-container {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr; /* First two columns equal, third smaller */
    gap: 5px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    align-items: start; /* Align the columns to the top */
}

/* Background column styling */
.bg-column {
    /* background-image: url("images/aboutbg-2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensures content starts from top */
    align-items: flex-start; /* Align content to the left */
    padding: 20px;
    height: auto; /* No height stretching */
    min-height: 100%; /* Prevent background gaps */
}

/* Image styling to remove extra space */
.bg-column img {
    width: 100%; /* Make image responsive */
    height: auto; /* Keep the aspect ratio */
    max-height: 300px; /* Prevent image from being too large */
    object-fit: cover; /* Ensure the image covers the area */
    display: block; /* Removes inline spacing */
    margin-bottom: 0; /* No bottom margin */
}

/* Prevent paragraph extra spacing below image */
.bg-column p {
    margin-top: 0; /* Prevent any unwanted space above the text */
    padding-top: 0; /* Removes padding */
}
.button {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-bottom: 4px;
}
.button:hover {
    background: rgb(242, 244, 245);
    color: #000;
    opacity: 0.5; /* Adjust for desired effect */
    transition: opacity 0.3s ease-in-out;
}


.button-2 {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-bottom: 4px;
}
.button-2:hover {
    background: rgb(242, 244, 245);
    color: #000;
    opacity: 0.5; /* Adjust for desired effect */
    transition: opacity 0.3s ease-in-out;
}






.about_pic {
    width: 100%; /* Adjust as needed */
    max-width: 400px; /* Example max width */
    display: block;
    border-radius: 0 !important;
}
.about_pic {
    position: relative;
    transition: opacity 0.3s ease-in-out;
}

.about_pic:hover {
    opacity: 0.5; /* Adjust for desired effect */
}

/* Third column styling */
.section-container .column {
    background-color: #f0f0f0; /* Optional background */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: flex-start;
}

/* Remove any extra spacing from the text content */
.text-content {
    width: 100%;
    text-align: left;
}

/* Styling for <h2> and <p> inside .text-content */
.text-content h2,
.text-content p {
    color: #000;
    margin: 0; /* Remove extra margins */
    padding: 10px 0; /* Adjust spacing */
    line-height: 1.5; /* Improve readability */
}


.kanji{
      display: flex; 
    align-items: center; /* Vertically center the items */
    justify-content: flex-start; /* Align content to the start */
    gap: 20px; /* Space between the image and the text */
}


/* Responsive layout for small screens */
@media (max-width: 768px) {
    .section-container {
        grid-template-columns: 1fr; /* Stack all columns vertically */
    }
    .column{
        grid-column: 1 / -1;
    }

    .section-container .column {
        width: 100%;
    }

    .bg-column img {
        max-height: 200px; /* Reduce image height on small screens */
    }

    .kanji {
        flex-direction: column; /* Stack kanji image and text vertically */
        gap: 10px;
    }
}

/* Medium screens: 2 columns */
@media (min-width: 769px)  {
    .section-container {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        margin-bottom: 20px;
    }
}
/* Medium screens: 2 columns */
@media (min-width: 783px)  {
    .section-container {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        margin-bottom: 20px;
    }
}

/* Default (desktop and up): 3 columns */
@media (min-width: 1025px) {
    .section-container {
        grid-template-columns: 1fr 1fr 0.6fr;
        margin-bottom: 12px;
    }
   
}





/* -----------------------------------------------------------Dojo */

/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Container for Dojo Layout */
.dojo-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Left Side: Text Content */
.dojo-content {
    flex: 1;
    padding: 20px;
}

.dojo-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.dojo-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dojo-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.dojo-content h3 {
    margin-top: 15px;
}

/* Right Side: Images */
.dojo-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.dojo-images img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dojo-container {
        flex-direction: column;
        text-align: center;
    }

    .dojo-images {
        padding: 10px;
    }

    .dojo-images img {
        max-width: 80%;
        margin: 0 auto;
    }
}


/* Sensei */

/* Section Container */


.sensei-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px;
    background-color: #f4f4f4;
    margin: 0 auto;
    max-width: 1200px; /* Adjust max width to match the rest of the layout */
}

/* Text Content */
.sensei-text-content {
    flex: 1;
    padding-right: 20px;
}

.sensei-text-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.sensei-text-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Image Content */
.image-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-content img {
    width: 100%; /* Ensure the images take up the full width of the container */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Single Column Section */
.single-column-section {
    padding: 40px;
    background-color: #f4f4f4;
    text-align: justify;
    margin-top: 20px;
}

/* Single Column Content */
.single-column-content {
    max-width: 1200px;  /* Adjust the width to fit the design */
    margin: 0 auto;    /* Center the content */
}

.single-column-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.single-column-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Add padding-bottom to the main content */
main {
    padding-bottom: 100px; /* Adjust this value as needed */
}


/* Responsive Design */
@media (max-width: 768px) {
    .sensei-container {
        flex-direction: column;
        padding: 20px;
        max-width: 100%; /* Ensure it fills the screen on smaller devices */
    }

    .sensei-text-content {
        padding-right: 0;
    }

    .image-content img {
        max-width: 100%; /* Ensures the images are responsive */
    }
}


/* Timetable */

/* Section Styling */
.classes-timetable {
    padding: 40px;
    background-color: #f4f4f4;
    text-align: center;
}

.classes-timetable h2 {
    font-size: 32px;
    color: #000;
    margin-bottom: 20px;
}

/* Timetable Container */
.timetable-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.timetable-header,
.timetable-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.timetable-header {
    background-color: #2a2a2a;
    color: white;
    font-weight: bold;
}

.time-slot {
    width: 33%;
    text-align: center;
    font-size: 16px;
    color: #ec9119;
}

.timetable-row:last-child {
    border-bottom: none;
}

.timetable-row:hover {
    background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timetable-header,
    .timetable-row {
        flex-direction: column;
        align-items: center;
    }

    .time-slot {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* --------------------------------------------------Techniques */

/* Image & Text Section */
.image-text-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    background: #dddcdc;
}

.image-container {
    flex: 1;
    max-width: 350px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.text-container {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.text-container h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.text-container p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Reverse Layout for Alternating Sections */
.reverse {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-text-section {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        max-width: 100%;
    }

    .reverse {
        flex-direction: column;
    }
}


/* --------------------------------------------------News Page */


#wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


#header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hread {
    font-size: 2rem;
    color: #333;
}

#logo img {
    width: 260px;
    height: 80px;
}

nav p {
    font-size: 1rem;
}

nav a {

    text-decoration: none;
    padding: 0 10px;
}

#gnav ul {
    list-style: none;
    display: flex;
}

#gnav li {
    margin-right: 20px;
}

#gnav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

#gnav a:hover {
    text-decoration: underline;
}

#hSearch {
    margin-left: auto;
}

#bread {
    background-color: #eee;
    padding: 10px 0;
    margin-top: 20px;
}

#bread p {
    font-size: 1rem;
    color: #555;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
}

#contents {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 45px;
}

.read {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.imgL {
    margin-right: 20px;
}

.catIndex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.catNav {
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
}

.catNav img {
    width: 135px;
    height: 138px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.catNav img:hover {
    transform: scale(1.05);
}

.catNav dl {
    margin-top: 10px;
}

.catNav dt {
    font-weight: bold;
    font-size: 1.1rem;
}

.catNav dd {
    color: #555;
}

.catNav.mr00 {
    margin-right: 0;
}

#info {
    margin-top: 30px;
}

#infoDetail {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#infoDetail h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

#infoDetail p {
    font-size: 1rem;
    color: #666;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    #gnav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    #gnav li {
        margin-bottom: 15px;
    }

    .catNav {
        width: 48%;
    }

    #container {
        padding: 10px;
    }

    .title {
        font-size: 1.8rem;
    }

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

    .imgL {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
/* -------------------------------------------------Gallery */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
        .gallery img { width: 100%; height: auto; cursor: pointer; border-radius: 5px; }
        .swiper-container { display: none; width: 100%; }
        .swiper-slide img { width: 100%; height: auto; border-radius: 5px; }
        .lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; }
        .lightbox img { max-width: 90%; max-height: 90%; border-radius: 5px; }