:root {
    --primary-green: #03240bff;
    --secondary-green: #1a4d2e;
    --light-green: #e6f0ea;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #5c6b73;
}

/* General styles */
body {
    font-family: 'Inter', 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    margin: 0;
}

/* Basic container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header */
.top-header {
    background-color: var(--light-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form {
    display: flex;
    width: 50%;
}

.search-input {
    border-color: var(--primary-green);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    flex: 1;
    margin-right: 0.5rem;
}

.search-input:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.2rem rgba(3, 36, 11, 0.2);
}

.search-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-color: var(--primary-green);
    color: var(--primary-green);
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid var(--primary-green);
}

.search-button:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.support-contact {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: none;
    align-items: center;
}

.support-contact span {
    margin-right: 0.5rem;
}

.support-link {
    text-decoration: none;
}

@media (min-width: 768px) {
    .support-contact {
        display: flex;
    }
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a {
    color: var(--primary-green);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--secondary-green);
    transform: scale(1.2);
}

/* Header */
.header {
    background-color: var(--primary-green);
    color: var(--white);
}

.nav {
    background-color: var(--primary-green);
}

.nav .container {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: -27px;
}

.nav-brand img {
    max-width: 100px;
}

.nav-toggler {
    display: none;
    background-color: var(--secondary-green);
    border: 1px solid var(--white);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-toggler:hover {
    background-color: var(--primary-green);
    transform: scale(1.05);
}

.nav-toggler-icon i {
    color: var(--white);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-green);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--primary-green);
    border-radius: 6px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
}

.dropdown-item {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--light-green);
    color: var(--text-dark);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

@media (max-width: 992px) {
    .nav-toggler {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-left: 0;
        margin-top: 1rem;
        background-color: var(--primary-green);
        padding: 1rem;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0;
        text-align: left;
    }

    .dropdown-menu {
        display: none;
        position: static;
        border: none;
        background-color: transparent;
        padding-left: 1rem;
    }

    .dropdown-item {
        color: var(--white);
    }

    .dropdown-item:hover {
        background-color: transparent;
        color: var(--light-green);
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
}






/* Hero Section Notice */
.hero-section .marquee-notice {
    height: 60px;
    line-height: 60px;
    font-size: 14px;
    font-weight: 500;
    background-color: #111; /* fallback in case bootstrap not applied */
    color: #f8f9fa;
    overflow: hidden;
    white-space: nowrap;
}

.hero-section .marquee-notice h4 {
    font-size: 16px;
    margin: 0;
    font-weight: normal;
}

.hero-section .datetime {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #0f0; /* greenish for time/date */
}

.hero-section .datetime .date,
.hero-section .datetime .time {
    margin: 0 10px;
}









/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background-color: var(--light-green);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bouncer {
    animation: bounce 6s ease-in-out infinite alternate;
    position: relative;
    margin-right: 2rem;
}

.text-container {
    text-align: left;
    width: 50%;
    margin-left: 200px;
}

.text-container h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.text-container p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .hero-section {
        flex-direction: column;
        padding: 1.5rem;
    }

    .bouncer {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .text-container {
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .text-container h1 {
        font-size: 2rem;
    }

    .text-container p {
        font-size: 1rem;
    }
}

/* 3D Rotating Cube */
.scene {
    position: relative;
    transform-style: preserve-3d;
    animation-iteration-count: infinite;
}

.box4 {
    width: 160px;
    height: 160px;
    animation: rotate4 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.face {
    position: absolute;
    width: 160px;
    height: 160px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.box4 .front  { background-image: url('../images/front.png'); transform: translateZ(80px); }
.box4 .back   { background-image: url('../images/back.png'); transform: rotateY(180deg) translateZ(80px); }
.box4 .right  { background-image: url('../images/right.png'); transform: rotateY(90deg) translateZ(80px); }
.box4 .left   { background-image: url('../images/left.png'); transform: rotateY(-90deg) translateZ(80px); }
.box4 .top    { background-image: url('../images/top.png'); transform: rotateX(90deg) translateZ(80px); }
.box4 .bottom { background-image: url('../images/bottom.png'); transform: rotateX(-90deg) translateZ(80px); }

/* Animations */
@keyframes rotate4 {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(-360deg) rotateY(-360deg); }
}

@keyframes bounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

/* Donation Popup */
.donation-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.donation-popup-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.donation-popup-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.donation-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.donation-popup-close:hover {
    color: var(--primary-green);
}

.donation-popup-content h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.donation-popup-content p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.donation-popup-content .btn-primary {
    background-color: var(--primary-green);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
}

.donation-popup-content .btn-primary:hover {
    background-color: var(--secondary-green);
}

@media (max-width: 576px) {
    .donation-popup-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    .donation-popup-img {
        width: 80px;
        height: 80px;
    }

    .donation-popup-content h2 {
        font-size: 1.3rem;
    }

    .donation-popup-content p {
        font-size: 0.9rem;
    }
}

/* Main Content */
.main-content {
    margin: 3rem 0;
}

.search-results-text {
    text-align: center;
    margin-bottom: 1rem;
}

.summaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .summaries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .summaries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Cards */
.card {
    align-items: center;
    max-width: 90%;
    border: none;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.03);
}

.card-img {
    height: auto;
    width: 50%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
}

.view-btn {
    background-color: var(--primary-green);
    border: none;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
}

.view-btn:hover {
    background-color: var(--secondary-green);
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Footer */
.footer {
    background-color: var(--secondary-green);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-col {
    padding: 0 15px;
    flex: 1;
    min-width: 200px;
}

.footer-col:first-child {
    flex: 2;
}

@media (max-width: 767px) {
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--light-green);
}

.footer-copyright {
    text-align: center;
    margin-top: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
}

/* Forms */
.form-control {
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(3, 36, 11, 0.2);
}

/* Alerts */
.alert-success {
    background-color: var(--light-green);
    color: var(--text-dark);
    border-color: var(--primary-green);
    border-radius: 6px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    border-radius: 6px;
}

/* Password Toggle Icon */
.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 75%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.3rem;
    background: var(--white);
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: var(--white);
    background-color: var(--primary-green);
}

.form-control[type="password"] {
    padding-right: 3rem;
}

.form-control:focus + .password-toggle-icon {
    color: var(--secondary-green);
}

/* Responsive adjustments for card grid */
@media (max-width: 576px) {
    .card {
        max-width: 95%;
        border-radius: 0.5rem;
        overflow: hidden;
        height: auto;
        align-items: center;
    }
    .card-body {
        padding: 5px;
    }
    .card-title {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 0.4rem;
    }
    .card-text {
        font-size: 0.85rem;
        color: #555;
        line-height: 1.3;
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .view-btn {
        padding: 0.3rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 0.3rem;
    }
    .search-input,
    .search-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    .social-icons a {
        font-size: 1.1rem;
    }
    .support-contact {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .card {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .summaries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .box4 {
        width: 100px;
        height: 100px;
    }
    .face {
        width: 100px;
        height: 100px;
    }
    .box4 .front  { transform: translateZ(50px); }
    .box4 .back   { transform: rotateY(180deg) translateZ(50px); }
    .box4 .right  { transform: rotateY(90deg) translateZ(50px); }
    .box4 .left   { transform: rotateY(-90deg) translateZ(50px); }
    .box4 .top    { transform: rotateX(90deg) translateZ(50px); }
    .box4 .bottom { transform: rotateX(-90deg) translateZ(50px); }
}

/* Scrolling Notice */
.scrolling-notice {
    background: var(--primary-green);
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--light-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scrolling-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    min-width: 200%; /* Ensure content is wide enough to scroll */
}

.scrolling-content .datetime {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 16px;
}

.scrolling-content .date, .scrolling-content .time {
    font-weight: bold;
    color: var(--light-green);
}

.scrolling-content h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.scrolling-content .highlight-yellow {
    color: var(--light-green);
    font-weight: bold;
}

.scrolling-content .highlight-blue {
    background-color: var(--secondary-green);
    padding: 2px 5px;
    border-radius: 3px;
}

.scrolling-content .highlight-white {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 2px 5px;
    border-radius: 3px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Pause animation on hover */
.scrolling-notice:hover .scrolling-content {
    animation-play-state: paused;
}

/* Responsive adjustments for scrolling notice */
@media (max-width: 576px) {
    .scrolling-notice {
        height: 50px;
    }
    .scrolling-content .datetime {
        font-size: 14px;
    }
    .scrolling-content h4 {
        font-size: 14px;
    }
}