﻿.main-logo {
    display: flex;
    justify-content:flex-end;
    gap: 20px;
    max-width: 100%;
    padding: 20px;
}

#navholder {
    background-color: #0b4687;
}

.main-logo img {
    max-width: 100%;
    height: 75px;      
}

.nav-link {
    color: #ffffff;
    height:40px;
    font-weight: bold;
    margin-right:30px;
}

.nav-link:hover {
    color: #ffffff;
    border-bottom: 5px solid white;
}

.section1 {
    padding-top:50px;
    padding-bottom:50px;
}

.jumbotron {
    height: 250px;
    background-image: url(img/bay_of_curden.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0px 0px 10px 10px;
}

.jumbotron2 {
    height: 200px;
    background-image: url(img/fraserburgh_bay.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0px 0px 10px 10px;
}

.jumbotron3 {
    height: 250px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0px 0px 10px 10px;
}

.jumbotext {
    padding-top: 50px;
    padding-bottom: 50px;
    color:#ffffff;
}
.overlay {
    background-image: linear-gradient(to right, #012954, #012954b5);
    height: 100%;
    border-radius: 0px 0px 10px 10px;
}

.overlay2 {
    background-color: #012954;
    height: 100%;
    border-radius: 0px 0px 10px 10px;
}

.cardlinks {
    padding-top: 20px;
    padding-bottom: 80px;
    
}

.lowersection {
    padding-top: 50px;
    padding-bottom: 100px;
}

#accordion {
    padding-top: 50px;
    padding-bottom: 50px;
}

.accordion-item{
    border-color:#ffffff;
    padding:20px;
}

.accordion-button {
    background-color: #ffffff;
    color: #0b4687;
    font-weight: bold;
    text-decoration:underline;
}

.accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: #0b4687;
    text-decoration:none;
    font-weight:bold;
}

.footertext {
    background-color: #0b4687;
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align:center;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    border-color: #ffffff;
    padding: 20px;
    color: #0b4687;
  
}

.card:hover {
    color: #ebc400;
    background-color: #0b4687;
    transform: scale(1.02);
    transition: transform 0.8s ease;
    box-shadow: 0 5px 25px rgba(0,0,0, 0.5);
    text-decoration:none;    
}

.card-body {
    text-align:center;
    font-weight:bold;
}

h2,  h3 {
    color: #0b4687;
}

p {
    padding: 10px 0px 10px 0px;
}

.display-4 {
    font-weight: bold;
 }

#pageimage {
    width:100%;
    border-radius: 10px;
    height:auto;
}

#pageimage-small {
    width: 65%;
    border-radius: 10px;
    height: auto;
    display: block;
    margin: auto;
}

#pageimage:hover {
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

.lightbg {
    background-color:#ffffff;
}

.colorbg {
    background-color: #F6F9FC;
}

.darkbg {
    background-color: #0b4687;
}

#accstyle {
    border-radius:10px;
}

.nav-link.active{
    color:#fff;
    background-color:#ebc400;
    border-radius:10px;
}

@media (max-width:991.98px) {

    .nav-link {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    .main-logo img {
        max-width: 100%;
        height: 50px;
    }

}

.navbar-toggler {
    background-color:#ffffff;
    margin:10px;
  }

.navbar-toggler:hover {
    background-color: #ebc400;
    transform: scale(1.02);           
  }

.alert {
    margin-top:60px;
    margin-bottom:60px;
    padding-top:60px;
    padding-bottom:60px;
    font-weight:bold;
    font-size:36px;
}

#pdf-texts {
    margin-top: 40px;
}

/* Base PDF card styling */
.pdf-card {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    padding: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover: scale and add border */
.pdf-card:hover {
    transform: scale(1.02);
    border-color: #0b4687;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
}

/* Title (link inside h5) — default and hover */
.pdf-card .card-title a {
    color: #0b4687 !important;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Keep title consistent on hover/focus */
.pdf-card:hover .card-title a,
 .pdf-card .card-title a:focus {
    color: #0b4687 !important;
    text-decoration: underline;
    font-weight: 700;
}

/* Paragraph text — normal weight */
.pdf-card .card-text {
    color: #1a1a1a !important;
    font-weight: normal !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: initial !important;
}


/* Button container spacing */
.pdf-card .d-flex.gap-2 {
    gap: 1rem;
    justify-content: center;
}

/* Base button appearance */
.pdf-card .btn-primary{
    background-color: #0b4687;
    color: #ffffff;
}
.pdf-card .btn-outline-primary {
    color: #0b4687;
    border-color: #0b4687;
    background-color: transparent;
    transition: all 0.3s ease;
    transform: scale(1);
}

/* Button hover (individual) — scale only */
.pdf-card .btn-primary:hover,
 .pdf-card .btn-outline-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pdf-card .card-img-top {
    width: 30%; 
    margin: 0 auto;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.back-to-top {
    color: #0b4687;
    border-color: #0b4687;
    margin-bottom:20px;
}

.back-to-top:hover {
    background-color: #0b4687;
    color: #ffffff;
    border-color: #0b4687;
}

.nav-link:focus {
    color: #ffffff !important;
    background-color: transparent;
    border-bottom: 5px solid white;
    outline: 2px solid #ffffff; 
    outline-offset: 2px; 
    border-radius: 0; 
}
