@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --pst-orange: #2954ca; /* actual orrange #ea9722; */
  --pst-orange-hover: #c97e16;
  --pst-dark: #343a40;
  --pst-body-bg: #f8f9fa;
  --pst-text-color: #212529;
  --pst-card-bg: #ffffff;
  --pst-border-color: #dee2e6;
  --pst-muted-color: #6c757d;
  --pst-hero-overlay: rgba(52, 58, 64, 0.9);
}

[data-bs-theme="dark"] {
  --pst-body-bg: #212529;
  --pst-text-color: #f8f9fa;
  --pst-card-bg: #343a40;
  --pst-border-color: #495057;
  --pst-muted-color: #adb5bd;
  --pst-hero-overlay: rgba(0, 0, 0, 0.8);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bs-body-bg); /* Use Bootstrap variable which switches automatically */
  color: var(--bs-body-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--bs-heading-color); /* Use Bootstrap variable */
}

a {
  color: var(--pst-orange);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--pst-orange-hover);
  text-decoration: underline;
}

.text-orange {
  color: var(--pst-orange) !important;
}

.bg-orange {
  background-color: var(--pst-orange) !important;
  color: white;
}

.bg-custom-blue {
  background-color: #1c3a8d !important;
  color: white;
}

.border-orange {
    border-color: var(--pst-orange) !important;
}

/* Custom button variants */
.btn-orange {
    background-color: var(--pst-orange);
    border-color: var(--pst-orange);
    color: white;
}
.btn-orange:hover {
    background-color: var(--pst-orange-hover);
    border-color: var(--pst-orange-hover);
    color: white;
}

/* Hero Carousel Styles */
.hero-slide-bg {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

/* Ensure carousel caption is above the overlay */
.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    display: flex; /* Centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem; /* Lift it up a bit */
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Animations for Hero Text */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0; /* Start hidden for delay */
    animation: slideUp 0.8s ease-out forwards;
}


/* Card improvements */
.card {
  border: none;
  border-radius: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: var(--bs-card-bg);
}

/* Sidebar improvements */
.list-group-item {
  border: none;
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border-bottom: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background-color: rgba(234, 151, 34, 0.1);
  color: var(--pst-orange);
}

/* Navbar overrides */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-link.active {
  color: var(--pst-orange) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--pst-orange);
}

/* Custom separator */
hr.orange-line {
    border-top: 1px solid var(--pst-orange);
    opacity: 1;
}

/* Sticky Sidebar */
.sticky-top-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; /* Adjust based on navbar height */
    z-index: 90;
}

/* Footer History Links */
.footer-history-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}
.footer-history-link:hover {
    color: var(--pst-orange);
    text-decoration: none;
}

/* Glassmorphism Classes (Modern) */
.glass-nav {
    background: rgba(33, 37, 41, 0.85) !important; /* Dark bg with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(33, 37, 41, 0.6); /* Darker glass for dark mode */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .pst-hero-section {
        padding: 3rem 1rem;
    }

    .hero-slide-bg {
        height: 550px; /* Increased height for mobile to fit countdown */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 100px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    color: var(--pst-orange);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

[data-bs-theme="dark"] .countdown-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Typography Utilities */
.text-justify {
  text-align: justify;
}

/* Compact Countdown for Mobile */
@media (max-width: 576px) {
    .countdown-number {
        font-size: 1.5rem;
    }
    .countdown-item {
        padding: 0.5rem;
        min-width: 80px;
    }
}
