/*body{
    margin: 0;
    padding: 0;
}
*/

.navbar-default {
    background-color: #fff !important;
    border-color: #e7e7e7;
    
}
header {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: transparent; 
    position: relative; 
    z-index: 100;

}
header * {
    box-sizing: border-box;
}

    header > section:first-of-type {
/*        display: flex;*/
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color:#fff;
        z-index: 10; 
    }

/*header > section:first-of-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 81px;
    padding-right: 2%;
    background: #fff;
    position: relative;
    z-index: 10; 
}*/

/*    header > section:first-of-type {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        display: flex;
        justify-content: space-between;
    }*/

.branding-left {
    display: flex;
    align-items: center;
    background-color: #b0040f;
    color: white;
    padding: 15px 40px 0px 35px;
    position: absolute;
    top: -17px;
    left: 0;
    height: 115px;
    z-index: 20;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    width: auto;
    min-width: 30%;
    max-width: 45%;
}
.branding-left img {
    height: clamp(45px, 6vw, 65px);
    margin-right: 15px;
}
.branding-left h1 {
    font-size: clamp(0.9rem, 1.8vw, 1.4rem);
    margin: 0;
    line-height: 1.2;
}
.branding-right {
/*    display: flex;*/
    align-items: center;
    gap: 10px;
    text-align: right;
    margin-left: auto; 
    height:100px
}

.branding-right img {
/*    height: clamp(45px, 5vw, 55px);*/
margin-right:25px
}

header > section:nth-of-type(2) {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    background-color: #eeeeee;
    padding: 10px 2%;
     padding-top:1.1rem;

    gap: 1.5rem;
    min-height: 70px;
  
    
}

.track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    padding-top: 15px;
}
.track-info img {
    width: clamp(50px, 5vw, 70px);
    height: auto;
    aspect-ratio: 16/9;
}
.track-info p {
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 700;
    line-height: 1.2;
}

.player-controls {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    align-items: center;
}
.play-pause-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s active;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
}

.play-pause-btn i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:active {
    transform: scale(0.92);
}

.seek-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 300px;
}

.time {
    font-size: 11px;
    color: #666;
    min-width: 30px;
}



/* 1. Layout Containers */
.seek-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 300px;
}

.playback-settings {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    flex-shrink: 0;
}

.time {
    font-size: 11px;
    color: #666;
    min-width: 30px;
}

/* 2. The Seek Bar Container */
.seek-bar { 
    flex: 1; 
    display: flex;
    align-items: center;
}

/* 3. The Input Track (The Line) */
.seek-bar input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px; /* Matches your image thickness */
    background: #d3d3d3; /* Light gray for the right side */
    background-image: linear-gradient(#333, #333); 
    background-repeat: no-repeat;
    background-size: 50% 100%; 
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.seek-bar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-top: 0px; 
}

.seek-bar input[type="range"]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    cursor: pointer;
}

.speed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    min-width: 38px;
    height: 22px;
    transition: background 0.2s, color 0.2s;
}

.speed-badge:hover {
    background: #000;
    color: #fff;
}

.highlightul{
    color: #b0040f;
}

/* Volume Box Layout */
.volume-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: clamp(80px, 10vw, 130px); 
}

/* Resetting the volume button */
.volume-box .ctrl-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

/* Volume Slider Styling */
.volume-box input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px; 
    background: #e0e0e0; 
    background-image: linear-gradient(#333, #333); 
    background-repeat: no-repeat;
    background-size: 80% 100%;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

.volume-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff; 
    border: 3px solid #333; 
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-top: 0px; 
}

.volume-box input[type="range"]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
}


@media (max-width: 480px) {
    .volume-box {
        width: 100px; 
    }
}

@media (min-width: 2000px) {
    header > section:nth-of-type(2) {
        gap: 3rem;
    }
    .track-info p { font-size: 1.2rem; }
}

@media (max-width: 1024px) {
    header > section:nth-of-type(2) {

    }
}

@media (max-width: 600px) {
    header > section:nth-of-type(2) {
        justify-content: center;
        padding: 15px;
    }

    .seek-group {
        order: 4;
        width: 100%;
        flex-basis: 100%;
    }

    .track-info {
        width: 100%;
        justify-content: center;
    }

    .branding-left {
        top: -10px;
    }





    @media (max-width: 1100px) {
        header > section:nth-of-type(2) {
            padding-top: 1rem;
        }
    }

    @media (max-width: 992px) {
        .branding-left {
            height: 100px;
            padding-right: 50px;
        }

        header > section:nth-of-type(2) {
            padding-top: 1rem;
        }
    }


    @media (max-width: 768px) {
        .branding-left {
            position: relative;
            height: auto;
            width: 100%;
            clip-path: none;
            padding-right: 20px;
        }

        header > section:nth-of-type(2) {
            padding-top: 1rem;
            justify-content: center;
        }

        header > section:first-of-type {
            flex-direction: column;
            align-items: flex-start;
        }

        .branding-right {
            width: 100%;
            justify-content: flex-end;
            padding: 10px 0;
            display: none !important;
        }
    }

    @media (min-width: 1200px) {
        .branding-left {
            width: 575px;
            height: 98px;
        }
    }

    @media (min-width: 1800px) {
        .branding-left h1 {
            font-size: clamp(0.9rem, 1.2vw, 1.7rem);
        }

        .branding-left {
            width: 30vw;
            height: 100px;
        }

        header > section:nth-of-type(2) {
            padding-top: 1rem;
        }
    }

    /* ===============================
   GLOBAL SAFETY FIX
================================ */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    /* ===============================
   HEADER FIX (MOBILE)
================================ */
    @media (max-width: 768px) {

        header {
            position: relative;
        }

            header > section:first-of-type {
                flex-direction: column;
                align-items: stretch;
                padding: 0;
            }

        .branding-left {
            position: relative;
            width: 100%;
            max-width: 100%;
            min-width: 100%;
            height: auto;
            clip-path: none;
            padding: 15px;
            box-shadow: none;
            justify-content: center;
            height:81px;
            margin-top:8px
        }

            .branding-left img {
                height: 70px;
            }

            .branding-left h1 {
                font-size: 1.49rem;
            }

        .branding-right {
            width: 100%;
            justify-content: center;
            padding: 10px 0;
            background: #eee;
        }
    }

    /* ===============================
   AUDIO PLAYER FIX
================================ */
    @media (max-width: 768px) {

        header > section:nth-of-type(2) {
            flex-direction: column;
            gap: 15px;
            padding: 15px;
        }

        .track-info {
            width: 100%;
            justify-content: center;
            text-align: center;
        }

        .player-controls {
            justify-content: center;
        }

        .seek-bar {
            width: 100%;
        }

        .playback-settings {
            width: 100%;
            justify-content: space-between;
        }

        .volume-box {
            width: 120px;
        }
    }

    /* ===============================
   NAVIGATION FIX
================================ */
    @media (max-width: 768px) {

        nav {
            position: relative;
            padding: 10px 15px;
            background: #fff;
        }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 12px;
            }

                nav ul li a {
                    font-size: 14px;
                }
    }

    /* ===============================
   HERO SECTION FIX
================================ */
    @media (max-width: 768px) {

        .hero-banner {
            height: auto;
            padding: 80px 0;
          
            margin-top: -162px;
        }

        .hero-wrapper {
            flex-direction: column;
        }

        .banner-content {
            max-width: 100%;
            padding: 0 16px;
            text-align: center;
        }

        .main-titlecol {
            font-size: clamp(2rem, 8vw, 3rem);
        }

        .banner-visual {
            display: none;
        }

        .banner-visualmobile {
            display: block;
            text-align: center;
            margin-top: 20px;
        }

        .hero-imagemobile {
            width: 90%;
            margin: auto;
        }
    }

    @media (max-width: 430px) {
        .hero-imagemobile {
            width: 100%;
            margin: auto;
            transform: scaleY(-1);
            margin-left: -1rem;
        }

        .containers {
            margin-top: 0.8rem;
        }

        .navbar-header {
            margin-top: -7rem;
        }

        center {
            margin-top: -15rem;
        }
        
    }
    /*
    @media (max-width: 390px) {
        img#player_main_image {
            margin-left: -3rem;
        }

        canvas {
            width: 100%;
            margin-left: -6rem;
        }

        #currentSongTitle {
            margin-left: -33rem;
        }
    }*/

    /* ===============================
   GRID STACK FIX
================================ */
    @media (max-width: 768px) {

        .administration-podcast-grid,
        .video-administration-podcast-grid,
        .admin-card-grid,
        .featured-video-grid {
            grid-template-columns: 1fr !important;
        }

        .administration-header-container,
        .video-administration-header-container,
        .topics-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }

    /* ===============================
   MAX-WIDTH CONTAINERS FIX
================================ */
    @media (max-width: 768px) {

        .administration-podcast-section,
        .video-administration-podcast-section,
        .featured-container,
        .admin-container {
            max-width: 100%;
            padding: 30px 30px;

        }
    }

    /* ===============================
   CONTACT + FOOTER FIX
================================ */
    @media (max-width: 768px) {

        .container-contactsection {
            flex-direction: column;
        }

        .card-contactsection {
            padding: 25px 20px;
        }

        .logo-wrapper {
            flex-direction: column;
            text-align: center;
        }

        h1, h2, h3, h4, h5, h6 {
            text-align: center;
            width: 100%;
        }

        .info-section-visionmission {
            padding: 10px 20px;
            background-color: #ffffff;
        }

        .main-tittlevisionmission {
            position: relative;
            color: #1a1a1a;
            padding-top: 0.5rem;
            z-index: 2;
            font-size: 48px;
            line-height: 1.1;
            margin: 0;
        }

        .underline {
            position: relative;
            z-index: 3;
            width: 45%;
            height: 4px;
            right: -71px;
            margin-top: 1rem;
        }

        .administration-explore-link {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            padding-left: 90px;
            font-size: 14px;
            font-weight: 600;
            color: #444;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .video-administration-explore-link {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            padding-left: 124px;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            color: #444;
            transition: all 0.3s ease;
            white-space: nowrap;
        }



        .administration-podcast-section, .video-administration-podcast-section, .featured-container, .admin-container {
            max-width: 100%;
            padding: 45px 39px;
            margin: 0px;
        }

        .featured-header {
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0px !important;
        }

        .main-titlecol {
            font-size: 3rem !important;
        }
    }



}






