/* =========================================================
   TCONTROLLER HOMEPAGE OPTIMIZED
   ========================================================= */

/* ---------------------------
   GLOBAL & RESET
--------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 80px; /* offset for fixed navbar */
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* ---------------------------
   NAVBAR
--------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: background-color 0.3s ease;
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
}

.navbar .btn {
    line-height: 1;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem; /* slightly bigger */
    color: #0d6efd; /* primary bootstrap color */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ---------------------------
   HERO SECTION
--------------------------- */
section.hero,
section#home {
    padding: 4rem 1rem;
    text-align: center;
    background: #ffffff;
}

section.hero h1,
section#home h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

section.hero p.lead,
section#home p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

section.hero .btn,
section#home .btn {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

section.hero .btn:hover,
section#home .btn:hover {
    transform: translateY(-2px);
}

/* Hero buttons: responsive size */
.btn-lg-responsive {
    padding: 0.6rem 1.3rem; /* slightly smaller than btn-lg */
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-lg-responsive:hover {
    transform: translateY(-2px);
}

/* ---------------------------
   SECTIONS
--------------------------- */
section[id] {
    scroll-margin-top: 80px;
    padding: 4rem 1rem;
    text-align: center;
    background-color: #ffffff;
}

section h2,
section h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

section p {
    margin-bottom: 2rem;
    color: #555;
}

/* ---------------------------
   CARDS / PREVIEW
--------------------------- */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.card-body {
    padding: 0.75rem;
}

.card-body small {
    font-size: 0.85rem;
    color: #6c757d;
}

/* PREVIEW ROW SPACING
.row.g-4 {
    row-gap: 1rem;
    column-gap: 1rem;
}
 */
/* ---------------------------
   BUTTONS
--------------------------- */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* ---------------------------
   DONATE SECTION
--------------------------- */
section.bg-white {
    background-color: #ffffff;
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    color: #6c757d;
}

footer small {
    font-size: 0.85rem;
}

/* ---------------------------
   MEDIA QUERIES
--------------------------- */

/* Tablets & small desktop */
@media (max-width: 992px) {
    body {
        padding-top: 80px;
    }

    section.hero h1,
    section#home h1 {
        font-size: 2.25rem;
    }

    section.hero p.lead,
    section#home p.lead {
        font-size: 1.05rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .card-body small {
        font-size: 0.8rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    body {
        padding-top: 80px;
    }

    .btn-lg-responsive {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    section.hero h1,
    section#home h1 {
        font-size: 1.9rem;
    }

    section.hero p.lead,
    section#home p.lead {
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        font-size: 0.9rem;
    }

    .card-body small {
        font-size: 0.75rem;
    }

    .hero .btn,
    #home .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    /* Reduce spacing between preview cards on small screens */
    .row.g-4 {
        row-gap: 0.75rem;
        column-gap: 0.5rem;
    }
}
