/* Custom Styles for FAQ Accordion - More Professional Expansion */
/* -----------------
   FAQ Accordion
------------------ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #f8f8f8;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover,
.faq-item.active .faq-question {
    background: #e6f0ff;
    color: #0056b3;
}

.faq-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #0056b3;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background: #fff;
    color: #4a5568;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    opacity: 1;
    visibility: visible;
    padding-bottom: 1rem;
    /* max-height set dynamically in JS */
}

.faq-answer p, 
.faq-answer ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Global Navbar and Responsive Styles (from previous context, ensure they are present) */
/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background: #0a2a43; padding: 1rem;
    color: white;
}
.nav-links {
    list-style: none; display: flex; gap: 1rem;
}
.nav-links li a {
    color: white; text-decoration: none; transition: 0.3s;
}
.nav-links li a:hover { color: #00bcd4; }
.menu-toggle {
    display: none; background: none; border: none; color: white; font-size: 1.5rem;
}

/* Hero */
.hero {
    background: url('image/network-bg.jpg') center/cover no-repeat;
    color: white; text-align: center; padding: 5rem 2rem;
}
.hero h1 { font-size: 2.5rem; }
.hero p { margin: 1rem 0; }
.btn {
    background: #00bcd4; color: white; padding: 0.8rem 1.5rem; text-decoration: none;
    border-radius: 5px; transition: 0.3s;
}
.btn:hover { background: #0288a7; }

/* Services */
.services {
    padding: 3rem 2rem; background: white; text-align: center;
}
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
    margin-top: 2rem;
}
.service {
    background: #f0f0f0; padding: 1.5rem; border-radius: 8px;
}

/* Blog */
.blog {
    padding: 3rem 2rem; text-align: center;
}
.blog-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.blog-list article {
    background: white; padding: 1.5rem; border-radius: 8px; text-align: left;
}

/* Testimonials Section */
#testimonials .grid > div {
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#testimonials .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

#testimonials p.italic {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

#testimonials p.font-bold {
    color: #2d3748;
    font-size: 0.95rem;
}

/* Optional: Custom scrollbar for testimonial section if content overflows (unlikely for this layout) */
#testimonials::-webkit-scrollbar {
    width: 8px;
}
#testimonials::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#testimonials::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
#testimonials::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Contact */
.contact {
    padding: 3rem 2rem; background: #f0f0f0;
}
.contact form {
    max-width: 500px; margin: auto; display: flex; flex-direction: column; gap: 1rem;
}
.contact input, .contact textarea {
    padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px;
}
.contact button {
    padding: 0.8rem; border: none; background: #0a2a43; color: white; border-radius: 5px;
}

/* Footer */
footer {
    text-align: center; padding: 1rem; background: #0a2a43; color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; background: #0a2a43; }
    .menu-toggle { display: block; }
}
/* --- Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 90%; /* Responsive width */
    max-width: 400px; /* Max width for larger screens */
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out; /* Animation for appearance */
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
}

.modal-content p {
    margin-bottom: 20px;
    color: #555;
}

.modal-content .row {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
}

/* Animation for the modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add or adjust styles for Admin panel buttons if needed */
.flex-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn.primary {
    background: #00bcd4; /* Example primary color */
    color: white;
}

.btn.delete-btn {
    background: #e74c3c; /* Red for delete actions */
}
.btn.delete-btn:hover {
    background: #c0392b;
}

.card.post-admin {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}
