/* ========================================
   KENTURGYE SAFARIS - MAIN STYLESHEET
   ========================================
*/

/* --- 1. General Reset and Base Styles --- 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333; /* Dark gray for text */
    background-color: #F8F8F8; /* Light gray background */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header & Top Bar --- 
*/
.top-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.top-bar {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px; 
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.safari-names h1 {
    font-size: 1.2em;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.safari-names h2 {
    font-size: 0.7em;
    font-weight: 400;
    color: #555;
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin: 2px 0;
    font-size: 0.9em;
    color: #555;
}

/* --- 3. Main Navigation & Dropdowns (NEW) --- 
*/
.main-nav {
    background-color: #000; /* Black navigation bar */
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-button {
    color: #FFF;
    padding: 12px 10px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}

.nav-button:hover, 
.nav-button.active {
    background-color: #333; /* Dark gray hover/active */
}

.nav-button span {
    font-size: 0.7em;
    margin-left: 2px;
}

/* Call to Action Button */
.cta-button {
    background-color: #FFF;
    color: #000;
    margin-left: 15px;
    font-weight: 700;
}

.cta-button:hover {
    background-color: #CCC;
    color: #000;
}

/* Dropdown Base */
.dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-top: 5px; /* Small gap from nav */
}

/* Show dropdown on hover */
.dropdown:hover > .dropdown-content {
    display: block;
}

/* Simple Dropdown Links */
.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    font-size: 0.9em;
    font-weight: 400;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    white-space: nowrap;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #000;
}

/* Mega Menu (for Uganda, Destinations) */
.mega-menu {
    display: none; /* Override for flex */
    left: 50%;
    transform: translateX(-50%);
    width: 900px; /* Wide menu */
    max-width: 95vw;
    padding: 20px;
}

.dropdown:hover > .mega-menu {
    display: flex; /* Use Flexbox for columns */
}

.dropdown-column {
    flex: 1; /* Each column takes equal space */
    padding: 0 15px;
}

.dropdown-column strong {
    display: block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #000;
    color: #000;
    font-size: 0.95em;
    font-weight: 700;
}

.dropdown-column a {
    white-space: normal;
    border-bottom: none;
    padding: 8px 5px;
}

/* --- 4. Hero Section (Homepage) --- 
*/
.hero-section {
    position: relative;
    height: 600px;
    background: url('https://placehold.co/1600x600/111111/FFFFFF?text=Kenturgye+Gorilla+Background') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    color: #FFF;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 20px 30px;
    border-radius: 5px;
}

.hero-subtext {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: -10px;
}

.hero-main-text {
    font-size: 5em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
}

.btn-discover {
    display: inline-block;
    background-color: #FFF;
    color: #000;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-discover:hover {
    background-color: #CCC;
}

/* --- 5. Tour Card Sections (Homepage) --- 
*/
.tours-section {
    margin: 40px auto;
    padding: 0 20px;
}

.tours-header {
    background-color: #333; /* Dark gray header like mockup */
    color: #FFF;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.tours-header h3 {
    font-size: 2em;
    margin-bottom: 5px;
}

.tours-header p {
    font-size: 0.9em;
    opacity: 0.9;
}

.tour-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tour-card {
    background-color: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tour-card h4 {
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #000;
}

.tour-card p {
    padding: 0 15px 15px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
    flex-grow: 1;
}

.btn-itinerary {
    display: block;
    text-align: center;
    background-color: #000;
    color: #FFF;
    padding: 12px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: auto; /* Pushes button to the bottom */
}

.btn-itinerary:hover {
    background-color: #555;
}

/* --- 6. Group Safari Page Content --- 
*/
.page-title-bar {
    background-color: #555; /* Medium Gray */
    padding: 20px 0;
    margin-bottom: 30px;
}

.page-title-bar h3 {
    color: #FFF;
    font-size: 1.8em;
    font-weight: 600;
}

.main-content {
    padding-bottom: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
}

.content-heading {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.intro-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.benefits-list {
    list-style: none;
    margin-bottom: 40px;
}

.benefits-list li {
    font-size: 0.95em;
    padding: 5px 0;
    color: #333;
}

.bullet-check {
    color: #000; /* Black checkmark */
    font-weight: 700;
    margin-right: 8px;
}

/* Featured Tour Section */
.featured-tour-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tour-details {
    flex: 2;
    min-width: 300px;
}

.tour-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000;
}

.sub-title {
    margin-top: 30px;
}

.tour-description {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-explore {
    display: inline-block;
    background-color: #000;
    color: #FFF;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn-explore:hover {
    background-color: #555;
}

.tour-flyer-image {
    flex: 1;
    min-width: 300px;
}

.tour-flyer-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border: 5px solid #000;
    border-radius: 5px;
}

/* FAQs Section */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000;
}

.faq-item {
    background-color: #FFF;
    border: 1px solid #E0E0E0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.faq-item h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.faq-item p {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Tour Pricing Table */
.pricing-table-section {
    margin-bottom: 50px;
    overflow-x: auto; /* Makes table responsive */
}

.pricing-table-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000;
}

.pricing-table {
    width: 100%;
    min-width: 1000px; /* Force scrolling on small screens */
    border-collapse: collapse;
    font-size: 0.9em;
    background-color: #FFF;
}

.pricing-table th, .pricing-table td {
    padding: 12px;
    border: 1px solid #E0E0E0;
    text-align: left;
}

.pricing-table th {
    background-color: #333; /* Dark header */
    color: #FFF;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-table tr:nth-child(even) {
    background-color: #F8F8F8; /* Subtle zebra striping */
}

.pricing-table td:last-child {
    font-weight: 600; 
    color: #000;
}

/* --- 7. Footer --- 
*/
.main-footer {
    background-color: #333; /* Dark background */
    color: #FFF;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-about, .footer-links, .footer-payment, .footer-contact {
    flex: 1;
    min-width: 220px;
}

.logo-footer {
    width: 50px;
    height: 50px;
    filter: invert(1); /* Makes the logo white for dark background */
    border-radius: 50%;
}

.footer-about h4 {
    margin: 10px 0;
    font-size: 1.2em;
}

.footer-about p {
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links h4, .footer-payment h4, .footer-contact h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    padding: 5px 0;
    font-size: 0.9em;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '✓'; 
    position: absolute;
    left: 0;
    color: #FFF;
    font-weight: bold;
}

.footer-links a {
    transition: opacity 0.3s;
    opacity: 0.9;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-payment .payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-payment img {
    width: 70px;
    height: 44px;
    background-color: #FFF;
    border-radius: 4px;
    object-fit: contain;
    padding: 5px;
}

.footer-contact p {
    margin: 10px 0;
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 10px;
}
.social-links img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.social-links img:hover {
    opacity: 1;
}

/* --- 8. Stub Page Styles --- 
*/
.stub-content {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stub-content h1 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 10px;
}

.stub-content p {
    font-size: 1.1em;
    color: #555;
}

.stub-content .btn-home {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 25px;
    transition: background-color 0.3s;
}

.stub-content .btn-home:hover {
    background-color: #555;
}

/* --- 9. Responsive Adjustments --- 
*/
@media (max-width: 1200px) {
    .nav-links {
        justify-content: space-around;
    }
    .mega-menu {
        width: 80vw;
        left: 5vw;
        transform: none;
    }
}

@media (max-width: 992px) {
    .top-bar, .nav-links {
        justify-content: center;
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
    .main-nav {
        padding: 10px 0;
    }
    .nav-links {
        gap: 5px;
    }
    .cta-button {
        margin-left: 0;
    }
    .hero-content {
        padding: 15px;
    }
    .hero-main-text {
        font-size: 3.5em;
    }
    .featured-tour-section {
        flex-direction: column;
        align-items: center;
    }
    .tour-flyer-image img {
        max-width: 100%;
    }
    .mega-menu {
        width: 90vw;
        left: 2.5vw;
        flex-direction: column;
    }
    .dropdown-column {
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: static; /* Stop being sticky on mobile */
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-button {
        text-align: center;
        padding: 12px;
    }
    .cta-button {
        margin-top: 10px;
    }
    .dropdown {
        width: 100%;
    }
    .dropdown-content, .mega-menu {
        position: static; /* Un-stack dropdowns */
        width: 100%;
        box-shadow: none;
        border: 1px solid #444;
        transform: none;
        max-width: 100%;
    }
    .dropdown-column {
        border-bottom: 1px solid #eee;
    }
    .dropdown:hover > .dropdown-content {
        display: none; /* Disable hover on mobile */
    }
    .dropdown > .nav-button {
        /* This is a simple way to make them toggleable with JS, but for CSS-only we'll just show them */
        display: block;
    }
    /* A better mobile menu would require JavaScript. For now, we'll just stack. */
    .dropdown:active > .dropdown-content {
        display: block; /* Show on click/tap */
    }
    .hero-main-text {
        font-size: 2.5em;
    }
}