/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    /* Light gray background for better contrast */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ticker / News Marquee */
.ticker {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 30px;
    /* Increased height slightly */
    background-color: #343a40;
    color: white;
    align-items: center;
    overflow: hidden;
}

.news {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.news-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
}

.news-content p {
    display: inline;
    margin-right: 50px;
    font-size: 15px;
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Navbar */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    transition: color 0.2s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #256600 0%, #1a4a00 100%);
    color: white;
    padding: 3rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
    background-color: white;
    overflow: hidden;
}

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

.card-header-custom {
    background-color: #256600;
    color: white;
    font-weight: bold;
    padding: 15px;
    border-bottom: none;
}

/* Widget Container (Refactored from inline) */
.widget-container {
    width: 100%;
    /* Responsive width */
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #256600;
    color: white;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.widget-header {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.datetime {
    font-size: 14px;
    font-weight: normal;
}

.hour {
    font-size: 36px;
    font-weight: bold;
    color: #ffcc00;
    display: block;
    /* Ensure it breaks line properly */
    margin-top: 5px;
}

/* Buttons */
.btn-custom {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

.btn-custom:active {
    background-color: #003366;
    transform: scale(0.98);
}

/* Social Icons in Footer */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.social-icons i {
    font-size: 20px;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-list i {
    margin-right: 10px;
    color: #256600;
    font-size: 1.2em;
}

.contact-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: #256600;
}

/* Tables */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.table-custom th,
.table-custom td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.table-custom th {
    background-color: #256600;
    color: white;
    font-weight: 600;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .navbar-brand {
        margin-left: 0;
    }

    .hero-section {
        padding: 2rem 1rem;
    }
}

@media screen and (max-height: 767px) {

    #rc-imageselect,
    .g-recaptcha {
        transform: scale(0.77);
        -webkit-transform: scale(0.77);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }
}

/* Donation buttons hover effect */
a img[alt*="Donar"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

a:hover img[alt*="Donar"] {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(37, 102, 0, 0.3);
}