/* Import Nunito font from Google */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* Global styles */
* {
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    color: #1c5a8a;
    margin: 0 0 10px;
}
p {
    line-height: 1.6;
    margin-bottom: 15px;
}
/*
 * The primary container for all pages.  Increase horizontal padding so that
 * text and content never butt up against the viewport edges on larger screens.
 * This provides breathing room and a more polished appearance.  On mobile
 * devices the padding is slightly reduced to maximise available space while
 * still preventing content from touching the screen edges.
 */
/*
 * Container sizing for public pages.  We deliberately reduce the
 * maximum width from 1200px to 1100px so that a comfortable margin
 * remains on very wide desktop monitors.  Generous horizontal
 * padding ensures text never hugs the viewport edge on large
 * screens while still accommodating narrow devices.  On medium
 * screens we slightly reduce the padding and on small screens the
 * padding is further trimmed but never removed.  This strategy
 * creates breathing room on all devices without sacrificing usable
 * space.
 */
/*
 * Container sizing for public pages.  We deliberately reduce the
 * maximum width from 1200px to 1100px so that a comfortable margin
 * remains on very wide desktop monitors.  Generous horizontal
 * padding ensures text never hugs the viewport edge on large
 * screens while still accommodating narrow devices.  On medium
 * screens we slightly reduce the padding and on small screens the
 * padding is further trimmed but never removed.  This strategy
 * creates breathing room on all devices without sacrificing usable
 * space.
 */
/*
 * Container for public pages.  Allow the content to span the full
 * available width while adding horizontal padding to prevent text
 * from touching the viewport edges.  We remove any fixed
 * max‑width so the layout remains fluid and centred on all screens.
 */
/*
 * The main container spans the full width of the viewport.  Minimal
 * horizontal padding ensures text doesn’t touch the edges without
 * creating the impression of a bordered column.  Padding decreases
 * on phones to maximise usable space.
 */
/*
 * The main layout container wraps page content on public pages.  We allow
 * the content to span the full available width but introduce a generous
 * percentage‑based padding on the left and right.  Using percentage
 * padding rather than fixed pixel values allows the empty margin to scale
 * fluidly with the viewport size.  This ensures there is always
 * comfortable breathing room on large displays while still preserving
 * space on smaller screens.  On very small devices the padding is
 * reduced slightly.
 */
/*
 * The main layout container wraps page content on public pages.  To provide
 * ample breathing room along the left and right edges we use percentage‑based
 * padding.  Increasing the padding to six percent on larger screens
 * introduces a clearly visible empty margin without creating the illusion
 * of boxed borders.  On tablets and phones the padding is reduced to four
 * percent to maximise available space while still ensuring content doesn’t
 * butt up against the viewport edges.  A fluid width is maintained by
 * removing any fixed max‑width.
 */
/*
 * The primary layout container used across all public pages.  To ensure content does
 * not butt up against the viewport edges we increase the horizontal padding
 * significantly.  On large displays we allocate eight percent of the viewport
 * width on either side as empty space.  On tablets and phones the padding is
 * reduced slightly to six percent to maximise usable space while still
 * preserving breathing room.  We allow the width to stretch to the full
 * viewport so that elements like the hero slider and navigation remain fluid.
 */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 8%;
    padding-right: 8%;
}

@media (max-width: 768px) {
    .container {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* Set default font for the entire site including admin to Nunito */
body {
    font-family: 'Nunito', sans-serif;
}

/* Hero slider */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Height set to 70vh to ensure the slider fills the first viewport */
    height: 70vh;
    min-height: 420px;
    background: #f5faff;
}
/* Each slide by default is hidden; when active it becomes visible and uses flex layout */
.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    animation: fadeSlide 0.8s ease-in-out;
}
.hero-slide.active {
    display: flex;
}
@keyframes fadeSlide {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Inner container organizes content in two columns on desktop */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}
/* Textual content */
.hero-left {
    flex: 1;
    padding-right: 20px;
}
.hero-left h2 {
    font-size: 36px;
    color: #1c5a8a;
    margin-bottom: 15px;
}
.hero-left p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
.hero-left .btn {
    display: inline-block;
    padding: 10px 25px;
    background: #2674b3;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    /* Add spacing below the call-to-action so slider dots never overlap the button */
    margin-bottom: 30px;
}
.hero-left .btn:hover {
    background: #1c5a8a;
}
/* Image container */
.hero-right {
    flex: 1;
    text-align: right;
}
.hero-right img {
    max-width: 100%;
    height: 100%;
    /* Fill the available space with cropping for a more realistic appearance */
    object-fit: cover;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
    }
    .hero-inner {
        flex-direction: column-reverse;
        padding: 20px;
    }
    .hero-left, .hero-right {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .hero-right img {
        max-width: 80%;
        margin-bottom: 20px;
    }
    .hero-left h2 {
        font-size: 28px;
    }
    .hero-left p {
        font-size: 16px;
    }
}
.hero-dots {
    position: absolute;
    /* Position the navigation dots well below the call‑to‑action button on larger
     * screens.  Increasing the bottom offset keeps the dots from overlapping the
     * button or other content in the hero on mobile devices as well. */
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.hero-dots span {
    height: 12px;
    width: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dots span.active {
    background: #2674b3;
}

/*
 * On small screens the hero dots should not overlay the call‑to‑action button.  We move the
 * dots out of the absolutely positioned context so they appear beneath the hero
 * content and add spacing above to separate them from the button.  We also
 * center them horizontally for a balanced layout on mobile.
 */
@media (max-width: 768px) {
    .hero-dots {
        /* On mobile we remove absolute positioning so the dots appear beneath the
         * hero content and cannot overlap the call‑to‑action.  A generous
         * margin creates separation from the button. */
        position: static;
        margin-top: 20px;
        justify-content: center;
        transform: none;
    }
}

/* Services overview */
.services-overview {
    padding: 50px 0;
    background: #f5faff;
}
.services-overview .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.service-card {
    background: #fff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(33% - 20px);
    min-width: 260px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 40px;
    color: #2674b3;
    margin-bottom: 15px;
}
.service-card h3 {
    margin: 10px 0;
}

/* Products slider */
.products-section {
    padding: 50px 0;
}
.product-carousel {
    position: relative;
    overflow: hidden;
}
.product-card {
    background: #fff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 0 10px;
    width: 280px;
    flex: 0 0 auto;
    transition: transform 0.3s;
}
.product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}
.product-card h4 {
    margin: 15px 0 10px;
    font-size: 20px;
    color: #1c5a8a;
}
.product-card p {
    font-size: 14px;
    color: #555;
    height: 72px;
    overflow: hidden;
}
.product-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #2674b3;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}
.product-card a:hover { background: #1c5a8a; }
.product-carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.carousel-controls button {
    background: #2674b3;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.carousel-controls button:hover {
    background: #1c5a8a;
}

/* Booking callouts overlay */
.booking-container {
    /* Center callouts and allow wrapping when displayed as a standalone section */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
}
.booking-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1 1 260px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.booking-card i {
    font-size: 36px;
    color: #2674b3;
    margin-bottom: 12px;
}
.booking-card h3 {
    margin: 0 0 8px;
    color: #1c5a8a;
    font-size: 20px;
}
.booking-card p {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}
.booking-card .btn {
    display: inline-block;
    padding: 8px 18px;
    background: #2674b3;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}
.booking-card .btn:hover {
    background: #1c5a8a;
}
@media (max-width: 768px) {
    .booking-container {
        margin: 20px auto;
        justify-content: center;
    }
    .booking-card {
        flex: 1 1 100%;
        max-width: 320px;
    }
}

/* Booking forms */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 30px auto;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}
.booking-form textarea {
    min-height: 120px;
    resize: vertical;
}
.booking-form button {
    padding: 12px;
    background: #2674b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.booking-form button:hover {
    background: #1c5a8a;
}

/* Blog cards */
/* Blog section */
.blog-section {
    padding: 50px 0;
    background: #f5faff;
}
/* Blog carousel container */
.blog-carousel {
    position: relative;
    overflow: hidden;
}
.blog-carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}
/* Individual blog card */
.blog-card {
    background: #fff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    overflow: hidden;
    width: 280px;
    flex: 0 0 auto;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-card .content {
    padding: 15px;
}
.blog-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1c5a8a;
}
.blog-card p {
    font-size: 14px;
    color: #555;
    height: 60px;
    overflow: hidden;
}
.blog-card a {
    display: inline-block;
    margin-top: 10px;
    color: #2674b3;
    font-weight: bold;
}
.blog-card a:hover { text-decoration: underline; }

/* Blog card layout on full blog listing page */
.blog-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Clients section */
.clients-section {
    padding: 50px 0;
    background: #fff;
}
.clients-carousel {
    position: relative;
    overflow: hidden;
}
.clients-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}
.client-logo {
    flex: 0 0 auto;
    margin: 0 10px;
    text-align: center;
}
.client-logo img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.client-logo img:hover {
    filter: grayscale(0%);
}

/* Gallery grid */
.gallery-section {
    padding: 50px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.form-group textarea { resize: vertical; }
.btn-primary {
    background: #2674b3;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.btn-primary:hover { background: #1c5a8a; }

/* Booking section and cards */
.booking-section {
    padding: 40px 0;
    background: #fff;
}
.booking-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.booking-card {
    background: #fff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 280px;
    min-width: 240px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.booking-card i {
    font-size: 36px;
    color: #2674b3;
    margin-bottom: 12px;
}
.booking-card h3 {
    margin: 10px 0;
    color: #1c5a8a;
}
.booking-card p {
    font-size: 14px;
    color: #555;
    height: 50px;
    margin-bottom: 15px;
}
.booking-card a.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #2674b3;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Contact page info cards */
.contact-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.contact-card {
    flex: 1 1 calc(33% - 20px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5eef7;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.contact-card i {
    font-size: 32px;
    color: #2674b3;
    margin-bottom: 10px;
}
.contact-card h4 {
    margin: 10px 0 5px;
    color: #1c5a8a;
}
.contact-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Dashboard tabs and cards */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 10px 20px;
    background: #e5eef7;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.tab-btn.active {
    background: #2674b3;
    color: #fff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.dash-card {
    background: #f5faff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    flex: 1 1 calc(33% - 20px);
    min-width: 200px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dash-card h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #1c5a8a;
    text-transform: capitalize;
}
.dash-card p {
    font-size: 32px;
    color: #2674b3;
    margin: 0;
    font-weight: 700;
}
.dash-card a.manage-link {
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: #2674b3;
    font-weight: bold;
    font-size: 14px;
}
.dash-card a.manage-link:hover {
    text-decoration: underline;
}

/* Admin styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
/*
 * Admin panel styling
 * Modernize the sidebar with a softer gradient and larger paddings. Improve
 * readability by increasing font sizes slightly and using a lighter
 * background for the content area. Make the sidebar fixed but allow
 * scrolling if content overflows.
 */
.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1c5a8a 0%, #2674b3 100%);
    color: #fff;
    padding: 25px 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}
.admin-sidebar h2 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
    font-weight: bold;
}
.admin-sidebar a {
    display: block;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.2;
    transition: background 0.2s, padding-left 0.2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.15);
    padding-left: 18px;
}
/*
 * The main content area of the admin panel.  Use flexbox so that the footer can
 * stick to the bottom when content is short.  The margin‑left and width
 * calculations correspond to the sidebar width and adjust when the sidebar is
 * collapsed (see rule below).  The min‑height ensures the content area
 * stretches to fill the viewport height.
 */
.admin-content {
    display: flex;
    flex-direction: column;
    margin-left: 240px;
    padding: 30px;
    width: calc(100% - 240px);
    background: #f7fbff;
    min-height: 100vh;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.table th {
    background: #f5faff;
    color: #1c5a8a;
    font-weight: 600;
}
.table tr:nth-child(even) {
    background: #fbfcff;
}
.table tr:hover {
    background: #f0f5fa;
}
.actions a {
    margin-right: 8px;
}

/*
 * Sticky first column for tables.  When tables overflow horizontally on
 * smaller screens, the first column (usually the primary identifier
 * such as a name or ID) remains visible while scrolling.  A white
 * background ensures the sticky column remains legible when layered
 * over other table rows.  Adjust z-index to sit above other cells.
 */
.table th:first-child,
.table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

/* Sidebar collapse behavior for admin */
.admin-sidebar .toggle-btn {
    display: block;
    margin-bottom: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}
/*
 * When minimised, the admin sidebar collapses to occupy roughly ten
 * percent of the viewport width.  A minimum width ensures icons
 * remain legible.  Labels are hidden to maximise the area for
 * content.  This behaviour provides a more fluid, responsive
 * experience than the previous fixed pixel width.
 */
.admin-sidebar.collapsed {
    width: 10%;
    min-width: 60px;
}
.admin-sidebar.collapsed a {
    text-align: center;
    padding-left: 10px;
    /* Allow tooltip positioning */
    position: relative;
}
.admin-sidebar.collapsed a .label {
    display: none;
}
.admin-sidebar.collapsed h2 {
    display: none;
}
.admin-sidebar.collapsed .toggle-btn {
    text-align: center;
}
.admin-sidebar a i {
    margin-right: 8px;
}

/* When sidebar is collapsed, show labels as tooltips on hover */
.admin-sidebar.collapsed a:hover .label {
    display: inline-block;
    position: absolute;
    /* Position tooltip to the right of the collapsed menu; 100% offsets it
     * beyond the collapsed sidebar regardless of width */
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 90, 138, 0.95);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1001;
}

/*
 * When the sidebar is collapsed, adjust the content area accordingly.  The
 * immediate sibling combinator targets the .admin-content element that follows
 * the collapsed sidebar.  This ensures that tables and forms expand to fill
 * more of the horizontal space when the menu is minimised.
 */
/*
 * When the sidebar is collapsed the content area should expand to
 * occupy the remaining horizontal space.  Using percentage widths
 * ensures the layout responds gracefully to different screen sizes.
 */
.admin-sidebar.collapsed + .admin-content {
    margin-left: 10%;
    width: 90%;
}

/* Admin notifications */
.notifications {
    position: relative;
}

/* Generic bordered section used on public pages (About, Services, Products) to add left and right borders and breathing space */
/*
 * Bordered sections wrap content on interior pages to provide visual separation
 * from the page background and to ensure comfortable horizontal margins.  On
 * desktop we use a substantial padding; on mobile we slightly reduce the
 * padding while removing the decorative border lines to save space.
 */
/*
 * Bordered sections wrap the interior content of many public pages
 * (About, Services, Products, Blog, Gallery, etc.).  To enhance
 * readability, we increase the horizontal padding to match the
 * container values.  Decorative border lines are rendered on
 * desktops and tablets; they are removed on small screens to save
 * space while retaining the padding.
 */
/*
 * Bordered sections wrap the interior content of many public pages
 * (About, Services, Products, Blog, Gallery, etc.).  To enhance
 * readability, we increase the horizontal padding to match the
 * container values.  Decorative border lines are rendered on
 * desktops and tablets; they are removed on small screens to save
 * space while retaining the padding.  The large padding on
 * desktops ensures text does not approach the grey page edges.
 */
/*
 * Bordered sections on interior pages.  Remove the decorative
 * left/right borders entirely and rely solely on padding to create
 * breathing room.  This results in clean, full‑width sections with
 * adequate empty space on both sides.  Padding reduces on smaller
 * screens to maximise available space.
 */
/*
 * Interior page wrapper.  No decorative borders — just a small
 * margin on either side.  The padding matches the container so
 * that there is no additional visual column or border effect.
 */
/*
 * Bordered sections wrap interior page content (About, Services, Products,
 * Blog, Gallery, Contact, etc.) but we no longer show any decorative
 * border lines.  Instead we mirror the container’s percentage padding to
 * provide empty margin on both sides.  This creates an elegant “air
 * border” without adding visible lines.  On smaller screens the padding
 * is slightly reduced.  We avoid setting a background here so the
 * section inherits the page background colour.
 */
/*
 * Bordered sections wrap interior page content (About, Services, Products,
 * Blog, Gallery, Contact, etc.).  We remove any visible border lines and
 * rely solely on padding to create an “air border” on both sides.  The
 * horizontal padding matches the container values to maintain consistency.
 * Padding reduces slightly on smaller screens.  No background is set
 * here so sections inherit the page background colour.
 */
/*
 * Bordered sections wrap the main content on informational pages such as About,
 * Services, Products, Blog, Gallery and Contact.  We remove any visible
 * border lines and instead rely on the same generous horizontal padding as
 * the container to create a clearly visible “air border” on both sides.
 * This empty margin improves readability and gives the layout a polished
 * appearance.  On smaller screens the padding scales down in tandem with
 * the container.
 */
.bordered-section {
    border-left: none;
    border-right: none;
    padding-left: 8%;
    padding-right: 8%;
}

@media (max-width: 768px) {
    .bordered-section {
        padding-left: 6%;
        padding-right: 6%;
    }
}
.notifications .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

/* Enhance visibility of the notification bell in the admin dashboard */
.notifications i.fas.fa-bell {
    font-size: 24px;
    color: #1c5a8a;
    position: relative;
}
.notifications:hover i.fas.fa-bell {
    color: #2674b3;
}
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
    width: 260px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.notification-dropdown.show {
    display: block;
}
.notification-dropdown a {
    display: block;
    padding: 6px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}
.notification-dropdown a:last-child {
    border-bottom: none;
}
.notification-dropdown a:hover {
    background: #f5faff;
}

/*--------------------------------------*/
/* Custom additions for improved UX      */
/*--------------------------------------*/

/* Admin gallery grid for manage_gallery */
.gallery-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.gallery-admin-card {
    background: #fff;
    border: 1px solid #e5eef7;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.gallery-admin-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}
.gallery-admin-card p {
    margin: 10px 0 0;
    color: #333;
    font-size: 14px;
}
.gallery-admin-card .actions {
    margin-top: 8px;
    white-space: nowrap;
}
.gallery-admin-card .actions a {
    margin: 0 4px;
    color: #2674b3;
    font-size: 16px;
}

/* Admin footer style */
.admin-footer {
    text-align: center;
    /* When placed inside a flex column this auto margin pushes the footer to
     * the bottom of the viewport, making it sticky at the bottom when
     * content is shorter than the page height. */
    margin-top: auto;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

/* Responsive adjustments for admin panel */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        height: auto;
        padding: 15px;
    }
    .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    /* Make tables scrollable horizontally on small screens */
    .table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
    /* When collapsed on small screens, the sidebar should behave like a
     * regular mobile menu (full width) and not overlay the content. */
    .admin-sidebar.collapsed {
        width: 100%;
        min-width: 0;
    }
    .admin-sidebar.collapsed + .admin-content {
        margin-left: 0;
        width: 100%;
    }
}