/* General Body Styles */
body {
    background-image: url(/images/background.jpg);
    margin: 0;
    height: 100%;
}

.background-photo {
    width: 100%;
    height: 300px;
    background-image: url('/images/evidencecover.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}

/* Heading Styles */
h1, h2, h3, h4, h5 {
    text-align: center;
    color: black;
    font-weight: 600;
}

h1 {
    font-size: 4rem;
}

p {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: black;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    box-sizing: border-box;
    font-style: italic;
}

.lead {
    color: black;
    font-weight: 400;
}

.dotted-hr {
    border: none; /* Remove default border */
    border-top: 4px dotted black; /* Create a dotted line */
    height: 0; /* Remove default height */
    width: 100%; /* Full width */
    max-width: 1200px; /* Adjust as needed */
    margin: 20px auto; /* Center horizontally and add spacing */
}

/* Navbar Customization */ 
.navbar { 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body { padding-top: 120px; }
    .navbar-brand { font-size: 1.5rem; }
    .form { width: 100% !important; margin-top: 10px; }
}

/* Cards responsive example */
.card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .card { max-width: 90%; }
    .form-control, .btn { width: 100%; }
}

@media (max-width: 480px) {
    .navbar-nav { text-align: center; }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: lightgray;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    display: inline;
    z-index: 1000;
}

.scroll-to-top img {
    width: 50px;
    height: 50px;
    padding: 5px;
    border-radius: 50%;
}

form { margin-top: 20px; }

.btn-primary {
    background-color: tan !important;
    border-color: tan !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #e0cda9 !important;
    border-color: #e0cda9 !important;
    color: black !important;
}

.btn-outline-primary {
    color: white !important;
    border-color: #d2b48c !important;
    background-color: #d2b48c !important;
}

.btn-outline-primary:hover {
    color: black !important;
    background-color: #e0cda9 !important;
    border-color: #e0cda9 !important;
}

/* Footer Styles */
footer {
    font-size: 0.9rem;      /* slightly smaller text */
    color: black;            /* subtle gray color */
    text-align: center;
    padding: 15px 0;
}

footer span {
  font-size: 0.9rem;
}

/* Facebook footer icon */
footer img {
  width: 20px;
  height: 20px;
  border-radius: 6px; /* slight rounding if you want a soft edge */
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.1);
}

/* Footer spacing */
footer .nav {
  margin-top: 10px;
}


footer .text-body-secondary {
    font-size: 0.9rem;      /* match smaller size */
    padding-bottom: 0;
}

/* Card Styling */
.top-story .card, .featured .card {
    border-radius: 15px;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 2rem;
}

.top-story .card:hover, .featured .card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 25px rgba(0,0,0,0.4);
}

/* Text consistency inside cards */
.top-story .card-body p, .featured .card-body p {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    color: black;
    font-style: normal;
}

/* Make card body a flex container to align content */
.card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Center the Read More button without stretching */
.card .btn {
    align-self: center;
    margin-top: 15px;
    width: auto;
}

/* Sidebar */
.sidebar {
    background-color: #f2f2f2;
    min-height: 100vh;
    padding-top: 100px; /* push sidebar links down away from navbar */
}

.dashboard-sidebar a {
    color: #d2b48c;
    text-decoration: none;
    display: block;
    padding: 20px 65px 10px 60px;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dashboard-sidebar a:hover {
    background-color: #e0cda9;
    color: black;
}

/* Main Content */
.dashboard-main {
    background-color: #fff;
    padding-top: 125px; /* push main photo down away from navbar */
}

/* Card buttons centered */
.dashboard-main .card .btn {
    display: block;
    margin: 0 auto;
    margin-top: 15px;
    width: auto;
}

/* Headings */
.dashboard-main h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.dashboard-main p {
    font-size: 1.2rem;
    color: #333;
}

.dashboard-main .dashboard-photo {
    width: 100%;       /* fills container but not beyond */
    max-width: 800px;  /* caps width on large screens */
    height: auto;      /* maintain aspect ratio */
    border-radius: 10px;
    margin-bottom: 20px;
}


/* ==========================
   DASHBOARD SIDEBAR FIX
   ========================== */

/* Default / large screens */
.sidebar {
    background-color: #f2f2f2;
    min-height: calc(100vh - 80px); /* subtract navbar height */
    padding-top: 40px;              /* push links down a bit */
}

/* Medium screens (tablets and small laptops) */
@media (max-width: 991px) {
    .dashboard-sidebar {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 20px 0;
    }

    .dashboard-sidebar a {
        margin: 5px 10px;
        padding: 8px 20px;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-main img {
        width: 150px;
    }
}

/* Small screens (phones/tablets) */
@media (max-width: 768px) {
    .sidebar, .dashboard-sidebar {
        width: 100%;
        height: auto;      /* shrink to fit content */
        min-height: auto;  /* remove full viewport height */
        float: none;
        display: block;
        padding-top: 20px; /* spacing from navbar */
    }

    .dashboard-sidebar {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-sidebar a {
        font-size: 0.95rem;
        width: 90%;
        text-align: center;
        margin: 5px 0;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 15px;
        text-align: center;
    }

    .dashboard-main img {
        width: 120px;
    }

    h1 {
        padding-top: 20px; /* spacing from navbar */
        font-size: 1.5rem;
    }
}
