@import url("./styles.css");

header {
    background-color: var(--black);
    width: 100%;
    position: relative;
}
header:before {
    content: " ";
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    min-height: 500px;
    z-index: -1;
    background-color: var(--black);
}
.headerContainer {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: var(--padding);
}
.headerContainer .top {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.logo {
    color: var(--white);
    font-size: 48px;
    font-family: segoe-bold;
    text-decoration: none;
    line-height: 64px;
}
.search{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 60%;
}

.search input {
    background-color: var(--green);
    border: 0;
    color: var(--white);
    height: 40px;
    font-size: var(--standard-font-size);
    line-height: 1em;
    padding: 10px 40px 10px 20px;
    max-width: 630px;
    width: 100%;
    display: block;
    outline: none;
}
.searchForm {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.searchInput {
    background-color: var(--white);
    border: 0;
    border-bottom: 1px solid var(--black);
    color: var(--black);
    height: 40px;
    font-size: var(--standard-font-size);
    line-height: 1em;
    padding: 10px;
    max-width: 630px;
    width: 100%;
    display: block;
    outline: none;
    margin-right: 10px;
}
.searchInput:active{
    border-color: var(--green);
}
.searchInput:focus{
    border-color: var(--green);
}
.second_searchBtn {
    background-color: var(--black);
    padding: 4px 30px;
    border: 0;
    font-family: segoe-semi-bold;
    font-size: 20px;
    color: var(--white);
    line-height: 32px;
    transition: var(--transition);
    cursor: pointer;
}
.second_searchBtn:hover {
    opacity: 1;
    background-color: var(--green);
}

.searchBtn {
    background-color: #8e4042;
    padding: 4px 30px;
    border: 0;
    font-family: segoe-semi-bold;
    font-size: 20px;
    color: var(--white);
    line-height: 32px;
    transition: var(--transition);
    cursor: pointer;
}
.searchBtn:hover {
    opacity: 1;
    background-color: var(--secondary-color);
}
.search input::placeholder {
    color: #f7f7f459;
}
.searchInput::placeholder {
    color: #f7f7f459;
}
.bottom {
    background-color: var(--darkGrey);
    padding: var(--padding);
    display: flex;
}
.link {
    padding: 17px 20px;
    color: var(--white);
    font-size: var(--standard-font-size);
    font-family: segoe-semi-bold;
    line-height: 1.05em;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.link.active {
    background-color: var(--green);
}
.link:hover {
    background-color: var(--green);
}

footer {
    background-color: var(--black);
    padding: 60px 0;
}
.footerContainer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: var(--padding);
    gap: 24px 20px;
}
.copyrights {
    text-align: center;
    padding: var(--padding);
    color: var(--white);
    font-size: var(--standard-font-size);
    line-height: var(--standard-line-height);
    text-decoration: none;
    margin-top: 30px;
    border-top: 1px solid var(--white);
    padding-top: 20px;
}
.pages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footerLinks {
    color: var(--white);
    font-size: var(--standard-font-size);
    font-family: segoe-bold;
    line-height: 1.05em;
    text-decoration: none;
    transition: var(--transition);
}
.footerLinks:hover {
    color: var(--green);
}
footer .logo {
    line-height: 40px;
}
.privacyLinks {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.privacyLink {
    color: var(--white);
    font-size: var(--standard-font-size);
    line-height: 1.05em;
    text-decoration: none;
    transition: var(--transition);
}
.privacyLink:hover {
    color: var(--green);
}
main {
    min-height: calc(100vh - 460px);
}

.firstPanel {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--white);
    padding: 0 0 25px 13px;
    display: flex;
    flex-wrap: wrap;
}
.firstPanel .left {
    padding: 25px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 50%;
}
.panelLink {
    width: 100%;
    position: relative;
}
.panelLink h2,
.panelLink h5 {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    color: var(--white);
    padding: 0 25px;
    transition: var(--transition);
    z-index: 3;
}
.panelLink .standartWide::before {
    padding-bottom: 60%;
}
.panelLink h5 {
    padding: 0 15px;
}
.panelLink:hover h2,
.panelLink:hover h5 {
    color: var(--hover-color);
}
.panelLink:hover img {
    transform: scale(1.05);
}
.firstPanel .right {
    padding: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 50%;
}
.darkBlock {
    background-color: var(--darkGrey);
    padding: 0 25px 25px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap-reverse;
}
.darkBlock p {
    color: var(--white);
    font-size: var(--standard-font-size);
    line-height: var(--standard-line-height);
    padding-right: 20px;
    padding-top: 10px;
    width: 40%;
}
.darkBlock .panelLink {
    width: 60%;
}

.newsSection {
    max-width: var(--container);
    width: 100%;
    margin: 25px auto;
    padding: var(--padding);
    display: flex;
    gap: 3%;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.news {
    width: 64%;
}
.sectionTitle {
    display: flex;
    gap: 25px;
    align-items: center;
    white-space: nowrap;
}
.sectionTitle .line {
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.newsArticles {
    margin-top: 25px;
}
.newsArticles > div {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.newsArticle {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    justify-content: space-between;
    width: calc(50% - 12px);
    color: inherit;
    background-color: var(--white);
}

.searchContainer .newsArticle{
    width: calc(33.33333% - 12px);

}
.newsArticle .standartWide2 {
    width: 100%;
}
.articleInfo {
    background-color: var(--white);
    padding:0 12px 12px;
}
.articleInfo .authors {
    margin-top: 12px;
    padding-top: 5px;
    border-top: var(--border-bottom);
}
.articleInfo .greenText {
    margin-top: 12px;
}

.newsArticle h3 {
    padding: 12px 12px 0;
    transition: var(--transition);
}
.newsArticle:hover h3 {
    color: var(--link-color);
}
.newsArticle:hover img {
    transform: scale(1.1);
}
.trendingNews {
    background-color: var(--white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 0 0 33%;
}
.trendingHeadline {
    display: flex;
    padding: 16px 0;
    gap: 2%;
    border-bottom: var(--border-bottom);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.trendingHeadline:last-child {
    border: none;
}
.trendingHeadline h5 {
    transition: var(--transition);
}
.trendingHeadline:hover h5 {
    color: var(--link-color);
}
.trendingHeadline:hover .largeWide img {
    transform: scale(1.05);
}
.trendingHeadline .largeWide {
    width: 33%;
}
.trendingInfo {
    display: flex;
    width: 65%;
    flex-direction: column;
    justify-content: space-between;
}
.authors p {
    color: var(--light-grey);
    font-size: 12px;
    line-height: 1em;
}

.authors {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.aboutContainer {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 25px 16px;
    background-color: #f3f2ea;
    z-index: 222;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.imagePanel {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 5%;
}
.imagePanel .standartWide2 {
    width: 45%;
}
.panelInfo {
    width: 50%;
}
.weAre {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weAre h3 {
    margin: 10px 0 5px;
}

.privacyContainer {
    margin-top: 20px;
}
.privacyList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style-position: inside;
    font-size: var(--large-font-size);
    line-height: var(--large-line-height);
}
.privacyList p {
    text-indent: 20px;
}

.greenTextP {
    color: var(--primary-color);
    font-size: 20px;
    line-height: var(--large-line-height);
    font-weight: 600;
    margin-bottom: 20px;
}
.privacyList > li {
    font-size: var(--large-font-size);
    line-height: var(--large-line-height);
    font-weight: bold;
}
.privacyList ol {
    padding-left: 30px;
    list-style-position: inside;
}
.privacyList ol > li {
    font-weight: bold;
}
.privacyList ul {
    list-style-type: disc;
    list-style-position: inside;
    text-indent: 30px;
    padding-left: 10px;
}
.privacyList ul li {
    font-size: var(--standart-font-size);
    line-height: var(--standart-line-height);
}

.privacyList ol p {
    text-indent: 30px;
}

.grid-layout {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    gap: 20px 2%;
    margin-top: 20px;
}

/* --- Card and Form Styling --- */
.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--black);
    width: 53%;
}

.card h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem; /* sm */
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--black);
    border-radius: 0.5rem;
    transition: border-color 0.15s linear;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    color: var(--color-text);
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.form-group textarea {
    resize: vertical;
}

/* --- Button Styling --- */
.submit-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: 0.5rem;
    font-size: var(--standart-font-size);
    line-height: var(--standart-line-height);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--black);
}

.submit-button:hover {
    color: var(--black);
    background-color:  var(--white); 
}

/* --- Contact Details Styling --- */
.details-column {
    padding: 2rem;
    width: 45%;
}

.details-column h2 {
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.details-column p {
    font-size: var(--large-font-size);
    line-height: var(--large-line-height);
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.contact-item p {
    font-size: 1.125rem;
}

.contact-item a {
    font-size: var(--standart-font-size);
    line-height: var(--standart-line-height);
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.contact-item a:hover {
    border-bottom: 1px solid var(--black);
}


.newsBanner {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--white);
}

.newsBanner:before {
    display: block;
    content: "";
    padding-bottom: 50%; /*(height/width)*100*/
    z-index: 2;
}

.newsBanner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    top: 0;
    left: 0;
}

.newsContainer{
    max-width: 1332px;
    margin: 0 auto;
    width: 100%;
    padding: 25px 16px 30px;
    overflow: hidden;
}

.titleSection{
    display: flex;
    flex-wrap: wrap;
}
.titleSection h2{
    width: 100%;
}
.infoSection{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.infoSection p{
    font-size: var(--large-font-size);
    line-height: var(--large-line-height);
}
.infoSection .authors{
    width: fit-content;
    width: 100%;
}
.buttons{
    display: flex;
    align-items: center;
    position: relative;
}
.buttons img{
    width: 32px;
    height: 32px;
    object-fit: cover;
    cursor: pointer;
}
.newsContainer > p{
    margin-top: 16px;
    font-size: var(--large-font-size);
    line-height: var(--large-line-height);
}
.newsContainer .standartWide{
    margin-top: 20px;
}



.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 1px solid var(--black); 
    padding-top: 20px;
}

.page-item {
    margin: 0 3px; 
}



.page-link {
    color: #ffffff; 
    background-color:  var(--black); 
    
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-size: var(--small-font-size);
    line-height: 32px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    text-align: center;
}

.page-link:hover {
    background-color: var(--green);
    box-shadow: 0 0 5px var(--transparent-color); 
}

.page-item.active .page-link {
    z-index: 1;
    background-color: var(--green);
    font-weight: bold;
}
.page-item.disabled .page-link,
.page-item.disabled span.page-link {
    color: #666666;
    pointer-events: none;
    background-color: #262626;
    border-color: #333333;
    cursor: default;
}

 .error-container {
      min-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px 20px;
    background-color: #F3F2EA;
    }

    .error-content {
      max-width: 600px;
    }

    .error-content h1 {
      font-size: 10rem;
      line-height: 1em;
      font-weight: 900;
      color: #FF4C4C;
    }

    .error-content p {
      font-size: 1.25rem;
      margin: 20px 0;
      color: #555;
    }

    .home-button {
      display: inline-block;
      margin-top: 30px;
      padding: 15px 30px;
      background-color: var(--green);
      color: white;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      transition: var(--transition);
      text-decoration: none;
    }
    .home-button:hover {
      background-color: var(--hover-color);
    }