 body {
  background-color: #ffd700;
  color: black;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding: 20px;
  margin: 5px;

}

header {
    background-color: rgb(26, 26, 25);
    border-bottom: 4px solid #000000;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 2rem;
    color: #9c9999;
    text-align: center;
    
}

header nav a {
    color: #9c9999;
    margin-left: 15px;
    text-transform: uppercase;
    transition: opacity 0.2s;
   
}

header nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
     justify-content: center;
     
}

main {
    width: 95%;
    
}

.content-item {
    background-color: white;
    border: 2px solid black;
    margin-bottom: 30px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px black;
}

.content-item h2 {
    text-transform: uppercase;
    margin-top: 0px;
}

.content-item .date {
    font-weight: bolder;
    color: black;
}

footer {
    border-top: 4px solid black;
    padding: 10px;
    margin-top: 40px;
    font-weight: bold;
    color: black;
}

/* Admin Styling */
.admin-card {
    color: #7e7b7b;
    background-color:rgb(26, 26, 25);
    border-left: 5px solid black;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 1rem;
    resize: none;

}

.form-group {
    margin-bottom: 10px;
    border-radius: 1.5rem;
    color: #7e7b7b;
    background-color:rgb(26, 26, 25);
    resize: none;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #7e7b7b;
    background-color:rgb(26, 26, 25);
    border-radius: 1rem;
}

.form-group input {
    border: 1px solid black;
    padding: 5px;
    width: 80%;
    font-family: 'Courier New', Courier, monospace;
}

.form-group textarea {
    border: 1px solid black;
    padding: 5px;
    width: 80%;
    font-family: 'Courier New', Courier, monospace;
    height: 80px;
    
}

button {
    background-color: black;
    color: #ffd900c6;
    border: none;
    padding: 10px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 1rem;
    transition: opacity 0.2s, transform 0.2s;
}

button:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.btn-danger {
    background-color: red !important;
    color: white !important;
}

.admin-list-item {
    padding-top: 10px;
    padding-bottom: 10px;
}

.copyright{
    font-size: 0.75rem ;
}

.program{
    color: #7e7b7b;
    background-color:rgb(26, 26, 25);
}

.post-image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.post-image-full {
    width: 80%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slideshow {
  position: relative;
  width: 100%; 
  max-width: 605px;
  aspect-ratio: 16 / 9;
  height: 350px;
  margin: auto;
  display: grid;
  background-color:rgb(26, 26, 25);
  border-radius: 1rem;
  padding: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.slide {
  grid-area: 1 / 1; 
  width: 100%;
  height: 35%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  border-radius: 15px;
  box-shadow: 0 0 15px 2px rgba(190, 174, 7, 0.6);
  object-fit: cover;
  pointer-events: none;
  
}

.slide.active {
  opacity: 1; 
  z-index: 1;
  pointer-events: auto;
}

.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
}

button:first-of-type { left: 0; }
button:last-of-type { right: 0; }

.logo {
    position: absolute; 
    top: 40px;
    left: 40px;
    height: 90px; 
}

/* --- The Invisible Wrapper (Holds them side-by-side) --- */
.about-section-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 100px;
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px;
}

/* --- The Black Text Box --- */
.about-card {
    flex: 2;
    background-color: rgb(26, 26, 25);
    color: #9c9999; 
    padding: 30px;
    border-radius: 15px; 
    text-align: left;
}

.about-card h2 {
    color: #ffffff; 
    margin-top: 0;
}

/* --- The Image --- */
.about-image {
    flex-shrink: 0; 
}

.about-image img {
    width: 400px;
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.2);
}

/* --- Full-Screen Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%); 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(190, 174, 7, 0.6); 
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
}

.slide {
    cursor: pointer;
}

/* --- Next & Previous Arrow Buttons --- */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    border-radius: 5px;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE STYLES
   (Applies only to screens <= 1024px)
   ========================================== */
@media (max-width: 1024px) {
    /* --- General Layout --- */
    body {
        padding: 10px !important;
        margin: 0px !important;
        font-size: 16px !important;
        overflow-x: hidden !important;
    }

    main {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* --- Header & Navigation --- */
    header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px 10px !important;
        position: relative !important;
    }

    header h1 {
        font-size: 1.8rem !important;
        margin: 10px 0 15px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .logo {
        position: static !important;
        display: block !important;
        margin: 0 auto 15px auto !important;
        height: 80px !important;
        width: auto !important;
    }

    header nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    header nav a {
        margin-left: 0 !important;
        font-size: 1rem !important;
        padding: 8px 16px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border-radius: 1rem !important;
        width: 85% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border-bottom: 2px solid #000 !important;
    }

    header nav a:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
    }

    /* Inline style nav link overrides for about_us.html & program.html */
    header > a {
        display: block !important;
        margin: 8px auto !important;
        padding: 10px 16px !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        width: 85% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* --- Slideshow --- */
    .slideshow {
        width: 100% !important;
        max-width: 100% !important;
        height: 17.3% !important;
        aspect-ratio: 16 / 9 !important;
        padding: 5px !important;
        box-sizing: border-box !important;
        margin-bottom: 25px !important;
    }

    .slide {
        width: 100% !important;
        height: 34% !important;
        object-fit: contain !important;
    }

    .slideshow button {
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }

    /* --- Content Feed --- */
    .content-item {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-width: 2px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .content-item h2 {
        font-size: 1.3rem !important;
    }

    .post-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 6px !important;
        margin-bottom: 12px !important;
    }

    .post-image-full {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 15px auto !important;
        border-radius: 6px !important;
    }

    /* --- Program / Schedule Table --- */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        border-collapse: collapse !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
    }

    table th, table td {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
        min-width: 85px !important;
    }

    /* --- About Us Page --- */
    .about-section-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        padding: 0 10px !important;
        margin: 20px auto !important;
    }

    .about-card {
        width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .about-card p {
        font-size: 1.1rem !important; /* overrides inline 150% size for readability */
        line-height: 1.6 !important;
    }

    .about-image {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .about-image img {
        width: 100% !important;
        max-width: 450px !important;
        height: auto !important;
    }

    /* --- Admin Forms & Card --- */
    .admin-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group input, 
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px !important;
        font-size: 1rem !important;
    }

    .form-group input[type="file"] {
        padding: 5px 0 !important;
    }

    button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }

    .btn-danger {
        width: auto !important;
        padding: 8px 16px !important;
    }

    /* --- Lightbox Modal --- */
    .modal-content {
        max-width: 95% !important;
        max-height: 80vh !important;
    }

    .prev, .next {
        font-size: 32px !important;
        padding: 12px !important;
        margin-top: -25px !important;
        z-index: 1010 !important;
    }

    .prev {
        left: 10px !important;
    }

    .next {
        right: 10px !important;
    }

    .close {
        font-size: 44px !important;
        top: 10px !important;
        right: 15px !important;
        z-index: 1010 !important;
    }

    /* --- Footer --- */
    footer {
        padding: 15px 10px !important;
        margin-top: 30px !important;
        font-size: 0.95rem !important;
        text-align: center !important;
    }
}