* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #FF6600;
    /* --secondary-color: #DFAEF9; */
    --secondary-color: #822bf9;
    --footer-overlay: #25224B;
    --announcement: #141414;
    --input-placeholder-col: #9B9B9B;
}

/* Contact Info */
.contact-us-container {
    padding: 0 111px;
    background-color: #EEEEEE;
}

.contact-us-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 37px;
    margin: 0 auto;
    width: 100%;
    max-width: 1366px;
}

.contact-us-header > div, .social-media-links {
    display: flex;
}

.contact-info {
    gap: 30px;
}

.contact-info > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info > div > i {
    color: var(--secondary-color);
    font-size: 14px;
}

.contact-info > div > span,
.contact-info > div > a {
    color: #535353;
    text-decoration: none;
    font-family: "BPG Arial";
}

.social-media-links {
    gap: 10px;
}

.social-media-links > a {
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    text-decoration: none;
}

.social-media-links > a > i {
    font-size: 10px;
    transition: transform 0.5s ease;
    color: white;
}

.social-media-links > a > i:hover {
    transform: scale(1.5);
}

/* Header Styles */
header {
    position: sticky;
    position: -webkit-sticky;
    padding: 0 111px;
    top: 0;
    z-index: 4;
    background: white;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.16));
}

.logo {
    cursor: pointer;
}

.logo img, 
.logo-copyright img {
    transition: transform 0.5s ease;
}

.logo img:hover,
.logo-copyright img:hover {
    transform: scale(1.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1366px;
    height: 109px;
}

.navbar .links {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 2rem;
}

.navbar .links a {
    font-size: 14px;
    line-height: 19px;
}

.navbar .toggle-btn {
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

.links > li,
.dropdown-menu > li {
    list-style: none;
    font-family: "BPG Mrgvlovani";
}

.links > li > a,
.dropdown-menu > li > a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links > li > a:hover,
.dropdown-menu > li > a:hover {
    color: var(--secondary-color);
}

.links a.current, 
.dropdown-menu a.current {
    color: var(--primary-color);
}

.language-btns {
    border: 1px solid #E9E3E3;
    border-radius: 20px;
    width: 89px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.language-button {
    border: none;
    background-color: white;
    color: #4E4E4E;
    cursor: pointer;
    font-family: "BPG Arial";
}

.language-button.active {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 2rem;
    left: 2rem;
    top: 92px;
    height: 0;
    background-color: white;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.open {
    height: 330px;
    z-index: 1000;
    padding-top: 10px;
}

.dropdown-menu li {
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu > div {
    margin: 10px auto;
}

.dropdown-menu .language-button {
    background: none;
}

/* Footer Styles */
footer {
    background-image: url(../images/footer-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 70px 111px 0;
    position: relative;
}

footer::before {
    background-color: var(--footer-overlay);
    opacity: 0.94;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.footer-content > * {
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
    max-width: 1366px;
    min-height: 358px;
}

.logo-copyright {
    display: flex;
    flex-direction: column;
}

.logo-copyright > img {
    cursor: pointer;
    margin-bottom: 44px;
}

.logo-copyright > .social-media-links {
    margin-bottom: 19px;
}

.logo-copyright > .social-media-links > a {
    background-color: var(--secondary-color);
    width: 33px;
    height: 33px;
}

.logo-copyright > .social-media-links > a > i {
    font-size: 15px;
}

.copyright {
    margin-bottom: 3px;
}

.copyright, .creator {
    color: white;
    font-family: "BPG Mrgvlovani Caps 2010";
}

.creator > a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-content .links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-content .links li a {
    color: white;
}

.footer-content .links li a:hover {
    color: var(--primary-color);
}

.contact-map .contact-info {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 32px;
}

.contact-map .contact-info div i {
    color: var(--primary-color);
    font-size: 14px;
}

.contact-map .contact-info div span, .contact-map .contact-info div a {
    color: white;
}

.map { 
    max-width: 100%;
    width: 514px;
    height: 106px;
}

.map > iframe {
    border-radius: 10px;
}

/* Common elements between pages */
.common-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 111px;
}

.common-bg {
    background-image: url(../images/main-page-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 231px;
    width: 100%;
    position: absolute;
}

.common-bg::before {
    background: rgba(0, 0, 0, 0.53);
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.common-heading {
    color: white;
    font: 20px "BPG Mrgvlovani Caps 2010";
    line-height: 27px;
    text-align: center;
    margin-top: 98px;
    margin-bottom: 30px;
}

.announcements, .services,
.terms-conditions, .gallery,
.about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1366px;
}

.announcement-grid, .service-grid,
.gallery-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1366px;
    margin: 0 auto;
    /* width: 100%; */
    justify-items: center;
}

.image-container,
.service-img-container,
.gallery-content a {
    cursor: pointer;
    width: 100%;
    height: 247px;
    overflow: hidden;
}

.image-container img,
.service-img-container img,
.gallery-content a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img,
.service-img-container:hover img,
.gallery-content a:hover img {
    transform: scale(1.1);
}

.about-us-content,
.terms-conditions-content {
    background: #ffffff;
    border-radius: 10px;
    color: var(--announcement);
    font-family: "BPG Mrgvlovani";
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.16));
    margin-bottom: 44px;
    padding: 60px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-color: #888 #f5f5f5;
    scrollbar-width: thin;
}

.terms-conditions {
    position: relative;
    z-index: 2; 
}

.terms-conditions-content {
    display: flex;
    flex-direction: column;
    gap: 27px;
    /* max-height: 583px; */
    max-width: 1117px;
    width: 100%;
    min-height: 30vh;
}

/* Text Styles */
.font-1 {
    font-size: 12px;
    line-height: 16px;
}

.font-2 {
    font-size: 10px;
    line-height: 14px;
}

.font-3 {
    font-size: 14px;
    line-height: 19px;
}

.font-4 {
    font-size: 16px;
    line-height: 21px;
}

.font-5 {
    font-size: 13px;
    line-height: 17px;
}

/* Styles for pagination */
.common-pagination {
    width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    margin-bottom: 50px;
}

.common-pagination button {
    background-color: white;
    border: none;
    cursor: pointer;
    font: 13px "BPG Mrgvlovani Caps 2010";
    line-height: 17px;
    transition: color 0.3s;
}

.common-pagination button:first-child,
.common-pagination button:nth-child(2),
.common-pagination button:last-child,
.common-pagination button:nth-last-child(2) {
    color: var(--secondary-color);
}

.common-pagination button:hover {
    color: var(--primary-color);
}

.common-pagination button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.common-pagination button.active {
    color: var(--primary-color);
}

/* Styles for animations */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.announcement-grid-item:first-child,
.gallery-content a:nth-child(n),
.service-grid div:nth-child(n),
.terms-conditions-content p:nth-child(n) {
    transition-delay: 200ms;
}

.announcement-grid-item:nth-child(2),
.service-grid div:nth-child(2n),
.gallery-content a:nth-child(2n) {
    transition-delay: 400ms;
}

.announcement-grid-item:nth-child(3),
.service-grid div:nth-child(3n),
.gallery-content a:nth-child(3n) {
    transition-delay: 600ms;
}

/* later added styles */
.menu-item {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.menu-item > ul {
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 10px 0 0 10px;
    display: none;
    flex-direction: column;
    list-style: none;
    position: absolute;
    top: 100%;
    left: -10px;
    z-index: 1000;
    width: 275px;
}

.menu-item:hover > ul {
    display: flex;
}

.first-child {
    display: flex;
    align-items: center;
    position: relative;
}

.first-child > a {
    color: unset;
}

.grandchildren > a,
.first-child > a  {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 11px 10px 11px 30px;
    transition: all 0.3s ease;
}

.first-child:hover > a {
    background: var(--secondary-color);
    color: white;
}

.first-child:first-child > a {
    border-radius: 10px 0 0 0;
    padding-top: 21px;
}

.first-child:last-child > a {
    border-radius: 0 0 0 10px;
    padding-bottom: 21px;
}

.first-child:only-child > a {
    border-radius: 10px 0 0 10px;
}

.grandchild-links {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    display: none;
    flex-direction: column;
    list-style: none;
    position: absolute;
    right: -275px;
    top: -0.5px;
    width: 275px;
    z-index: 1000;
}

.first-child:hover .grandchild-links {
    display: flex;
}

.grandchildren {
    display: flex;
    align-items: center;
}

.grandchildren > a {
    color: white;
}

.grandchildren:hover > a {
    background: var(--secondary-color);
}

.grandchildren:first-child > a {
    border-radius: 0 10px 0 0;
    padding-top: 21px;
}

.grandchildren:last-child > a {
    border-radius: 0 0 10px 0;
    padding-bottom: 21px;
}

.grandchildren:only-child > a {
    border-radius: 0 10px 10px 0;
}
