:root {
    --primary: #155e64;
    --secondary: #4c8479;
    --gold: #bab161;
    --yellow: #f5f195;
    --black: #000000;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

.hero-image {
    background-image: url("Images/R.webp");
    height: 100vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    line-height: 1.5;
}

.hero-text h1 {
    margin-bottom: 5vh;
}

a,
p,
li {
    color: var(--white);
}

h1,
h2,
h3,
.smlt {
    color: var(--yellow);
}

a {
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 5px var(--yellow), 0 0 8px var(--yellow);
    color: var(--yellow);
}

.main-tc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tc {
    width: 80%;
    padding: 20px;
}

nav {
    justify-content: space-between;
}

footer{
    flex-direction: column;
    justify-content: center;
    padding: 2vh;
}

.foot {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 70%;
}

.foot1,
.foot2,
.foot3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.foot-block {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    margin-top: 7vh;
    margin-bottom: 10vh;
}

nav,
footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--white);
    background-color: var(--primary);
    box-shadow: 0 4px 4px 0 var(--yellow), 0px 3px 10px 0 var(--yellow);
    width: 100vw;
    overflow: hidden;
}

nav,
footer {
    border-bottom: 5px solid var(--gold);
    border-top: 5px solid var(--gold);
}

footer p {
    margin: 0;
}

#icon{
    color: var(--white);
}

.dropdown {
    float: left;
    overflow: hidden;
    padding: 0.2vw;
}

.dropdown .dropbtn {
    outline: none;
    border: none;
    background-color: var(--primary);
    margin: 0;
    font-family: inherit;
    font-size: 16px;
}

.dropbtn:hover {
    text-shadow: 0 0 5px var(--yellow), 0 0 8px var(--yellow);
    color: var(--yellow);
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    float: none;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
    border-radius: 8px;
    background-color: var(--primary);
    border-bottom: 5px solid var(--gold);
    border-top: 5px solid var(--gold);
    border-right: 5px solid var(--gold);
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 4px 0 var(--yellow), 0px 3px 10px 0 var(--yellow);
}

section {
    width: 100%;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.contact-info {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-info p {
    margin: 10px 0;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.contact-form {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--yellow);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 5px var(--yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .button-name {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 18px;
    background-color: var(--gold);
    color: var(--primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .button-name:hover {
    background-color: var(--yellow);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    align-items: center;
    width: 40vw;
}

#logo {
    width: 30vw;
}

.block1,
.block4,
.t-block,
.t-block2,
.t-block3 {
    background: var(--primary);
    width: 80%;
    padding: 5vh;
    margin-top: 5vh;
    margin-bottom: 2vh;
    text-align: center;
}

#about-block {
    margin-top: 5vh;
    margin-bottom: 30vh;
}

.block2,
.block3,
.block5,
.block6,
.block7,
.block8,
.block9 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 5vh;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.block2,
.block5,
.block7,
.block9 {
    flex-direction: row;
}

.block3,
.block6,
.block8 {
    flex-direction: row-reverse;
}

#right,
#left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-left: 3vw;
    max-width: 50vw;
    padding: 3vh;
    margin-bottom: 5vh;
}

#right1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin-left: 3vw;
    max-width: 50vw;
    padding: 3vh;
    margin-bottom: 5vh;
}

#left {
    margin-right: 3vw;
}

#right1 h2,
#right h2,
#left h2 {
    align-self: center;
}

.card {
    background: var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 4px 0 var(--black), 0px 3px 10px 0 var(--black);
    width: 60vw;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: justify;
    border: 2px solid var(--gold);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 4px 0 var(--black), 0px 6px 30px 0 var(--black);
    transform: translateY(-3px);
}

#img1,
#img2,
#img3,
#img4,
#img5,
#img6,
#img7,
#img8,
#img9,
#img12,
#img13 {
    box-shadow: 0 4px 4px 0 var(--black), 0px 3px 10px 0 var(--black);
    border-radius: 5px;
    transition: all 0.2s ease;
}

#img1:hover,
#img2:hover,
#img3:hover,
#img4:hover,
#img5:hover,
#img6:hover,
#img7:hover,
#img8:hover,
#img9:hover,
#img12:hover,
#img13:hover {
    box-shadow: 0 8px 4px 0 var(--black), 0px 6px 30px 0 var(--black);
    transform: translateY(-3px);
}

#img1,
#img2,
#img5,
#img8,
#img6,
#img7,
#img12 {
    max-width: 700px;
    min-width: 320px;
}

#img3,
#img13 {
    max-width: 1000px;
    min-width: 300px;
}

#img4 {
    margin-top: 5vh;
    margin-bottom: 5vh;
    width: 100%;
}

#img10,
#img11 {
    width: 100%;
    max-height: 40vh;
    margin: 0;
}

#img13 {
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.trainingblocks {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 5vh;
}

.trainlink1,
.trainlink2,
.trainlink3,
.trainlink4,
.trainlink5 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    text-align: center;
    padding: 2vh;
    min-width: 125px;
    max-width: 125px;
    min-height: 200px;
    max-height: 200px;
    color: var(--white);
    border-bottom: 5px solid var(--gold);
    border-top: 5px solid var(--gold);
    border-right: 5px solid var(--gold);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 4px 4px 0 var(--black), 0px 3px 10px 0 var(--black);
    transition: all 0.2s ease;
}

.trainlink1:hover,
.trainlink2:hover,
.trainlink3:hover,
.trainlink4:hover,
.trainlink5:hover {
    box-shadow: 0 4px 4px 0 var(--yellow), 0px 3px 10px 0 var(--yellow);
    transform: translateY(-3px);
}

.courses {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 10vh;
    margin-top: 5vh;
    border-bottom: 3px solid var(--gold);
    padding: 0;
}

.tab {
    width: 20vw;
    color: var(--gold);
    padding-bottom: 2vh;
    padding-top: 2vh;
}

#active {
    text-decoration: underline;
    color: var(--yellow);
    background-color: var(--secondary);
    transform: translateY(-3px);
    border-radius: 8px;
}

.faq-container {
    border-top: none;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.faq {
    border-bottom: 1px solid var(--gold);
    width: 60%;
}

.faq:hover {
    border-bottom: 1px solid var(--yellow);
}

.faq input[type="checkbox"] {
    display: none;
}

.faq-label {
    display: block;
    padding: 15px;
    padding-left: 5px;
    font-size: 18px;
    color: var(--gold);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
    transform-origin: left;
}

.faq-label:hover {
    text-shadow: 0 0 5px var(--yellow), 0 0 8px var(--yellow);
    color: var(--yellow);
    transform: scale(1.01);
}

.faq-label::after {
    content: '\002B';
    font-size: 24px;
    color: var(--yellow);
    position: absolute;
    right: 5px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.faq input[type="checkbox"]:checked + .faq-label::after {
    transform: rotate(45deg) scale(1.2);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.faq input[type="checkbox"]:checked ~ .faq-content {
    max-height: 150px; /* Adjust based on content */
    padding: 15px;
    background: var(--secondary);
    border-left: 3px solid var(--yellow);
    opacity: 1;
    transform: translateY(0);

}

.faq-content p {
    margin: 0;
    color: var(--yellow);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.links {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 50%;
    flex-grow: 0;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: var(--fifth);
    margin-right: 0;
}

.button-name {
    align-items: center;
    appearance: none;
    background-color: var(--gold);
    border-radius: 4px;
    border-width: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    height: 48px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: transform;
    font-size: 18px;
   }
   
   .button-name:focus {
    outline: none;
    box-shadow: 0 0 5px var(--yellow);
   }
   
   .button-name:hover {
    background-color: var(--yellow);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   }
   
   .button-name:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   }

   #topbutton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#backToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: none;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#backToTop::before {
    content: '↑';
    font-size: 24px;
    line-height: 1;
}

#backToTop:hover {
    background-color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 970px){
    .block2,
    .block5,
    .block7,
    .block9,
    .block3,
    .block6,
    .block8 {
    flex-direction: column;
}
}

@media (max-width: 800px) {
    .hero-image {
        padding: 0;
        background-image: url("R.jpeg");
    }

    .hero-text {
        width: 80%;
    }

    .hero-text h1 {
        color: var(--white);
    }
    
    #logo {
        min-width: 300px;
        min-height: 183px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .menu-icon {
        display: block;
        color: var(--yellow);
        flex-basis: 20%;
        justify-content: center;
        align-items: center;
        font-size: 32px;
    }

    #menu {
        display: none;
    }

    nav,
    .foot {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer {
        text-align: center;
    }

    .links {
        flex-basis: 100%;
        justify-content: space-evenly;
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .links a {
        padding: 10px;
    }

    .links.burger-nav {
        display: flex;
    }

    .links.normal-nav {
        display: flex;
    }

    .rotate-270 {
        -webkit-transform: rotate(270deg);
        transform: rotate(270deg);
      }

      .faq-container h2 {
        text-align: center;
      }

      .faq {
        width: 100%;
    }
    
    .faq-section {
        width: 95%;
        padding: 5px;
    }

    .faq-label {
        padding: 15px;
        padding-left: 5px;
        font-size: 14px;
    }

    .faq-label::after {
        right: 3px;
        font-size: 20px;
    }

    .faq-content {
        padding: 0;
    }



.trainingblocks {
    flex-direction: column;
}

.trainlink1,
.trainlink2,
.trainlink3,
.trainlink4,
.trainlink5 {
    margin-top: 1vh;
    margin-bottom: 1vh;
    min-width: 200px;
    max-width: 200px;
    min-height: 100px;
    max-height: 100px;
}

#img1,
#img2,
#img5,
#img8,
#img6,
#img7,
#img3,
#img12 {
    max-width: 400px;
}

#right,
#left {
    max-width: 90vw;
    padding: 0;
    margin-bottom: 1vh;
    text-align: center;
}
}

/* Add these new rules at the end of the file */
.privacy-policy,
.terms-conditions {
    text-align: left;
}

.privacy-policy .tc,
.terms-conditions .tc {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.privacy-policy h1,
.privacy-policy h2,
.terms-conditions h1,
.terms-conditions h2 {
    text-align: center;
    margin: 20px;
}

@media (max-width: 800px) {
    .privacy-policy .tc,
    .terms-conditions .tc {
        padding: 20px 10px;
    }
}