@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");

:root{
    --font-onest: "Onest", sans-serif;
    --primary-color: #057892;
    --primary-color-hover: #1095b3;
    --text-color: #333;
    --white-color: #FFF;
    --section-bg: #2C3034;
}


/* reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(230, 230, 230);
    font-family: var(--font-onest);
}

.text-white{
  color: white;
  padding: 1rem 1.5rem;
}

a{
    text-decoration: none;
    color: white;
}

h1{
    font-size: 2.5rem;
    font-weight: bolder;
}


iframe{
  width: 100%;
  height: 400px;
}

 img, iframe{
    object-position: center;
    object-fit: cover;
    transition: opacity 0.4s ease-in;
    border-radius: 7px;
    aspect-ratio: auto;
 }
 img:hover{
    opacity: 0.8;
 }

 #news{
    background-color: rgba(226, 226, 221, 0.85);
 }

 .news-top-nav{
  margin-top: 9.2rem;
}

.news-container{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding-inline: 3rem;
    padding-block: 1rem;
    background-color: rgba(226, 226, 221,0.86);
}


.left-container{
    width: 70%;
    padding: 1rem;
    background-color: white;
     border-radius: 6px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.right-container{
    width: 30%;
}

.heading{
    text-transform: uppercase;
    padding-block: 1rem;
}
.space{
    margin-top: 9.2rem;
}

.wrapper{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-height: 21rem;
    margin-bottom: 2rem;
}

.details-wrapper{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-img img{
    width: 20rem;
    height: 100%;
}

.details-news-img img{
    /*width: 58rem;*/
    /*max-height: 40rem;*/
     width: 100%;
  height: 100%;
  object-fit: contain; /* fills the frame but keeps proportions */
  border-radius: 20px;
  display: block;
}

.details-news-img{
    width: 100%;
  /*max-width: 800px;*/
  aspect-ratio: 3 / 2; /* 👈 landscape shape (600x400) */
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f5f5f5; /* optional neutral backdrop */
}

.news-paragraph{
    max-height: 5rem;
    overflow: hidden;
}


button{
    cursor: pointer;
    color: #FFF;
    margin-top: 0.1rem;
    border: none;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    transition: background 0.3s ease-out;
    border-radius: 7px;
}
button:hover{
    background-color: var(--primary-color-hover);
}

.search .input {
  width: 100%;
  background-color: #f5f5f5;
  color: #242424;
  padding: .15rem .5rem;
  min-height: 40px;
  border-radius: 4px;
  outline: none;
  border: none;
  line-height: 1.15;
  box-shadow: 0px 10px 20px -18px;
}

.search input:focus {
  border-bottom: 2px solid #5b5fc7;
  border-radius: 4px 4px 2px 2px;
}

.search input:hover {
  outline: 1px solid lightgrey;
}

.back-button {
  padding: 10px 20px;
  margin-top: 1rem;
  font-size: 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--primary-color-hover);
}

/* search on tablet screens */
@media (min-width: 768px) {
  #tablet-search{
    display: none;
  }
}


/* socials */
.socials{
    margin-top: 2rem;
}

.card {
  width: 100%;
  height: fit-content;
  background-color: rgb(238, 238, 238);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 25px;
  gap: 20px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.055);
}

/* for all social containers*/
.socialContainer {
  width: 52px;
  height: 52px;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: .3s;
}
/* instagram*/
.containerOne:hover {
  background-color: #d62976;
  transition-duration: .3s;
}
/* twitter*/
.containerTwo:hover {
  background-color: #00acee;
  transition-duration: .3s;
}
/* linkdin*/
.containerThree:hover {
  background-color: #0072b1;
  transition-duration: .3s;
}
/* Whatsapp*/
.containerFour:hover {
  background-color: #128C7E;
  transition-duration: .3s;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: .3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.post{
    margin-block: 1.8rem;
    background: white;
    padding: 1rem;
    border-radius: 7px;
}

.post-heading{
    color: #f5f5f5;
    padding: 0.5rem;
    background: #242424;
    border-radius: 7px;
}

.partners{
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3,auto);
    gap: 0.4rem;
}

.partners img{
  object-fit: contain;
  width: 130px;
}

.partners img, .mini-news img{
    cursor: pointer;
    height: 100%;
    border-radius: 7px;
}

.mini-news img{
  width: 90px;
}


.mini-news{
    margin-top: 0.5rem;
    display: flex;
    align-items: anchor-center;
    gap: 0.6rem;
    cursor: pointer;
    background-color: white;
    transition: background 0.3s ease-in;
}

.mini-news:hover{
  background-color: #eaeaea;
}


.mini-news p{
  color: #2C3034;
  font-weight: bold;
}

.btn-share {
  background-color: #28a745;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(40, 167, 69, 0.2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-share:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

.btn-copy-link {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-copy-link:hover {
  background-color: #0056d2;
  transform: translateY(-1px);
}

/* tablet design */
@media (max-width: 780px) {
  .right-container{
    display: none;
  }
  .left-container{
    width: 100%;
  }
}

@media (max-width: 430px) {
  .news-container{
    padding-inline: 0.8rem;
  }
  .wrapper{
    flex-direction: column;
    max-height: 100%;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
  }
  .news-img img{
    width: 100%;
  }
  .details-news-img img{
    width: 100%;
  }
}

/* Pagination container */
.pagination {
  margin: 20px 0;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Pagination links */
.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  color: #007bff;          /* blue link color */
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Hover effect */
.pagination a:hover {
  background-color: #e9ecef;
  border-color: #007bff;
  color: #0056b3;
}

/* Current active page */
.pagination .current {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  border-radius: 4px;
  cursor: default;
}

/* Disabled previous/next (if you add that later) */
.pagination a.disabled,
.pagination a[aria-disabled="true"] {
  color: #6c757d;
  pointer-events: none;
  border-color: #ddd;
}


