body {
    background-color: #FFFFE0;
    border-radius: 0 !important;
}

.navbar {
    background-color: #163d72;
    border-radius:0px !important;
}

.navbar-dark .navbar-nav .nav-link.nav-text {
    color: white;
}

    .navbar-dark .navbar-nav .nav-link.nav-text:hover {
        color: darkgrey;
    }

.card-header h4 {
    position: relative;
    top: -1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

/* Feature Cards */
/*.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    */
/* Highlight Cards */
.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

/* News Items */
.news-item {
    transition: background-color 0.3s ease;
}

    .news-item:hover {
        background-color: #f8f9fa;
    }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,123,255,0.4);
    }

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
        transform: translateY(-2px);
        /* Removed box-shadow/glow effect */
    }

    /* Remove glow effects from all buttons */
    .btn:focus,
    .btn:active:focus,
    .btn.active:focus,
    .btn-primary:focus,
    .btn-primary:active:focus,
    .btn-warning:focus,
    .btn-warning:active:focus,
    .btn-outline-primary:focus,
    .btn-outline-primary:active:focus {
        box-shadow: none !important;
        outline: none;
    }

/* Form Controls - Remove Glow */
.form-control:focus {
    box-shadow: none !important;
    outline: none;
}

/* Cards */
.card {
    border: none;
    /*  border-radius: 15px; */
    overflow: hidden;
}

.card-header {
    /*  border-radius: 15px 15px 0 0 !important; */
    color: white;
    border: none;
    background-color: #163d72;
}

/* News Cards */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px; /* Minimum height for cards */
}

    .news-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .news-card .news-summary {
        flex: 1;
        overflow: hidden;
        position: relative;
    }

        .news-card .news-summary img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin: 0.5rem 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            max-height: 120px;
            object-fit: cover;
        }

    .news-card .card-footer {
        border-top: 1px solid rgba(0,0,0,.125);
        background-color: transparent;
    }

/* News Card Images */
.news-card-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.news-summary {
    min-height: 120px;
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

    .news-summary img,
    .latest-news img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 0.5rem 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

.news-summary {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

/* Ensure card images don't exceed card width */
.card-img-top {
    max-width: 100%;
    height: auto;
}

/* News Content */
.news-content img,
.card-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.news-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure images don't exceed container width */
.news-content {
    overflow-wrap: break-word;
}

    .news-content p {
        line-height: 1.6;
    }

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* News Preview Content Container */
.news-preview-content {
    margin: 0.5rem 0;
}

    .news-preview-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        border-radius: 6px;
        margin: 0.5rem 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        object-fit: cover;
    }

    .news-preview-content p {
        margin-bottom: 0;
        line-height: 1.5;
    }

/* Home Page News Previews */
.latest-news .news-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.75rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.home-news-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Home page news item spacing */
.latest-news .news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .latest-news .news-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Latest News */
    .latest-news .news-item img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 0.5rem 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        max-height: 120px;
        object-fit: cover;
    }

/* Home News Image */
.home-news-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-height: 120px;
    object-fit: cover;
}

/* News Summary */
.news-summary {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

/* News Content */
.news-content img,
.card-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.news-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure images don't exceed container width */
.news-content {
    overflow-wrap: break-word;
}

    .news-content p {
        line-height: 1.6;
    }

/* Image upload area styling */
.drag-drop-area {
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .drag-drop-area:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

    .drag-drop-area.bg-light {
        border-color: #007bff;
        background-color: #e9ecef !important;
    }

.image-upload-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    border-top: none !important;
    color: #C0C0A0;
 /*   background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important; */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styling */
.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
}

    .form-control:focus {
        border-color: #007bff;
        /* Removed box-shadow/glow effect */
    }

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Hero Section Logo Styling */
.hero-logo {
    width: 283px;
    height: 272px;
    object-fit: contain;
    /* border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); */
    max-width: 100%;
    height: auto;
}

.hero-logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    margin-left: 4rem;
    margin-top: 13px;
    margin-right: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.hero-text {
    text-align: center;
    padding: 0 1rem;
}

.hero-section .display-3 {
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    margin-bottom: 1.5rem;
}

.hero-section .event-date {
    margin-bottom: 2rem;
}

.hero-section .btn {
    margin-top: 1rem;
}

/* News Preview Content Container */
.news-preview-content {
    margin: 0.5rem 0;
}

    .news-preview-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        border-radius: 6px;
        margin: 0.5rem 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        object-fit: cover;
    }

    .news-preview-content p {
        margin-bottom: 0;
        line-height: 1.5;
    }

/* Home Page News Previews */
.latest-news .news-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.75rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.home-news-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Home page news item spacing */
.latest-news .news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .latest-news .news-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-logo {
        width: 180px;
        height: 175px;
    }

    .hero-section .display-3 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo-container {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    .hero-logo {
        width: 150px;
        height: 146px;
    }
}

@media (max-width: 767.98px) {
    .hero-section .display-3 {
        font-size: 1.75rem;
    }

    .hero-section .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .news-summary {
        min-height: 100px;
        max-height: 150px;
    }

    .news-card .news-summary img {
        max-height: 80px;
    }
}

@media (max-width: 576px) {
    .news-card .news-summary img {
        max-height: 60px;
    }

    .latest-news .news-item img {
        max-height: 80px;
    }

    .home-news-img {
        max-height: 80px;
    }
}
