/**
-Spacing: 2/4/8/12/16/24/32/48/64/96/128

-Font sizes (PX)- 10/12/14/16/18/20/24/30/36/44/52/62/74/86/98

-Font Weight - 400 
-Line height Default:1

-Spacing system
2/3/4/6/8/12/16/24/32/48/64/96/128

-- Colors

Primary-- #e67e22 
Tints--#fdf2e9
Shades --
Accents--
Grays-- #555

--Shadows

-- Border radius
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  /** Setting the font size to 10px so that we can use rem units */
  font-size: 62.5%;
}
body {
  font-family: Rubik, sans-serif;
  color: #555;
  line-height: 1;
  font-weight: 400;
}
.hero-section {
  background-color: #fdf2e9;
  padding: 3.6rem 0;
}
.hero {
  max-width: 130rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  padding: 0 3.2rem;
  gap: 9.6rem;
}
.hero-image {
  max-width: 100%;
}
.hero-title {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
  letter-spacing: -0.3px;
}
.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}
.hero-link:visited,
.hero-link:link {
  display: inline-block;
  background-color: #e67e22;
  text-decoration: none;
  border-radius: 10px;
  padding: 1.6rem 3.2rem;
  color: #fff;
  font-size: 2rem;
  transition: all 1s;
}
.hero-link:hover,
.hero-link:active {
  background-color: #cf711f;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fdf2e9;
  height: 9.6rem;
  padding: 0 3.4rem;
}
.main-nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 3.2rem;
  list-style: none;
  align-items: center;
}
.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.8rem;
  color: #333;
  transition: all 1s;
}
.main-nav-link:hover,
.main-nav-link:active {
  color: #cf711f;
}
.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  color: #fff;
  border-radius: 10px;
  padding: 1.2rem 2.4rem;
  background-color: #e67e22;
}
.main-nav-link.nav-cta:active,
.main-nav-link.nav-cta:hover {
  background-color: #cf711f;
}
.logo {
  height: 9rem;
  width: 13rem;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}
.grid {
  display: grid;
  gap: 4.8rem;
}
.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4-cols {
  grid-template-columns: repeat(4, 1fr);
}
.grid-5-cols {
  grid-template-columns: repeat(5, 1fr);
}
.grid-align-center {
  align-items: center;
}
.about-us {
  padding: 4.6rem 0;
}
.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #cf711f;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}
.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  color: #333;
  /* color: #45260a; */
  /* color: #343a40; */
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 3.6rem;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.about-us-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}
.about-us-img {
  max-width: 90%;
}
.about-us-subheading {
  font-size: 2.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.6rem;
}
.contact-info-container {
  display: flex;
  flex-direction: column;
}
.gallery-item img {
  width: 100%;
  transition: all 1s;
}
.section-events {
  background-color: #fdf2e9;
}
.events-leftsection {
  padding: 4.6rem 0 0 0;
}
.gallery {
  padding: 1.6rem;
  gap: 1.6rem;
}
.gallery-item img:hover {
  transform: scale(1.1);
}
.gallery-item {
  overflow: hidden;
}
.sunday-service img {
  max-width: 55%;
}
.sunday-school img {
  max-width: 100%;
}
.about-us-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}
.sunday-service {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.sunday-school {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}
.connect-section {
  padding: 4.6rem 0;
}
.give-section {
  padding: 4.6rem 0;
}
.connect-grid {
  align-items: start;
  justify-items: center;
}
.connect-main {
  display: flex;
  gap: 3.2rem;
}
.connect-main-bold a{
  text-decoration: none;
  font-size: 1.8em;
   color: #79004a;
}
connect-main-bold {
  font-weight: 600;
  font-size: 1.8em;
  color: #79004a;
}
.address {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.2);
  padding: 1rem 1rem;
  border-radius: 1rem;
  width: 50rem;
  max-width: 100%;
}
.address-heading {
  display: inline-block;
  padding: 0.5rem 2rem;
  background-color: rgb(177, 23, 23);
  color: #fff;
}
.address-links:link,
.address-links:visited {
  font-weight: 500;
  font-size: 1.8rem;
  color: #333;
  transition: all 1s;
}
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}
.sticky .hero-section {
  margin-top: 9.6rem;
}

/* MOBILE NAVIGATION */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* RESPONSIVE MAP */
.map-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* FOOTER */
.footer {
  padding: 9.6rem 0 3.2rem 0;
  background-color: #fdf2e9;
  border-top: 1px solid #ddd;
}

.grid-footer {
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 6.4rem;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-logo {
  height: 8rem;
  width: auto;
  margin-bottom: 1.6rem;
}

.footer-description {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #666;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: #666;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-link:hover,
.footer-link:active {
  color: #e67e22;
}

.footer-contacts {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-address {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #666;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  color: #e67e22;
}

.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: #666;
  transition: all 0.3s;
}

.social-icon:hover {
  color: #e67e22;
}

.footer-bottom {
  margin-top: 6.4rem;
  padding-top: 3.2rem;
  border-top: 1px solid #ddd;
}

.copyright {
  font-size: 1.4rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
}
/* Timeline Container */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 10px 0;
        }

        /* The vertical line/ruler */
        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: #ccaaa3; /* Light Green */
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            z-index: 1;
        }

        /* Timeline Event Container */
        .event-container {
            padding: 10px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            box-sizing: border-box;
            z-index: 2; /* Ensure content is above the line */
        }

        /* Put the event-containers on the left side */
        .left {
            left: 0;
        }

        /* Put the event-containers on the right side */
        .right {
            left: 50%;
        }

        /* Event Box (The actual content) */
        .event-content {
            padding: 20px 30px;
            background-color: #ffffff;
            position: relative;
            border-radius: 8px;
            box-shadow: 0 6px 12px rgba(0,0,0,0.35);
            border-left: 5px solid #79004a; /* Accent color for the box */
            transition: transform 0.3s ease;
        }

        .event-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }
        
        /* Date/Year Badge */
        .date {
            font-weight: 700;
            font-size: 1.3em;
            color: #79004a;
            margin-bottom: 8px;
            display: block;
        }
        
        .event-content h3 {
            color: #79004a;
            margin-top: 0;
            font-size: 1.1rem;
        }
        
        .event-content ul {
            padding-left: 20px;
        }

        /* Circle on the timeline */
        .event-container::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            background-color: #792400; /* Darker accent */
            border: 4px solid #ffd990; /* Very Light Green */
            top: 35px;
            border-radius: 50%;
            z-index: 3;
        }

        /* Placement of the circles */
        .right::after {
            left: -9px; /* Half of circle width + half of line width */
        }

        .left::after {
            right: -9px; /* Half of circle width + half of line width */
        }

        /* Arrow pointing towards the center line */
        /* Left side arrow */
        .left .event-content::before {
            content: " ";
            height: 0;
            position: absolute;
            top: 30px;
            width: 0;
            z-index: 1;
            right: -10px;
            border: medium solid white;
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent white;
        }

        /* Right side arrow */
        .right .event-content::before {
            content: " ";
            height: 0;
            position: absolute;
            top: 30px;
            width: 0;
            z-index: 1;
            left: -10px;
            border: medium solid white;
            border-width: 10px 10px 10px 0;
            border-color: transparent white transparent transparent;
        }

        /* --- MOBILE OPTIMIZATIONS (Max Width 600px) --- */
        @media screen and (max-width: 600px) {
            
            body {
                padding: 10px; /* Reduced overall padding for small screens */
            }
            
            h1 {
                font-size: 1.8rem; /* Smaller header for mobile */
                margin-bottom: 20px;
            }
            
            /* Move vertical line to the left */
            .timeline::after {
                left: 31px; 
            }

            .event-container {
                width: 100%;
                padding-left: 70px; /* Space for the line and circles */
                padding-right: 10px; /* Reduced right padding for better fit */
            }

            /* Stack all containers to the left */
            .right {
                left: 0%; 
            }

            /* Adjust circle position to align with the new line position */
            .event-container::after {
                left: 20px; 
                margin-left: 0;
                top: 28px;
                z-index: 10;
            }

            /* Adjust arrows for single column view (all pointing right/inward) */
            .right .event-content::before,
            .left .event-content::before {
                left: -10px;
                right: auto;
                border-width: 10px 10px 10px 0;
                border-color: transparent white transparent transparent;
            }

            .event-content {
                border-left: none; /* Remove side border */
                border-top: 5px solid #79004a; /* Add top border for accent */
            }