@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #a46497;
  --color-primary-dark: #8a4b7d;
  --color-secondary: #092032;
  --color-text: #414f5a;
  --color-bg-light: #f4f6f8;
  --color-white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-md: 10px;
  --radius-lg: 20px;
}

body {
  font-family: "Barlow", sans-serif;
  line-height: 1.7;
  color: var(--color-text);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

li a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.4s;
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.bg-cover {
  background-position: center !important;
  background-size: cover !important;
  background-position: center !important;
}

/* NAVAR BAR*/
.top-nav {
  background-color: #a46497;
  padding-top: 5px;
  padding-bottom: 5px;
}

.top-nav p {
  margin-bottom: 0;
  display: inline-block;
  margin-right: 16px;
  color: white;
}

.top-nav i,
.top-nav span {
  vertical-align: middle;
}

.social-links a {
  width: 34px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffffff;
  font-size: 20px;
  border-radius: 100%;
}

.social-links a:hover {
  background-color: #fff;
  color: #a46497;
}

a:hover {
  background-color: #fff;
  color: #a46497;
}

.navbar {
  box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #a46497;
}

.navbar-brand {
  font-weight: 700;
  font-size: 26px;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BTN */
.btn {
  padding: 9px 24px;
  font-weight: 500;
}

.btn-brand {
  background-color: #404040;
  color: #ffffff;
  border-color: #404040;
}

.btn-brand:hover {
  color: #ffffff;
  background-color: #a46497;
}

/* SLIDER */
.slide1 {
  background: linear-gradient(rgba(9, 32, 50, 0.4), rgba(9, 32, 50, 0.4)), url(../img/background1.jpg);
}

.slide2 {
  background: linear-gradient(rgba(9, 32, 50, 0.4), rgba(9, 32, 50, 0.4)), url(../img/background2.jpg);
}

/* OWL CAROUSEL */
.owl-prev,
.owl-next {
  position: absolute;
  top: 50%;
  width: 60px !important;
  height: 60px !important;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2) !important;
  margin-top: -30px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border-radius: 100px !important;
}

.owl-prev {
  left: 0;
}

.owl-next {
  right: 0;
}

.owl-next:hover,
.owl-prev:hover {
  background-color: #a46497 !important;
}

/* MILESTONE */
#milestone {
  background: linear-gradient(rgba(169, 100, 151, 0.9), rgba(169, 100, 151, 0.9)), url(../img/background3.jpg);
}

#milestone .display-4,
#milestone p {
  color: #ffffffff;
}

#milestone .display-4 {
  font-weight: 700;
}


/* CARDS */
.custom-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #eee;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.news-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  display: block;
  color: var(--color-secondary);
}

.news-link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* BABILLARD */
.notice-board {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 25px;
}

.notice-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.notice-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.notice-date-box {
  background: var(--color-bg-light);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
  color: var(--color-secondary);
}

.notice-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.notice-month {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.notice-content h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.notice-content p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #666;
}

.notice-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* CMS IMAGES & LOGOS */
.cms-img {
  width: auto;
  height: auto;
  object-fit: initial;
  border-radius: 0;
  /* Square/Rectangular as requested */
}


.chef-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.chef-info p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/*-------------------------- FEATURES -----------------------------*/

.services {
  padding: 60px 0;
}

.services .service-item {
  padding: 40px;
  background: #fff;
  height: 100%;
  border-radius: 10px;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: var(--color-default);
  font-size: 56px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: #eeeeee;
  border-radius: 50px;
  z-index: 1;
  top: 10px;
  right: -20px;
  transition: 0.3s;
}

.services .service-item h3 {
  color: var(--color-default);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid #eeeeee;
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item .readmore {
  margin-top: 15px;
  display: inline-block;
  color: var(--color-primary);
}

.services .service-item:hover .icon:before {
  background: #00b6a1;
}

.services .service-item:hover h3 {
  border-color: var(--color-primary);
}

.contact .info-container {
  background-color: var(--color-primary);
  height: 100%;
  padding: 20px;
  border-radius: 10px 0 0 10px;
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
}

/*---------------------- CONTACT ---------------------------*/
.contact .info-container {
  background-color: var(--color-primary);
  height: 100%;
  padding: 20px;
  border-radius: 10px 0 0 10px;
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
}


.contact .info-item {
  width: 100%;
  background-color: #a46497;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #965a8a;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item i {
  font-size: 20px;
  color: #fff;
  float: left;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: #fff;
  color: var(--color-primary);
  transform: rotate(360deg);
}

.contact .php-email-form {
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 0 10px 10px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
}

.contact .php-email-form:hover {
  transform: translateY(-5px);
  /* Gentle lift */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  /* Deep shadow */
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #df1529;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

/* QUICK ACCESS SECTION */
.quick-access-section {
  position: relative;
  z-index: 2;
  padding-top: 0 !important;
}

/* Overlap only on desktop */
@media (min-width: 992px) {
  .quick-access-section {
    margin-top: -80px;
  }
}

/* No overlap on mobile/tablet */
@media (max-width: 991px) {
  .quick-access-section {
    margin-top: 0;
    padding-top: 40px !important;
    background: var(--color-bg-light);
  }
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #059652;
  border-top-color: #fff;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(164, 100, 151, 0.2);
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 14px 45px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact .php-email-form button[type=submit]:hover {
  background: #8a4b7d;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* CMS IMAGES & LOGOS */
/* Moved above */

.cms-logo {
  height: 80px;
  /* Reduced from 120px */
  width: auto;
}

.cms-logo.footer-logo {
  height: 120px;
  /* Reduced from 160px */
}

/*-------------------------- footer -----------------------------*/
.footer {
  font-size: 14px;
  background: linear-gradient(180deg, #a46497 0%, #8a4b7d 100%);
  /* Dynamic Gradient */
  padding: 60px 0;
  color: white;
  position: relative;
  margin-top: auto;
}

.footer .footer-info .logo {
  line-height: 0;
  margin-bottom: 25px;
  background: transparent !important;
  /* Fix for generic a:hover */
}

.footer .footer-info .logo:hover {
  background: transparent !important;
  color: white !important;
}

.navbar .container .logo {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.footer .footer-info .logo span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  font-family: var(--font-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for sharpness */
}

.footer .footer-info p {
  font-size: 15px;
  /* Slightly larger */
  font-family: var(--font-primary);
  opacity: 0.9;
  /* More opaque */
  line-height: 1.8;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  /* Larger targets */
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* Sharper border */
  font-size: 18px;
  color: #fff;
  margin-right: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.footer .social-links a:hover {
  color: #a46497;
  background: #fff;
  border-color: #fff;
  transform: translateY(-5px) scale(1.1);
  /* Dynamic pop */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  color: #fff;
  /* White icon */
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.85);
  /* Whiter text */
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  font-weight: 500;
}

.footer .footer-links ul a:hover {
  color: #fff;
  padding-left: 8px;
  /* Slide effect */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer .footer-contact p {
  line-height: 26px;
  opacity: 0.9;
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.8;
}

.footer .credits {
  padding-top: 4px;
  text-align: center;
  font-size: 13px;
}

.footer .credits a {
  color: #fff;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Direction Page Custom Styles
--------------------------------------------------------------*/
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-wrap h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title-wrap h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  bottom: 0;
  left: calc(50% - 25px);
}

.jury-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.jury-card .card-header {
  border-bottom: 0;
  font-weight: 600;
  padding: 15px;
  background: var(--color-primary);
  color: white;
}

.jury-card .card-body {
  padding: 20px;
}

.jury-member {
  margin-bottom: 12px;
}

.jury-member:last-child {
  margin-bottom: 0;
}

.jury-label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jury-name {
  display: block;
  font-weight: 600;
  color: var(--color-default);
}

/* RESPONSIVE FIXES */
@media (max-width: 991px) {
  .navbar-brand span {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .top-nav {
    text-align: center;
  }

  .top-nav .col-auto {
    width: 100%;
    margin-bottom: 5px;
  }

  .contact .info-container {
    border-radius: 10px 10px 0 0;
  }

  .contact .php-email-form {
    border-radius: 0 0 10px 10px;
  }

  .notice-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .cms-logo {
    height: 60px;
  }
}