/* ==========================================================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
body, html { margin: 0; padding: 0; }

/* Force all main headings to white Raleway */
h1, h2, h3, h4, h5, h6,
.section-title h2,
.custom-short-block h2,
.timeline-post-title h4 {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  color: #fff !important;
}

section { position: relative; }
.section-title { text-align: center; margin-bottom: 50px; color: #fff; }

/* ==========================================================================
   2. NAVBAR (DROPDOWN ALIGNMENT & MOBILE FIXES)
   ========================================================================== */
.navbar-default { background: transparent; border: none; }
.navbar-default.navbar-fixed-top { top: 0; }
.navbar-default .navbar-nav > li { position: relative; padding-bottom: 0; }
.navbar-default .navbar-nav > li > a {
  color: #fff !important;
  font-weight: 600;
  padding: 18px 18px 16px 18px;
  position: relative;
  background: none !important;
  transition: color 0.2s;
}

/* Font fix for Video/Shorts pages */
.video-page .navbar-default,
.video-page .navbar-default .navbar-nav > li > a,
.video-page .navbar-default .sub-menu li a {
  font-family: 'Raleway', sans-serif !important;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Uniform yellow underline */
.navbar-default .navbar-nav > li > a:after {
  content: ''; display: block; margin: 0 auto; width: 32px; height: 3px;
  background: transparent; position: absolute; left: 50%;
  transform: translateX(-50%); bottom: 6px; border-radius: 1.5px;
  transition: background 0.2s;
}
.navbar-default .navbar-nav > li.active > a:after,
.navbar-default .navbar-nav > li > a:hover:after { background: #ffd44d; }

/* Remove extra border/padding from Bootstrap */
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:focus,
.navbar-default .navbar-nav > li.active > a:hover {
  border: none !important; color: #fff !important;
  padding-bottom: 16px !important; background: none !important;
}

/* Submenu styling */
.navbar-default .navbar-nav li .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 170px;
  background: rgba(0,0,0,0.95); z-index: 99; box-shadow: 0 8px 22px 0 rgba(0,0,0,0.09);
  list-style: none; padding: 8px 0; margin: 0; border-radius: 0 0 7px 7px;
}
.navbar-default .navbar-nav li:hover > .sub-menu,
.navbar-default .navbar-nav li:focus-within > .sub-menu { display: block; }
.navbar-default .navbar-nav li .sub-menu li a {
  color: #fff !important; padding: 10px 22px; display: block; font-weight: 500;
  font-size: 16px; white-space: nowrap; background: transparent; transition: color 0.2s, background 0.2s;
}
.navbar-default .navbar-nav li .sub-menu li a:hover { color: #ffd44d !important; background: rgba(255,212,77,0.08); }

/* Sticky Nav */
body.sticky-nav .navbar-default { background: rgba(0, 0, 0, 0.85); box-shadow: 0 2px 6px rgba(0,0,0,0.6); }

/* Mobile Nav Fixes */
.navbar-toggle { border: none !important; background: none !important; outline: none !important; box-shadow: none !important; padding: 8px 10px; z-index: 1032 !important; position: relative; }
.navbar-toggle .fa-navicon, .navbar-toggle .icon-bar { color: #ffd44d !important; background: none !important; font-size: 24px; border: none; }
.navbar-toggle .icon-bar { background-color: #ffd44d !important; border-radius: 2px; }
.navbar-fixed-top { z-index: 1030 !important; }
.navbar-collapse { z-index: 1031 !important; }

@media (max-width: 991px) {
  .navbar-default .navbar-nav li .sub-menu { position: static; display: none !important; box-shadow: none; min-width: 100%; background: #232323; border-radius: 0; }
  .navbar-default .navbar-nav li.open > .sub-menu, .navbar-default .navbar-nav li:focus-within > .sub-menu { display: block !important; }
  .navbar-default .navbar-collapse, .navbar-default .navbar-nav { background: rgba(0,0,0,0.92) !important; box-shadow: 0 8px 22px 0 rgba(0,0,0,0.25); border: none; }
  .navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav .sub-menu li a { color: #ffd44d !important; background: transparent !important; font-weight: 600; border: none !important; }
  .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav .sub-menu li a:hover, .navbar-default .navbar-nav .sub-menu li a:focus { background: rgba(50,40,10,0.2) !important; color: #fffde0 !important; }
  .navbar-default .navbar-nav .sub-menu { background: rgba(0,0,0,0.95) !important; }
}

/* ==========================================================================
   3. HERO & VIDEO BACKGROUND
   ========================================================================== */
.video-background, .video-foreground iframe { width: 100%; height: 100vh; object-fit: cover; }
.video-background::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }

/* ==========================================================================
   4. TIMELINE & SHORT BLOCKS
   ========================================================================== */
.custom-short-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; background-color: rgba(255, 255, 255, 0.03); border-radius: 16px; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.custom-short-block:hover { transform: scale(1.02); }
.custom-short-block h2 { font-size: 1.5em; font-weight: 700; margin-bottom: 10px; color: #fff; }
.custom-short-block p { font-size: 1em; margin-bottom: 15px; color: #ccc; max-width: 90%; }

.short-video-wrapper { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin-bottom: 15px; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
.short-video-wrapper iframe { width: 100%; height: 100%; border: none; }
.cd-timeline__date { font-size: 0.9em; color: #aaa; margin-top: 10px; }

/* ==========================================================================
   5. VIDEO GRIDS (Standard 16:9 vs Shorts 9:16)
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.video-page .video-grid { padding: 0 30px; }
.video-grid iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }

.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 0 30px; }
.shorts-grid iframe { width: 100%; aspect-ratio: 9 / 16; border: none; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }

/* ==========================================================================
   6. RESUME PAGE SPECIFICS
   ========================================================================== */
body.resume-page { background: #000; color: #fff; }
body.resume-page p, body.resume-page li { color: #ccc; }
body.resume-page #resume, body.resume-page #skills, body.resume-page #service, body.resume-page .section, body.resume-page section { background: #000 !important; color: #fff !important; }

.timeline-post-content-holder { background: rgba(20,20,20,.95) !important; color: #ccc !important; border-radius: 12px; padding: 20px; position: relative; }
.skills-content { background: rgba(30,30,30,.95) !important; color: #fff !important; border-radius: 12px; padding: 20px; text-align: center; transition: background .3s; }
.skills-content:hover { background: rgba(255,255,255,.1); }
.timeline-post-content-holder h4, .timeline-post-title h4 { color: #ffd44d !important; }
.timeline-post-subtitle p { color: #aaa !important; }

/* Timeline Pointer Fix */
.timeline-post-left .timeline-post-content-holder:before, .timeline-post-right .timeline-post-content-holder:before { content: ''; position: absolute; top: 28px; border: 9px solid transparent; }
.timeline-post-left .timeline-post-content-holder:before { left: -18px; border-right-color: rgba(20,20,20,.95); }
.timeline-post-right .timeline-post-content-holder:before { right: -18px; border-left-color: rgba(20,20,20,.95); }
.timeline-post-image { float: right; width: 110px; margin: 0 0 10px 15px; }
.timeline-post-image img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* ==========================================================================
   7. MISC FIXES (Video Pages, Articles, Footer)
   ========================================================================== */
body.video-page { background: #000; color: #fff; font-family: 'Open Sans', sans-serif; }
body.video-page .section { background: #000; padding: 60px 0; }
body.video-page .section-title { padding-top: 60px; }

#about-preview p { color: #fff; }
.skill-icon { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; }
.skill-slide { text-align: center; padding: 25px 15px; }
footer { background: #111; color: #aaa; }

/* =========================================
   STORE CTA (From index.html)
========================================= */
.store-cta-title { color: #fff !important; }
.store-cta-desc { color: #cfd6dd; max-width: 780px; margin: 12px auto 0; }
.btn-store {
    background: #ffd44d !important;
    color: #111 !important;
    font-weight: 800;
    border-radius: 10px;
    border: none;
}
.btn-store:hover { background: #e6be45 !important; color: #000 !important; }

/* =========================================
   LESSONS / BOOKING PAGE (From lessons.html)
========================================= */
body.lessons-page { background-color: #0a0a0a !important; }
.booking-section { padding-top: 120px; padding-bottom: 80px; min-height: 80vh; color: #dddddd; }
.booking-section .section-title h2 { color: #ffffff !important; }

.category-title {
    color: #ffd44d;
    text-align: left;
    margin: 50px 0 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 20px;
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
}

.lesson-card {
    background: #141414;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.lesson-card:hover { transform: translateY(-5px); border-color: #ffd44d; box-shadow: 0 10px 20px rgba(0,0,0,0.8); }
.lesson-card h3 { color: #ffffff; font-size: 20px; margin-top: 15px; margin-bottom: 5px; font-weight: 700; }
.lesson-card p { color: #a0a0a0; font-size: 13px; margin-bottom: 25px; min-height: 40px; line-height: 1.5; }
.lesson-card i { font-size: 36px; color: #ffd44d; }
.lesson-card.active { border-color: #ffd44d; background: #1a1a1a; }

.price-tag { color: #ffffff; font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.price-discount { text-decoration: line-through; color: #666; font-size: 14px; margin-right: 8px; font-weight: 400; }

.btn-select-lesson {
    background: transparent; color: #ffd44d; border: 2px solid #ffd44d;
    padding: 8px 20px; border-radius: 20px; font-weight: 600;
    text-transform: uppercase; font-size: 12px; transition: all 0.3s ease;
}
.lesson-card:hover .btn-select-lesson,
.lesson-card.active .btn-select-lesson { background: #ffd44d; color: #111; }

.cal-embed-container {
    margin-top: 20px; margin-bottom: 40px; background: #141414;
    border-radius: 12px; border: 1px solid #222; padding: 10px; display: none; 
}

/* =========================================
   NAVBAR ALIGNMENT & ANTI-WRAP FIX
========================================= */
@media (min-width: 992px) {
    /* Turn the navbar container into a flexible box to group items together */
    .custom-navbar .container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Stop the logo from floating to the far left edge */
    .custom-navbar .navbar-header {
        float: none !important;
        margin-right: 30px !important; /* Breathing room between logo and menu */
    }

    /* Force the menu to stay inline */
    .custom-navbar .navbar-collapse {
        float: none !important;
        display: flex !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* Prevent the menu items from wrapping to a second row */
    .custom-navbar .navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        float: none !important;
        margin: 0 !important;
    }

    .custom-navbar .navbar-nav > li {
        float: none !important;
        white-space: nowrap !important; /* Locks text onto one line */
    }
}

/* =========================================
   TIMELINE DARK MODE FIX
========================================= */
.cd-timeline__content, 
.custom-short-block {
    background: #141414 !important;
    border: 1px solid #222222;
    color: #dddddd;
}
.cd-timeline__content h2, 
.custom-short-block h2 {
    color: #ffffff !important;
}
.cd-timeline__content p, 
.custom-short-block p {
    color: #a0a0a0 !important;
}
.cd-timeline__content::before {
    border-left-color: #141414 !important; 
    border-right-color: #141414 !important;
}
.cd-timeline__date {
    color: #ffd44d !important;
    font-weight: 600;
}

/* =========================================
   RESUME TIMELINE ARROWS - ULTIMATE OVERRIDE
========================================= */
/* Left Post Arrows (Force to the right side, pointing right) */
.timeline-post-left .timeline-post-content-holder:before {
    border-color: transparent transparent transparent #ffd44d !important;
    right: -18px !important;
    left: auto !important; /* Nukes the developer's backwards code */
}

/* Right Post Arrows (Force to the left side, pointing left) */
.timeline-post-right .timeline-post-content-holder:before {
    border-color: transparent #ffd44d transparent transparent !important;
    left: -18px !important;
    right: auto !important; /* Nukes the developer's backwards code */
}

/* =========================================
   NEXTCLOUD TALK WIDGET STYLES (MOVED TO LEFT)
========================================= */
/* The floating button */
.nc-talk-btn {
    position: fixed; 
    bottom: 20px; 
    left: 20px; /* <--- Changed from right to left */
    background-color: #ffd44d; 
    color: #111;
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 28px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999; 
    border: none; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.nc-talk-btn:hover {
    background-color: #e6be45; 
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* The Popup Chat Box */
.nc-chat-widget {
    position: fixed; 
    bottom: 90px; 
    left: 20px; /* <--- Changed from right to left */
    width: 380px; 
    height: 550px; 
    max-height: 80vh; 
    max-width: 90vw;
    background: #141414; 
    border: 1px solid #333; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: none; 
    flex-direction: column; 
    z-index: 9999; 
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
.nc-chat-widget.active {
    display: flex;
}
.nc-chat-header {
    background: #ffd44d; 
    color: #111; 
    padding: 12px 15px;
    font-weight: 700; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.nc-chat-close {
    background: none; 
    border: none; 
    font-size: 24px; 
    font-weight: bold;
    cursor: pointer; 
    color: #111; 
    line-height: 1; 
    padding: 0;
}
.nc-chat-widget iframe {
    width: 100%; 
    height: 100%; 
    border: none; 
    background: #fff;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Force uniform sizing for all Skill icons */
.skills-content img.header-logo {
    height: 90px !important; /* Adjust this number up or down to match your preference */
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
}


/* =========================================
   INDEX PAGE SPACING FIXES
========================================= */
/* 1. Push the articles down so they clear the navbar */
#articles-videos {
    padding-top: 140px !important; 
    padding-bottom: 20px !important; /* Shrink the gap below the cards */
}

/* 2. Reduce the massive default gap on the VRTennis Store section */
#store-cta {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

#store-cta .container {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}