/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Container adjustments */
.container {
    max-width: 1200px;
    padding: 0 15px;
}

/* Navbar */
/* Navbar Styles */
.navbar {
    /* background-color: #008080; */
    background-color: #22405e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0; 
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Search Form Styles */
.navbar .input-group {
    max-width: 300px;
}

.navbar .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
}

.navbar .btn-light {
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .navbar .d-flex {
        margin-top: 1rem;
        width: 100%;
    }
    
    .navbar .input-group {
        max-width: 100%;
    }
    
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 10px;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem; 
    }
    
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .hero-section .display-3 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .hero-section {
        height: 45vh;
    }
    
    .hero-section .display-3 {
        font-size: 1.25rem;
    }
    
    .hero-section .lead {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    margin-bottom: 3rem;
    min-height: 400px;
}

/* Hero responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        margin-bottom: 2rem;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-bottom: 1.5rem;
        min-height: 300px;
    }
}


@media (max-width: 480px) {
    .navbar .input-group {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
    }

    .navbar .input-group .form-control {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        border-radius: 8px 0 0 8px;
    }

    .navbar .input-group .btn {
        flex: 0 0 55px;
        width: 55px;
        border-radius: 0 8px 8px 0;
    }
}

/* Spacing adjustments for mobile */
@media (max-width: 768px) {
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .my-4 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .my-3 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .p-3 {
        padding: 0.75rem !important;
    }
}

/* Text responsive sizing */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    h5 {
        font-size: 0.95rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
}

/* Image responsive improvements */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Table responsive */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Grid adjustments for better mobile layout */
@media (max-width: 768px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .row > * {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Card responsive adjustments */
@media (max-width: 768px) {
    .card {
        border-radius: 8px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 6px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 0.4rem;
    }
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0d6efd !important;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Back to top button */
.back-to-top {
    background-color: #22405e !important;
    border-color: #22405e !important;
}

.back-to-top:hover {
    background-color: #1a334d !important;
    border-color: #1a334d !important;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .social-icons {
        justify-content: center;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0;
    }
    
    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem; 
    }
}