/* ==============================
   GENERAL WEBSITE STYLING
============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F4F0E6;
    color: #263c35;
    line-height: 1.6;
}


/* ==============================
   COMPACT HEADER
============================== */

.site-header {
    background-color: #F4F0E6;
    border-bottom: 3px solid #C6A45B;
}

.header-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 15px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}


/* MOSQUE LOGO AND NAME */

.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background-color: white;
    border-radius: 8px;
    padding: 3px;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #075C46;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.brand-subtitle {
    color: #96712D;
    font-size: 13px;
    margin-top: 4px;
}


/* NAVIGATION MENU */

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.header-nav a {
    color: #075C46;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: #e9ca74;
}


/* ==============================
   HOMEPAGE HERO BANNER
============================== */

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 70px 25px;

    background:
        linear-gradient(
            rgba(7, 92, 70, 0.42),
            rgba(7, 92, 70, 0.28)
        ),
        url("Images/mosque-banner-Toronto.jpg");

    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    color: #e9ca74;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: bold;
}

.hero h1 {
    text-shadow: 0 2px 8px rgba(0, 35, 25, 0.75);
    color: white;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    margin: 20px 0;
}

.hero-content p {
    font-size: 18px;
    text-shadow: 0 2px 5px rgba(0, 35, 25, 0.85);

}


.hero-button {
    display: inline-block;
    background-color: #C6A45B;
    color: #173c30;

    padding: 14px 28px;
    margin-top: 20px;

    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;

    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #f0cf68;
}


/* ==============================
   MAIN CONTENT AREA
============================== */

main {
    max-width: 1100px;
    margin: 45px auto;
    padding: 30px;

    background-color: white;
    border-radius: 12px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);
}

main section {
    padding: 30px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    scroll-margin-top: 20px;
}

main section:last-child {
    border-bottom: none;
}

h2 {
    color: #07543d;
    margin-top: 0;
}

/* Toronto-inspired Community Section */
#about {
    text-align: center;
}

#about .community-label {
    color: #96712D;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

#about h2 {
    color: #173C30;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.25;
    margin-bottom: 16px;
}

#about > p:not(.community-label) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #52635A;
}

/* Community navigation card grid */
.community-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 35px;
}

.community-card {
    display: block;
    min-width: 0;
    background-color: #FFFFFF;
    border: 1px solid #E8E1D3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
    color: #173C30;
    box-shadow: 0 4px 14px rgba(7, 92, 70, 0.08);
}

/* Community card content spacing */
.community-card-content {
    padding: 20px 16px;
}

.community-card-content h3 {
    color: #173C30;
    font-family: Georgia, serif;
    font-size: 20px;
    margin: 0 0 12px;
}

.community-card-content p {
    color: #525252;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Champagne-gold community card arrows */
.community-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    background-color: #F4E8CE;
    color: #173C30;
    border: 1px solid #C6A45B;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.community-card:hover .community-card-arrow {
    background-color: #C6A45B;
}

/* Responsive community navigation cards */
@media (max-width: 900px) {
    .community-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .community-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Community card images */
.community-card-image {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
    object-position: center;
}

/* Emerald icons on community cards */
.community-card {
    position: relative;
}

.community-card-icon {
    position: absolute;
    top: 101px;
    left: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background-color: #173C30;
    color: #F4D99A;

    border: 3px solid white;
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Elegant Prayer Times section heading */
.prayer-section > h2 {
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #173C30;
    line-height: 1.25;
    margin-bottom: 16px;
}


/* ==============================
   PRAYER TIME CARDS
============================== */

.prayer-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 15px;
    margin-top: 25px;
    row-gap: 22px
}

.prayer-card {
 
background-color: #FFFDF8;
color: #173C30;


    padding: 22px 12px;
    border-radius: 14px;
    text-align: center;

    border-top: 4px solid #C6A45B;

    box-shadow: 0 4px 12px rgba(7, 92, 70, 0.12);

    transition: transform 0.2s ease;
}

.prayer-card:hover {
    transform: translateY(-4px);
}

.prayer-card h3 {
    color: #173C30;
    font-size: 20px;
    margin: 0 0 12px;
}

.prayer-card p {
    color: #52635A;
    font-size: 14px;
    margin: 0;
}


/* Emphasize calculated prayer times */
.prayer-card p:first-of-type span {
    display: inline-block;
    color: #173C30;
    font-size: 19px;
    font-weight: 700;
    margin-top: 5px;
}

/* Emphasize Iqamah times without changing prayer calculations */
.prayer-card p:nth-of-type(2) span {
    display: inline-block;
    color: #173c30;
    font-size: 19px;
    font-weight: 700;
    margin-top: 5px;
}
/* Premium Jumu'ah prayer card */
.jumuah-card {
    background-color: #FFF8E8;
border: 1px solid #C6A45B;
    color: #075C46;
    border-top: 4px solid #C6A45B;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(7, 92, 70, 0.08);
    margin-top: 20px;
}

.jumuah-card h3 {
    color: #075C46;
font-family: Georgia, serif;
font-size: 25px;
font-weight: 700;

}

.jumuah-card p {
    color: #263C35;
}


/* ==============================
   CONTACT INFORMATION
============================== */

address {
    font-style: normal;
    line-height: 1.8;
}

#contact a {
    color: #07543d;
    font-weight: bold;
}


/* ==============================
   FOOTER
============================== */

footer {
    background-color: #07543d;
    color: white;
    text-align: center;

    padding: 25px 15px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}


/* ==============================
   TABLET RESPONSIVE DESIGN
============================== */

@media (max-width: 950px) {

    .header-container {
        flex-direction: column;
        gap: 18px;
    }

    .header-nav {
        justify-content: center;
        gap: 18px;
    }

    .hero {
        min-height: 400px;
    }
}


/* ==============================
   MOBILE RESPONSIVE DESIGN
============================== */

@media (max-width: 600px) {

    .header-container {
        padding: 15px;
    }

    .header-logo {
        width: 55px;
        height: 55px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .header-nav {
        justify-content: center;
        gap: 12px;
    }

    .header-nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 350px;
        padding: 50px 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    main {
        margin: 20px 12px;
        padding: 15px;
    }

    main section {
        padding: 20px 5px;
    }

    .prayer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile navigation button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #075C46;
    font-size: 30px;
    cursor: pointer;
}

/* Mobile header and menu */
@media (max-width: 767px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 13px 10px;
        font-size: 15px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 11px;
    }
}

/* News and Announcements */

.news-section {
    padding-top: 35px;
    padding-bottom: 35px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.news-card {
    background: #f8f7f2;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e7e5dc;
    border-top: 4px solid #d4af37;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-category {
    display: inline-block;
    color: #8a6918;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.news-card h3 {
    color: #07543d;
    font-size: 20px;
    margin: 0 0 12px;
}

.news-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Tablet layout */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        padding: 20px;
    }
}

/* Mobile prayer cards: two columns with full-width Isha */
@media (max-width: 600px) {
    .prayer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .prayer-grid > .prayer-card:last-child {
        grid-column: 1 / -1;
    }
}
