/* General styles */
body {
    color: #000000;
    background-color: #ffffff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6; /* Improved readability */
    margin: 0;
}

#header {
    height: 640px;
    background: url('./images/ptaerocover.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Improved text visibility */
}

h1 {
    position: absolute;
    clip-path: inset(0);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

nav {
    background-color: #000000;
}

nav .navbar-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li a {
    color: #ffffff;
    text-decoration: none;
}

section {
    padding: 50px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem; /* Adjusted for better responsiveness */
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 20px 0;
    color: #f0f0f0; /* Slightly lighter for better contrast */
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

.hero-buttons .btn-primary {
    background-color: #ff4500;
    border-color: #ff4500;
}

.hero-buttons .btn-primary:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

/* Section Styling */
#airplanes h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: #ffffff;
    padding: 15px; /* Added padding for better spacing */
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-bottom: 2px solid #ffffff;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Button Styling */
.btn-primary {
    background-color: #ff4500;
    border-color: #ff4500;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 180px;
    }

    .card {
        padding: 10px; /* Adjusted padding for smaller screens */
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    #airplanes h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Section Title */
#collapsible-images h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Collapsible Card */
.collapsible-card {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.collapsible-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

.overlay-title {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

/* Collapsible Content */
.collapsible-content {
    display: none;
    padding: 15px;
    background-color: #fff;
    border-top: 2px solid #ff4500;
    border-radius: 0 0 10px 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.collapsible-content.active {
    display: block;
}

/* Footer Styling */
footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #ff4500;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

footer a:focus, .btn:focus, #back-to-top:focus {
    outline: 2px dashed #ff4500;
    outline-offset: 2px;
}

footer .small {
    font-size: 0.85rem;
    color: #aaa;
}

/* Testimonials Section */
.testimonials {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding: 40px 20px;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonials div {
    margin: 15px 0;
    padding: 15px;
    border-left: 3px solid #ff4500;
    background: #ffffff;
    border-radius: 5px;
    color: rgb(0, 0, 0);
}

.testimonials div p {
    margin: 0;
}

/* Bootstrap Overrides */
.navbar {
    background-color: #343a40;
    padding: 1rem;
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ff4500 !important;
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28155, 155, 155, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Additional custom styles */

/* Back-to-Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4500;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#back-to-top:hover,
#back-to-top:focus {
    background-color: #ff5722;
    transform: scale(1.1);
    outline: none;
}

/* Accessibility Improvements */
nav a:focus, .btn:focus, #back-to-top:focus {
    outline: 2px dashed #ff4500;
    outline-offset: 2px;
}

/* Featured Airplane Section */
#featured-airplane h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}

#featured-airplane img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#featured-airplane h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#featured-airplane p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Latest News Section */
#latest-news h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}

.news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-item h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.news-item a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}