
/* ========================================
   CUSTOM CSS FOR WAGTAIL NEWS WEBSITE
   ======================================== */

/* CSS Custom Properties (Variables) */

h1 {
    font-size: 1.8rem !important;
}

h2 {
   font-size: 1.6rem !important;
}

h3{
    font-size: 1.4rem !important;
}
h4{
    font-size: 1.2rem !important;
}

h5 {
    font-size: 1rem !important;
}

h6 {
    font-size: 0.8rem !important;
}

.read-more{
    color: #CC7700;
    text-decoration: none;
    font-weight: bold;
}

.custom-select {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.engage {
    color: #bbb !important;
}

.news-src img {
    max-width: 80px !important;
    max-height: 80px !important;
}

.engage span {
    margin-right: 0.25rem !important;
}

/*news description manage*/
.news{

}
.news-title{

}

.news-descr{

}


/*Popular news class*/
.popular-news-block{

}

/* pagination 
.page-item .page-link{
    color:#CC7700;
}

/* Active pagination item styling 
.page-item.active .page-link {
    background-color: #CC7700;
    border-color: #997700;
    color: white; /* Optional: for better contrast */


/* Optional: Add hover state for active item 
.page-item.active .page-link:hover {
    background-color: #997700;
    border-color: #775500;
}
*/
.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #CC7700;
    background-color: #fff;
    border: 1px solid #dee2e6;
}
 
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #CC7700;
    border-color: #996600;
}

.category-bullet-list li {
    
    position: relative;
    padding-left: 18px;
    margin-bottom: 0.5rem;
}

.category-bullet-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffffff; /* or #222 for a darker dot */
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

/* profile page section new css*/
.profile-container {
    background: #EDEFF4;
    min-height: 60vh;
    padding: 1rem 0;
}

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    background: #FFCC00;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.1);
}

.info-item {
    background: rgba(255, 204, 0, 0.05);
    border-left: 4px solid #FFCC00;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateX(5px);
}

.info-icon {
    background: #FFCC00;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-update {
    background: #FFCC00;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: #FFCC00;
    padding: 1.5rem;
    position: relative;
}

.btn-close {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #FFCC00;
    box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.25);
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid #FFCC00;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.modal-avatar:hover {
    transform: scale(1.05);
}

/* .file-input-wrapper {
    position: relative;
    margin-top: 10px;
} */

.file-input-wrapper {
    display: flex;
    justify-content: left;
    align-items: left;
}
.modal-footer {
    border: none;
    padding: 2rem;
    gap: 1rem;
}

.btn-cancel {
    background: #6c757d;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.floating-btn {
    background: #FFCC00;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

.button-spacing {
    gap: 1rem;
}

.icon-spacing {
    margin-right: 0.5rem;
}

/*News css*/
/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-nav:hover {
    background: #0056b3;
}

.calendar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
}

.calendar-day {
    background: white;
    border: 1px solid #e9ecef;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.has-news {
    background: #e7f3ff;
    border-color: #007bff;
}

.calendar-day.has-news:hover {
    background: #cce7ff;
}

.calendar-day.selected {
    background: #007bff;
    color: white;
}

.calendar-day.today {
    background: #ffc107;
    color: #212529;
    font-weight: bold;
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.news-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.news-list {
    margin-top: 20px;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.news-item .meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Ensure dropdown menu appears only on hover of parent or menu */
.user-dropdown:hover .dropdown-menu,
.user-dropdown .dropdown-menu:hover {
    display: block;
}

/* Hide by default */
.user-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 0.2rem;
}

/* Custom CSS to prevent pagination compression */
.pagination {
    flex-wrap: nowrap !important; /* Force single line */
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.pagination .page-item {
    flex: 0 0 auto;
}

.pagination .page-link {
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Fix for Previous and Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: auto;
    padding: 0.5rem 1.25rem;  /* wider padding to fit icon + text */
    display: flex;
    align-items: center;
    gap: 6px; /* space between icon and text */
}

.pagination .page-item.disabled .page-link {
    cursor: default;
    color: #999;
}


/* calender css*/
/* Calendar Styles */
/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    margin: 20px 0;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.calendar-nav {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-nav:hover {
    background: #0056b3;
}

.calendar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Main Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-day-header {
    background-color: #343a40;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 15px 8px;
    font-size: 14px;
    border-right: 1px solid #495057;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    background: white;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 8px;
    text-align: left;
    cursor: pointer;
    position: relative;
    height: 100px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

.calendar-day.has-news {
    background: #e7f3ff;
    border-color: #007bff;
}

.calendar-day.has-news:hover {
    background: #cce7ff;
}

.calendar-day.selected {
    background: #007bff;
    color: white;
}

.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    color: #212529;
    font-weight: bold;
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.other-month:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.future {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.future:hover {
    transform: none;
    box-shadow: none;
    background-color: #f5f5f5;
}

.day-number {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.news-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.news-count.zero {
    background: #6c757d;
    opacity: 0.5;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.month-year-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

.legend {
    margin-top: 20px;
    padding: 0 20px 20px 20px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 8px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.news-list {
    margin-top: 20px;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.news-item .meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Ensure dropdown menu appears only on hover of parent or menu */
.user-dropdown:hover .dropdown-menu,
.user-dropdown .dropdown-menu:hover {
    display: block;
}

/* Hide by default */
.user-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 0.2rem;
}

/* Custom CSS to prevent pagination compression */
.pagination {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.pagination .page-item {
    flex: 0 0 auto;
}

.pagination .page-link {
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination .page-item.disabled .page-link {
    cursor: default;
    color: #999;
}

@media (max-width: 768px) {
    .calendar-day {
        height: 80px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .news-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        bottom: 5px;
        right: 5px;
    }
    
    .month-year-title {
        font-size: 22px;
    }
    
    .calendar-day-header {
        padding: 10px 4px;
        font-size: 12px;
    }
}
/* Footer Category Grid */
.footer-category-grid ul {
  -webkit-column-count: 4;
  -moz-column-count: 4;
  column-count: 4;
  -webkit-column-gap: 1rem;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
}

.footer-category-grid li {
  break-inside: avoid;
  page-break-inside: avoid; /* For older browsers */
}
