/* Page-specific styles for stgais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.slideshow {
    height: 400px;
    width: 100%;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.slideshow div {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    animation: slideshow 36s linear infinite;
    opacity: 0;
}

.slideshow div:nth-child(1) {
    background-image: url('https://www.pribiloftraffic.com/images/slide1.jpg');
    animation-delay: 0s;
}

.slideshow div:nth-child(2) {
    background-image: url('https://www.pribiloftraffic.com/images/slide2.jpg');
    animation-delay: 6s;
}

.slideshow div:nth-child(3) {
    background-image: url('https://www.pribiloftraffic.com/images/slide3.jpg');
    animation-delay: 12s;
}

.slideshow div:nth-child(4) {
    background-image: url('https://www.pribiloftraffic.com/images/slide4.jpg');
    animation-delay: 18s;
}

.slideshow div:nth-child(5) {
    background-image: url('https://www.pribiloftraffic.com/images/slide5.jpg');
    animation-delay: 24s;
}

.slideshow div:nth-child(6) {
    background-image: url('https://www.pribiloftraffic.com/images/slide6.jpg');
    animation-delay: 30s;
}

@keyframes slideshow {
    0% { opacity: 0; }
    4% { opacity: 1; }
    16% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #2c5282;
    margin-bottom: 10px;
}

.description {
    font-size: 1.2em;
    color: #4a5568;
}

/* Navigation is handled by the global navigation.css */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #2c5282;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.content-section p {
    color: #4a5568;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.footer-title {
    font-size: 1.2em;
    color: #2c5282;
    margin-bottom: 15px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section p {
    color: #4a5568;
    margin-bottom: 10px;
}

.footer-section a {
    color: #2b6cb0;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .navbar a, .dropdown .dropbtn {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .description {
        font-size: 1em;
    }
}

/* Background Slideshow */
.slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

.slideshow div {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: slideshow 36s linear infinite;
}

.slideshow div:nth-child(1) {
    background-image: url("images/DSCN1947.jpg");
}

.slideshow div:nth-child(2) {
    background-image: url("images/DSCN1991.JPG");
    animation-delay: 6s;
}

.slideshow div:nth-child(3) {
    background-image: url("images/Rush Point Beach.jpg");
    animation-delay: 12s;
}

.slideshow div:nth-child(4) {
    background-image: url("images/DSCN2082.JPG");
    animation-delay: 18s;
}

.slideshow div:nth-child(5) {
    background-image: url("images/Picture 108.jpg");
    animation-delay: 24s;
}

.slideshow div:nth-child(6) {
    background-image: url("images/DSCN2039.jpg");
    animation-delay: 30s;
}

@keyframes slideshow {
    0% { opacity: 0; }
    4% { opacity: 1; }
    16% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

/* Main Styles */
body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    background-color: #7ed5ea;
    min-height: 100vh;
}

header {
    background-color: #0a2647;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Navigation is handled by the global navigation.css file */

/* Flight Category Styles */
.value.vfr {
    color: #28a745;
    font-weight: bold;
}

.value.mvfr {
    color: #007bff;
    font-weight: bold;
}

.value.ifr {
    color: #dc3545;
    font-weight: bold;
}

.value.lifr {
    color: #6f42c1;
    font-weight: bold;
}

/* Navigation responsiveness handled by navigation.css */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.icon-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.menu-item i {
    font-size: 2.5rem;
    color: #28559a;
}

.menu-item i.fa-info-circle, 
.menu-item i.fa-cloud-sun {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.menu-item h2 {
    color: #333;
    margin-bottom: 1rem;
}

.menu-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Quick Links Section */
.quick-links-title {
    font-size: 0.9em;
    color: #666;
    margin: 25px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Main Button */
.main-btn-container {
    margin-top: 25px;
    text-align: center;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

/* Primary (All About) Button */
.btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1em;
    background-color: #4b9fe1;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #0a2647;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Small (Quick Links) Buttons */
.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9em;
    background-color: #4b9fe1;
    color: white;
}

.btn-small:hover {
    background-color: #0a2647;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1em;
}

/* Weather Details Styles */
.weather-detail, .wind-detail, .marine-detail {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.weather-detail:last-child, .wind-detail:last-child, .marine-detail:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #0a2647;
    margin-right: 0.5rem;
}

.value {
    color: #333;
}

.forecast-detail, .marine-detail {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.forecast-detail h3, .marine-detail h3 {
    color: #0a2647;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.forecast-text, .marine-text, .wave-text {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e6dbc9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 1.5rem;
    }

    header {
        padding: 1.5rem 0;
    }
}

/* ACE Air Cargo Styles */
.airline-logo {
    max-width: 200px;
    height: auto;
    margin: 10px auto;
    display: block;
    text-align: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.track-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.track-button i {
    margin-right: 8px;
}

.track-button.flightaware {
    background-color: #1a73e8;
}

.track-button.flightradar {
    background-color: #f57c00;
}

.track-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
