/* Custom Styles for Palakkad Tourism */

/* Body padding for fixed navigation */
body {
    padding-top: 206px;
    font-family: 'Literata', serif;
}

/* Apply Literata font to all text elements */
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
.navbar, .nav-link, .dropdown-item,
.card-title, .card-text,
.btn, .alert, .lead {
    font-family: 'Literata', serif;
}

@media (max-width: 991px) {
    body {
        padding-top: 146px;
    }
    
    .logo-section {
        position: fixed;
        top: 0;
        height: 90px;
    }
    
    .menu-bar {
        position: fixed !important;
        top: 90px;
        margin-top: 0;
        min-height: 56px;
    }
    
    .hero-section {
        padding-top: 146px;
    }
}

/* Hero Section */
.hero-section {
    background: url('/assets/images/banner.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 25vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 206px;
    padding-bottom: 1.5rem;
    overflow: hidden;
    animation: heroZoom 20s ease-in-out infinite alternate;
    margin-top: 0;
}

@keyframes heroZoom {
    0% {
        background-size: cover;
        background-position: center center;
    }
    100% {
        background-size: 110% auto;
        background-position: center center;
    }
}

/* Hero Content with Shadows */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.9);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 
                     0 0 20px rgba(0, 0, 0, 0.5),
                     2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    50% {
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9), 
                     0 0 25px rgba(0, 0, 0, 0.6),
                     3px 3px 6px rgba(0, 0, 0, 1);
    }
}

.hero-subtitle {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 0 0 15px rgba(0, 0, 0, 0.5),
                 1px 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.hero-alert {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.hero-button {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.4s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Weather Widget */
.weather-widget-container {
    position: absolute;
    top: 220px;
    right: 20px;
    z-index: 10;
}

.weather-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.weather-widget .weather-loading {
    text-align: center;
    color: #001925;
    font-size: 0.9rem;
}

.weather-widget .weather-content {
    color: #001925;
}

.weather-widget .weather-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.weather-widget .weather-temp {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 5px 0;
    color: #001925;
}

.weather-widget .weather-desc {
    font-size: 0.9rem;
    color: #555;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.weather-widget .weather-details {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.weather-widget .weather-icon {
    font-size: 2.5rem;
    text-align: center;
    margin: 5px 0;
}

.weather-widget .weather-error {
    color: #dc3545;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 768px) {
    .weather-widget-container {
        position: relative;
        top: 0;
        right: 0;
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-section {
        padding-top: 146px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Logo Section */
.logo-section {
    background-color: #ffffff !important;
    z-index: 1031;
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0 !important;
    margin: 0 !important;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.logo-section .container {
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.logo-section .container {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section .d-flex {
    margin: 0 auto !important;
    padding: 0 !important;
    height: 150px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-logo {
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Navigation Menu Bar with Custom Background */
.menu-bar {
    background-color: #001925 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    z-index: 1030;
    top: 150px;
    left: 0;
    position: fixed !important;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: 56px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.menu-bar .container {
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.menu-bar.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.menu-bar .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

.menu-bar .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.menu-bar .dropdown-menu {
    background-color: #001925;
    border: none;
    border-radius: 5px;
}

.menu-bar .dropdown-item {
    color: #fff;
    padding: 0.5rem 1.5rem;
}

.menu-bar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-bar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-bar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


@media (max-width: 768px) {
    .main-logo {
        max-height: 90px;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

/* Municipalities Section Background */
.municipalities-section {
    background-color: #001925 !important;
    position: relative;
}

.municipalities-section .container {
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Municipality Cards - Beautiful Design */
.municipality-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 28px;
    box-shadow: 0 8px 25px rgba(0, 25, 37, 0.08),
                0 3px 10px rgba(0, 25, 37, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 25, 37, 0.08);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

.municipality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #001925;
    z-index: 1;
}

.municipality-card:hover {
    box-shadow: 0 20px 40px rgba(0, 25, 37, 0.15),
                0 8px 20px rgba(0, 25, 37, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 25, 37, 0.2);
    background: #f5f7f8;
}

.municipality-name {
    color: #001925;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
    padding-top: 5px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.municipality-card:hover .municipality-name {
    color: #001015;
}

.municipality-desc {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.municipality-link {
    color: #001925;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    padding: 12px 24px;
    background: rgba(0, 25, 37, 0.05);
    border-radius: 10px;
    margin-top: 10px;
}

.municipality-card:hover .municipality-link {
    color: #001925;
    background: rgba(0, 25, 37, 0.1);
    box-shadow: 0 4px 12px rgba(0, 25, 37, 0.2);
}

.municipality-link i {
    font-size: 1.1rem;
}

/* Municipality Card Color Variations - Single Solid Colors */
.municipality-card-1 {
    background: #ffffff;
    border-color: rgba(220, 53, 69, 0.2);
}

.municipality-card-1::before {
    background: #dc3545;
}

.municipality-card-1::after {
    background: radial-gradient(circle, rgba(220, 53, 69, 0.05) 0%, transparent 70%);
}

.municipality-card-1:hover {
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15),
                0 8px 20px rgba(220, 53, 69, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-1 .municipality-name {
    color: #dc3545;
}

.municipality-card-1:hover .municipality-name {
    color: #c82333;
}

.municipality-card-1:hover .municipality-link {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Card 2 - Blue */
.municipality-card-2 {
    background: #ffffff;
    border-color: rgba(13, 110, 253, 0.2);
}

.municipality-card-2::before {
    background: #0d6efd;
}

.municipality-card-2::after {
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
}

.municipality-card-2:hover {
    background: #f0f7ff;
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15),
                0 8px 20px rgba(13, 110, 253, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-2 .municipality-name {
    color: #0d6efd;
}

.municipality-card-2:hover .municipality-name {
    color: #0a58ca;
}

.municipality-card-2:hover .municipality-link {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Card 3 - Green (matching menu/footer) */
.municipality-card-3 {
    background: #ffffff;
    border-color: rgba(0, 25, 37, 0.2);
}

.municipality-card-3::before {
    background: #001925;
}

.municipality-card-3::after {
    background: radial-gradient(circle, rgba(0, 25, 37, 0.05) 0%, transparent 70%);
}

.municipality-card-3:hover {
    background: #f0f5f7;
    border-color: rgba(0, 25, 37, 0.4);
    box-shadow: 0 20px 40px rgba(0, 25, 37, 0.15),
                0 8px 20px rgba(0, 25, 37, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-3 .municipality-name {
    color: #001925;
}

.municipality-card-3:hover .municipality-name {
    color: #001015;
}

.municipality-card-3:hover .municipality-link {
    color: #001925;
    background: rgba(0, 25, 37, 0.1);
    box-shadow: 0 4px 12px rgba(0, 25, 37, 0.2);
}

/* Card 4 - Orange */
.municipality-card-4 {
    background: #ffffff;
    border-color: rgba(255, 152, 0, 0.2);
}

.municipality-card-4::before {
    background: #ff9800;
}

.municipality-card-4::after {
    background: radial-gradient(circle, rgba(255, 152, 0, 0.05) 0%, transparent 70%);
}

.municipality-card-4:hover {
    background: #fff8f0;
    border-color: rgba(255, 152, 0, 0.4);
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.15),
                0 8px 20px rgba(255, 152, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-4 .municipality-name {
    color: #ff9800;
}

.municipality-card-4:hover .municipality-name {
    color: #e68900;
}

.municipality-card-4:hover .municipality-link {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

/* Card 5 - Purple */
.municipality-card-5 {
    background: #ffffff;
    border-color: rgba(156, 39, 176, 0.2);
}

.municipality-card-5::before {
    background: #9c27b0;
}

.municipality-card-5::after {
    background: radial-gradient(circle, rgba(156, 39, 176, 0.05) 0%, transparent 70%);
}

.municipality-card-5:hover {
    background: #faf5fb;
    border-color: rgba(156, 39, 176, 0.4);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.15),
                0 8px 20px rgba(156, 39, 176, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-5 .municipality-name {
    color: #9c27b0;
}

.municipality-card-5:hover .municipality-name {
    color: #7b1fa2;
}

.municipality-card-5:hover .municipality-link {
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.1);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

/* Card 6 - Teal */
.municipality-card-6 {
    background: #ffffff;
    border-color: rgba(0, 150, 136, 0.2);
}

.municipality-card-6::before {
    background: #009688;
}

.municipality-card-6::after {
    background: radial-gradient(circle, rgba(0, 150, 136, 0.05) 0%, transparent 70%);
}

.municipality-card-6:hover {
    background: #f0f9f8;
    border-color: rgba(0, 150, 136, 0.4);
    box-shadow: 0 20px 40px rgba(0, 150, 136, 0.15),
                0 8px 20px rgba(0, 150, 136, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-6 .municipality-name {
    color: #009688;
}

.municipality-card-6:hover .municipality-name {
    color: #00796b;
}

.municipality-card-6:hover .municipality-link {
    color: #009688;
    background: rgba(0, 150, 136, 0.1);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.2);
}

/* Card 7 - Indigo */
.municipality-card-7 {
    background: #ffffff;
    border-color: rgba(63, 81, 181, 0.2);
}

.municipality-card-7::before {
    background: #3f51b5;
}

.municipality-card-7::after {
    background: radial-gradient(circle, rgba(63, 81, 181, 0.05) 0%, transparent 70%);
}

.municipality-card-7:hover {
    background: #f5f6fa;
    border-color: rgba(63, 81, 181, 0.4);
    box-shadow: 0 20px 40px rgba(63, 81, 181, 0.15),
                0 8px 20px rgba(63, 81, 181, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.municipality-card-7 .municipality-name {
    color: #3f51b5;
}

.municipality-card-7:hover .municipality-name {
    color: #303f9f;
}

.municipality-card-7:hover .municipality-link {
    color: #3f51b5;
    background: rgba(63, 81, 181, 0.1);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.2);
}

/* Donate Blood Section */
.donate-blood-section {
    position: relative;
    overflow: hidden;
}

.donate-blood-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.donate-blood-section .container {
    position: relative;
    z-index: 1;
}

.donate-blood-section h3 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.donate-blood-section p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.donate-blood-section .btn-light {
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.donate-blood-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Featured Places Section - Destination Cards */
.featured-places-section {
    background: #fff;
}

.section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 3rem;
}

.destination-card {
    text-decoration: none;
    display: block;
    height: 100%;
}

.destination-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-image-merged {
    height: 350px;
}

.destination-card:hover .destination-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    z-index: 2;
}

.destination-name {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.destination-location {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.destination-location i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .destination-image-wrapper {
        height: 280px;
    }
    
    .destination-name {
        font-size: 1.5rem;
    }
}

/* Statistics Cards */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Info Boxes (About Palakkad & Upcoming Events) */
.info-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.info-box h2 {
    color: #001925;
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 3px solid #001925;
    padding-bottom: 0.5rem;
}

.info-box .events-list {
    max-height: 300px;
    overflow-y: auto;
}

.info-box .event-item h5 {
    font-size: 1rem;
    font-weight: 600;
}

.info-box .event-item {
    font-size: 0.9rem;
}

.info-box .event-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Modal */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #001925 !important;
    position: relative;
}

footer .container {
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

footer a {
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

section.py-5.mt-5 {
    margin-top: 0 !important;
    padding-top: 2rem;
}

/* Badge Styles */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 22vh;
        padding-top: 146px;
        background-attachment: scroll;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Panel Styles */
body.admin-page {
    padding-top: 0 !important;
}

.admin-sidebar {
    min-height: 100vh;
    background: #343a40;
}

.admin-sidebar .nav-link {
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #495057;
    color: #fff;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Table Styles */
.table-responsive {
    border-radius: 5px;
}

.table thead {
    background: #f8f9fa;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
}

/* Image Placeholder */
.bg-secondary {
    background-color: #6c757d !important;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-top: 0;
    padding-top: 0.5rem;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: #001925;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Welcome Message Bar */
.welcome-message-bar {
    background: #eff4f7;
    color: #333333;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 3px solid #001925;
}

.welcome-message-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.8;
    color: #333333;
    text-align: left;
}

.welcome-message-text i {
    color: #dc3545;
}

@media (max-width: 768px) {
    .welcome-message-text {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* History Journey Timeline Styles */
.history-journey-section {
    position: relative;
    overflow: hidden;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #001925 0%, #0d6efd 50%, #28a745 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 25, 37, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1.0s; }
.timeline-item:nth-child(11) { animation-delay: 1.1s; }
.timeline-item:nth-child(12) { animation-delay: 1.2s; }
.timeline-item:nth-child(13) { animation-delay: 1.3s; }
.timeline-item:nth-child(14) { animation-delay: 1.4s; }

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #001925;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-marker-period {
    width: 28px;
    height: 28px;
    background: #0d6efd;
    border-color: #0d6efd;
}

.timeline-marker-final {
    width: 32px;
    height: 32px;
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 20px rgba(40, 167, 69, 0.5);
}

.timeline-content {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #001925;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    border-left: none;
    border-right: 4px solid #001925;
}

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

.timeline-content-final {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    width: 50%;
    margin: 0 auto;
    text-align: center;
}

.timeline-content-final .timeline-title,
.timeline-content-final .timeline-subtitle,
.timeline-content-final .timeline-description {
    color: #fff;
}

.timeline-title {
    color: #001925;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: #0d6efd;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-content-final .timeline-title {
    font-size: 1.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-item-final {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .history-timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
        border-left: 4px solid #001925 !important;
        border-right: none !important;
    }
    
    .timeline-content-final {
        width: calc(100% - 60px);
        text-align: left;
    }
    
    .timeline-title {
        font-size: 1.25rem;
    }
    
    .timeline-subtitle {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
}

