/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}
.main-content {
  margin: 0 auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 5px !important;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* ===== Tables & Data Display ===== */
.result-table,
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.result-table th,
.result-table td,
.table th, 
.table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-table th,
.table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* ===== Forms & Inputs ===== */
.input-container,
.input-group-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.input-container input[type="file"] {
    height: 38px;
    padding: 2.5px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

/* ===== Buttons & Interactions ===== */
.button-container,
.button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 5px 0;
}

.button-container .btn,
.button-grid button {
    margin: 5px;
}

.btn-success {
    margin-bottom: auto;
}

.download-button {
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
}

.download-button:hover {
    background-color: #218838;
}

/* ===== Navigation ===== */
.navbar-light .navbar-brand {
    color: rgb(18 149 11 / 90%);
}

.navbar-nav {
    margin-top: 10px;
}

.nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

/* ===== Pagination ===== */
#pagination-wrapper {
    margin: 2rem auto; /* auto left/right margins centers the element if its width is less than the parent */
    width: fit-content; /* shrink to fit its contents */
    display: flex;
    justify-content: center;
}

#pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#pagination button {
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#pagination button:hover {
    background-color: #0056b3;
}

#pagination button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* ===== Content Sections ===== */
.excerpt-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-left: 4px solid #007BFF;
    background-color: #f9f9f9;
}

.excerpt {
    font-style: italic;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

.author {
    text-align: left;
    margin-top: 10px;
    font-size: 1em;
    color: #555;
}

.banner-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.banner-img {
    width: 50%;
    max-height: 100px;
    cursor: pointer;
}

/* ===== Ad Spaces ===== */
.ad-space {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    min-height: 250px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* ===== Footer ===== */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    text-align: center;
    font-size: 14px;
}

/* ===== Utilities ===== */
.list-unstyled {
    text-align: left;
}

.italic-text {
    font-style: italic;
}

.error {
    color: red;
}

/* ===== Modal Overrides ===== */
.modal-header {
    background-color: #007bff;
    color: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .input-container,
    .input-group-mobile {
        flex-direction: column;
        align-items: stretch;
    }

    .input-container input[type="file"] {
        width: 100%;
        margin-bottom: 1rem;
    }

    .button-container,
    .button-grid {
        flex-direction: column;
    }

    .button-container .btn,
    .button-grid button {
        width: 100%;
        margin: 5px 0;
    }

    .banner-img {
        width: 100%;
        height: auto;
    }

    .excerpt-container {
        max-width: 100%;
        padding: 15px;
        margin: 10px auto;
    }

    .excerpt {
        font-size: 1em;
    }

    .author {
        font-size: 0.9em;
    }

    footer {
        padding: 15px;
        font-size: 12px;
    }
}
/*======FAQ=========*/
  .faq {
            margin-bottom: 20px;
        }
        .question {
            font-weight: bold;
            cursor: pointer;
            padding: 10px;
            background: #007bff;
            color: white;
            border-radius: 5px;
        }
        .answer {
            display: none;
            padding: 10px;
            background: #e9ecef;
            border-radius: 5px;
            margin-top: 5px;
        }
		/* Modern modal content styling */
.modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Header: Blue background with white bold text */
.modal-header {
  background-color: #007BFF; /* Blue */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 1rem 1.5rem;
}
.modal-header .modal-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
}
.modal-header .close span {
  color: #fff;
  font-size: 1.5rem;
}

/* Body: White background and clean spacing */
.modal-body {
  background-color: #fff;
  padding: 1.5rem;
  color: #333;
}

/* Footer: Light gray background with rounded corners */
.modal-footer {
  background-color: #f8f9fa;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 1rem 1.5rem;
}

/* Form labels and controls enhancements */
.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-control {
  border-radius: 5px;
  padding: 0.75rem;
  font-size: 1rem;
}

select {
    height: auto;
    padding: 8px !important;
}
.adsbygoogle {
    display: none !important;
}
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 16px; /* Increase font size for better readability */
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
