/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    font-family: 'Arial', sans-serif;
    background-color: #fff;
}


/* HEADER */

header {
    z-index: 10;
    position: relative;
    background-color: #222;
}


/* Navbar */


/* Reduce left and right padding */

.navbar {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
}


/* Remove Bootstrap container default padding */

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}


/* Ensure navbar-brand (logo) and toggler have minimal margins */

.navbar-brand {
    margin-left: 0;
}

.navbar-toggler {
    margin-right: 0;
}

.navbar-brand img {
    background-color: white;
    /* Adds a white background to make the logo visible */
    padding: 5px;
    /* Adds some space around the logo */
    border-radius: 5px;
    /* Softens edges */
    max-height: 40px;
}

.navbar-collapse {
    max-width: 100%;
}


/* Ensure dropdown menu fits properly */

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-grow: 1;
}


/* Add spacing between nav items */

.nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 16px;
}

.navbar-nav .nav-link:hover {
    color: red;
}

.nav-cta {
    background-color: red;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    /* Adjust padding */
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    /* Prevents text from wrapping */
    display: inline-block;
}

.nav-cta:hover {
    background-color: red;
}


/* Breadcrumb Section */

.breadcrumb-section {
    position: relative;
    height: 350px;
    overflow: hidden;
    width: 100%;
    margin-top: -20px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.breadcrumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}


/* Black Overlay */

.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.breadcrumb-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.breadcrumb-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
}


/* Breadcrumb Navigation */

.breadcrumb {
    background: transparent;
    padding: 5px;
    font-size: 14px;
}

.breadcrumb a {
    color: red;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* Page Content Section */

.page-content {
    width: 100vw;
    padding: 0;
    margin: 15px 0 40px 0;
    overflow-x: hidden;
}

.video-title {
    display: inline-block;
    background: black;
    color: white;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 40px;
    font-weight: bold;
    transform: skew(-10deg);
}


/* Ensure no extra margin on the container-fluid */

.container-fluid {
    padding: 0;
}


/* Make the video section take full width */

.video-section {
    background-color: #000;
    min-height: 100vh;
    padding: 10px;
}

.video-list {
    background-color: #222;
    height: 500px;
    overflow-y: auto;
}


/* Video Item */

.video-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: white;
}

.video-item:hover {
    background: #444;
}


/* Video Thumbnail */

.video-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}


/* Video Info */

.video-info {
    flex-grow: 1;
}


/* Video Heading */

.video-heading {
    font-size: 22px;
    color: white;
    text-align: center;
}


/* Social Media Row */

.social-media-row {
    background-color: red;
    padding: 15px 0;
    text-align: center;
}

.social-media-row .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.social-media-row .d-flex {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}

.social-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    flex: 1;
    text-align: center;
    padding: 10px;
    min-width: 120px;
    /* Prevents cramping on smaller screens */
}

.social-name:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* Footer */

footer {
    background-color: #111;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #bbb;
}

footer p span {
    font-size: 14px;
    color: red;
}

.footer .col-md-6 a {
    text-decoration: none;
    /* Removes underline */
    margin: 0 10px;
    /* Adds space between links */
    color: #bbb;
    /* Ensures links remain white */
}

.footer .col-md-6 a:hover {
    text-decoration: underline;
    /* Optional: adds underline on hover */
}


/* Longreads Section */

.longreads-container {
    padding: 40px;
}

.longreads-container h2 {
    font-weight: bold;
}


/* SECTION TITLES */

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0 15px;
    color: #333;
}


/* Scrolling Marquee - First Row */

.scrolling-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 20px 0;
    white-space: nowrap;
}


/* Default scrolling animation */

.scrolling-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 15s linear infinite;
}


/* Normal scrolling animation */

@keyframes marquee {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}


/* Reverse scrolling animation for the second row */

.scrolling-wrapper.reverse {
    animation: marquee-reverse 15s linear infinite;
}


/* Reverse scrolling animation */

@keyframes marquee-reverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }
}


/* Card Styles */

.card1 {
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(-10deg);
    transition: transform 0.3s ease-in-out;
}

.card1:hover {
    transform: rotate(0deg) scale(1.05);
}

.card1 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.card1 small {
    background: #000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
}


/* SECOND ROW: STATIC BLOG POST CARDS */


/* Responsive Styles */


/* Responsive Fixes */

@media (max-width: 768px) {
    .social-media-row .d-flex {
        justify-content: space-evenly;
        /* Distributes items evenly */
    }
    .social-name {
        flex: 1 1 45%;
        /* Ensures two per row when possible */
        min-width: unset;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .social-name {
        flex: 1 1 45%;
        /* Allows for 2 per row */
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .breadcrumb-title {
        font-size: 24px;
    }
    .breadcrumb-subtitle {
        font-size: 16px;
    }
    .breadcrumb-section {
        height: 250px;
    }
    .navbar-nav .nav-item {
        padding: 10px 0;
    }
}