﻿/* --- Universal Stylesheet for Sydney Private Guided Tours (FINAL) --- */

/* 1. Global & Body Styles */
body {
    background-image: url('pics/bg.jpg');
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

* {
    box-sizing: border-box;
}

a {
    color: #004890; /* Dark Blue */
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* 2. Main Layout Container */
.maintab-container {
    width: 1005px;
    margin: 0 auto;
    border: 1px solid #000000;
    background-color: #FFFFFF;
}

.page-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* 3. Header & Footer (from Master Page) */
.header-container {
    background-color: #004890; /* Dark Blue */
    color: white;
    padding: 15px;
    text-align: center;
}

    .header-container h1 {
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-weight: bold;
        font-size: 40px;
        margin: 0 0 13px 0;
    }

    .header-container p {
        font-size: small;
        font-weight: lighter;
        margin: 0;
    }

.contact-bar {
    width: 70%;
    margin: 15px auto 0 auto;
    display: table;
    table-layout: fixed;
}

.contact-bar-item {
    display: table-cell;
    vertical-align: middle;
}

.contact-bar a {
    color: white;
    text-decoration: none;
    font-size: medium;
    display: inline-flex;
    align-items: center;
}

.contact-bar img {
    margin-right: 8px;
    width: 35px;
    height: 35px;
}

.footer-caption {
    text-align: center;
    background-color: #004890; /* Dark Blue */
    font-size: x-small;
    color: #FFFFFF;
    padding: 10px;
}

/* 4. Navigation Menu */
#cssmenu {
    background: #004890; /* Dark Blue */
    font-family: 'Open Sans', Helvetica, sans-serif;
    text-align: center;
    width: 100%;
}

    #cssmenu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        line-height: 1;
        display: inline-block;
    }

    #cssmenu > ul > li {
        float: left;
        position: relative;
    }

        #cssmenu > ul > li > a {
            padding: 20px 25px;
            font-size: 13px;
            color: #ffffff;
            text-transform: uppercase;
            text-decoration: none;
            display: block;
            font-weight: 700;
            text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
        }

        #cssmenu > ul > li:hover > a {
            color: #cae5fd;
            background: #003a75;
        }

    #cssmenu ul ul {
        position: absolute;
        left: -9999px;
        opacity: 0;
        background: #004890; /* Dark Blue */
        border-radius: 0 0 5px 5px;
        z-index: 1000;
        transition: opacity .2s ease, top .2s ease;
    }

    #cssmenu > ul > li:hover > ul {
        left: 0;
        top: 100%;
        opacity: 1;
    }

    #cssmenu ul ul li a {
        padding: 12px 25px;
        width: auto;
        min-width: 180px;
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        display: block;
        text-align: left;
        white-space: nowrap;
    }

    #cssmenu ul ul li:hover > a {
        background: #003a75;
    }


/* 5. Main Content Area & Unified Heading Styles */
.main-content-area {
    padding: 15px;
    text-align: justify;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Fix for tour page text alignment */
td.body {
    text-align: justify;
}

/* Blue ribbon style for main page titles (e.g., on Cruises page) */
.page-heading {
    background-color: #004890; /* Dark Blue */
    color: #FFFFFF;
    font-size: 1.6em;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 4px;
}

/* Updated H2 section header style to match about.aspx */
.section-heading {
    display: block;
    color: #004890; /* Dark Blue */
    border-bottom: 2px solid #ffc107; /* Gold Accent */
    padding-bottom: 10px;
    margin: 25px 0 20px 0;
    font-size: 1.6em;
    font-weight: 600;
    text-align: left;
}

    /* Remove pseudo-elements from old style */
    .section-heading::before,
    .section-heading::after {
        content: none;
    }

/* Blue ribbon style for headings on tour pages (using .h1 class) */
.h1, td.h1 {
    background-color: #004890; /* Dark Blue */
    color: #FFFFFF !important;
    font-size: 1.6em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 4px;
}

    td.h1 h1 {
        font-size: 1em;
        color: inherit;
        margin: 0;
    }

    td.h1 hr {
        display: none;
    }

.section-bar-heading {
    font-size: x-large;
    background-color: #004890; /* Dark Blue */
    text-align: center;
    color: #FFFFFF;
    font-weight: bold;
    padding: 10px;
    margin: 10px 0;
}

/* 6. Unified Content Section Style */
.content-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* 7. Homepage-specific Styles & Overrides */
.homepage-container {
    padding: 0 5px;
}

    /* OVERRIDE: Style H1 on homepage to match about.aspx title */
    .homepage-container h1.section-heading {
        color: #004890; /* Dark Blue */
        font-size: 1.8em;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
        margin: 20px 0;
        font-weight: bold;
        background-color: transparent;
    }

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.offer-bar {
    background-color: #ffc107; /* Gold Accent */
    color: #000;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}

.intro-block {
    padding: 15px 0;
}

    .intro-block::after {
        content: "";
        display: table;
        clear: both;
    }

.guide-image {
    float: left;
    width: 280px;
    height: 280px;
    margin-right: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

    .awards-grid .TA_certificateOfExcellence {
        max-width: 150px;
        margin: auto;
    }

.why-book-text p {
    margin: 0 0 10px 0;
}

.why-book-text strong {
    color: #004890; /* Dark Blue */
    font-size: 1.1em;
}

.corporate-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #e6f2ff; /* Light Blue */
    border-left: 5px solid #004890; /* Dark Blue */
    border-radius: 4px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.fleet-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* 8. NEW & UPDATED LAYOUT STYLES */

.social-links-container {
    background-color: #004890; /* Dark Blue */
    color: #FFFFFF;
    padding: 10px;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

    .social-links-container img {
        height: 30px;
        width: auto;
        display: block;
    }

.widgets-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.link-item-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #004890; /* Dark Blue */
    border-radius: 4px;
}

    .link-item-box img {
        width: 100px;
        height: auto;
        flex-shrink: 0;
    }

    .link-item-box p {
        margin: 0;
    }

/* --- Image Gallery Styles --- */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
    box-sizing: border-box;
}

    .column img {
        margin-top: 8px;
        vertical-align: middle;
        width: 100%;
        cursor: pointer;
        transition: 0.3s;
    }

        .column img:hover {
            opacity: 0.7;
        }

.galcontainer {
    position: fixed;
    display: none;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#expandedImg {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

#imgtext {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

.closebtn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

    .closebtn:before {
        content: "×";
    }

    .closebtn:hover {
        color: #bbb;
    }

/* 9. Miscellaneous Component Styles */
.intro-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.intro-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffc107; /* Gold Accent */
    flex-shrink: 0;
}

.testimonial-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 20px 0;
    font-style: italic;
    border-left: 5px solid #ffc107; /* Gold Accent */
    padding-left: 20px;
    text-align: left;
}

    .testimonial-block img {
        width: 240px;
        height: 160px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

.cta-section {
    text-align: center;
    padding: 30px;
    background-color: #004890; /* Dark Blue */
    color: #fff;
    border-radius: 8px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffc107; /* Gold Accent */
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 1.2em;
}

/* --- RESPONSIVE STYLES --- */

@media (max-width: 1024px) {
    .maintab-container {
        width: 100%;
        border: none;
    }

    .intro-section {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 5px solid #ffc107; /* Gold Accent */
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .widgets-section, .fleet-grid, .awards-grid {
        grid-template-columns: 1fr;
    }

    .link-item-box {
        flex-direction: column;
        text-align: center;
    }

    .guide-image {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }
}

@media screen and (max-width: 800px) {
    .column {
        flex: 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }
}
