/* ==============================
   GLOBAL PAGE FIX
================================= */

html, body {
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    overflow: hidden; /* Ensures content flows properly */
}


/* ==============================
   HERO SECTION
================================= */

.hero {
    background: url('https://source.unsplash.com/1600x900/?dredging,sea') no-repeat center center/cover;
    min-height: 70vh; /* Ensures visibility */
    display: flex;
    align-items: center;
    padding: 20px 0;
}


/* ==============================
   FOOTER (FIXED PERFECTLY)
================================= */

.footer {
    background: #212529;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: relative;
    margin-top: auto; /* 🔥 MAIN FIX */
}


/* ==============================
   TEXT CONTAINER
================================= */

.text-container {
    max-width: 900px;
    margin: auto;
    text-align: justify;
    line-height: 1.6;
    font-size: 18px;
    font-family: "Times New Roman", serif;
    color: #333;
}

.text-h4 {
    max-width: 900px;
    margin: auto;
    text-align: justify;
}


/* ==============================
   GALLERY SECTION
================================= */

.gallery-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-title {
    font-size: 18px;
    text-align: left;
    margin-bottom: 15px;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.gallery-item {
    width: 400px;
    height: 300px;
    overflow: visible;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid black;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(2);
}

/* Small gallery images */
.gallery-item1 {
    width: 150px;
    height: 120px;
    overflow: visible;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid black;
    transition: transform 0.3s ease-in-out;
}

.gallery-item1:hover img {
    transform: scale(2);
}


/* ==============================
   IMAGE IN TEXT
================================= */

.inserted-image {
    float: left;
    margin-right: 8px;
    width: 250px;
    height: auto;
}


/* ==============================
   TABLE STYLING
================================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}


/* ==============================
   VIDEO SECTION
================================= */

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.video {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

iframe, video {
    width: 100%;
    height: 280px;
    border-radius: 10px;
}


/* ==============================
   HEADING & LIST STYLE
================================= */

h2 {
    text-align: center;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    padding-left: 10px;
    text-align: left;
}

ul li {
    padding: 5px 0;
    text-align: left;
}

p {
    font-size: 16px;
    color: #555;
    text-align: left;
}


/* ==============================
   NAVBAR FIX
================================= */

.navbar-brand {
    font-size: 15px;
}

#heading {
    text-align: center;
    justify-content: center;
    display: flex;
}

#heading .navbar-brand {
    width: 100%;
    text-align: center;
    font-size: 15px;
    white-space: normal;
}

/* Top Heading Navbar */
.top-heading-nav {
    padding-top: 10px !important;
    padding-bottom: 0px !important;
    min-height: 25px !important;
}

.top-heading-nav .navbar-brand {
    font-size: 15px !important;
    padding: 0px !important;
    margin: 0px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
}

/* Main Navbar */
.main-nav {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    min-height: 40px;
}

.main-nav .nav-link {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 14px;
}


/* ==============================
   RESPONSIVE FIX
================================= */

@media (max-width: 768px) {

    .container p {
        font-size: 14px;
    }

    .footer .row {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 5px;
    }

    .gallery-row {
        gap: 20px;
    }

    .gallery-item {
        width: 90%;
        height: auto;
    }

    .gallery-item img {
        height: auto;
    }
}
