@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');


/* --- Page Content Container Styles --- */
#events-list,
#sacrament-program,
#announcements-list,
#available-work-list,
#contact-info {
  margin-top: 50px; /* Back to normal top spacing */
  margin-bottom: 100px; /* Increased spacing before navigation tabs */
}

/* General spacing for content sections after page titles */
.awn-main .awn-title + * {
  margin-top: 100px; /* Back to normal top spacing */
}

/* Exception for the sections navigation which should stay close */
.awn-main .awn-title + .awn-sections {
  margin-top: 82px; /* Keep original spacing from index page */
}

/* --- Announcement List Custom Styles --- */
#announcements-list {
  margin-top: 50px;
}

.announcement-item {
  text-align: left;
  margin: 50px auto 0 auto;
  max-width: 800px;
  padding: 0 16px 0 16px;
}

.announcement-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  color: #FF6200;
  margin-bottom: 0.25em;
  margin-top: 0;
}

.announcement-description {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.announcement-button {
  display: inline-block;
  background-color: #FF6200;
  color: white;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  margin-bottom: 2em;
}

.announcement-button:hover {
  background-color: #e05500;
  color: white;
  text-decoration: none;
}

.announcement-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 1em;
  border-radius: 8px;
}

/* Responsive Styles for Announcements */
@media (max-width: 600px) {
  .announcement-item {
    margin-top: 25px;
  }

  .announcement-title {
    font-size: 40px;
    line-height: 1.5;
  }

  .announcement-description {
    font-size: 18px;
  }

  .announcement-button {
    font-size: 16px;
    padding: 10px 20px;
  }
}


/* --- Event List Custom Styles --- */
.event-item {
  text-align: left;
  margin: 50px auto 0 auto;
  max-width: 800px;
  padding: 0 16px 0 16px;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  color: #FF6200;
  margin-bottom: 0.25em;
  margin-top: 0;
}

.event-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  margin-bottom: 0.5em;
}

.event-date {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
}

.event-venue {
  font-family: 'Montserrat', Arial, sans-serif;
   font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  text-align: right;
}

.event-description {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  margin-top: 0;
  line-height: 1.5;
}

/* Responsive Styles for Event List */
@media (max-width: 600px) {
  /* Normal margins on mobile */
  #events-list,
  #sacrament-program,
  #announcements-list,
  #available-work-list,
  #contact-info {
    margin-top: 25px;
    margin-bottom: 50px; /* Increased spacing before navigation tabs on mobile */
  }

  /* Mobile spacing for content after titles */
  .awn-main .awn-title + * {
    margin-top: 25px;
  }

  /* Exception for sections navigation on mobile */
  .awn-main .awn-title + .awn-sections {
    margin-top: 40px;
  }

  .event-item {
    margin-top: 25px;
  }

  .event-title {
    font-size: 40px;
    line-height: 1.5;
  }

  .event-meta-row {
    flex-direction: column;
    align-items: flex-start;
    font-size: 18px;
  }

  .event-venue {
    text-align: left;
    margin-top: 0.25em;
    font-size: 18px;
       font-weight: 600;
  }

  .event-date {
    font-size: 18px;
    font-weight: 600;
  }

  .event-description {
    font-size: 18px;
    
  }
}


/* --- Main Styles --- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    background: #fff;
    color: #FF6200;
}

.awn-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #FF6200;
    border-right: 2px solid #FF6200;
    margin-left: 99px;
    margin-right: 99px;
    background: #fff;
}

.awn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 0 0 0;
    position: relative;
    min-height: 80px;
}

.awn-header-left {
    display: flex;
    align-items: class="awn-section-arrow"x;
    margin-left: 32px;
    text-decoration: none;
}

    .awn-logo {
        width: 114px;
        height: auto;
        display: block;
    }


.awn-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    margin-right: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-variation-settings: 'wght' 500;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    height: 32px;
    gap: 0;
}

    .awn-header-right a {
        color: #FF6200;
        text-decoration: none;
        margin-bottom: 2px;
        font-family: 'Montserrat', Arial, sans-serif;
        font-variation-settings: 'wght' 500;
        font-weight: 500;
        font-size: 14px;
        line-height: 23px;
        transition: text-decoration 0.2s;
        padding: 0;
    }

.awn-header-right a:hover {
    text-decoration: underline;
}

.awn-main {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
}

.awn-title {
    font-family: 'Playfair Display', serif;
    font-size: 96px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #FF6200;
    line-height: 98px;
    letter-spacing: 0;
}

.awn-desc {
    color: #FF6200;
    font-family: 'Montserrat', sans-serif;
    font-variation-settings: 'wght' 500;
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    margin: 60px 32px 82px 32px;
    text-align: left;
    width: auto;
    box-sizing: border-box;
}

.awn-sections {
    margin: 0;
    width: 100vw;
    max-width: 100%;
    max-width: none;
    border-collapse: collapse;
    font-family: 'Montserrat', Arial, sans-serif;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.awn-section-row {
    display: flex;
    align-items: center;
    background: #FF6200;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    border-bottom: 2px solid #fff;
    height: 48px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.awn-section-row:last-child {
    border-bottom: none;
}

.awn-section-row:hover {
    background: #e05500;
}

.awn-section-block {
    width: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.awn-section-num {
    width: 60px;
    text-align: center;
    font-size: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    height: 50%;
    padding-right: 75px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Rotate number 180deg */
    writing-mode: vertical-rl;
    font-weight: 700;
    letter-spacing: 2px;
    border-left: 2px solid white;
    line-height: 2px;
}

/* Remove underline and keep white color for section links */
.awn-section-title a,
a.awn-section-title {
    color: #fff;
    text-decoration: none;
}

.awn-section-title {
    flex: 1;
    text-align: left;
    padding-left: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 50px;
    /* Add left/right padding to content only */
    padding-right: 32px;
    border-left: 2px solid white;
}

.awn-section-arrow {
    width: 40px;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid white;
}

/* Dashed white line to the left of the number */
.awn-section-row::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed #fff;
    margin-left: -100px;
    height: 100%;
    z-index: 2;
}

/* Solid white line to the right of the orange bar */
.awn-section-row::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-right: 2px solid #fff;
    height: 100%;
    z-index: 2;
}

.awn-carrot {
    width: 24px;
    height: 24px;
    display: block;
}

.awn-footer {
    margin-top: auto;
    padding: 250px 0 24px 0;
    text-align: center;
}

.awn-footer-img {
    width: 350px;
    max-width: 90vw;
    opacity: 1;
    display: inline-block;
}

@media (max-width: 900px) {

    .awn-container {
        margin-left: 30px;
        margin-right: 30px;
    }

    .awn-title {
        font-size: 84px;
        line-height: 76px;
        margin-bottom: 30px;
    }

    .awn-desc {
        font-size: 20px;
        margin-top: 0;
    }
     .awn-section-block {
        width: 30px;
    }
    .awn-section-row {
        height: 50px;
    }

     .awn-section-num {
        width: 36px;
        padding-right: 35px;
        padding-left: 20px;
        font-size: 20px;
    }

    .awn-section-title {
        font-size: 24px;
    }
    .awn-footer-img {
        width: 325px;
    }
}


@media (max-width: 600px) {
    
        .awn-logo {
        width: 150px;
        height: auto;
        display: block;
    }
    .awn-container {
        margin-left: 15px;
        margin-right: 15px;
    }
    .awn-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 32px 0 0 0;
    }
    .awn-header-left {
        margin-left: 30px;
    }
    .awn-header-right {
        margin-right: 30px;
        flex-direction: column;
        height: auto;
        display: flex;
    }
    .awn-title {
        font-size: 48px;
        line-height: 44px;
        margin-bottom: 24px;
    }
    .awn-desc {
        font-size: 16px;
        line-height: 24px;
        margin-top: 0;
    }
    .awn-section-row {
        font-size: 20px;
        line-height: 20px;
        height: 50px;
    }
    .awn-section-block {
        width: 15px;
    }
    .awn-section-title {
        font-size: clamp(16px, 4vw, 24px); /* Auto-scaling text */
        padding-left: 20px;
        padding-right: 10px; /* Add right padding */
        white-space: nowrap;
        border-left: 2px solid white;
        margin-left: -10px;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0; /* Allow shrinking */
    }
    .awn-section-num {
        width: 5px;
        font-size: 16px;
    }
    .awn-section-arrow {
        padding-right: 17px;
        flex-shrink: 0; /* Prevent arrow from shrinking */
    }
    .awn-footer-img {
        width: 300px;
    }
}

/* Extra small devices (very narrow phones) */
@media (max-width: 400px) {
    .awn-section-title {
        font-size: clamp(14px, 3.5vw, 20px);
        padding-left: 15px;
        padding-right: 8px;
    }
    
    .awn-section-row {
        height: 45px;
    }
    
    .awn-section-num {
        font-size: 14px;
        padding-right: 20px;
    }
}

/* Very long text fallback - allow wrapping on extremely small screens */
@media (max-width: 320px) {
    .awn-section-title {
        white-space: normal;
        line-height: 1.1;
        font-size: clamp(12px, 3vw, 18px);
    }
    
    .awn-section-row {
        height: auto;
        min-height: 45px;
        padding: 5px 0;
    }
}

/* --- Sacrament Program Styles --- */
.sacrament-program-content {
  text-align: left;
  margin: 0 auto 100px auto; /* Increased bottom margin before navigation tabs */
  max-width: 800px;
  padding: 0 32px;
}

.program-date {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  margin-bottom: 2em;
  text-align: center;
}

.program-section {
  margin-bottom: 0;
}

.program-section-header {
  font-family: 'Playfair', serif;
  font-size: 36px;
  font-weight: 600;
  font-variation-settings: 'wdth' 100;
  color: #FF6200;
  text-align: center;
  margin: 1em 0 0.5em 0;
  border-top: 2px solid #FF6200;
  border-bottom: 2px solid #FF6200;
  padding: 0.5em 0;
}

.program-section-header.testimony-header {
  border-top: none;
  margin-top: -1em;
  padding-top: 0.5em;
}

.program-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.75em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #FF6200;
  line-height: 1.2;
}

.program-label {
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 24px;
}

.program-dots {
  flex-grow: 1;
  border-bottom: 2px dotted #FF6200;
  margin: 0 0 0 8px; /* No right margin - dots go all the way to text */
  height: 1px;
  align-self: baseline;
  margin-bottom: 3px;
  min-width: 20px; /* Minimal dots width */
}

.program-value {
  flex-shrink: 0;
  text-align: right;
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none; /* Disable hyphenation for cleaner word breaks */
  max-width: 30%; /* Reduced width to ensure no overlap with border */
  line-height: 1.3;
  white-space: normal; /* Allow text wrapping */
  margin-right: 0; /* Remove any right margin - container padding handles this */
}

.program-multi-line {
  display: block;
  margin-top: 0.25em;
}

/* Responsive Styles for Sacrament Program */
@media (max-width: 600px) {
  .sacrament-program-content {
    margin-top: 0; /* Let container handle spacing */
    margin-bottom: 50px; /* Increased spacing before navigation tabs on mobile */
    padding: 0 16px;
  }

  .program-date {
    font-size: 20px;
  }

  .program-section-header {
    font-size: 18px;
  }

  .program-row {
    font-size: 14px;
    align-items: baseline;
  }

  .program-label {
    font-size: 14px;
  }

  .program-dots {
    min-width: 15px; /* Minimal dots on mobile */
    margin: 0 0 0 6px; /* No right margin - dots go all the way to text */
    align-self: baseline;
  }

  .program-value {
    font-size: 14px;
    max-width: 35%; /* Reduced width on mobile to prevent overlap */
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    line-height: 1.4;
    white-space: normal; /* Allow text wrapping */
    margin-right: 0; /* Remove any right margin - container padding handles this */
  }
}