/* Absa Brand Guidelines CSS */

/* Color definitions based on Absa brand guidelines */
:root {
  /* Primary colors */
  --hope: #95052A;      /* 149R 5G 42B - Primary web color */
  --passion: #DC0037;   /* 220R 0G 55B - Primary brand color */
  --power: #85022C;     /* 181R 2G 50B */
  --inspire: #77021E;   /* 119R 2G 30B */

  /* Accent colors */
  --energy: #FF780F;    /* 255R 120G 15B */
  --uplift: #F93F24;    /* 249R 63G 36B */

  /* Neutral colors */
  --serene: #FFFFFF;    /* 255R 255G 255B - White */
  --grey-04: #E8E8E8;   /* 248R 240G 240B - Light Grey */
  --grey-08: #ECE9E9;   /* 206R 206G 201B */
  --grey-24: #C7C7C2;   /* 199R 199G 194B */
  --grey-40: #9F9F9F;   /* 159R 159G 159B */
  --grey-60: #6B6B6B;   /* 104R 107G 102B */
  --grey-72: #424849;   /* 74R 72G 73B */
  --enrich: #131010;    /* 19R 16G 16B - Black */

  /* Feedback/status colors */
  --error-text: #95052A;
  --error-accent: #DC0037;
  --error-surface: #FDACB9;
  --positive-text: #00611D;
  --positive-accent: #3EC157;
  --positive-surface: #CFE5D7;
  --info-text: #1F4993;
  --info-accent: #3F77C2;
  --info-surface: #DBE2F0;
  --warning-text: #874B3F;
  --warning-accent: #F94B0F;
  --warning-surface: #FEC598;
}

/* Base styles */
body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--grey-60);
  background-color: var(--serene);
  font-size: 16px;
}

/**/

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--hope);
}

a {
  color: var(--hope);
  transition: .3s all ease;
}

.hyperlink {
  text-decoration: underline;
  color: var(--hope);
}

a:hover {
  color: var(--passion);
  text-decoration: none;
}

/* Button styles */
.btn {
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 700;
  border-width: 2px;
  border-radius: 50px; /* You can adjust this value as needed */
  padding: 10px 20px;
}

.btn-primary {
  background-color: var(--hope);
  border-color: var(--hope);
  color: var(--serene);
  border-radius: 50px; /* You can adjust this value as needed */
}


/* Outline button style - for secondary actions */
.btn-outline-light {
  background-color: transparent;
  border-color: var(--serene);
  color: var(--serene);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: var(--serene) !important;
  border-color: var(--serene) !important;
  color: var(--hope) !important;
}

/* Form control styling */
.form-control {
  height: 45px;
  border-radius: 4px;
  background: var(--serene);
  border: 1px solid var(--grey-24);
  color: var(--grey-72) !important;
}

.form-control:active,
.form-control:focus {
  border-color: var(--hope);
  box-shadow: 0 0 0 0.2rem rgba(149, 5, 42, 0.25);
}

select.form-control {
  background-color: var(--serene);
  color: var(--grey-72);
}

select.form-control option {
  background-color: var(--serene);
  color: var(--grey-72);
}

/* Header styling */
.site-navbar {
  background-color: var(--hope);
}

.site-logo a {
  color: var(--serene);
}

.site-navbar .site-navigation .site-menu > li > a {
  color: var(--serene);
}

.site-navbar .site-navigation .site-menu > li > a:hover {
  color: var(--grey-04);
}

.site-navbar .site-navigation .site-menu .active > a {
  color: var(--serene);
  font-weight: bold;
}

.site-navbar .site-navigation .site-menu .has-children .dropdown {
  border-top: 2px solid var(--hope);
}

/* Footer styling */
.footer-section {
  background-color: var(--grey-08);
  color: var(--enrich);
  padding: 70px 0 30px;
}

.footer-section h3 {
  color: var(--enrich) !important;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-section ul.links a {
  color: var(--grey-72) !important;
}

.footer-section ul.links a:hover {
  color: var(--hope) !important;
}

/* Background classes */
.bg-primary {
  background-color: var(--hope) !important;
}

.bg-secondary {
  background-color: var(--passion) !important;
}

.bg-accent {
  background-color: var(--energy) !important;
}

.bg-neutral {
  background-color: var(--grey-24) !important;
}

.bg-dark {
  background-color: var(--grey-72) !important;
}

.bg-light {
  background-color: var(--grey-04) !important;
  border-radius: 8px;
}

/* Text colors */
.text-primary {
  color: var(--hope);
}

.text-primary2 {
  color: var(--enrich) !important;
}

.text-enrich {
  color: var(--enrich) !important;
}

.text-secondary {
  color: var(--passion) !important;
}

.text-accent {
  color: var(--energy) !important;
}

.text-light {
  color: var(--serene) !important;
}

.text-dark {
  color: var(--grey-72) !important;
}

/* Special sections */
.hero {
  background-color: var(--hope);
  color: var(--serene);
  position: relative;
  padding: 80px 0;
}

/* Enhanced Hero Section with Absa Guidelines */
.hero-content {
  padding: 30px 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.hero-buttons .btn {
  text-transform: capitalize;
  border-radius: 50px; /* You can adjust this value as needed */
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 0;
  }

  .hero-content {
    text-align: center;
    padding: 20px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

.section-heading {
  color: var(--enrich);
  margin-bottom: 30px;
  text-align: left !important;
  position: relative;
  display: inline-block;
  padding-left: 0;
  margin-left: 0;
}

.section-heading:after {
  content: "";
  display: block;
  margin-top: 8px;
  width: 60px;
  height: 3px;
  background-color: var(--grey-24);
  margin-left: 0; /* Ensure it starts flush left */
}



.black {
  color: var(--enrich) !important;
  text-align: left;
}

.white {
  color: var(--serene) !important;
  text-align: left;
}

/* Grid System Enhanced for Absa Guidelines */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

/* 12-column grid system */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px; /* Desktop 1440px layout with proper margins */
  }
}

/* Layout patterns based on Absa guidelines */
.two-column-layout > .col,
.two-column-layout > [class*="col-"] {
  margin-bottom: 30px;
}

.three-column-layout > .col,
.three-column-layout > [class*="col-"] {
  margin-bottom: 30px;
}

.four-column-layout > .col,
.four-column-layout > [class*="col-"] {
  margin-bottom: 30px;
}

/* Card styling - Updated for Absa Guidelines */
.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--hope);
  color: var(--serene);
  border-bottom: none;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--grey-04);
  border-top: 1px solid var(--grey-08);
  padding: 1rem 1.5rem;
}

/* Tile layout for consistent card displays */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.tile {
  background-color: var(--serene);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tile-header {
  padding: 20px;
  background-color: var(--hope);
  color: var(--serene);
}

.tile-body {
  padding: 20px;
}

.tile-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--grey-04);
  background-color: var(--serene);
}

/* Apply the 30% color to 70% neutrals ratio guidelines */
.color-ratio-container {
  background-color: var(--serene);
  color: var(--grey-60);
}

.color-accent {
  color: var(--hope);
}

/* High contrast elements for accessibility */
.high-contrast-text {
  color: var(--serene);
  background-color: var(--hope);
  padding: 10px;
  border-radius: 4px;
}

/* Media styling */
.custom-media .text h3 a {
  color: var(--hope);
}

.custom-media .text h3 a:hover {
  color: var(--passion);
}

/* Form submit button styling */
.form-submit-btn {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 50px; /* You can adjust this value as needed */
}

/* Fieldset and legend styling */
fieldset {
  /*border: 1px solid var(--grey-24);*/
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 50px; /* You can adjust this value as needed */
}

legend {
  width: auto;
  /*padding: 0 10px;*/
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--hope);
}

/* Table styling */
.custom-table {
  margin-bottom: 30px;
}

.custom-table thead th {
  color: var(--serene);
  font-weight: 600;
  padding: 15px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.custom-table tbody td {
  padding: 15px;
  border-bottom: 1px solid var(--grey-08);
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: var(--hope); /* Absa red */
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  width: 60.8px;
  height: 60.8px;
  font-size: 24px;
  z-index: 999;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--serene);
}

 /* Section heading with Absa styling */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--enrich);
    position: relative;
}

.section-heading::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--grey-24);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Gallery-specific styles with Absa branding */
.year-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--hope);
    color: var(--hope);
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 50px; /* You can adjust this value as needed */
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--hope);
    color: var(--serene);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 5, 42, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 250px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(149, 5, 42, 0.9));
    color: var(--serene);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--serene);
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--serene);
}

/* Modal Styles with Absa branding */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 16, 16, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--serene);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 20px;
    background: var(--serene);
}

.modal-info h3 {
    margin: 0 0 10px 0;
    color: var(--hope);
    font-weight: 700;
}

.modal-info p {
    margin: 0;
    color: var(--grey-60);
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--hope);
    transition: all 0.3s ease;
    border-radius: 50px; /* You can adjust this value as needed */
}

.close-btn:hover {
    background: var(--serene);
    transform: scale(1.1);
}

.year-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(149, 5, 42, 0.9);
    color: var(--serene);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Background classes */
.bg-light {
    background-color: var(--grey-04) !important;
    border-radius: 8px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(149, 5, 42, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50px; /* You can adjust this value as needed */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.nav-btn:hover {
    background: rgba(149, 5, 42, 1);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    background: rgba(149, 5, 42, 0.3);
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn {
    left: 20px;
    border-radius: 50px; /* You can adjust this value as needed */
}

.next-btn {
    right: 20px;
    border-radius: 50px; /* You can adjust this value as needed */
}

.hero.overlay.history {
    background-image: url("../../gallery/about_hero.png");
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }

    .hero.overlay.history {
        background-image: url("../../gallery/about_hero.png");
    }


    .hero-content {
        text-align: center;
        padding: 20px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }
}
