/* ==========================================================
   New Dimensions Adventures - shared stylesheet
   ========================================================== */

/* General Reset */
body {
    background-color: #f9f9f9;
    color: #333;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ---------- Top bar ---------- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    z-index: 1035;
    font-size: 0.9rem;
    background-color: #0d1a6b;
    padding: 5px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    color: #ff3333;
}

.top-social i,
.top-contact i {
    margin-right: 5px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 35px;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ---------- Hero ---------- */
.hero {
    margin-top: 128px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #0d1a6b;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 64, 0.55);
}

.hero h1 {
    position: relative;
    z-index: 1;
}

/* ---------- Services cards ---------- */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-icon {
    color: #0d1a6b;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    flex-grow: 1;
    color: #555;
}

/* ---------- About page sections ---------- */
.about-section,
.message-section,
.values-section {
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.about-section h2,
.message-section h2,
.values-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0d1a6b;
    margin-bottom: 20px;
}

.about-section p,
.message-section p,
.values-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.value-icon {
    color: #b4041b;
    transition: transform 0.3s ease;
}

.value-icon:hover {
    transform: scale(1.1);
}

.values-section h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d1a6b;
}

/* ---------- Gallery ---------- */
.gallery-btn {
    border: 2px solid #0d1a6b;
    background: transparent;
    color: #0d1a6b;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: #0d1a6b;
    color: #fff;
    text-decoration: none;
}

.gallery-img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Lightbox */
.modal-content {
    background-color: #000;
    text-align: center;
}

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

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ---------- Blog & events cards ---------- */
.blog-card,
.event-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    height: 100%;
}

.blog-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-img-container,
.event-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #0d1a6b;
}

.blog-img-container img,
.event-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-container img,
.event-card:hover .event-img-container img {
    transform: scale(1.05);
}

.blog-icon-meta,
.event-icon-meta {
    color: #b4041b;
    margin-right: 4px;
}

.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b4041b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-nda-link {
    color: #b4041b;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    padding: 0;
}

.btn-nda-link:hover {
    color: #0d1a6b;
}

.btn-nda-outline {
    border: 2px solid #0d1a6b;
    color: #0d1a6b;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 30px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.btn-nda-outline:hover {
    background: #0d1a6b;
    color: #fff;
}

/* Newsletter */
.newsletter input {
    max-width: 300px;
    margin: 10px auto;
}

/* Team Section */
.team-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* About Us Section (home page) */
#about {
    background: #f9f9f9;
    padding: 60px 20px;
    border-radius: 8px;
}

.about-text h2 {
    color: #0d1a6b;
    font-weight: 700;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-video .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.read-more-btn {
    border: 2px solid #000;
    background: transparent;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #000;
    color: #fff;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #fff;
    color: #000;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
    padding-left: 40px;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
    padding-right: 40px;
}

.footer-link {
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

.footer-link:hover {
    color: #b4041b;
    text-decoration: underline;
}

.quick-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #b4041b;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links ul li {
    margin-bottom: 8px;
}

/* Icons were white on a white footer in the PHP version; now dark blue */
.social-icons a {
    margin-left: 12px;
    font-size: 1.4rem;
    color: #0d1a6b;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #b4041b;
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
        padding: 0;
    }

    .social-icons a {
        margin: 0 6px;
    }
}
