@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #f9f9fb;
    color: #222;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style the dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Style the dropdown button */
  .dropbtn {
    background-color: transparent;
    color: inherit;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 30px, 10px;
  }
  
  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    flex-direction: column;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #eee;
  }
  
  /* Show the dropdown on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
/* Ensure dropdown appears above the header and is not hidden */
.dropdown {
    position: relative;
    display: inline-block;
    /* z-index: 1000; */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    top: 100%;
    /* Make dropdown appear below the button */
    left: 0;
    padding: 5px 0;
    border-radius: 6px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Make sure dropdown does not get clipped by the header */
header {
    overflow: visible !important;
    z-index: 1000 !important;
}

.devotional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.devotional-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.devotional-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.devotional-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

em,
i {
    font-style: italic; }
.hero-carousel {
    position: relative;
    width: 100%;
    height: 1000px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 8px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.hero-carousel .hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    top: 30%; }
.hero-section {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
    /* ensures overlay doesn't spill out */
}

.cta-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: #bfa046;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.cta-btn:hover {
    background: #a38833;
    color: #fff; }

.hero-overlay {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* border-radius: 12px; */
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    height: 100%;
    z-index: 0; }

        /* Gallery Upload Form */
        .gallery-upload-form {
            background: #fff;
            padding: 30px 40px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            max-width: 500px;
            margin: 30px auto;
        }
    
        .gallery-upload-form label {
            font-weight: 600;
            color: #bfa046;
            margin-bottom: 8px;
        }
    
        .gallery-upload-form input[type="text"],
        .gallery-upload-form select,
        .gallery-upload-form input[type="file"] {
            margin-bottom: 18px;
        }
    
        .gallery-upload-form button {
            width: 100%;
            margin-top: 10px;
        }
    
        /* Gallery Images Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
    
        .gallery-card {
            background: #fafafa;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 1rem;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: box-shadow 0.3s;
        }
    
        .gallery-card img {
            max-width: 100%;
            height: 140px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }
    
        .gallery-card p {
            color: #555;
            font-size: 1rem;
            margin: 0;
        }

                .img-modal {
                    display: none;
                    position: fixed;
                    z-index: 9999;
                    left: 0;
                    top: 0;
                    width: 100vw;
                    height: 100vh;
                    background: rgba(0, 0, 0, 0.85);
                    justify-content: center;
                    align-items: center;
                }
        
                .img-modal-content {
                    max-width: 90vw;
                    max-height: 90vh;
                    border-radius: 12px;
                    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
                }
        
                .close-modal {
                    position: absolute;
                    top: 10px;
                    right: 20px;
                    font-size: 2rem;
                    cursor: pointer;
                    color: #fff;
                    z-index: 10001;         }

        h2 {
    font-weight: 600;
    color: #bfa046;
    /* gold */
    margin-bottom: 20px;
    text-align: center;
}

.log-details {
    text-align: center;
    margin-bottom: 20px;
}

.log-details h2 {
    color: #bfa046;
    font-size: 18px;
    margin-bottom: 10px;
}

.log-details p {
    color: #000000;
    font-size: 11px;
    margin-bottom: 10px;
    font-weight: bold;
}

.background-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    /* Puts it behind everything */
    object-fit: cover;
    opacity: 1;
    /* Optional: Make it faint */
}
.search-form,
.content-wrapper {
    padding: 25px 30px;
    margin-bottom: 30px;
    text-align: right;
}

/* Container for forms and content */
form,
.content-wrapper {
    background: #fff;
    padding: 25px 30px;
    /* max-width: 600px; */
    width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 2px 8px rgb(0 0 0 / 0.1); */
    margin-bottom: 30px;
    box-sizing: border-box;
    /* display: block; */
    /* text-align: center; */
}


/* Labels */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
    color: #333;
}


/* Inputs and textarea */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="date"],
textarea {
    width: 100%;
    padding: 15px 12px;
    font-size: 1rem;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    resize: vertical;
    box-sizing: border-box;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #bfa046;
    /* gold */
    background-color: #fff9e6;
    /* light gold background */
}

/* Textarea specific height */
textarea {
    min-height: 120px;
}

.container {
    position: relative;
    width: 100%;
    padding-right: 10px;
}

.icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #000000;
}

.password-container {
    /* position: relative; */
    position: relative;
        width: 100%;
        padding-right: 10px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.gender-box {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    width: 100%;
    height: auto;
    margin: 0px 0 20px;
    border: 1.8px solid #ccc;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
}
/* eview Image */
.preview-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.preview-container img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

.otp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Buttons */
button {
    background-color: #1660E8;
    /* gold */
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 25px;
    transition: background-color 0.3s ease;
    
}

button:hover {
    background-color: #1660E8;
    /* darker gold */
}
form button {
    background-color: #1660E8;
    /* gold */
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 25px;
    transition: background-color 0.3s ease;
    /* width: 100%; */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px; 
    max-width: 1500px;
    width: 100%;
    box-sizing: border-box;
}

.video-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
}
.video-card-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-desc-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    margin-top: 5px;
    padding: 0;
    font-size: 0.9rem;
}

.video-desc {
    margin-top: 10px;
    font-size: 0.9rem;   }


    .article-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        /* grid-template-columns: repeat(3, 360px); */
        gap: 20px;    
        margin-top: 20px;
        width: 100%;
    }

    .article-grid img {
            width: 100%;
            height: 200px;
            object-fit: contain;
        }

/* Article cards container */
/* .article-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    background-color: #fff;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
} */

.article-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }


.article-card-page{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 5px 2px;
    margin-bottom: 20px;
    /* border: 1px solid #037e4b; */
    border-radius:12px ;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-content{
    max-width: 100%;
    width: 50%;
    display: flex;
    justify-content: start;
}
.article-text {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

/* Article title */
.article-card h3 {
    margin-top: 0;
    color: #05004d;
    /* dark gold/brown */
}

/* Article image styling */
/* .article-card img {
    max-width: 100%;
    width: 100%;
    height: 300px;
    margin: 10px 0;
    border-radius: 6px;
    object-fit: cover;
} */

.article-card img {
    border-radius: 8px;
    margin-bottom: 10px; 
    width: 100%;
    height: 100px;
    object-fit: contain;
}

/* Article content */
.article-card p {
    color: #555;
    line-height: 1.6;
}

/* Article footer with date */
.article-card small {
    color: #999;
    font-size: 0.85rem;
}

/* Buttons container */
.article-buttons {
    margin-top: 15px;
    /* display: flex;
    flex-direction: row; */
}

/* Style for both buttons and links */
.article-buttons a,
.article-buttons form button {
    /* display: inline-block; */
    /* background-color: #bfa046; */
    background-color: #4CAF50;
    /* gold */
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    /* vertical-align: middle; */
}

/* Hover effect for buttons and links */
.article-buttons a:hover,
.article-buttons form button:hover {
    /* background-color: #a38833; */
    /* darker gold */
    background-color: #307732;
}

/* Delete button specifically */
.article-buttons form button {
    background-color: #dc3545;
    margin-right: 0;
}

.article-buttons form button:hover {
    background-color: #a71d2a;
}

/* Make sure form is inline so delete button is next to edit */
.article-buttons form {
    display: inline;
    margin: 0;
    padding: 0;
}
.article-body {
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 10px;   
    word-break: break-word;
    overflow-wrap: break-word;
    user-select: none;
        /* Prevents text selection */
        -webkit-user-select: none;
        /* For Safari */
        -moz-user-select: none;
        /* For Firefox */
        -ms-user-select: none;
    

}

.article-full {
    position: relative;
    background-color: #fff;
    background-image: url('/logo.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 300px;
    
    /* adjust size */
}

.article-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 300px;
    background-attachment: fixed;
    opacity: 0.08;
    /* faint */
    pointer-events: none;
    z-index: 0;
}

/* Make sure article content appears above the watermark */
.article-full>* {
    position: relative;
    z-index: 0;
}



        .article-body a {
            word-break: break-all;
            overflow-wrap: break-word;     }

/* Video card styling */
.video-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
}

.video-container {
    position: relative;
    padding-bottom: 50%;
    /* padding-top: 25px; */
    /* height: 0; */
    /* margin-bottom: 15px; */
    /* display: flex;
    flex-direction: column; */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    border-radius: 8px;
}

.video-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.video-buttons a,
.video-buttons form button {
    background-color: #1660E8;
    /* gold */
    color: white;
    padding: 7px 12px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.video-buttons a:hover,
.video-buttons form button:hover {
    background-color: #1660E8;
    /* darker gold */
}

/* Header */


header {
    
    /* background: url('/images/hero2.jpg') center/cover no-repeat; */
    /* background-color: white; */
    z-index: 1;
    overflow: hidden;
    /* background-color: #4d3b00; */
        color: rgb(0, 0, 0);
        padding: 1rem;
        text-align: center;
        width: 100%;
        margin: 0px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(43, 34, 11, 0.6); */
    /* translucent gold overlay */
    z-index: -1;
}

.logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-title img {
    height: 60px;
    margin-bottom: 0.5rem;
}

nav {
    margin-top: 1rem;
    /* width: 30%; */
}

nav a {
    margin: 0 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    
}

nav a:hover {
    /* text-decoration: underline; */
    background-color: #f5f5f5;
    color: #4d3b00;
    transition: ease 0.5s;
    margin: 0 1rem;
        font-weight: bold;
        padding: 5px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
}

.active{
    background-color: #f5f5f5;
        color: #0c398e;
        transition: ease 0.5s;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #000000;
    border-bottom: 3px solid #ffe58f;
    /* border-top: 3px solid #ffe58f; */
    padding: 8px 0;
    margin-bottom: 12px;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 18s linear infinite;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    } }

/* Section Styling */
.section {
    /* max-width: 1000px; */
    padding: 10px 10px;
    background-color: #fff;
    margin-top: 1.5rem;
    /* width: 100%; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-bottom: 20px;
    /* margin-top: 20px;  */
}

.card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* .card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
} */

.card img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: 100px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card iframe {
    border-radius: 8px;
}

.card h3 {
    margin-top: 0;
    color: #4d3b00;
    /* dark gold */
}

/* .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    } */
    
    .card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    }
    
    .card:hover {
    transform: translateY(-4px);
    }

        .card-grid2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 50px;
            margin-bottom: 5rem;    
        }


.login-button {
    padding: 6px 12px;
    background-color: #1660E8;
    /* gold */
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #07317d;
    /* darker gold */
}

.logout-button {
    padding: 6px 12px;
    background-color: #ff0000;
    /* gold */
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #a60a0a;
    /* darker gold */
    text-decoration: none;
}
.user-table-wrapper {
    max-height: 400px;
    /* Adjust height as needed */
    overflow-y: auto;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;   
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    /* allows horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
    max-height: 400px;
        /* Adjust height as needed */
        overflow-y: auto;
        margin-top: 20px;
}



.user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: sans-serif;
}

.user-table th {
    position: sticky;
        top: 0;
    background-color: #333;
    color: white;
    text-align: left;
    padding: 12px;
}

.user-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}
.btn-edit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-edit:hover {
    background-color: #45a049;
}
.btn-delete {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}
.btn-delete:hover {
    background-color: #e53935;
}


.show-more-btn,
.show-less-btn,
.continue-reading-btn {
    background: #bfa046;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}

.show-more-btn:hover,
.show-less-btn:hover,
.continue-reading-btn:hover {
    background: #a38833; }

/* Footer Styles */
.site-footer {
    background-color: #1660E8;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
    width: 100%;
    margin: 20px 0px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    /* max-width: 1200px;
    margin: 0 auto; */
}

.footer-about,
.footer-social,
.footer-subscribe {
    flex: 1 1 250px;
}

.footer-about h3,
.footer-social h4,
.footer-subscribe h4 {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.footer-social .social-links a {
    font-size: 22px;
    margin-right: 12px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social .social-links a:hover {
    color: #00ffcc;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.subscribe-form button {
    background-color: #1660E8;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: #00997a;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #aaa;  
 }

 .interaction-buttons i {
     cursor: pointer;
     margin-right: 15px;
     font-size: 24px;
     color: #a36d09;
 }

 .interaction-buttons i:hover {
     color: #010408;
 }

 .comment-section {
     margin-top: 10px;
     padding: 8px;
     background: #f9f9f9;
     border-radius: 8px;
 }

 .comment-list {
     margin-top: 8px;
 }

 .comment {
     padding: 6px;
     border-bottom: 1px solid #ccc;
     font-size: 0.9rem;
 }

 /* .faq-list {
     margin-top: 20px;
     
 }

 .faq-item {
     margin-bottom: 20px;
     border-bottom: 1px solid #ccc;
     padding-bottom: 10px;
        
 }

 .faq-item h4 {
     font-weight: bold;
     color: #333;
 } */

 .faq-list {
     margin-top: 20px;
     display: flex;
     flex-direction: column;
     gap: 15px;
 }

 .faq-item {
     background: #fdfdfd;
     border: 1px solid #ccc;
     border-radius: 6px;
     padding: 12px 16px;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
 }

 .faq-question {
     display: flex;
     justify-content: space-between;
     align-items: center;
     cursor: pointer;
 }

 .faq-question h4 {
     font-size: 1rem;
     color: #333;
     margin: 0;
 }

 .faq-question i {
     color: #666;
     font-size: 1rem;
 }

 .faq-answer {
     margin-top: 10px;
     line-height: 1.5;
 }

 .hidden {
     display: none;
 }
 /* .stat-box{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
 } */

 .filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    }
    .stat-box {
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    }
    .dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    }

 .faq-form {
     margin-top: 20px;
     display: flex;
     gap: 10px;
    flex-direction: column;
 }

 .faq-form input[type="text"] {
     flex: 1;
     padding: 8px;
     border-radius: 4px;
     border: 1px solid #aaa;
 }

 .faq-form button {
     padding: 8px 12px;
     background-color: #009966;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
 }
 .faq-badge {
     position: absolute;
     top: -5px;
     right: -10px;
     background: red;
     color: white;
     font-size: 11px;
     padding: 3px 6px;
     border-radius: 50%;   }

 .faq-form button:hover {
     background-color: #007c52;   }

         .modal-overlay {
             position: fixed;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
            width: 100%;
                height: 100%;
             background: rgba(0, 0, 0, 0.6);
             display: flex;
             align-items: center;
             justify-content: center;
             z-index: 1000;
             
         }
    
         /* .modal-content {
             background: #fff;
             padding: 32px 24px;
             border-radius: 10px;
             min-width: 300px;
             box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
             text-align: center;     } */

                         .modal-content {
                             position: fixed;
                             top: 50%;
                             left: 50%;
                             transform: translate(-50%, -50%);
                             background: white;
                             padding: 30px;
                             border-radius: 10px;
                            overflow-y: auto;
                             max-width: 500px;
                             width: 90%;
                             box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
                             z-index: 1000;
                         }

/* modal  */    
.modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}


.modal-content {
    background: white;
    max-height: 90vh;
    width: 90%;
    max-width: 600px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative; }

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Announcement Section Styling */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0; 
    width: 100%;
}

.announcement-coming-soon {
    background-color: #fff9e6;
    padding: 15px;
    border-left: 4px solid #ffcc00;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
}
.announcement {
    background: #fffbe6;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(191, 160, 70, 0.08);
    text-align: center;
    border: 1.5px solid #ffe58f;
    position: relative;
}

.announcement h2 {
    color: #bfa046;
    font-size: 2rem;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.announcement p {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.announcement small {
    color: #bfa046;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.announcement img {
    max-width: 100%;
    margin-top: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(191, 160, 70, 0.10);
    border: 1px solid #ffe58f; }

        .announcement-preview {
            background: #fffbe6;
            border: 2px solid #ffe58f;
            border-radius: 12px;
            padding: 16px 24px;
            margin: 32px auto 0 auto;
            max-width: 500px;
            box-shadow: 0 2px 12px rgba(191, 160, 70, 0.10);
            text-align: center;
            color: #bfa046;
            font-size: 1.15rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            position: relative;
        }
    
        .announcement-preview:hover {
            background: #fff3c1;
        }

    
        .view-announcement-btn {
            background: #bfa046;
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 6px 18px;
            font-size: 1rem;
            font-weight: 600;
            margin-left: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
    
        .view-announcement-btn:hover {
            background: #a38833;
        }
    
        .close-announcement-btn {
            position: absolute;
                top: 18px;
                right: 24px;
                background: transparent;
                border: none;
                font-size: 2rem;
                color: #bfa046;
                cursor: pointer;
                z-index: 10;
                padding: 0;
                line-height: 1;   }

                        .admin-announcement-list {
                            list-style: none;
                            padding: 0;
                            margin-top: 32px;
                            max-width: 700px;
                        }
            
                        .admin-announcement-item {
                            background: #fffbe6;
                            border: 1px solid #ffe58f;
                            border-radius: 10px;
                            margin-bottom: 18px;
                            padding: 18px 18px 12px 18px;
                            box-shadow: 0 2px 8px rgba(191, 160, 70, 0.07);
                        }
            
                        .admin-announcement-item strong {
                            font-size: 1.1rem;             }

                                                        @keyframes pulse {
                                                            0% {
                                                                transform: scale(1);
                                                                box-shadow: 0 0 0 0 #ffe58f;
                                                            }
                            
                                                            70% {
                                                                transform: scale(1.08);
                                                                box-shadow: 0 0 0 10px rgba(191, 160, 70, 0.15);
                                                            }
                            
                                                            100% {
                                                                transform: scale(1);
                                                                box-shadow: 0 0 0 0 #ffe58f;
                                                            }
                                                        }
                            
                                                        .view-announcement-btn {
                                                            background: #bfa046;
                                                            color: #fff;
                                                            border: none;
                                                            border-radius: 6px;
                                                            padding: 8px 22px;
                                                            font-size: 1.1rem;
                                                            font-weight: 700;
                                                            margin-left: 12px;
                                                            cursor: pointer;
                                                            transition: background 0.2s, transform 0.2s;
                                                            animation: pulse 1.5s infinite;
                                                            box-shadow: 0 2px 8px rgba(191, 160, 70, 0.10);
                                                        }
                            
                                                        .view-announcement-btn:hover {
                                                            background: #a38833;
                                                            transform: scale(1.12);                             }
/* Optional: reduce padding on very small screens */
@media screen and (max-width: 480px) {
    .hero-carousel {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;   }

    .nav-toggle {
            display: block;
            background: none;
            border: none;
            font-size: 2rem;
            margin: 5px;
            cursor: pointer;
            color: #000000;
            padding: auto;
        }
    
        #main-nav {
            z-index: 3000 !important;
                position: fixed;
                left: -250px;
                top: 0;
                width: 220px;
                height: 100%;
                background: #222;
                flex-direction: column;
                padding-top: 60px;
                transition: left 0.3s ease;
                box-shadow: 2px 0 8px rgba(0, 0,0, 0.2);
                /* display: flex; */
        }
    
        #main-nav.open {
            display: flex;
            left: 0;
        }
    
        #main-nav a,
        #main-nav img {
            margin: 10px 0;
            display: block;   
            color: #de2f2f;}

    .table-responsive {
            width: 100%;
            overflow-x: auto;
            /* allows horizontal scroll if needed */
            -webkit-overflow-scrolling: touch;
            /* smooth scrolling on iOS */   }
    .user-table th,
    .user-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    /* Make profile images smaller on mobile */
    .user-table img {
        width: 35px !important;
        height: 35px !important;
    }
    .btn-edit {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 2px 4px;
        cursor: pointer;
        border-radius: 4px;
    }
    
    .btn-edit:hover {
        background-color: #45a049;
    }
    .btn-edit {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 4px;
        font-size: 12px;
    }
    .btn-edit:hover {
        background-color: #45a049;
    }
    .btn-delete {
        background-color: #f44336;
        color: white;
        border: none;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 4px;
        font-size: 12px;
    }
    .btn-delete:hover {
        background-color: #e53935;
    }

        nav {
            /* margin-top: 1rem; */
            /* width: 30%; */
        }
    
        nav a {
            /* margin: 0 1rem; */
            color: #b4801e;
            text-decoration: none;
            font-weight: bold;
            padding: 5px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
    
        }
    
        nav a:hover {
            /* text-decoration: underline; */
            background-color: #f5f5f5;
            color: #4d3b00;
            transition: ease 0.5s;   }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-badge {
            position: absolute;
            top: -5px;
            right: -2px;
            background: red;
            color: white;
            font-size: 11px;
            padding: 3px 6px;
            border-radius: 50%;
        }
    .hero-carousel {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;   }
    .nav-toggle {
            display: block;
            background: none;
            border: none;
            font-size: 2rem;
            margin: 10px;
            cursor: pointer;
            color: #000000;
            position: absolute;
            /* top: 20px; */
            right: 30px;
            z-index: 2001;
        }
    
                #main-nav {
                    display: block;
                    position: fixed;
                    left: -250px;
                    top: 0;
                    width: 220px;
                    height: 100%;
                    background: #222;
                    flex-direction: column;
                    padding-top: 60px;
                    transition: left 0.3s ease;
                    z-index: 2000;
                    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);      
                    /* display: flex; */
                }
    
                                        #main-nav.open {
                                            left: 0;        
                                            display: flex;          
                                         }
    
        #main-nav a,
        #main-nav img {
            margin: 20px 0 0 20px;
            /* margin: 10px 0; */
            display: block;   
            color: #0687f0;
        }
            
                 /* Optional: overlay for closing sidebar */
                 .sidebar-overlay {
                     display: none;
                     position: fixed;
                     top: 0;
                     left: 0;
                     width: 100vw;
                     height: 100vh;
                     background: rgba(75, 57, 10, 0.3);
                     z-index: 2000;
                 }
        
                 .sidebar-overlay.active {
                     display: block;
                     color: #080808;
                     
                 }

    .table-responsive {
            width: 100%;
            overflow-x: auto;
            /* allows horizontal scroll if needed */
            -webkit-overflow-scrolling: touch;
            /* smooth scrolling on iOS */   }
    .card-container {
        flex-direction: column;
    }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 3rem;
            margin-top: 1rem;
            margin-bottom: 5rem;   }

                        .card-grid2 {
                            display: grid;
                            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                            gap: 50px;   }
        
                        .footer-container {
                            flex-direction: column;
                            text-align: center;
                            align-items: center;
                        }
            
                        .footer-social .social-links {
                            justify-content: center;               }
                            .footer-about,
                            .footer-social,
                            .footer-subscribe {
                                flex: 1 1 20px;
                            }

                                                        .footer-about,
                                                        .footer-social,
                                                        .footer-subscribe {
                                                            /* flex: 1 1 250px; */
                                                        }
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 769px) {
    .hero-carousel {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;   }
    .nav-toggle {
        display: none;
    }

    #main-nav {
        /* display: flex; */
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        /* display: flex; */
    }

    #main-nav a,
    #main-nav img {
        margin: 0 10px;
        display: inline-block;
    } }

@media (max-width: 600px) {
    .hero-carousel {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;   }
    .table-responsive {
            width: 100%;
            overflow-x: auto;
            /* allows horizontal scroll if needed */
            -webkit-overflow-scrolling: touch;
            /* smooth scrolling on iOS */   }
    .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 3rem;
            margin-top: 1rem;
            margin-bottom: 5rem;   }
    .article-card {
        padding: 15px;
    }
    .article-card-page{
        display: flex;
        flex-direction: column;
        /* align-items: start; */
        /* justify-content: center; */
        gap: 20px;
        width: 100%;
        /* padding: 12px 20px; */
        /* border: 1px solid #037e4b; */
        border-radius:12px ;
        margin-top: 10px;
    }
    
    .article-content{
        width: 100%;
        display: flex;
        /* justify-content: center; */
        justify-content: start;
    }
        .article-text {
            max-width: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: start;   }
    

    .article-buttons a,
    .article-buttons form button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

        nav {
            margin-top: 1rem;
            width: 30%;   }
}