/********** Template CSS **********/
:root {
    --primary: #464646;
    --light: #F1F8FF;
    --dark: #0F172B;
    --font-small: 0.8rem;
    --font-medium: 1rem;
    --font-large: 1.8rem;
    --font-family-primary: 'Roboto', sans-serif;
    --font-family-secondary: 'Libre Baskerville', serif;
    --font-family-heading: 'Playfair Display', serif;
}

@media (max-width: 768px) {
    :root {
        --font-small: 0.7rem;  /* Scaled down for smaller screens */
        --font-medium: 0.9rem;
        --font-large: 1.5rem;
    }
}

@media (min-width: 769px) {
    :root {
        --font-small: 0.8rem;
        --font-medium: 1rem;
        --font-large: 1.8rem;
    }
}

/*** Font Faces ***/
@font-face {
    font-family: 'Playfair Display';
    src: url('PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/*** Base Styles ***/
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    color: var(--primary);
    font-size: var(--font-medium);
    line-height: 1.6;
}

h2 {
    font-family: var(--font-family-primary);
    font-weight: 700;
    color: var(--dark);
    font-size: var(--font-large);
}

thead {
    font-family: var(--font-family-primary);
    font-weight: 700;
    color: var(--dark);
    font-size: var(--font-medium); /* Use medium size for table headers */
}

tbody {
    font-family: var(--font-family-secondary);
    font-weight: 400;
    font-size: var(--font-small); /* Use small size for table data */
    color: var(--primary);
    line-height: 1.4;
}

.btn {
    font-size: var(--font-medium); /* Buttons use medium size */
}



@media (max-width: 768px) {
    .footer .btn.btn-social {
        width: 30px;
        height: 30px;
    }

    .footer .copyright {
        font-size: 10px;
    }

    .testimonial-carousel .owl-dot {
        width: 8px;
        height: 8px;
    }
}



.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.logo {
    height: 40px;
    width: auto; /* Maintain aspect ratio */
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-family: var(--font-family-primary);
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(15, 23, 43, 0.9), rgba(15, 23, 43, 0.9)), url(../img/bg-hero.jpg) center/cover no-repeat;
}

.hero-header img {
    animation: imgRotate 50s linear infinite;
}

@keyframes imgRotate {
    100% {
        transform: rotate(360deg);
    }
}

/*** Rounded Table ***/
.rounded-table {
    border-radius: 150px;
    overflow: hidden;
}

/*** Section Titles ***/
.section-title {
    position: relative;
    display: inline-block;
    font-size: var(--font-large);
    color: var(--primary);
}

.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::before {
    left: -55px;
}

.section-title::after {
    right: -55px;
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

/*** Utility Classes ***/
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.margin-auto {
    margin: 0 auto;
}

/*** Mobile Optimization ***/
html {
    font-size: 100%; /* Use rems for better scalability */
}

