body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Responsive typography */
h1,
.h1 {
    font-size: calc(1.375rem + 1.5vw);
}

h2,
.h2 {
    font-size: calc(1.325rem + 0.9vw);
}

h3,
.h3 {
    font-size: calc(1.3rem + 0.6vw);
}

p {
    font-size: 1rem;
}

/* Hero section */
.hero {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: calc(1.525rem + 3.3vw);
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: calc(1.425rem + 2.5vw);
    }

    .hero p.lead {
        font-size: 1.1rem;
    }
    
    h2, .h2 {
        font-size: calc(1.325rem + 0.85vw);
    }
    
    h3, .h3 {
        font-size: calc(1.3rem + 0.55vw);
    }
}

/* Card styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Resource cards styling */
.resources-section .card {
    background-color: white;
    max-height: 300px;
    position: relative;
}

.resources-section .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.resources-section .resource-icon {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.resources-section .card:hover .resource-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resources-section .resource-icon img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.resources-section .card:hover .resource-icon img {
    transform: scale(1.1);
}

.resources-section .card-title {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
}

.resources-section .card-text {
    color: #666;
    font-size: 0.95rem;
}

.resources-section .card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4e73df, #36b9cc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resources-section .card:hover::before {
    transform: scaleX(1);
}

.resources-section .btn-outline-primary {
    color: #4e73df;
    border-color: #4e73df;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    margin-top: auto;
}

.resources-section .btn-outline-primary:hover {
    background-color: #4e73df;
    color: white;
    box-shadow: 0 4px 8px rgba(78, 115, 223, 0.25);
}


.resources-section .card-text {
    margin-bottom: 1rem;
}

/* Form elements */
.form-control {
    margin-bottom: 1rem;
    border-radius: 0 !important;
    border-width: 1px !important;
    border-style: solid;
}

.form-control::placeholder {
    color: #acb8c0 !important;
    /* Sets placeholder text color */
    opacity: 0.8 !important;
    /* Makes placeholder very faint (20% visible) */
}

.form-label {
    font-weight: bold;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive spacing */
@media (max-width: 576px) {
    .resources-section .row {
        gap: 1.5rem;
    }

    .resources-section .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Modal styling enhancements */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-header {
    padding: 1rem 1.5rem;
    border-bottom: none;
    background-color: #004080;
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.modal .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.modal img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.modal .card-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.modal .list-group-item {
    padding: 0.75rem 1.25rem;
    border-color: rgba(0, 0, 0, 0.05);
}

.modal .list-group-item strong {
    color: #495057;
    font-weight: 600;
}

.modal .btn-outline-primary:hover,
.modal .btn-outline-success:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal .alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .btn-outline-primary {
        padding: 1rem;
    }

    .modal .row {
        flex-direction: column;
    }

    .modal .col-md-4 {
        margin-bottom: 1rem;
        text-align: center;
    }

    .modal img {
        max-height: 120px;
        margin: 0 auto;
    }
    
    .custom-header .modal-title {
        font-size: 1.2rem;
    }
    
    .modal h4, .modal .h4 {
        font-size: calc(1.275rem + 0.3vw);
    }
    
    .modal h5, .modal .h5 {
        font-size: 1.15rem;
    }
    
    .modal .card-header h5 {
        font-size: 1.1rem;
    }
}

/* Navbar adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: calc(1.375rem + 2vw);
    }

    .hero p.lead {
        font-size: 1.05rem;
    }

    h2, .h2 {
        font-size: calc(1.325rem + 0.8vw);
    }

    h3, .h3 {
        font-size: calc(1.3rem + 0.5vw);
    }

    .resources-section .resource-icon {
        max-width: 120px;
        padding: 0.75rem;
    }

    .resources-section .card-title {
        font-size: 1.3rem;
    }
}

/* Resource cards responsive adjustments */
@media (max-width: 768px) {
    .resources-section .row {
        gap: 1.5rem;
    }

    .resources-section .col-md-4 {
        margin-bottom: 1rem;
    }

    .resources-section .resource-icon {
        max-width: 140px;
    }
}

/* Additional responsive adjustments for resource images */
@media (max-width: 992px) and (min-width: 769px) {
    .resources-section .resource-icon {
        max-width: 160px;
    }
}


/* Additional responsive adjustments for resource images */
@media (max-width: 10px) and (min-width: 500px) {
    .modal-body {
        padding: 1rem;
    }

    .custom-header {
        padding: 1rem 1.5rem;
        border-bottom: none;
        background-color: #004080;
        color: #ffffff;
    }
}
