/*
Website designed and developed by Aaron Rana
© 2026 Gurdwara Sahib Banbury
*/
/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #222;
    padding-top: 60px;
}

p {
    text-align: center;
    font-size: 16px;
}

ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

li {
    padding: 8px 0;
}


/* =========================
   HEADINGS
========================= */

h1,
h2 {
    text-align: center;
}

h1 {
    margin-top: 20px;
}


/* =========================
   MAIN SECTIONS
========================= */

section {
    background: white;
    margin: 40px auto;
    padding: 20px;
    max-width: 1000px;
    border-radius: 10px;
}

#activities {
    max-width: 1400px;
    padding: 30px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #000000;
    font-weight: bold;
    font-size: 24px;
}

.nav-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0;
}

.nav-links li a {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #0b4ea2;
}

/* Keeps section headings visible below the fixed navbar */
#home,
#fateh,
#schedule,
#activities,
#visitor-info,
#contact,
#find-us {
    scroll-margin-top: 90px;
}

/* =========================
   HERO SLIDESHOW
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0;
    animation: slideshow 12s infinite;
}

.slide1 {
    background-image: url("images/slide1.jpg");
    animation-delay: 0s;
    background-position: center 45%;
}

.slide2 {
    background-image: url("images/slide2.jpg");
    animation-delay: 6s;
    background-position: center 45%;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

@keyframes slideshow {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    42% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* =========================
   FATEH SECTION
========================= */

#fateh h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0b4ea2;
}

.fateh-translation {
    font-size: 18px;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

/* =========================
   SCHEDULE
========================= */

#schedule {
    max-width: 1400px;
    padding: 40px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
}

.schedule-item {
    padding: 10px 18px;
    text-align: center;
    border-right: 1px solid #0b4ea2;
}

.schedule-item:last-child {
    border-right: none;
}

.schedule-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.schedule-item p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* =========================
   WEEKLY ACTIVITIES
========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
}

.poster-frame {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: white;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;

    filter: saturate(85%) brightness(90%);
    transition: filter 0.3s ease;
}

.card:hover img {
    filter: saturate(100%) brightness(100%);
}

.card h3 {
    height: 58px;
    margin: 0;
    padding: 12px 8px;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   SECTION HEADINGS
========================= */

#schedule h2,
#activities h2,
#contact h2 {
    color: #0b4ea2;
    font-size: 30px;
    margin-bottom: 35px;
}

/* =========================
   VISITOR INFORMATION
========================= */

#visitor-info {
    max-width: 1100px;
    padding: 35px;
}

.visitor-heading {
    text-align: center;
    margin-bottom: 28px;
}

.visitor-heading h2 {
    color: #0b4ea2;
    font-size: 30px;
    margin: 0 0 12px;
}

.visitor-heading p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.visitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.visitor-panel {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 24px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.visitor-panel h3 {
    color: #0b4ea2;
    text-align: center;
    font-size: 24px;
    margin: 0 0 22px;
}

.visitor-guidelines {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visitor-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    background: #f7faff;
    border-radius: 10px;
}

.visitor-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.visitor-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.visitor-text {
    flex: 1;
}

.visitor-text h4 {
    color: #0b4ea2;
    font-size: 17px;
    margin: 0 0 6px;
}

.visitor-text p {
    margin: 0;
    text-align: left;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.dress-code-panel {
    text-align: center;
}

.dress-code-intro {
    max-width: 480px;
    margin: 0 auto 20px;
    color: #444;
    line-height: 1.55;
}

.dress-code-image-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.dress-code-image {
    display: block;
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid #d89b22;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.dress-code-image:hover {
    transform: scale(1.015);
}

.dress-code-button {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 24px;
    border: 2px solid #0b4ea2;
    border-radius: 25px;
    color: #0b4ea2;
    background: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s ease;
}

.dress-code-button:hover {
    color: white;
    background: #0b4ea2;
}

/* =========================
   DRESS CODE LIGHTBOX
========================= */

.dress-code-image-link {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.dress-code-button {
    cursor: pointer;
}

.dress-code-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;

    background: rgba(0, 0, 0, 0.82);

    align-items: center;
    justify-content: center;

    padding: 30px;
}

.dress-code-lightbox.active {
    display: flex;
}

.dress-code-lightbox-image {
    max-width: 90vw;
    max-height: 92vh;
    width: auto;
    height: auto;

    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.dress-code-close {
    position: fixed;
    top: 20px;
    right: 30px;

    border: none;
    background: none;
    color: white;

    font-size: 45px;
    line-height: 1;

    cursor: pointer;
}

.visitor-message {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 14px 20px;
    border-radius: 10px;
    background: #edf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.visitor-message span {
    color: #0b4ea2;
    font-size: 25px;
}

.visitor-message p {
    color: #0b4ea2;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    min-height: 150px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    border-top: 4px solid #0b4ea2;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card h3 {
    color: #0b4ea2;
    margin: 0 0 10px;
    font-size: 19px;
}

.contact-card p {
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.contact-card a {
    color: #444;
    text-decoration: none;
}

.contact-card a:hover {
    color: #d4af37;
}

.map-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* =========================
   SUPPORT / JUSTGIVING
========================= */

#support {
    max-width: 1000px;
    padding: 30px;
    text-align: center;
}

#support h2 {
    color: #0b4ea2;
    font-size: 30px;
    margin-bottom: 12px;
}

#support p {
    margin: 0 auto 18px;
    color: #444;
    line-height: 1.6;
}

.justgiving-link {
    display: inline-block;
    padding: 10px 20px;

    border: 2px solid #0b4ea2;
    border-radius: 24px;

    color: #0b4ea2;
    background: white;

    text-decoration: none;
    font-weight: 600;

    transition: 0.25s ease;
}

.justgiving-link:hover {
    background: #0b4ea2;
    color: white;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #eeeeee;
    border-top: 1px solid #dddddd;
    padding: 14px 20px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

footer p {
    margin: 8px 0;
    color: #555;
}

footer a {
    color: #0b4ea2;
    text-decoration: none;
}

footer a:hover {
    color: #d4af37;
}

.footer-socials {
    margin: 8px 0 12px;
    text-align: center;
}

.footer-social-title {
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icons a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #0b4ea2;
    border-radius: 50%;

    color: #0b4ea2;

    transition: 0.25s ease;
}

.social-icons svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-icons polygon {
    fill: currentColor;
    stroke: none;
}

.social-icons a:hover {
    background: #0b4ea2;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 1000px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 0;
    }

    .schedule-item:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 650px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        border-right: none;
        border-bottom: 1px solid #dddddd;
        padding: 15px;
    }

    .schedule-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .visitor-grid {
        grid-template-columns: 1fr;
    }

    .dress-code-image {
        max-width: 430px;
    }
}

@media (max-width: 750px) {
    body {
        padding-top: 120px;
    }

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 15px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
    }

    #visitor-info {
        margin-left: 15px;
        margin-right: 15px;
        padding: 24px 16px;
    }

    .visitor-panel {
        padding: 18px 14px;
    }

    .visitor-item {
        align-items: flex-start;
        gap: 12px;
    }

    .visitor-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        font-size: 24px;
    }
}

@media (max-width: 500px) {
    .visitor-heading h2 {
        font-size: 26px;
    }

    .visitor-panel h3 {
        font-size: 21px;
    }

    .visitor-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .visitor-text h4,
    .visitor-text p {
        text-align: center;
    }

    .visitor-message {
        flex-direction: column;
    }
}

#find-us {
    max-width: 1000px;
    padding: 20px;
}

#find-us h2 {
    color: #0b4ea2;
    font-size: 30px;
    margin-bottom: 25px;
}

.map-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}