@charset "utf-8";
/* CSS Document */
*{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    align-items: center;
    background-color: #e3f0a9;
    background-image: url('images/nccb-logo5.png'); /* Adjust path */
    background-size: cover; 
}
#wrapper {
    width: 100%;
    max-width: 1000px;
    min-height: 100vh;
    margin: auto;
    display: grid;
    grid-template-areas: 
    "banner"
    "menu"
    "content"
    "footer";
    grid-template-columns: 1fr;
    grid-template-rows: 60px 150px minmax(650px, auto) minmax(100px, auto);
    background-color: rgb(243, 247, 154);
    box-sizing: border-box;
    padding: 10px;
}
header {
    grid-area: "banner";
    display: grid;
    width: 100%;
    grid-template-areas: "heading user-actions";
    grid-template-columns: 3fr 1fr;
    align-items: center;
    grid-template-rows: 1fr;
    background-color: #aae688;
    justify-content: center;
} 

header h1 {
    grid-area: heading;
    font-size: 2em;
    color: rgb(5, 5, 115);
    text-align: center;
    /* padding: 10px; */
} 

h1 {
    grid-area: heading;
    font-size: 2em;
    color: red;
    text-align: center;
    /* padding: 10px; */
} 
.social-top {
    grid-area: user-actions;
    display: flex;
    justify-content: center;
    padding: 10px;
}
.social-top a {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
}
.social-top img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}
.sign-in-text {
    font-size: 16px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
nav {
    display: grid;
    grid-area: menu;
    justify-content: center;
    grid-template-areas: " logo link donate hamburger";
    grid-template-columns: 1fr 4fr 1fr 1fr;
    background-color: rgb(255, 255, 158);
    text-align: center;
    width: 100%;
    /* padding: 20px auto; */
}
.logo{
    grid-area: "logo";
    display: flex;
    justify-content: center;
    align-items: center;
  
}
.logo img {
    height: 140px;
    width: 140;

}
.logo-desktop {
    display: block;
}
.logo-mobile {
    display: none;
}
nav .menu {
    grid-area: link;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}

nav a {

    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}
nav a.active {
    background-color: #45a049; 
    color: white;
}
.donate {
    list-style-type: none;

}
.donate a {
    display: inline-block;
    padding: 10px 20px;
    background-color: red;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease; 
    list-style: none;
}
.donate a:hover {
    background-color: green;
    color: yellow;
}
nav a:hover {
    color: white;
    text-decoration: underline;
    background-color: rgb(206, 14, 14); 
}
    /* after clicked nav */
nav a.active {
    background-color: #45a049; 
    color: white;
}
nav ul {
    text-align: center;
    padding: 40px;
}
.hamburger {
    display: block; 
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    margin: 5px 0;
    background-color: #333;
}
    /* Main Section */
main {
    grid-area: content;
    width: 100%; 
    margin: 0 auto; 
    box-sizing: border-box;
    max-width: 900px;
}
#homemain {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hero {
    grid-area: hero;
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero img {
    width: 100%;
    object-fit: cover;
}
.hero-desktop {
    display: block;
}
.hero-mobile {
    display: none;
}
.welcome{
    background-color: whitesmoke;
    margin: 10px auto;
    text-align: left;
    border: 4px solid #ff7f50;
    padding: 10px;
    box-shadow: 0 2px 10px #ff7f50;
    font-weight: bold;
}
.welcome h2 {
    font-size: 2em;
    color: rgb(5, 5, 115);
    padding-bottom: 10px;
    text-align: center;
}
.testimonials-localbusiness {
    display: flex;
    flex-direction: row; 
    gap: 10px; 
}
    /* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
    padding: 20px; 
    margin:0;
    box-sizing: border-box;
}
.testimonials h2 {
    text-align: center; 
    margin-bottom: 20px; 
}
.testimonial-item {
    background-color: white; 
    border: 1px solid #2f2f2f; 
    padding: 15px;
    margin: 10px 0; 
    box-shadow: 0 2px 10px #2f2f2f;
}
.testimonial-item p {
    font-style: italic; 
    color: black; 
    margin: 0; 
}
.testimonial-item span {
    display: block; 
    text-align: right; 
    margin-top: 10px;
}
/* Business highlight */
.local-business {
    background-color: #f9f9f9; 
    padding: 20px;
    box-shadow: 0 2px 10px #2f2f2f;
    margin: 0; 
    text-align: center;
}
.business-item {
    margin-top: 15px;
}
.business-item img {
    max-width: 100%;
    height: 225px;
}
.upcoming-events {
    background-color: #e3f0a9;
    padding: 20px; 
    box-shadow: 0 2px 10px black; 
    margin: 20px 0; 
    text-align: center;
}
.upcoming-events h2 {
    color: black; 
    margin-bottom: 15px;
}
.upcoming-events ul {
    list-style-type: none;
    padding: 0; 
}
.upcoming-events li {
    background-color: #fff; 
    padding: 10px; 
    margin: 10px 0; 
}
.upcoming-events li:hover {
    background-color: #e9ecef; 
}

/* ADVERTISEMENT */
.main-advertisement{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 20px;

}
.advertisement {
    /* margin-top: 5px; */
    padding: 20px;
    background-color: #e3f0a9;
    border-left: 4px solid #ff7f50;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.advertisement:hover {
    transform: scale(1.03);
}

.advertisement h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: rgb(5, 5, 115);
    /* text-align: center; */
}
.advertisement img {
    max-width: 100%;
    height: auto;
    float: left;
}

.advertisement p {
    margin-left: 10px;
    text-align: left;

}

.advertisement a {
    text-decoration: none;
    color: #ff4500;
    font-weight: bold;
}

.advertisement a:hover {
    text-decoration: underline;
}

/* About page */
  /* styling for two colum layout (main and aside) using flex-box*/
  .flex-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    column-gap: 25px;
    background-color: rgb(226, 248, 198);
    padding: 20px;
    margin-top: 10px;
   
}
.flex-container h2 {
    font-size: 1.5em;
    padding-bottom: 10px;
    text-align: left; 
    color: rgb(5, 5, 115);
}


.flex-item-about{
    display: flex;
    flex-direction: column;
    flex: 1;    
    width: 100%;  
    margin-left: auto;
    min-width: 300px;

}

.flex-item-aside {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: auto;
    min-width: 250px;

}
aside {
    margin-left: 20px;
}
.content {
    width: 100%;
    margin: 0px;
    padding: 10px;
}

.about-img {
    height: 300px;
    width: 500px;
}

 /* Gallery page / Slider Styles */

 .slider-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    justify-content: center;
    margin: auto;
    align-items: center;
}
/* .slider-container h3{
    text-align: center; 
    font-size: 1.5em;
    color: green;
    padding: 10px;
} */

.slider {
    display: flex;
    width: calc(100% * 8); 
    transition: transform 1s ease-in-out;
}

.slide {
    width: 100%; 
    flex: 0 0 100%;
}
.slide img {
    width: 900px;
    height: 600px;
}

/* Left & Right Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.prev { left: 10px; }
.next { right: 10px; }


/* Main Layout */
.youtube-container {
    width: 100%;
    max-width: 900px;
    margin: auto;
    background: whitesmoke;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.youtube-container h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
    color: rgb(5, 5, 115);
}

/* News Column */
.left-column {
    background: whitesmoke;
    padding: 15px;
    border-radius: 5px;
    border: 5px solid #007BFF;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.left-column h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #007BFF;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.news-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.news-text {
    flex: 1;
}

.news-text p {
    margin: 5px 0;
    font-size: 16px;
}

.read-more {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.read-more:hover {
    text-decoration: underline;
}


/* Right YouTube column */
.right-column {
    flex: 1;
    /* background: white; */
    padding: 15px;
    border-radius: 5px;
}
iframe {
    border: none; 
    width: 100%;
    height: 300px;
}


/* contact page  */
#contact-main {
    margin: 20px auto;
    /* max-width: 1000px; */
    align-items: center;
    background-color:  rgb(226, 248, 198);
}
#contact-main h2{
    font-size: 2em;
    color: red;
    text-align: center;
    margin-bottom: 10px;
}
#contact-main h3{
    text-align: center;
    margin-bottom: 10px;
}
#contact-main p{
    font-size: medium;
    text-align: center;
    /* text-align: justify; */
    padding: 20px 20px;
}

.container {
    max-width: 750px;
    grid-area: container;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(50, 50, 50, 0.1);
}
    /* form css */
.contact-form {
	background-color: #e3f0a9;
	margin: 0 auto;
	padding: 14px;
    width: 100%;
    max-width: 750px;
}
.contact-form h3 {
    font-size: 2em;
    margin-bottom: 10px;
}
#ajaxResponse {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #45a049;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 20px;

}
.contact-form p {
    /* text-align: center; */
    text-align: justify;
    margin-bottom: 10px;
}
.contact-form aside {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px;
}
.contact-form aside h2 {
	font-size: small;
}
.contact-form aside.two label {
	font-weight:bold;
	width: 150px;
	text-align: left;
	padding-left: 10px;
	position: relative;
    padding-right: 5px;
}
.contact-form aside.two input, .contact-form aside.two select, .contact-form aside.two textarea{
	width: 300px;
	text-align: left;
    padding-left: 10px;
    min-height: 30px;
}
.contact-form aside.two select {
	width: 157px;
}
.contact-form aside.one {
	text-align: left;
  justify-content: center;
}
#submit{
	clear: both;
	width: 80px;
	height: 30px;
	background:#F29F05;
	text-align:center;
	line-height:20px;
	font-size:12px;
	font-weight:bold;
    border-radius: 8px;
    border: none;
}

.error {
	color: #D92525;
}
span.error{
	padding-right: 10px;
	text-align: right;
	position: relative;
}
span.success-label, span.error-label {
    padding-left: 10px;
}
.success {
	color: green;
}
.error-label {
    color: red;
}
.success-label {
    color: green;

}

/* Footer css */
footer {
    grid-area: footer;
    display: grid;
    font-size: 14px;
    grid-template-areas: "footer-a footer-b";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    background-color: #452603;
    /* background-color: rgb(13, 100, 230); */
    width: 100%;
}
footer p {
    color: white;
}
#footer-a {
    grid-area: footer-a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2em;
    gap: 1em;
}
#footer-a ul {
    list-style: none;
}
#footer-a li{
    color: rgb(216, 244, 2);
    text-decoration:none;
    font-style:none;
    font-weight: bold;
    font-size: 1em;
}
#footer-a a{
    color: white;
    text-decoration: none;
    font-style: normal;
}
#footer-a a:hover {
    color: yellow;
    text-decoration: underline;
}
.social-icons img {
    width: 30px;
    margin-left: 10px;
}
#footer-b {
    grid-area: footer-b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    gap: 1em;
}
#footer-b a {
    color: white;
    text-decoration: none;
}
#footer-b a:hover{
    color: yellow;
    text-decoration: underline;
}
.error-page{
    width: 100%;
    height: auto;
    justify-content: center;
    padding: auto;
    margin: 20px;
}
.error-page h1 {
    font-size: 2em;
    color: REd;
    text-align: center;
    align-items: center;
}

/* All media queries here */
/* General Mobile Styles */
@media (max-width: 768px) {
    #wrapper {
        grid-template-areas: 
        "banner"
        "menu"
        "content"
        "footer";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        /* padding: 5px; */
    }
    /* Header */
    header {
        grid-template-areas: 
        "heading"
        "user-actions";
        grid-template-columns: 1fr;
        grid-template-rows: 80px 40px;
        padding: 5px;
        text-align: center;
    }
    header h1 {
        grid-area: heading;
        font-size: 1.5em;
        color: rgb(5, 5, 115);
        text-align: center;
        /* padding: 10px; */
    } 
    .social-top {
        grid-area: user-actions;
        display: flex;
        justify-content: center;
        margin-bottom: 5px; 
    }
    nav {
        grid-template-areas: 
        "logo"
        "link"
        "donate";
        grid-template-columns: 1fr ;
        grid-template-rows: 100px  50px minmax(80px, auto);
    }
    .logo img {
        width: 100px;
        height: auto;
        padding-top: 10px;
        align-items: center;
    }
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
    }
    nav ul {
        flex-direction: row;
        align-items: center;
    }
    nav .menu {
        flex-direction: row;
        align-items: center;
        margin-bottom: 5px; 
    }
    nav .menu a {
        font-size: 14px;
        padding: 0;
        margin: 0;
        display: inline-block;
    }
    .donate {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 5px; 
    }

    /* Home main section */
    #homemain {
        gap: 15px;
    }
    /* Hero Section */
    .hero img {
        height: auto;
    }
    .hero-desktop {
        display: none;
    }
    .hero-mobile {
        display: block;
    }
    .testimonials-localbusiness {
        flex-direction: column;
        gap: 15px;
    }
    .testimonials {
        padding: 15px;
    }
    .local-business {
        padding: 15px;
    }
    .business-item img {
        max-width: 200px;
        height: auto;
    }
    .upcoming-events {
        padding: 15px;
    }
    .upcoming-events ul {
        padding: 0;
    }
    .upcoming-events li {
        padding: 8px;
    }
    .upcoming-events h2 {
        font-size: 1.5em;
    }
    .main-advertisement {
        grid-template-columns: 1fr; 
    }

    /* about page */
    .flex-container {
        flex-direction: column; 
        padding: 10px;
    }

    .flex-item-about, .flex-item-aside {
        width: 100%; 
        margin: 0; 
    }
    .about-img {
        height: 200px;
        width: 300px;
    }

    /* gallery page  */
    .slider-container {
        width: 420px;
        height: 300px;
    }
    .slide img {
        width: 420px;
        height: 300px;
    }

    .prev, .next {
        font-size: 18px;
        padding: 5px;
    }
    .youtube-container {
        width: 100%; 
        padding: 5px;
    }
    .content-wrapper {
        flex-direction: column; /* Stack items on small screens */
    }
    .left-column,
    .right-column {
        flex: 1;
        width: 100%;
    }
    .news-item {
        flex-direction: column; 
        text-align: center;
    }
    .news-item img {
        width: 50px;
        height: auto;
    }
    iframe {
        height: 250px;
    }
    .contact-form aside.two input, 
    .contact-form aside.two select, 
    .contact-form aside.two textarea {
        width: 100%; /* Full width for smaller screens */
    }

    #submit {
        width: 100%; 
    }
    footer {
        grid-template-columns: 1fr; 
    }
    .social-icons img {
        width: 25px; 
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .upcoming-events h2 {
        font-size: 1.2em; 
    }

    .advertisement h3 {
        font-size: 1.2em; 
    }

    .news-text p {
        font-size: 14px; 
    }

    .contact-form h3 {
        font-size: 1.5em; 
    }

    .contact-form aside.two label {
        width: 100%; 
        text-align: left; 
    }

    .contact-form aside.two input, 
    .contact-form aside.two select, 
    .contact-form aside.two textarea {
        width: 100%; 
        min-height: 40px; 
    }

    .advertisement {
        padding: 10px; 
    }
}


