/* Custom styles for MYB Creations */
:root {
  --primary-color: #9e1506;
  --secondary-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #333;
  --light-text: #f8f9fa;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation */
.menu-wrapper {
  background-color: #d31e0b; /* Dark red background */
  border-bottom: 4px solid #9e1506; /* Darker red border at bottom */
  padding: 0;
  width: 100%;
}

.navbar {
  padding: 0;
  background-color: transparent !important;
}

.navbar-brand, .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 1rem 1.5rem !important;
  transition: background-color 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  padding-left: 0 !important;
}

.nav-link {
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link:focus:after,
.nav-link.active:after {
  width: 70%;
}

.nav-link:hover, 
.nav-link:focus,
.nav-link.active {
  background-color: #7a1004; /* Darker red on hover */
  text-decoration: none;
}

/* Mobile menu button */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  margin-right: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #7a1004;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem !important;
  }
  
  .nav-link:after {
    display: none;
  }
}

/* Banner */
.banner {
  margin-bottom: 2rem;
}

.banner img {
  width: 100%;
  height: auto;
  border: 3px solid #000;
}

/* Main content */
.main-content {
  padding: 0;
}

.artwork-image {
    margin: 5px;
    max-width: 50%;
    max-height: 350px;
}

.artwork-series {
    padding-bottom: 2rem;
}

/* News page specific styles */
.news-article {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.news-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.news-article .card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.news-article .card-body {
  padding: 2rem;
}

.news-article h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-article .card-text {
  color: #555;
  line-height: 1.7;
}

.news-article .text-muted {
  font-size: 0.9rem;
  font-style: italic;
}

.news-article img {
  transition: transform 0.3s ease;
  max-height: 250px;
  width: auto;
  object-fit: cover;
}

.news-article:hover img {
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .news-article .row > [class*='col-'] {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .news-article img {
    max-height: 200px;
    margin: 0 auto;
    display: block;
  }
}

/* Section headers */
h2.text-primary {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h2.text-primary:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #9e1506;
  text-decoration: underline;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

header {
  border-left: solid 5px #d31e0b;
}

header h1 {
  text-align: left;
  font-weight: 300 !important;
  padding-left: 15px;
  line-height: 1;
}

header p.lead {
  text-align: left;
  padding-left: 15px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #7a1004;
  border-color: #7a1004;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: white;
  margin-top: 3rem;
  padding: 0;
}

/* Footer Navigation */
.footer-navigation {
  background-color: #d31e0b; /* Same as header */
  border-bottom: 4px solid #9e1506; /* Same as header */
  padding: 0.5rem 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
}

.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-menu li {
  margin: 0 0.5rem;
}

.footer-menu a {
  color: white !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color 0.3s;
  display: block;
  position: relative;
}

.footer-menu a:hover,
.footer-menu a:focus {
  background-color: #9e1506; /* Slightly darker red on hover */
  text-decoration: none;
}

.footer-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-menu a:hover:after,
.footer-menu a:focus:after {
  width: 70%;
}

/* Footer bottom section */
.footer-bottom {
  padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .footer-menu {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-menu li {
    margin: 0.25rem 0;
  }
  
  .footer-menu a {
    padding: 0.5rem 0.5rem;
  }
}

.footer a {
  color: var(--light-text);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: none;
}

/* About page */
.profile-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Print styles */
@media print {
  .no-print, .navbar, .footer {
    display: none !important;
  }
  
  body {
    padding: 0;
    font-size: 12pt;
    line-height: 1.3;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}
