* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #c41e3a;
    --accent-color: #f5a623;
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary-foreground: #fafafa;
    --border: #e4e4e7;
    --ring: #1e3a5f;

    /* Navbar Variables */
    --nav-bg: #ffffff;
    --nav-text: #1e3a5f;
    --nav-text-hover: #c41e3a;
    --nav-border: #e4e4e7;
}

.dark {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #09090b;
    --card-foreground: #fafafa;
    --popover: #09090b;
    --popover-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --ring: #d4d4d8;
    --white: #09090b;
    --primary-color: #3b82f6;

    /* Navbar Variables (Dark) */
    --nav-bg: #09090b;
    --nav-text: #fafafa;
    --nav-text-hover: #ef4444;
    --nav-border: #27272a;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Premium Dark Section Utility */
.bg-premium-dark {
    background-color: #09090b; /* Zinc 950 */
    color: #ffffff;
}

.premium-pillar-card {
    background-color: #18181b; /* Zinc 900 */
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 30, 58, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.pillar-icon-box {
    width: 4.5rem;
    height: 4.5rem;
    background-color: #c41e3a;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px -4px rgba(196, 30, 58, 0.4);
}

/* Premium Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== DROPDOWN STYLES ===== */
/* ===== STYLE: VOCATION ===== */
/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  color: var(--nav-text);
  padding: 16px;
  font-size: 14px;
  border: none;
  font-weight: 800;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropbtn:hover {
    color: var(--nav-text-hover);
}

.nav-link {
    color: var(--nav-text);
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--nav-text-hover);
}

.nav-link.active {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* Hidden class to hide elements */
.hidden {
  display: none;
}


/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--foreground);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 600;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--muted);
    color: var(--secondary-color);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    color: var(--secondary-color);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

.featured-videos h2 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
html, body {
  height: 100%;
  margin: 0;   /* Remove the default browser margin */
  padding: 0;
}

.full-page-container {
  height: 100%; /* 100% of its parent (the body, which is 100% of the html) */
  width: 100%;  /* 100% of its parent */
  margin: 0;
  padding: 0;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* READ MORE LINKS */
/* Container */
.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ============================== */
/* PRELOADER*/
/*=============================== */

#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #003366, #00509e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.logo-loader {
    text-align: center;
    color: white;
}

.logo-loader img {
    width: 120px;
    animation: float 50s ease-in-out infinite;
}

.logo-loader h2 {
    margin-top: 15px;
    letter-spacing: 2px;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* Glassmorphism MARIST BLUE BUTTON - LINKS-LATEST NEWS NAV BAR */
/* ============================= */
/* ROOT VARIABLES (Light Mode)  */
/* ============================= */
:root {
    --marist-blue-dark: #003366;
    --marist-blue-light: #00509e;
    --marist-glow: rgba(0, 80, 158, 0.6);
    --text-color: #ffffff;
}

/* ============================= */
/* DARK MODE SUPPORT            */
/* ============================= */
@media (prefers-color-scheme: dark) {
    :root {
        --marist-blue-dark: #002244;
        --marist-blue-light: #0073e6;
        --marist-glow: rgba(0, 115, 230, 0.8);
        --text-color: #ffffff;
    }
}

/* ============================= */
/* CONTAINER                    */
/* ============================= */
.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ============================= */
/* MAIN CTA BUTTON              */
/* ============================= */
.marist-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;

    background: linear-gradient(135deg, var(--marist-blue-dark), var(--marist-blue-light));
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
    overflow: hidden;
    transition: all 0.4s ease;

    animation: pulse 3s infinite ease-in-out;
}

/* ============================= */
/* GLOWING BORDER ANIMATION     */
/* ============================= */
.marist-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--marist-glow),
        transparent
    );
    background-size: 200% 100%;
    z-index: -1;
    animation: glowing-border 3s linear infinite;
}

/* ============================= */
/* HOVER EFFECT                 */
/* ============================= */
.marist-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px var(--marist-glow);
}

/* ============================= */
/* ICON ANIMATION               */
/* ============================= */
.cta-icon {
    transition: transform 0.3s ease;
}

.marist-cta:hover .cta-icon {
    transform: translateX(6px);
}

/* ============================= */
/* RIPPLE EFFECT                */
/* ============================= */
.marist-cta .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================= */
/* PULSE ANIMATION              */
/* ============================= */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px var(--marist-glow);
    }
}

/* ============================= */
/* GLOW BORDER KEYFRAMES        */
/* ============================= */
@keyframes glowing-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}


/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    font-weight: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 2s ease;
}

.logo-text {
    display: flex;
    font-size: 1.5rem;
    font-weight: 1000;
    color: var(--primary-color);
    animation: fadeInDown 1.5s ease;
}

.logo-subtitle {
    display: flex;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 800;
    transition: color 0.3s ease;
    position: relative;
    font-size: 14px;
}

nav a:hover,
nav a.active {
    color: var(--nav-text-hover);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(179, 77, 0, 0.1);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
    font-weight: 600;
    font-style: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease;
}


/* ===== HERO SLIDER SECTION ===== */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;               /* Hard cap to viewport width */
    height: 100vh;
    min-height: 700px;
    background-color: #000;
    overflow: hidden;
    color: white;
    /* GPU isolation: forces a new stacking context so overflow:hidden
       correctly clips transformed children in all mobile browsers */
    transform: translateZ(0);
    isolation: isolate;
}

.hero-track {
    display: flex;
    height: 100%;
    width: 100%;                    /* Prevent track from stretching wider than slider */
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;        /* Hint to browser for smooth GPU compositing */
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;                    /* Explicit width: never exceed track width */
    max-width: 100vw;               /* Hard cap: prevents nowrap text from blowing out */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;               /* Clip any overflowing text/content per slide */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 95, 0.7); /* Deep Marist Blue Overlay */
    z-index: 1;
}

/* Ensure content sits above overlay */
.hero-slide > * {
    position: relative;
    z-index: 2;
}

.hero-pagination {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.hero-slide h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 1rem;
    font-weight: 900;
    color: rgb(255, 204, 0);
    -webkit-text-stroke: 1.5px #ffffff;
    font-family: Roboto-Black, sans-serif;
    text-transform: uppercase;
}

.hero-slide h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 2rem;
    font-family: nevera, sans-serif;
    text-transform: uppercase;
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* scroll-to-top*/
#progress {
    position: fixed;
    bottom: 20px;
    right: 10px;
    height: 70px;
    width: 70px;
    display: none;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#progress-value {
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background-color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    color:#ff00aa
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    background-color: #c41e3a;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px -4px rgba(196, 30, 58, 0.4);
}

.feature-icon i {
    color: #ffffff !important;
    font-size: 1.75rem;
    display: inline-block;
}

.card {
    background-color: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(30, 58, 95, 0.15);
    border-color: rgba(196, 30, 58, 0.2);
}

/* ===== ANIMATED CAROUSEL & PAGINATION ===== */
.events-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.events-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    gap: 2rem;
}

.event-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.pagination-button {
    background-color: #cbd5e1; /* Slate 300 */
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.pagination-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.pagination-button.active {
    width: 48px;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}


.hero h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.4s ease;
    color:rgb(255, 204, 0);
    font-weight: bold;
    -webkit-text-stroke: 1.5px #ffffff;
    font-family: Roboto-Black, sans-serif;
    font-style: bold;
    font-size: 100px;
}
.hero h2 {
    font-size: 10rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
    font-weight: bold;
    -webkit-text-stroke: 1px #ffffff;
    font-family: nevera, sans-serif;
    text-transform: uppercase;
    font-size: 50px;
    padding: top 30%;

}
/*
.hero h6 {
    font-size: 10rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
    font-weight: bold;
    -webkit-text-stroke: 1px #009331;
    font-family: nevera, sans-serif;
    text-transform: uppercase;
    font-size: 60px;
    padding: top 15%;
}
*/

.featured-news {
    font-size: 15px;
    font-family: Roboto-Black, sans-serif;
    padding-top: 50px;
    gap: 1rem;

}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
    color:#ffffff
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 900;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a01530;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 255, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e09a1e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Read more Tags for the FEATURED NEWS*/
.read-more-btn:hover {
    background-color: #a00000;
}

/* ===== HERO BUTTON ROTATING WHITE LIGHT ANIMATION ===== */
@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.hero-slider .btn.rainbow {
    position: relative;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 9999px; /* Full pill shape */
    padding: 0.8rem 2.5rem; /* Enhanced padding for pill shape */
}

.hero-slider .btn.rainbow::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    background-size: 50% 30%;
    filter: blur(6px);
    background-image: linear-gradient(#fff);
    animation: rotate 4s linear infinite;
}

.hero-slider .btn.rainbow::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: inherit;
    background-color: inherit;
    border-radius: inherit;
}

/* ===== HERO TEXT ANIMATIONS & CONTENT STYLES ===== */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    80% {
        opacity: 1;
        transform: translateY(-8px); /* Subtle overshoot */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    opacity: 0; /* Hidden initially */
    will-change: transform, opacity;
}

/* Animations trigger when slide becomes active */
.hero-slide.active-animation .hero-text {
    animation: heroFadeUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Maintain visibility of the "Previously Active" slide during transition */
/* This prevents the text from vanishing instantly when the track moves */
.hero-slide.active-animation ~ .hero-slide .hero-text,
.hero-track .hero-slide .hero-text {
    /* If the slide was already animated once, it stays at opacity 1 unless reset */
}

.headline {
    animation-delay: 0.3s !important;
}

.subheadline {
    animation-delay: 0.5s !important;
}

/* Hero Badge (Pill Style) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(196, 30, 58, 0.85); /* High-visibility red background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #fff; /* High-contrast white text */
    font-size: 13px; /* Slightly larger size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    animation-delay: 0.1s !important;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 0.9s infinite;
    color: greenyellow;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #c41e3a, #ff4d4d, #ff8080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.read-more-btn:hover {
    background-color: #3c00ff;   /* Darker red on hover */
    transform: translateY(-2px);
}

.card-carousel-index-img {
    width: 100%;
    aspect-ratio: 2 / 2;  /* Automatically keeps square */
    object-fit: cover;
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 2rem;
    font-family: roboto, sans-serif;
    font-style: normal;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    font-family: roboto, sans-serif;
    font-style: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    font-family: roboto, sans-serif;
    font-style: normal;
}

@keyframes hero-change  {
    0% {
        background-image: url('../images/marcellin-champagnat.jpg');
    }
    20% {
        background-image: url('../images/Footsteps_0_Cover-Clean-1536x1101.jpg');
    }
    40% {
        background-image: url('../images/7th-provincial-chapter.jpg');
    }
    60% {
        background-image: url('../images/general-chapter-tagaytay.jpg');
    }
    80% {
        background-image: url('../images/marcellin-champagnat.jpg');
    }
      100% {
        background-image: url('../images/noticias_imagem-news_4890.jpg');
    }
}
/* =====Carousel-in-index===== */


.featured-news {
    padding: 60px 20px;
    background: #f4f6f9;
}

.slider {
    position: relative;
    max-width: 900px;
    margin: auto;
    height: 350px;
    overflow: hidden;
}

/* Each slide */
.slide {
    position: absolute;
    width: 80%;
    height: 80%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Active slide */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Image */
.slide img {
    width: 40%;
    object-fit: cover;
}

/* Content */
.slide-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h3 {
    font-size: 1.4rem;
    color: #003366;
    margin-bottom: 15px;
}

.slide-content p {
    margin-bottom: 20px;
    color: #555;
}

.read-more {
    text-decoration: none;
    font-weight: 600;
    color: #0056b3;
}

.read-more:hover {
    color: #002d5a;
}

/* Responsive */
@media (max-width: 768px) {
    .slide {
        flex-direction: column;
    }

    .slide img {
        width: 100%;
        height: 200px;
    }
}



/* ===== CARDS ===== */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    font-family: roboto, sans-serif;
    font-style: normal;
    box-shadow: 0 2px 10px rgb(255, 94, 0);
}

.footer-bottom{
    color:#2c4a73;
    box-shadow: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    font-family: roboto, sans-serif;
    font-style: normal;
}

.footer-section-media h5{
    margin-bottom: 1rem;
    font-family: roboto, sans-serif;
    font-style: normal;
    display: flex;

}

.footer-section h4 {
    margin-bottom: 1rem;
    font-family: roboto, sans-serif;
    font-style: normal;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #deddb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgb(235, 8, 8);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 4, 255, 0.795);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}


.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(167, 178, 48, 0.447);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgb(221, 255, 0);
}

.footer-bottom p a {
    color: rgba(13, 255, 0, 0.674);
}

.footer-bottom p a:hover {
    color: rgba(254, 220, 0, 0.621);
    text-decoration: underline;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--light-text);
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== FEATURES/HIGHLIGHTS ===== */
.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-text {
    color: var(--light-text);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background-color: #18181b; /* Zinc 900 */
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select option {
    background-color: #18181b;
    color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== LOGIN FORM ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a73 100%);
    padding: 2rem;
}

.login-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-forgot a {
    color: var(--secondary-color);
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.login-form .btn-primary {
    width: 100%;
    margin-bottom: 1rem;
}

.signup-link {
    text-align: center;
}

.signup-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: #f9fafb;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.breadcrumb li::after {
    content: '/';
    color: #d1d5db;
    font-weight: 300;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #c41e3a;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        gap: 0;
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        display: block;
        padding: 0.75rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== NAV DROPDOWN ===== */
.navbar nav ul {
    display: flex;
    align-items: center;
}

.navbar nav li {
    position: relative;
}

.navbar nav li .dropdown-toggle::after {
    content: '\25BE';
    margin-left: 0.4rem;
    font-size: 0.7rem;
    vertical-align: middle;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    display: none;
    z-index: 1500;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-text);
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.navbar nav li:hover > .dropdown-menu {
    display: block;
}

/* Mobile: make dropdowns clickable and inside expanded menu */
@media (max-width: 768px) {
    .navbar nav ul {
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown-open > .dropdown-menu {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .hero .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===== GLOBAL NAVIGATION & DROPDOWNS ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown:hover .dropdown-content { display: block !important; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    color: #1e3a5f;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.dropdown-content a:hover { background-color: #f1f1f1; color: #c41e3a; }

.dropbtn {
    background-color: transparent;
    color: #1e3a5f;
    padding: 16px;
    font-size: 14px;
    border: none;
    font-weight: 1000;
    cursor: pointer;
}

/* MOBILE ACCORDION (Standardized) */
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-accordion-content.active {
    opacity: 1;
    visibility: visible;
}

.mobile-accordion-header.active i {
    transform: rotate(180deg);
}

/* ====================================================================
   MOBILE & TABLET COMPATIBILITY — 2026 STANDARD
   Responsive Typography · Touch Targets · Reduced Motion · CLS Fix
   ==================================================================== */

/* 1. RESPONSIVE TYPOGRAPHY — clamp() fluid scaling */
body {
    font-size: clamp(1rem, 1.5vw, 1.125rem); /* min 16px, max 18px */
    line-height: 1.6;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 6.25rem);
}

.hero h2 {
    font-size: clamp(1.4rem, 4vw, 3.125rem);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.about-text h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
}

/* 2. TOUCH TARGETS — Minimum 44×44px */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* 3. ACTIVE STATE FEEDBACK — Visual haptic for touch */
.btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.card:active {
    transform: translateY(-2px);
}

.social-links a:active {
    transform: scale(0.93);
}

/* 4. IMAGE CLS FIX — Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 5. REDUCED MOTION — Respect OS accessibility settings */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 6. TABLET BREAKPOINT — 481px to 1024px */
@media (min-width: 481px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 4rem 2rem;
        min-height: 400px;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 3.5vw, 2.2rem);
        margin-bottom: 2.5rem;
    }

    /* ── Hero Slider: prevent whitespace-nowrap bleed on tablets ── */
    /* Tailwind's whitespace-nowrap on h1 can make slides wider than the
       viewport at tablet widths, causing slides to bleed into each other
       during the transition animation. Override it here.               */
    .hero-slide h1,
    .hero-text.headline {
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    /* Keep hero slider height sensible on shorter tablet screens */
    .hero-slider {
        min-height: 500px;
        height: 100svh; /* svh = small viewport height, avoids mobile toolbar overlap */
    }
}

/* 7. MOBILE BREAKPOINT — Up to 480px */
@media (max-width: 480px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 280px;
    }

    .hero .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 2rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* ── Hero Slider: prevent whitespace-nowrap bleed on mobile ── */
    .hero-slide h1,
    .hero-text.headline {
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    /* Reduce hero min-height for phones */
    .hero-slider {
        min-height: 400px;
        height: 100svh;
    }

    /* Tighten hero slide padding on small phones */
    .hero-slide {
        padding: 1.25rem;
    }
}

/* 8. SAFE AREA — iPhone notch / Android gesture bar */
@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ===================================================
   TABLET NAVBAR FIX — 768px to 1023px
   Converts full-screen mobile overlay into a right-side
   slide-in drawer, fitting tablet UX conventions.
   Tailwind lg = 1024px, so hamburger is shown at <1024px.
   =================================================== */

/* --- Header bar layout on tablets --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Header container: ensure logo and controls align properly */
    header > div {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Logo sizing for tablets */
    .logo-text {
        font-size: 1.35rem;
    }

    /* Keep hamburger button properly sized and touch-friendly */
    #mobileMenuBtn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    /* --- Mobile menu overlay → Tablet side drawer --- */
    /* Instead of full-screen overlay, show as a right-side drawer */
    #mobileMenuOverlay {
        /* Override Tailwind's fixed inset-0 to a right-side drawer */
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 380px !important;
        max-width: 90vw !important;
        /* Keep translate-x animation — slides in from right */
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    }

    /* Overlay: add a semi-transparent backdrop on left side */
    #mobileMenuOverlay::before {
        content: '';
        position: fixed;
        inset: 0;
        right: 380px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        pointer-events: none;
        z-index: -1;
    }

    /* Drawer content padding adjustments */
    #mobileMenuOverlay > div {
        padding: 2rem 2.5rem;
    }

    /* Make accordion text slightly smaller for the narrower drawer */
    #mobileMenuOverlay .text-xl {
        font-size: 1.05rem;
    }

    #mobileMenuOverlay .text-lg {
        font-size: 0.95rem;
    }
}

/* --- Small tablets and large phones: 640px to 767px --- */
@media (min-width: 640px) and (max-width: 767px) {
    header > div {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #mobileMenuOverlay {
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 320px !important;
        max-width: 85vw !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.6);
    }

    #mobileMenuOverlay::before {
        content: '';
        position: fixed;
        inset: 0;
        right: 320px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(4px);
        pointer-events: none;
        z-index: -1;
    }

    #mobileMenuOverlay > div {
        padding: 2rem;
    }
}

/* --- Mobile phones: up to 639px — keep full-screen overlay --- */
@media (max-width: 639px) {
    header > div {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Logo text scaling for small phones */
    .logo-text {
        font-size: 1.1rem;
    }

    /* Theme toggle stays properly sized */
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    /* Hamburger button: touch-friendly */
    #mobileMenuBtn {
        width: 44px;
        height: 44px;
    }

    /* Full-screen mobile overlay stays as-is (inset-0) */
    #mobileMenuOverlay > div {
        padding: 2rem 1.5rem;
    }
}

/* ===== STANDARDIZED NAVIGATION STYLES ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown:hover .dropdown-content { display: block !important; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    color: #1e3a5f;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.dropdown-content a:hover { background-color: #f1f1f1; color: #c41e3a; }

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-accordion-content.active {
    opacity: 1;
    visibility: visible;
}

.mobile-accordion-header.active i {
    transform: rotate(180deg);
}

.dropbtn {
    background-color: transparent;
    color: #1e3a5f;
    padding: 16px;
    font-size: 14px;
    border: none;
    font-weight: 1000;
    cursor: pointer;
}

.hide-controls { opacity: 0 !important; cursor: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 9. FOCUS RINGS — Keyboard and switch device navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #c41e3a;
    outline-offset: 3px;
    border-radius: 3px;
}

/* 10. PRINT STYLES */
@media print {
    header, footer, .breadcrumb, #mobileMenuOverlay, #cookieConsent {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #444;
    }

    section {
        page-break-inside: avoid;
    }
}
/* 11. PREMIUM COOKIE CONSENT */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 40px);
    width: 90%;
    max-width: 600px;
    background: rgba(24, 24, 27, 0.85); /* Zinc-900 with alpha */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 3rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.cookie-consent.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* ===================================
   REFINED NEWS FEED STYLES (Based on Template)
   =================================== */

:root {
    --news-wrapper-bg: #111827; /* Zinc 900 */
    --news-wrapper-border: #1f2937; /* Zinc 800 */
    --featured-text-bg: #111827;
}

.dark {
    --news-wrapper-bg: #09090b; /* Zinc 950 */
    --news-wrapper-border: #18181b; /* Zinc 900 */
    --featured-text-bg: #09090b;
}

/* Enclosed News Feed Wrapper */
.news-feed-wrapper {
    background-color: var(--news-wrapper-bg);
    border: 1px solid var(--news-wrapper-border);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-top: 2rem;
}

/* Split Header (L: Title, R: Desc) */
.news-split-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .news-split-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--muted);
    border: 1px solid var(--border);
    color: var(--foreground);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border);
    transform: scale(1.1);
}

/* News Layout */
.news-layout-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
}

@media (max-width: 1024px) {
    .news-layout-container {
        grid-template-columns: 1fr;
    }
}

/* Featured Cinematic Card */
.featured-pin .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.featured-pin .card-body {
    padding: 2rem 0 !important;
    background: transparent !important;
}

.featured-pin .card-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1.1;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.featured-pin .card-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 100%;
    line-height: 1.6;
}

/* Stories Column (Right) */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-card-compact {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--news-wrapper-border) !important;
    background: transparent !important;
    border: none;
    border-radius: 0 !important;
    align-items: center;
    transition: all 0.3s ease;
}

.story-card-compact:last-child {
    border-bottom: none !important;
}

.story-card-compact:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.story-img-compact {
    width: 110px;
    height: 110px;
    border-radius: 1rem;
    object-fit: cover;
}

.tag-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-right: 10px;
}

/* Category Colors */
.tag-education { background: #fee2e2; color: #991b1b; }
.tag-vocation { background: #dcfce7; color: #166534; }
.tag-events { background: #fef9c3; color: #854d0e; }
.tag-community { background: #dbeafe; color: #1e40af; }

.dark .tag-education { background: #450a0a; color: #fecaca; }
.dark .tag-vocation { background: #052e16; color: #bbf7d0; }
.dark .tag-events { background: #422006; color: #fef08a; }
.dark .tag-community { background: #172554; color: #bfdbfe; }

.story-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Load More Sidebar Footer Style */
.load-more-container {
    padding-top: 1.5rem;
    border-top: 1px solid var(--news-wrapper-border);
}

.view-all-btn {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--news-wrapper-border);
    color: var(--foreground);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--news-wrapper-border);
    border-color: var(--secondary-color);
}

/* Category Pills Restyle */
.category-pills {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--news-wrapper-border);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-pill.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Newsletter Modern Redesign */
.newsletter-modern {
    margin-top: 8rem;
}

.newsletter-glass {
    background: var(--news-wrapper-bg);
    border: 1px solid var(--news-wrapper-border);
    border-radius: 2.5rem;
    padding: 5rem;
    text-align: center;
}

.newsletter-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--news-wrapper-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    width: 100%;
}

/* Premium Read More Button (User Request) */
.read-more-btn {
    display: inline-block;
    border: none;
    background-color: var(--secondary-color);
    padding: 12px 48px 12px 24px;
    border-radius: 8px;
    color: white !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.41' height='12' viewBox='0 0 7.41 12'%3E%3Cpath d='M10,6,8.59,7.41,13.17,12,8.59,16.59,10,18l6-6Z' transform='translate(-8.59 -6)' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1.5rem;
}

.read-more-btn:hover {
    background-color: #a01830;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* ===== THEME SELECTION MODAL ===== */
#theme-selection-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#theme-selection-modal.show {
    opacity: 1;
    visibility: visible;
}

#theme-selection-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#theme-selection-modal .modal-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 3.5rem;
    padding: 4rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

#theme-selection-modal.show .modal-card {
    transform: translateY(0) scale(1);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.theme-option {
    cursor: pointer;
    padding: 2.5rem 1.5rem;
    border-radius: 2.5rem;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
}

.theme-option.active .icon-box {
    background: white;
    color: var(--secondary-color);
}

.theme-option .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--muted);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-option h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

@media (max-width: 640px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
    #theme-selection-modal .modal-card {
        padding: 2.5rem 1.5rem;
    }
}
/* ===== THEME SELECTION MODAL ===== */
#theme-selection-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* Controlled by JS via .show class */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#theme-selection-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    z-index: -1;
}

.modal-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 3rem;
    padding: 4rem;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.theme-option {
    background: var(--muted);
    border: 2px solid transparent;
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: var(--background);
    border-color: var(--secondary-color);
    transform: translateY(-4px);
}

.theme-option.active {
    border-color: var(--secondary-color);
    background: var(--background);
}

.theme-option .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--background);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.theme-option h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--foreground);
}

/* ===== UTILITIES ===== */
.overflow-x-hidden {
    overflow-x: hidden !important;
}

.bg-zinc-950 {
    background-color: #09090b !important;
}

/* Fix for horizontal shift on many pages */
body {
    max-width: 100vw;
    overflow-x: hidden;
}
