@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --red: #D02720;
  --main-text: #822E2A;
  --body-text: #382B2A;
  --white: #FFF;
  --black: #000;
  --body-white: #FFF8F3;
  --border: rgba(0, 0, 0, 0.1);
  --black-footer: #181818;
  --border-fill: #F4ECE6;
  --header-height: 80px;
  --smooth-bezier: cubic-bezier(0.4, 0, 0.2, 1);
  --timing-function: ease;
  --scrollbar-size: 10px;
  --scrollbar-track-bg: var(--border-fill);
  --scrollbar-thumb-bg: var(--red);
}
a {
  color: var(--main-text);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--main-text);
}
h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}
p, a {
  font-size: 1rem;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 1.125rem;
    }
}
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}

html::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-bg);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track-bg);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--body-white);
}



ul {
    list-style: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    border-radius: 0;
    transition: height 0.5s var(--smooth-bezier),
                padding 0.5s var(--smooth-bezier),
                max-width 0.5s var(--smooth-bezier),
                top 0.5s var(--smooth-bezier),
                border-radius 0.5s var(--smooth-bezier),
                transform 0.5s var(--smooth-bezier);
}

.site-header.header-hidden {
    transform: translate(-50%, -120%);
}

.site-header.scrolled {
    height: 70px;
    max-width: 1200px;
    top: 15px;
    border-radius: 50px;
    max-width: 95%;
}

.header-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: inherit;
    border: 1px solid transparent;
    border-bottom-color: var(--border); 
    transition: all 0.5s var(--smooth-bezier);
    box-sizing: border-box;
}

.site-header.scrolled .header-background {
    border-color: var(--border);
    background: #ffffff38;
}

.effect-layer {
    position: absolute;
    inset: 0;
    filter: url(#glass-distortion);
    isolation: isolate;
}

.logo {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.logo a {
    display: flex;
}

.logo img {
    transition: height 0.6s var(--smooth-bezier);
    border-radius: 4px;
    width: 79px;
    height: 60px;
    object-fit: cover;
}

.site-header.scrolled .logo img {
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-menu {    
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    padding: 10px 18px 10px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: color 0.5s var(--timing-function), padding-left 0.4s var(--smooth-bezier);
    color: var(--black);
}

.header-menu::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--red);
    transform: translateY(-50%) scale(0);
    transition: transform 0.4s var(--smooth-bezier);
}

.header-menu:hover,
.current-link .header-menu,
.is-hovered .header-menu {
    color: var(--red);
    padding-left: 28px;
}

.header-menu:hover::before,
.current-link .header-menu::before,
.is-hovered .header-menu::before {
    transform: translateY(-50%) scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 3.2rem;
    font-family: Poppins;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
}

.lang-switcher-btn {
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switcher-btn:hover {
    background: rgba(208, 39, 32, 0.1);
    color: var(--red);
}

.lang-short {
    display: none;
}


.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.hamburger {
    cursor: pointer;
    z-index: 1002;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 40px;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: var(--red);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
    transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}
.cta-button {
  display: flex;
  padding: 1.125rem 1.5rem !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0;
  border-radius: 6.25rem !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  background: var(--red);
  color: var(--white) !important;
  border: 1px solid transparent;
}

.cta-button span {
  display: inline-block;
  transition: transform 0.4s ease-in-out;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  opacity: 0;
  height: 0;
  transition: all 0.4s ease-in-out;
}

.icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  transform: scale(0.5);
  transition: all 0.4s ease-in-out;
}

.icon-bg svg {
  color: var(--red);
  width: 1rem;
  height: 1rem;
  transition: color 0.4s ease-in-out;
}

.cta-button:hover {
  gap: 0.5rem;
}



.cta-button:hover .icon-wrapper {
  width: 1.75rem;
  opacity: 1;
}

.cta-button:hover .icon-bg {
  transform: scale(1);
}

.cta-button-sign {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  color: var(--black);
  height: 3rem;
}

.cta-button-sign span {
  display: inline-block;
  transition: transform 0.4s ease-in-out;
}

.cta-button-sign:hover {
  color: var(--red);
  gap: 0.5rem;
}

.cta-button-sign .icon-bg {
  background: var(--red);
}

.cta-button-sign .icon-bg svg {
  color: var(--white);
}
.cta-button-sign:hover .icon-wrapper {
  width: 3rem;
  opacity: 1;
}
.cta-button-sign .icon-bg {
    width: 3.5rem;
    height: 3.5rem;
}
.cta-button-sign .icon-bg svg {
    width: 2rem;
    height: 2rem;
}
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-controls { display: flex; }

    .mobile-controls .lang-switcher-btn .lang-full { display: none; }
    .mobile-controls .lang-switcher-btn .lang-short { display: inline; }

    .mobile-controls .lang-switcher-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .site-header { justify-content: space-between; max-width: 100%; }

    .logo img {
        height: 55px;
    }

    .site-header.scrolled .logo img {
        height: 48px;
    }
    .main-nav a:hover {
        color: var(--accent-color);
    }
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        width: 100%;
        width: 95%;
        flex-direction: column;
        padding: 20px;
        border-radius: 25px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--border);
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 1001;
        background: #ffffff38;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        text-align: center;
        display: flex;
    }

    .main-nav ul li, .main-nav .nav-actions {
        opacity: 0;
    }

    .main-nav a {
        padding: 12px;
        justify-content: center;
        width: 100%;
        border-radius: 15px;
        transition: background 0.4s ease, color 0.4s ease;
    }


    .nav-actions {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-top: 25px;
        width: 100%;
        gap: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 20px;
    }

    .nav-actions .lang-switcher-btn { display: none; }


    .main-nav .active-indicator { display: none; }
    .site-header {
        padding: 0 20px;
    }
    .site-header.scrolled {
        height: 60px;
        padding: 0 20px;
        max-width: 95%;
        border-radius: 30px;
    }
}



.site-footer {
    display: flex;
    width: 100%;
    padding: 2.5rem 6.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
    background: var(--black-footer);
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.footer-left p {
    width: 40%;
    color: #FFF;
    font-family: Poppins;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}
a.logo-footer img {
    width: 4.9375rem;
    border-radius: 0.25rem;
}
.footer-right span {
    color: #FFF;
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
    opacity: 0.5;
}

.footer-links a {
    color: #FFF;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.7px;
    bottom: 0;
    left: 0;
    background-color: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

ul.footer-links {
    padding-top: 1rem;
}
ul.footer-links {
    padding-top: 1rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}

.footer-left-bottom {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
}
.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.footer-left-bottom p {
    color: #ffffff80;;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
a.link-footer {
    color: #ffffff80;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-decoration: underline;
}
a.link-footer:hover{
    color: var(--red);
    transition: all 0.3s; 
}

.social-links {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid transparent;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.social-links svg path {
  transition: fill 0.3s ease-in-out;
}

.social-links:hover {
  background-color: var(--red);
}

.social-links:hover svg path {
  fill: var(--white);
}
.footer-social-links {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1.875rem;
}
@media (max-width: 768px) {
    .site-footer {
        padding: 1.25rem;
        gap: 2rem;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer-left p {
        width: 100%;
    }
    ul.footer-links {
        padding-top: 0.5rem;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    .footer-right {
        padding-top: 1rem;
        text-align: center;
    }
    .footer-left {
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
    }
    .footer-left-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
        padding-top: 1rem;
    }
    
}


.hero-section {
    display: flex;
    padding: 10rem 2.5rem 7rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 4rem;
}
.hero-images {
    width: 100%;
}
.hero-images img {
    object-fit: cover;
    width: 100%;
    height: 35rem;
    border-radius: 1.5rem;
}


.left-hero {
    width: 90%;
    gap: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-hero h1 {
    font-size: 3.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}
.left-hero p {
    color: var(--main-text);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.hero-btn {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.hero-button,
.hero-button-border {
    display: flex;
    padding: 1.125rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-radius: 6.25rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 100%;
    font-family: Poppins, sans-serif;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    text-decoration: none;
}

.hero-button {
    background: var(--red);
    color: var(--white);
    border: 1px solid transparent;
}

.hero-button-border {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
}

.hero-button:hover,
.hero-button-border:hover {
    gap: 0.5rem;
}

.hero-button:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.hero-button-border:hover {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.hero-button span,
.hero-button-border span {
    display: inline-block;
    transition: transform 0.4s ease-in-out;
}

.arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    opacity: 0;
    height: 0;
    transition: all 0.4s ease-in-out;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    transform: scale(0.5);
    transition: all 0.4s ease-in-out;
}

.hero-button .arrow-icon {
    background: var(--white);
}

.hero-button .arrow-icon svg {
    color: var(--red);
}

.arrow-icon svg {
    width: 0.625rem;
    height: 0.625rem;
    transition: color 0.4s ease-in-out;
}


.hero-button:hover .arrow-wrapper,
.hero-button-border:hover .arrow-wrapper {
    width: 1.75rem;
    opacity: 1;
}

.hero-button:hover .arrow-icon,
.hero-button-border:hover .arrow-icon {
    transform: scale(1);
}

.hero-button-border:hover .arrow-icon {
    background: var(--red);
}

.hero-button-border:hover .arrow-icon svg {
    color: var(--white);
}






@media (max-width: 768px) {
    .hero-section {
        padding: 7rem 1.25rem 2rem;
        gap: 2rem;
        flex-direction: column;
    }
    .left-hero h1 {
        font-size: 2rem;
    }
    .left-hero {
        gap: 2rem;
    }
    .left-hero p {
        font-size: 1rem;
    }
    .left-hero {
        width: 100%;
    }
    .hero-btn {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-button, .hero-button-border {
        width: 100%;
    }
    .hero-images img {
        height: 20rem;
    }
}




#newsroom-hero .hero-images img {
    height: 30rem;
}
#newsroom-hero .left-hero {
    width: 75%;
}
@media (max-width: 768px) {
    #newsroom-hero .hero-images img {
    height: 20rem;
    }
    #newsroom-hero .left-hero {
        width: 100%;
    }
}


.contact-page-section {
    padding: 9rem 2.5rem 6rem;
    display: grid; /* Changed from flex to grid for more control */
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-areas:
        "header form"
        "info   form";
    gap: 4rem;
    align-items: start;
    background: var(--white);
}

.contact-page-header {
    grid-area: header;
}

.contact-page-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    grid-area: info;
}

.contact-page-header h1 {
    font-size: 3rem;
    grid-area: header;
    font-weight: 600;
}
.contact-page-header .sub-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
}
.intro-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--body-text);
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info-block h2 {
    font-size: 2rem;
    font-weight: 600;
}
.contact-info-block p {
    color: var(--body-text);
    line-height: 1.6;
}
.contact-features-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-features-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--body-text);
    line-height: 1.6;
}
.contact-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 1.2rem;
}

.why-choose-us {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}
.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-page-right {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    grid-area: form;
    align-self: start;
}

.contact-form-container {
    background: var(--body-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
}
.contact-form-container h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group label {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    color: #141414;
}
.form-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

input {
    display: flex;
    padding: 1.125rem 0.875rem;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
    border-radius: 0.375rem;
    border: 1px solid #CBCEE5;
    background: var(--white);
    color: var(--body-text);
    font-family: Poppins;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}
select {
    display: flex;
    padding: 1.125rem 0.875rem;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
    border-radius: 0.375rem;
    border: 1px solid #CBCEE5;
    background: var(--white);
    color: var(--body-text);
    font-family: Poppins;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23382B2A' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

textarea {
    display: flex;
    height: 11.5625rem;
    padding: 1.125rem 0.875rem;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
    border-radius: 0.375rem;
    border: 1px solid #CBCEE5;
    background: var(--white);
    color: var(--body-text);
    font-family: Poppins;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
    transition: border-color 0.3s ease;
    outline: none;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--red);
}
.checkbox-group label {
    font-weight: 400;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--red);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--body-text) !important;
}

button.submit-btn {
    display: flex;
    padding: 1.125rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-radius: 6.25rem;
    background: var(--red);
    outline: none;
    border: none;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}
button.submit-btn span {
    color: var(--white);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    display: inline-block;
    transition: transform 0.4s ease-in-out;
}

button.submit-btn:hover {
    gap: 0.5rem;
}

.icon-wrapper-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    transform: scale(0.5);
}

button.submit-btn:hover .icon-wrapper-submit {
    width: 24px;
    opacity: 1;
    transform: scale(1);
}

.icon-wrapper-submit svg {
    width: 24px;
    height: 24px;
}
.form-group-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toggle-form-group {
    flex-direction: column;
    align-items: flex-start;
}

.interest-toggle {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}
.interest-toggle .toggle-btn {
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-toggle.interest-toggle {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .main-text h1 {
        font-size: 2rem;
    }
    .main-text p {
        font-size: 1rem;
    }
    .contat-link {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-form {
        width: 100%;
        padding: 1rem;
    }
    .contact-page-section {
        padding: 7rem 1.25rem 3rem;
        display: flex;
        gap: 2.5rem;
        flex-direction: column;
    }
    .contact-page-right {
        order: 2;
        position: static;
        width: 100%;
    }
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    .contact-page-header {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-page-left {
        order: 3;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
}

input.invalid-input,
textarea.invalid-input {
    border-color: var(--red) !important; 
}
.error-message {
    color: var(--red);
    font-size: 0.875rem; /* Matches input font size */
    margin-top: 0.25rem;
    display: none; /* Hidden by default, shown when there's an error */
}

.form-group.has-error .error-message {
    display: block;
}

.input-group.has-error .error-message {
    display: block;
}
.input-group.has-error input {
    border-color: var(--red) !important;
}

.featured {
    display: flex;
    padding: 5rem 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    align-self: stretch;
    background: #FFF;
}
.featured h1, .featured h2 {
    font-family: Poppins, sans-serif;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    text-align: center;
}

.ytb-btn {
    display: flex;
    padding: 1.125rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border-radius: 6.25rem; /* 100px */
    background: var(--red);
    text-decoration: none;
    transition: all 0.4s var(--smooth-bezier);
}
.ytb-btn span {
    color: var(--white);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    transition: all 0.4s var(--smooth-bezier);
}
.ytb-btn svg {
    transition: transform 0.3s var(--smooth-bezier);
}
.ytb-btn:hover {
    transform: translateY(-4px);
    animation: stretch-out 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: none;
}
.ytb-btn:hover svg {
    transform: scale(1.1);
}

@keyframes stretch-out {
    0% { transform: scale(1, 1); }
    20% { transform: scale(1.05, 0.95); }
    50% { transform: scale(0.95, 1.05); }
    100% { transform: scale(1, 1); }
}

.featured-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem; 
    width: 100%;
}

.video-card {
    position: relative; /* Необхідно для позиціонування іконки */
    display: block;
    border-radius: 0.75rem; 
    overflow: hidden; 
    height: 16.25rem; 
    transition: transform 0.3s ease;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%);
    z-index: 1; 
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease; 
}

.video-card:hover img {
    transform: scale(1.1);
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    z-index: 10;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.featured-nav-arrows {
    display: none;
}


@media (max-width: 992px) {
    .featured-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .featured {
        padding-top: 3rem; 
        padding-bottom: 3rem; 
        padding-left: 0; 
        padding-right: 0; 
        position: relative; 
    }
    .featured-videos {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 1.25rem;
        
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory; 
        scroll-padding-inline-start: 1.5rem;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    .featured-videos::-webkit-scrollbar {
        display: none; 
    }
    .video-card {
        flex: 0 0 90%; 
        scroll-snap-align: start; 
        height: 14.25rem;
    }

    .featured h1, .featured h2 {
        font-size: 2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%; 
        box-sizing: border-box; 
    }
    .ytb-btn svg {
        height: 1.5rem;;
    }
    .ytb-btn {
        display: flex; 
        margin-left: auto; 
        margin-right: auto; 
        max-width: fit-content; 
    }

    .featured-nav-arrows {
        display: flex; 
        justify-content: flex-end; 
        gap: 1rem;
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        box-sizing: border-box;
    }

    .nav-arrow {
        position: static; 
        transform: none;
        background-color: var(--red);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--white);
        transition: background-color 0.3s, transform 0.3s;
    }


    .nav-arrow.disabled {
        background-color: #d0272069;
        cursor: not-allowed;
    }
}

.featured-videos.newsroom-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr; 
    gap: 1.25rem;
    height: 33.75rem; 
}

.featured-videos.newsroom-layout .video-card:first-child {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    height: 100%; 
}

.featured-videos.newsroom-layout .video-card:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    height: auto;
}
.featured-videos.newsroom-layout .video-card:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    height: auto;
}






.blcok-info {
    display: flex;
    padding: 3.75rem 2.5rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
.right-info img {
    object-fit: cover;
    width: 100%;
    height: 38.8125rem;
    border-radius: 1.5rem;
}
.left-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 50%;
}
.left-info h1, .left-info h2 {
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}
.left-info p {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
}
.right-info {
    width: 40%;
}
ul.info-list {
    list-style: disc;
    color: #382B2A;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}
#block2 .right-info img {
    height: 30rem;
}
#block3 .right-info img {
    height: 30rem;
}

#block2 {
    background: var(--white);
}

#block3 {
    background: var(--body-white);
}
#block3 {
    flex-direction: row-reverse;
}
.info-list-p {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}
.info-list-p p {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
@media (max-width: 768px) {
    .blcok-info {
        flex-direction: column;
        padding: 2rem 1.25rem 2rem;
    }
    #block3 {
        flex-direction: row-reverse;
    }
    .left-info {
        width: 100%;
    }
    .right-info {
        width: 100%;
        padding-top: 1.25rem;
    }
    .left-info h1, .left-info h2 {
        font-size: 2rem;
    }
    .left-info p {
        font-size: 1rem;
    }
    ul.info-list {
        padding-left: 1rem;
    }
    .right-info img {
        height: 20rem;
    }
    #block2 .right-info img {
        height: 20rem;
    }
    #block3 .right-info img {
        height: 20rem;
    }    
    #block3 {
        flex-direction: column;
    }
    ul.info-list {
        gap: 1rem;
    }
    .featured-videos.newsroom-layout {
        height: auto; 
    }
    .featured-videos.newsroom-layout {
        grid-template-columns: 1fr;
        grid-template-areas: unset;
        display: flex; 
        overflow-x: auto;
    }
    .featured-videos.newsroom-layout .video-card:first-child {
        height: 14.25rem; 
    }

    .blcok-info .hero-button {
        width: auto;
    }
}

.all-video-sectrion {
    padding: 5rem 2.5rem;
    background: var(--white);
}

.top-all-video {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-all-video h1, .top-all-video h2 {
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.search-wrapper {
    position: relative;
    width: 30%;
}

.search-wrapper input[type="search"] {
    padding: 0.8125rem 0.875rem 0.8125rem 1.125rem;
    border-radius: 0.375rem;
    border: 1px solid #D8C8BC;
}

.search-wrapper svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.375rem;
    height: 1.375rem;
    pointer-events: none; /* So it doesn't block clicks on the input */
}

/* Стилізація кнопки очищення для браузерів WebKit (Chrome, Safari) */
.search-wrapper input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;

    height: 1.25rem;
    width: 1.25rem;
    margin-right: 1.5rem; /* Відступ від іконки лупи */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D02720'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 1.25rem 1.25rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.search-wrapper input[type="search"]::-webkit-search-cancel-button:hover {
    opacity: 1;
}

.all-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32%, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.show-more-btn {
    display: flex;
    padding: 1.125rem 2.5rem;
    justify-content: center;
    align-items: center;
    background: var(--red);
    gap: 0.75rem;
    border-radius: 6.25rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.show-more-btn span {
    color: var(--white);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
}

.show-more-btn .video-count {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--white);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow-down {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.arrow-down path {
    stroke: var(--red);
}

.show-more-btn:hover .video-count {
    opacity: 0;
    transform: scale(0.7);
}

.show-more-btn:hover .arrow-down {
    opacity: 1;
    transform: scale(1);
}

.show-more-btn:hover .btn-icon-container {
    transform: rotate(360deg);
}

.show-more-btn:hover {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .all-video-sectrion {
        padding: 2rem 1.25rem;
    }

    .top-all-video {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .top-all-video h1, .top-all-video h2 {
        font-size: 2rem;
    }

    .search-wrapper {
        width: 100%;
    }

    .all-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}



.our-pr-section {
    display: flex;
    padding: 5rem 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    align-self: stretch;
    background: var(--white);
}
.our-pr-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 65%;
    gap: 1.5rem;
}



.our-pr-top p {
    color: var(--body-text);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.our-pr-top h2 {
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.our-pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 85%;
}

.our-pr-card {
    display: flex;
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(111, 94, 94, 0.10);
    text-decoration: none;
}


.our-pr-card:hover .hero-button-border {
    gap: 0.5rem;
}
.our-pr-card:hover .hero-button-border .arrow-wrapper {
    width: 1.75rem;
    opacity: 1;
}
.our-pr-card:hover .hero-button-border .arrow-icon {
    transform: scale(1);
    background: var(--red);
    color: var(--white);
}
.our-pr-card h3 {
    font-family: Poppins;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    color: var(--main-text);
}

.our-pr-card p {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: var(--body-text);
}

#viewer-account-cta {
    background: var(--body-white);
}
#pr-more .our-pr-card {
    background: var(--white);
}

@media (max-width: 992px) {
    .our-pr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.subscriptions-section {
    padding: 5rem 2.5rem;
    background: var(--white);
}

.subscriptions-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.subscriptions-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.subscriptions-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.subscriptions-intro h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.subscriptions-intro p {
    color: var(--body-text);
    line-height: 1.6;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    align-items: stretch; /* Make cards same height */
}

.package-card {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: var(--body-white);
}

.package-card.popular {
    border-color: var(--red);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.package-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.package-description {
    color: var(--body-text);
    line-height: 1.6;
    flex-grow: 1;
    list-style-position: inside;
    padding-left: 0;
    list-style-type: none;
}

.package-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.package-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.package-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--main-text);
}
.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.5rem;
    color: var(--body-text);
    opacity: 0.6;
    text-decoration: line-through;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--body-text);
}

.package-footer .hero-button,
.package-footer .hero-button-border {
    width: 100%;
}

.subscriptions-features ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.subscriptions-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--body-text);
}

.subscriptions-features li svg {
    color: var(--red);
}

@media (max-width: 768px) {
    .our-pr-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .our-pr-section {
        padding: 2rem 1.25rem;
    }
    .our-pr-top {
        width: 100%;
        gap: 1rem;
    }
    .our-pr-top h2 {
        font-size: 2rem;
    }
}





.press-content {
    display: flex;
    padding: 5rem 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    align-self: stretch;
    background: var(--white);
}
.press-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    align-self: stretch;
    width: 83%;
    margin: auto;
}
.press-top h2 { 
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; 
    text-align: center;
}
.press-top p {
    color: var(--body-text);
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}




.info-card-img img {
    width: 100%;
    border-radius: 0.75rem;
    align-self: stretch;
    object-fit: cover;
    height: 21rem;
    padding: 0;
    margin: 0;
}

.info-card {
    display: flex;
    padding: 1.25rem;
    align-items: center;
    gap: 2.5rem;
    border-radius: 0.75rem;
    background: var(--body-white);
}
.info-card-img {
    width: 95%;
}
.info-card h3 {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    text-transform: capitalize;
}

.info-card p {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    color: var(--body-text);
}
.press-information {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

#press-reverse .info-card {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .press-content {
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }

    .press-top {
        width: 100%;
        gap: 1rem;
    }

    .press-top h2 {
        font-size: 2rem;
    }

    .info-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    #press-reverse .info-card {
        flex-direction: column; /* Override row-reverse */
    }

    .info-card-img,
    .press-information {
        width: 100%;
    }

    .info-card-img img {
        height: 15rem;
    }
}


/* Video Page Styles */
.video-page-section {
    padding: 7rem 2.5rem 5rem;
    background: var(--white);
}

.video-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin: 0 auto;
}

.video-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 1.5rem;
    overflow: hidden;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #FFF8F3;
}

.video-details h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

.video-date {
    font-size: 0.875rem;
    color: var(--body-text);
    opacity: 0.8;
}

.video-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--body-text);
}


.video-sidebar {
    position: sticky;
    top: 5rem; /* Збільшений відступ зверху, щоб фіксувалось пізніше */
    align-self: start; /* Важливо для правильного позиціонування в grid-контейнері */
}
.video-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.recommended-videos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-video-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.recommended-video-item:hover {
    background-color: var(--border-fill);
}

.recommended-video-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.recommended-video-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recommended-video-info h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--main-text);
    margin: 0;
}

.recommended-video-info span {
    font-size: 0.875rem;
    color: var(--body-text);
    opacity: 0.7;
}

.sidebar-show-more {
    margin-top: 1.5rem;
    justify-content: stretch; /* Дозволяє кнопці розтягнутися */
}

.sidebar-show-more .show-more-btn {
    width: 100%; /* Розтягує кнопку на всю ширину */
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

@media (max-width: 1024px) {
    .video-page-layout {
        grid-template-columns: 1fr;
    }
    .video-page-section {
        padding: 7rem 1.25rem 3rem;
    }
    .video-sidebar {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 768px) {
    .video-details h1 {
        font-size: 1.5rem;
    }
    .video-details {
        padding: 1rem;
    }

    .recommended-video-item img {
        width: 120px;
        height: 67px;
    }
    .recommended-video-info h3 {
        font-size: 0.9rem;
    }
}





/* --- Auth Page Styles --- */
.auth-section {
    padding: 10rem 2rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px - 250px); 
    background: var(--white);
}

.auth-container {
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(111, 94, 94, 0.10);
}


.auth-toggle {
    position: relative;
    display: flex;
    border: 1px solid var(--border);
    border-radius: 2rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--red);
    border-radius: 2rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toggle-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--body-text);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    text-align: center;
}

.toggle-btn.active {
    color: var(--white);
}

.form-wrapper {
    position: relative;
    overflow: hidden;
}

.auth-form {
    display: none;
    flex-direction: column;
    /* Removed gap to control it with margins for more flexibility */
    gap: 1.5rem;
}

.auth-form.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form h2 {
    text-align: center;
    font-size: 1.8rem; /* color is inherited from h2 styles (var(--main-text)) */
    margin-bottom: 0.5rem;
}
.auth-form .form-description {
    text-align: center;
    font-size: 0.95rem;
    color: var(--body-text);
    line-height: 1.5;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    color: #141414;
    margin-bottom: 0.625rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--red);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3rem; /* Make space for the icon */
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-text);
}

.forgot-password {
    text-align: right;
    font-size: 0.9rem;
    color: var(--red);
    text-decoration: none;
}

/* Add margin to the top for the forgot-password link in the register form */
#register-form .forgot-password {
    margin-top: -1rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.back-to-login {
    text-align: center;
    font-size: 0.9rem;
    color: var(--body-text);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 500;
}
.back-to-login:hover { text-decoration: underline; }

.submit-btn {
    padding: 1.125rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--red);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #a81f1a; /* This is a darker shade of red, not in :root. Leaving as is. */
}

@media (max-width: 768px) {
    .auth-section {
        padding: 7rem 1.25rem 3rem;
        align-items: flex-start;
    }

    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.6rem;
    }
    .toggle-btn {
        font-size: 0.9rem;
    }
}

/* --- Profile Page Styles --- */
.profile-section {
    padding: 9rem 2.5rem 6rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
    background: var(--white);
}

.profile-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px); /* Header height + scroll margin */
    align-self: start;
}

.profile-sidebar-content {
    background: var(--body-white);
    border-radius: 1.5rem;
    padding: 2rem;
}

.profile-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.applications-container {
    width: 100%;
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--body-white);
}

.applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
}
.profile-info-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-direction: column;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-greeting h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--main-text);
}
.profile-greeting {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--white);
    width: 100%;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.subscription-status {
    background-color: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}
.expiry-date {
    font-size: 0.9rem;
    color: var(--body-text);
}

.plan-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--main-text);
}

.manage-subscription-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    background-color: var(--red);
    color: var(--white);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}
.manage-subscription-btn:hover {
    background-color: #a81f1a;
    color: var(--white);
}

.applications-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.applications-view-header h2 {
    font-size: 2rem;
    color: var(--main-text);
}

.logout-btn {
    background-color: transparent;
    border: 1px solid var(--main-text);
    color: var(--main-text);
    gap: 0.5rem;
}
#edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--main-text);
}
#manage-subscription-btn {
    background-color: var(--main-text);
}

.usage-limits {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-limits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-text);
}

.limit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.limit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.limit-label {
    color: var(--body-text);
    font-weight: 500;
}

.limit-count {
    color: var(--main-text);
    font-weight: 600;
}

.limit-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-fill);
    border-radius: 4px;
    overflow: hidden;
}

.limit-progress {
    height: 100%;
    background-color: var(--red);
    border-radius: 4px;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.application-item {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.application-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.application-info .date {
    font-weight: 400;
    color: var(--body-text);
}
.application-info p {
    margin-bottom: 1rem;
    color: var(--body-text);
}
.pdf-link {
    font-weight: 500;
    color: var(--red);
    text-decoration: underline;
}

.application-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.status-label {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}
.status-label.completed {
    background-color: #e0f5e9;
    color: #1d9a57;
}
.status-label.pending {
    background-color: #fff3e0;
    color: #f59e0b;
}

.application-status .hero-button,
.application-status a.hero-button {
    padding: 0.8rem 1.2rem;
}
.application-status .hero-button.disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.application-status .watch-video-btn {
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.video-view-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.download-video-btn {
    max-width: 250px;
    text-align: center;
    justify-content: center;
}




/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    /* Use auth-container styles for consistency */
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--body-text);
}
.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.paid-service-note {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--body-text);
    background: var(--body-white);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* --- Beautiful File Upload --- */
.file-upload-group label:first-child {
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    color: #141414;
    margin-bottom: 0.625rem;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 10rem;
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    background-color: var(--body-white);
}

.file-upload-label:hover,
.file-upload-label.dragover {
    background-color: #fdf3ed;
    border-color: var(--red);
}

.file-upload-content {
    text-align: center;
    color: var(--body-text);
}

.file-upload-content svg {
    color: var(--red);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.file-upload-content p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-upload-content p span {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
}

.file-upload-content small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.file-info-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--body-white);
    border: 1px solid var(--border);
}

.file-info-display .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info-display .remove-file-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--red);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.5rem;
}

/* --- End Beautiful File Upload --- */

#new-application-view textarea {
    height: 8rem;
}

#new-application-view input[type="file"] {
    padding: 0.8rem;
    background: var(--body-white);
}

/* Styles for inline application form */
#new-application-view .auth-form {
    gap: 1.5rem;
    display: flex; /* Make it visible when its container is shown */
}

.new-application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.new-application-header h2 {
    font-size: 2rem;
}

#back-to-list-btn, .back-to-list-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 1.5rem;
    border: none;
    border-radius: 6.25rem;
    background-color: var(--red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
#back-to-list-btn:hover, .back-to-list-btn:hover {
    background-color: #a81f1a;
}
.application-type-toggle {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.application-sub-form {
    display: none;
}
.application-sub-form.active {
    display: block;
}

/* Styles for subscription management view */
#manage-subscription-view .packages-grid {
    margin-top: 2rem;
}
#manage-subscription-view .subscriptions-features {
    margin-top: 2rem;
}

/* Styles for edit profile view */
#edit-profile-view .auth-toggle {
    max-width: 450px;
    margin: 0 auto 2rem;
}

@media (max-width: 992px) {
    .profile-section {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 7rem 1.25rem 3rem;
    }
    .applications-container {
        padding: 1.5rem;
    }
    .application-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem; /* Increased gap for better separation */
        padding: 1.25rem; /* Added more padding */
    }
    .application-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    #new-application-view {
        padding: 0; /* Add padding to the container */
    }
    .new-application-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        flex-direction: row;
    }
    .new-application-header h2 {
        font-size: 1.8rem;
    }
    .paid-service-note {
        font-size: 0.9rem;
    }
    #new-application-view .submit-btn {
        width: 100%;
    }
    .applications-view-header {
        flex-direction: row;
        align-items: center;
    }
    #back-to-list-btn, .back-to-list-btn {
        padding: 0.5rem;
        
    }
    #back-to-list-btn span, .back-to-list-btn span {
        display: none;
    }
    .applications-view-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .profile-info-header {
        width: 100%;
    }
    .profile-avatar {
        width: 75px;
        height: 75px;
        font-size: 1.5rem;
    }
    .subscription-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .package-card.popular {
        order: -1;
    }
    .subscriptions-features ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .subscriptions-section {
        padding: 3rem 1.25rem;
    }
    .subscriptions-header h2 {
        font-size: 2rem;
    }
}
