/*global properties*/
@font-face {
    font-family: 'header'; /* Choose a name for your font */
    src: url('/static/fonts/AlfaSlabOne-Regular.ttf') format('truetype');
    /* --- Recommended: Add other formats if available for better browser support --- */
    /* src: url('/static/fonts/AlfaSlabOne-Regular.woff2') format('woff2'),
           url('/static/fonts/AlfaSlabOne-Regular.woff') format('woff'),
           url('/static/fonts/AlfaSlabOne-Regular.ttf') format('truetype'); */
    font-style: normal;
  }

@font-face {
    font-family: 'subheader'; /* Choose a name for your font */
    src: url('/static/fonts/RobotoFlex-Regular.ttf') format('truetype');
    font-style: normal;
    }

@font-face {
    font-family: 'body'; /* Choose a name for your font */
    src: url('/static/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-style: normal;
    }

/*    COMPONENTS    */
.header {
    font-family: 'header';
    font-size: 1.85rem; /* Roughly similar to an h3 heading */
    font-weight: 400;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }

/* Apply different styles on smaller screens (<860px) */
@media (max-width: 860px) {
    .header {
        font-size: 1.6rem;
    }
}

.data-card-header {
    font-family: 'header';
    font-size: 0.90rem; /* Roughly similar to an h3 heading */
    font-weight: 220;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }

.data-card-header-big {
    font-family: 'header';
    font-size: 1.6rem; /* Roughly similar to an h3 heading */
    font-weight: 220;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }
.btn-brand-font {
    font-family: 'header';
    letter-spacing: 0.5px;
}
.subheader {
    font-family: 'subheader';
    font-size: 1.75rem; /* Roughly similar to an h3 heading */
    font-weight: 400;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #282c30; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
  }


.body {
    font-family: 'body';
    font-size: 1.25rem; /* Roughly similar to an h3 heading */
    font-weight: 200;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #33373b; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
  }

/*This affects the whole page*/
body {
    font-family: 'subheader', sans-serif;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'header', serif;
}

p, label, input, select, textarea, .form-label, .form-control, .form-check-label, .alert, .text-muted, small {
    font-family: 'subheader', sans-serif;
}
/* Media query: Apply styles only when the viewport width is at least 860px */
@media (min-width: 860px) {
    body {
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px;
    }
    /* Make navbar span full viewport width */
    .navbar {
        max-width: 1300px;
        border-radius: 0;
    }
}

/*Tsndard container*/
.custom-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;  
    /* Optional: You might want to add some padding so content isn't flush against the border */
    /* padding: 1rem; */
  }

/* Code to modify share popup Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .overlay-content {
    background: white;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
  }
  .btn-download {
    /* Match your existing button styles */
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    /* Add your preferred colors and other styles */
}

/*HOMEPAGE NAVBAR */
/* Optional: Adjust logo size */
.navbar-brand.logo img {
    height: 30px; /* Adjust as needed */
}

/* Optional: Style the active link */
.navbar-nav .nav-link {
    font-family: 'header', serif;
    color: #1e293b;
}

.dropdown-item {
    font-family: 'header', serif;
}
/* Optional: Customize hover effect */
.navbar-nav .nav-link:hover {
    color: #0d6efd; /* Example hover color */
}

.social-icon {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Platform colors */
.social-icon.youtube i {
    color: #FF0000;
}

.social-icon.instagram i {
    color: #E1306C; /* Instagram gradient base */
}

.social-icon.x i {
    color: #000000;
}

.social-icon.tiktok i {
    color: #1eb9b4; /* TikTok cyan (official primary accent) */
}
/* Card_Stack in the homepage */
.homepage-cards .card {
    width: 90%;
    max-width: 315px;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.5s ease-in-out, z-index 0s 0.5s;
    position: relative;
    border-radius: 10px;
    margin: 0.75rem;
}

.homepage-cards .card-body {
    text-align: center;
    margin-top: 0px;
    padding: 15px;
    display: flex;
    justify-content: space-between; /* Distribute buttons with space between */
    align-items: center; /* Vertically center buttons */
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* buttons inside the card container in the homepage */
.homepage-cards .card-body a, 
.homepage-cards .card-body button {
    flex: 1; /* Make each button take up equal space */
    margin: 0 5px; /* Optional: add spacing between buttons */
    text-align: center; /* Ensure text is centered inside buttons */
}
.btn-share-x {
    background-color: #007bff; /* Set your desired background color */
    color: #fff; /* Set your desired text color */
    border: 1px solid #007bff; /* Set your desired border color */
}
.dropdown-menu {
    z-index: 1000; /* Set a higher z-index */
    background-color: #ffffff; /* Set background color */
    border: 1px solid #ced4da; /* Set border color */
    padding: 10px; /* Add padding */
}



/* Hero section */
.cta-container button {
    font-family: 'header', serif;
    letter-spacing: 0.07em;
    font-weight: 400;
  }


.marker-effect {
    position: relative;
    display: inline;
    line-height: 1;
    z-index: 1;
    white-space: nowrap;
}

.marker-effect::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -0.25em;
    right: -0.25em;
    bottom: 0.03em;
    height: 1.3em;
    border-radius: 0.45em;
}

.marker-effect::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.25em;
    right: -0.25em;
    bottom: 0.03em;
    height: 1.3em;
    border-radius: 0.45em;
    filter: url(#grainEffect); /* Ensure you have this SVG filter defined somewhere */
}

/* Color and background for each marker */
.marker-red { color: rgb(255, 255, 255); }
.marker-red::before { background-color: rgba(166, 28, 28, 0.95); }

.marker-green { color: rgb(255, 255, 255); }
.marker-green::before { background-color: rgba(36, 132, 36, 0.95); }

.marker-blue { color: rgb(255, 255, 255); }
.marker-blue::before { background-color: rgba(26, 95, 174, 0.95); }


/* Style for the youtube video integration */

.video-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    z-index: 1;
}

.video-card:hover .video-thumbnail::after {
    background: rgba(255, 0, 0, 1);
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
    font-size: 1rem;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #010c13; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

.video-title {
    display: -webkit-box;       /* fallback for WebKit */
    display: box;               /* older fallback, optional */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;      /* WebKit-specific */
    line-clamp: 2;              /* standard property for other browsers */
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}

.video-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.loading-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}
.video-description {
    line-height: 1.4;
    min-height: 2.8em; /* keeps cards aligned even if description is short */
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    border-radius: 50%;
    padding: 18px;
    background-size: 50%;
    border: 2px solid black;
}

@keyframes pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Bento Grid Feed Styles - using CSS columns for true masonry */
.bento-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.bento-item {
    width: 100%;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Background colors for each content type */
.bento-video {
    background: #fff0f0; /* very light blue */
}

.bento-article {
    background: #f4f2f0; /* very light warm beige */
}

.bento-infographic {
    background: #eef5ee; /* very light sage green */
}

/* Content type label badge */
.content-type-label {
    display: inline-flex;
    align-items: center;
    font-family: 'header', serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Responsive: tablet */
@media (max-width: 992px) {
    .bento-grid {
        column-count: 2;
        column-gap: 1.25rem;
    }
    .bento-item {
        margin-bottom: 1.25rem;
    }
}

/* Responsive: mobile */
@media (max-width: 576px) {
    .bento-grid {
        column-count: 1;
        column-gap: 1rem;
    }
    .bento-item {
        margin-bottom: 1rem;
    }
}



