/* ================================================
   iTHINK Welfare Solutions - Custom Stylesheet
   Breakpoints: base (mobile) → 768px → 992px → 1200px
   ================================================ */


/* ------------------------------------------------
   Base / Global
   ------------------------------------------------ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

h5 {
    font-size: 0.9rem;
}

.bg-grey {
    background-color: #e3e3e3 !important;
}

/* Centre images within their column */
img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Corporate background - mobile first, overridden at each breakpoint */
.corpbg {
    background-image: url("/img/ithinc-background-768x750.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ------------------------------------------------
   Scroll margin - compensates for sticky navbar
   ------------------------------------------------ */

[id] {
    scroll-margin-top: 80px;
}


/* ------------------------------------------------
   Navbar
   ------------------------------------------------ */

.navbar {
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-brand {
    display: block;
    flex-shrink: 0;
    width: 180px;
    height: 40px;
    margin-left: 10px;
    background-image: url("/img/ithink-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.navbar .btn {
    color: #fff;
}

.navbar .btn:hover {
    color: #fff;
}

nav p {
    margin: 0;
}


/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */

.btn {
    width: fit-content;
    padding: 5px 20px;
    border-radius: 50px;
    background-color: #e7527f;
    border: none;
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: mediumpurple;
}


/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */

.hero-strapline {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    padding-top: 20px;
}

.hero-h1 {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    margin: 0;
}

#hero h3 {
    padding-bottom: 5px;
}

#hero p:not(.hero-strapline) {
    color: white;
    font-size: 1.2rem;
}


/* ------------------------------------------------
   Info Section
   ------------------------------------------------ */

@keyframes infosectionfade {
    0%   { opacity: 0.3; }
    100% { opacity: 1; }
}

#info-section div {
    animation-name: infosectionfade;
    animation-duration: 2s;
}

#action-section p {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

#action-section img {
    max-width: 480px;
}

#action-section h2 {
    color: black;
    font-size: 2rem;
}

.intro {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}


/* ------------------------------------------------
   Festival Cards
   ------------------------------------------------ */

.festival-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.festival-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.festival-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: none;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.festival-card:hover img {
    transform: scale(1.04);
}

.festival-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.3;
    min-height: 3.2em;
    position: relative;
    z-index: 1;
}

.festival-card h3 br {
    display: none;
}

.festival-card:hover h3 {
    color: #e7527f;
}

.festival-card .festival-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-top: 2px;
}

.festival-card a {
    text-decoration: none;
    color: inherit;
}

.festival-card a.card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 20px;
    cursor: pointer;
}

/* Strip all link decoration in events section (festival cards) */
#events-section a,
#events-section a:visited,
#events-section a:hover,
#events-section a:active {
    text-decoration: none;
}

/* ------------------------------------------------
   Team Section
   ------------------------------------------------ */

.team-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.team-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    border: 4px solid #e7527f;
    object-position: center top;
}

.team-card h3 {
    color: black;
    font-size: 1.3rem;
}

.team-bio {
    color: #6c757d;
    margin-top: 12px;
    text-align: left;
    line-height: 1.6;
}

/* ------------------------------------------------
   Testimonials
   ------------------------------------------------ */

#testimonials-section {
    background-color: #e3e3e3;
    color: black;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    font-style: italic;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-card p {
    margin-bottom: 12px;
}

.testimonial-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
    font-style: normal;
}



/* ------------------------------------------------
   Image Grid
   ------------------------------------------------ */

.image-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
}

.image-grid .glightbox {
    cursor: zoom-in;
}

.image-grid img {
    display: block;
    transition: transform 0.3s ease;
    box-shadow: 0 1rem 1rem rgba(0,0,0,0.15);
}

.image-grid figure:hover img {
    transform: scale(1.03);
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */

/* ID specificity needed to override #events-section link rule on index.php */
#footer a {
    color: white;
    text-decoration: underline;
}

#footer .btn {
    text-decoration: none;
}

#footer {
    /* !important needed to override Bootstrap's container gutter padding */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ================================================
   Responsive Breakpoints
   ================================================ */

/* Tablet - 768px and above */
@media (min-width: 768px) {
    .hero-strapline  { font-size: 2.5rem; }
    .hero-h1         { font-size: 1.3rem; }
    .text-large      { font-size: 1.5rem; }
    h5               { font-size: 0.8rem; }
    .corpbg          { background-image: url("/img/ithinc-background-992x750.jpg"); }
    .navbar-brand    { width: 220px; height: 50px; }
}

/* Desktop - 992px and above */
@media (min-width: 992px) {
    .hero-strapline  { font-size: 3.0rem; }
    .hero-h1         { font-size: 1.5rem; }
    .navbar          { padding: 5px 15px; }
    .corpbg          { background-image: url("/img/ithinc-background-1200x750.jpg"); }
    .navbar-brand    { width: 260px; height: 60px; }
}

/* Large desktop - 1200px and above */
@media (min-width: 1200px) {
    .hero-strapline  { font-size: 4rem; padding-top: 60px; }
    .hero-h1         { font-size: 1.8rem; }
    .corpbg          { background-image: url("/img/ithinc-background-2500x750.jpg"); }
    .navbar-brand    { width: 300px; height: 70px; }
}

/* Collapsed navbar - below 1200px */
@media (max-width: 1199.98px) {
    .navbar-nav {
        margin-left: 0;
        align-items: flex-end;
        text-align: right;
    }
    .navbar-collapse {
        padding-right: 10px;
        padding-left: 0px;
    }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
    .festival-card img { height: 130px; }
    .festival-card h3  { min-height: auto; }
}
