/* GOSHIN KARATE-DO WEBSITE - MINIMALIST DESIGN */

/* ========================================
   BASE STYLES & RESET
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #2c2c2c;
    letter-spacing: 0.3px;
}

img {
    border-style: none;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

a {
    color: #c62828;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #8b1f1f;
    border-bottom-color: #c62828;
}

a:focus, button:focus {
    outline: 2px solid #c62828;
    outline-offset: 2px;
}

button {
    font: inherit;
    margin: 0;
    border: none;
    cursor: pointer;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 40px 0 24px 0;
    color: #1a1a1a;
    font-size: 36px;
}

p {
    margin: 0 0 24px 0;
    line-height: 1.9;
}

strong {
    font-weight: 600;
    color: #1a1a1a;
}

em {
    font-style: italic;
}

small {
    font-size: 80%;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.w3-container {
    padding: 48px 64px;
    max-width: 900px;
}

.w3-container:after, .w3-container:before {
    content: "";
    display: table;
    clear: both;
}

.w3-container[id] {
    scroll-margin-top: 80px;
}

.w3-main {
    transition: margin-left 0.4s ease;
}

.w3-row-padding {
    padding: 0 8px;
}

.w3-row-padding:after, .w3-row-padding:before {
    content: "";
    display: table;
    clear: both;
}

.w3-half {
    float: left;
    width: 100%;
}

.w3-padding {
    padding: 8px 16px;
}

.w3-padding-64 {
    padding: 64px 16px;
}

.w3-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.w3-xlarge {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.w3-large {
    font-size: 18px;
}

/* ========================================
   COLOR UTILITIES
   ======================================== */

.w3-text-red {
    color: #c62828 !important;
}

.w3-black {
    color: #fff;
    background-color: #000;
}

.w3-transparent {
    background-color: transparent;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.w3-sidebar {
    height: 100%;
    width: 200px;
    background-color: #fafafa;
    border-right: 1px solid #e8e8e8;
    position: fixed !important;
    z-index: 3;
    overflow: auto;
    padding-top: 40px !important;
}

.w3-sidebar .w3-container {
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.w3-sidebar .w3-container img {
    max-width: 200px;
    width: 80%;
    margin: 0 auto;
    display: block;
    padding-bottom: 32px !important;
}

.w3-bar-block {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.w3-bar-block .w3-bar-item {
    width: 100%;
    display: block;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: #4a4a4a;
    text-decoration: none;
    background-color: inherit;
    cursor: pointer;
}

.w3-bar-block .w3-bar-item:hover {
    background-color: #ffffff !important;
    border-left-color: #c62828;
    border-bottom-color: transparent;
    color: #1a1a1a;
    padding-left: 36px;
}

/* ========================================
   BUTTONS
   ======================================== */

.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ========================================
   MOBILE HEADER
   ======================================== */

.w3-top.w3-hide-large {
    background-color: #fafafa !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 0 16px !important;
}

.w3-top.w3-hide-large .w3-button {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w3-top.w3-hide-large .w3-button img {
    margin: 0 !important;
}

.title {
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
    margin-left: 12px;
}

.logo-mobile {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */

#mySidebar {
    background-color: #fafafa;
}

#mySidebar .w3-bar-item {
    padding: 20px 24px;
    font-size: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.w3-top img[src*="menu"] {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    max-width: 28px;
    display: block;
}

.w3-top img[src*="menu"]:hover {
    opacity: 1;
}

/* ========================================
   OVERLAY
   ======================================== */

.w3-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* ========================================
   TABLES
   ======================================== */

table {
    margin: 24px 0;
    border-spacing: 0;
    border-collapse: collapse;
}

table td {
    padding: 12px 24px 12px 0;
    line-height: 1.8;
}

table td:first-child {
    font-weight: 500;
    color: #4a4a4a;
    min-width: 120px;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */

.w3-half img {
    margin-bottom: 16px;
    margin-top: 0;
    opacity: 1;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0 8px;
}

.w3-half img:hover {
    opacity: 0.92;
}

/* ========================================
   MODAL
   ======================================== */

.w3-modal {
    z-index: 3;
    display: none;
    padding-top: 100px;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.w3-modal-content {
    margin: auto;
    background-color: #fff;
    position: relative;
    padding: 0;
    outline: 0;
    width: 600px;
}

.w3-modal .w3-button {
    font-size: 28px;
    font-weight: 300;
    padding: 16px 24px;
    transition: all 0.2s ease;
}

.w3-modal .w3-button:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ========================================
   DISPLAY UTILITIES
   ======================================== */

.w3-display-topright {
    position: absolute;
    right: 0;
    top: 0;
}

.w3-center {
    text-align: center;
}

.w3-image {
    max-width: 100%;
    height: auto;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.w3-animate-zoom {
    animation: animatezoom 0.6s;
}

@keyframes animatezoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ========================================
   DOWNLOAD LINKS
   ======================================== */

.w3-container a[download] {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.w3-container a[download]:hover {
    padding-left: 8px;
    color: #8b1f1f;
}

/* ========================================
   CALL TO ACTION
   ======================================== */

.cta-button {
    background-color: #c62828;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
    text-transform: uppercase;
    width: 100%;
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.cta-button:hover {
    background-color: #8b1f1f;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
    transform: translateY(-2px);
    animation: none;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(198, 40, 40, 0.5);
        transform: scale(1.02);
    }
}

.cta-modal-content {
    max-width: 500px;
}

.cta-modal-content h2 {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    font-size: 28px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

iframe {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

iframe:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Desktop (large screens) */
@media (min-width: 993px) {
    .w3-hide-large {
        display: none !important;
    }

    .w3-sidebar.w3-collapse {
        display: block !important;
    }

    .w3-main {
        margin-left: 300px !important;
        margin-right: 0 !important;
    }

    .w3-half {
        width: 49.99999%;
    }

    .w3-modal-content {
        width: 900px;
    }
}

/* Tablet and below */
@media (max-width: 992px) {
    .w3-sidebar.w3-collapse {
        display: none;
    }

    .w3-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .w3-modal-content {
        width: 500px;
    }

    .w3-modal {
        padding-top: 50px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .w3-modal-content {
        margin: 0 10px;
        width: auto !important;
    }

    .w3-modal {
        padding-top: 30px;
    }

    .w3-container {
        padding: 32px 24px;
    }

    h1.w3-xlarge {
        font-size: 28px;
    }
}


