body {
    
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
}
header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 10%;
}



.logo {
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
    max-width: 12vw;
    height: auto;
    transition: 0.9s ease-in-out;
}

.logo img:hover {
    transform: scale(1.15);
    transition: 0.9s ease-in-out;

}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {

    display: inline;
    position: relative;
    padding: 10px;
    transition: all 1s ease-in-out;
}

nav ul li a {
    text-decoration: none;
    color: #888;
    padding: 5px;
    font-size: 1.5vw;
    font-weight: 500;
    transition: all 2s ease-in-out;
}

nav ul li a.active {
    text-shadow: 2.5px 2.5px 2.5px rgba(210, 210, 210, 0.5);
    color: black;
    transition: all 2s ease-in-out;
}

nav ul li a:hover {
    transition: all 0.5s ease-in-out;
    border-radius: 3px;
    color: rgb(0, 0, 0);

}

nav ul li:hover {
    transform: scale(1.05);
    transition: all 1s ease-in-out;
    background: linear-gradient(to right, #ecf7ff 20%, rgba(0, 0, 0, 0) 100%), url('./styles/hero-bg.avif');
    background-size: cover;
    background-position: center;
    box-shadow: 2.5px 3px #646a88;
    border-radius: 4px;
    z-index: 10;
}

.submenu {
    position: relative;
    display: block;

}



.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 15px;
    display: none;
    /* Hide submenu by default */
    min-width: 250px;
}

nav ul .submenu:hover .sub-menu {
    display: flex;
    /* Show submenu on hover */
}

.submenu li{
    min-width: fit-content;
}

.submenu li a{
    font-size: 18px;
}



.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    text-decoration: none;
    transition: all 1s ease;
    color: rgb(244, 239, 239);
    font-size: 40px;
    text-shadow: 2.5px 2.5px 2.5px rgb(0, 0, 0, 0.5);

}


.social-icons a:hover {
    transition: all 0.8s ease;
    transform: scale(1.6);
    color: #2c4ee4;

}

.social-icons a:last-child:hover {
    color: red;

}

main{
    background: linear-gradient(to right, #f8f8f8 62%, rgba(0,0,0,0) 100%), url('./styles/hero-bg.avif');
    background-size: cover;
    background-position: center;
}
.hero {
    display: flex;
    padding: 0 10%;
    
}
.hero .text {
    margin-top: 70px;
    max-width: 80%;
    text-align: justify;
    padding-bottom: 5rem;
}
.hero h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #666;
    
}

.text p{

    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    text-align: justify;
}

.text .title-p{
    font-size: 2vw;
}

.text h2{
    margin-bottom: 30px;
}


.welcome-section {
    text-align: center;
    padding: 60px 5%;
    background: #f4faff;
    color: #b29564;
}

.welcome-section.video-trailer{
    background: linear-gradient(to bottom, #f8fbff 32%, rgba(0,0,0,0) 100%),url('./styles/feat-book1.jpg');
    
}

.welcome-section.video-trailer .read-more{
    background-color: #c3bfbf;
}
.welcome-section.video-trailer .read-more:hover{
    background-color: #b29564;
    color: black;
}

.welcome-section h2 {
    width: 100%;
    font-size: 36px;
    font-weight: bold;
}
.welcome-section p {
    font-family: "Poppins", sans-serif;
    text-align: center;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    color: #666;
    max-width: 100%;
    margin: 20px 0;
    
}
.awards {
    display: flex;
    justify-content: center;
    gap: 45px;
    margin-top: 30px;
}
.award {
    text-align: center;
}
.award img {
    width: 380px;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    transition: 2s ease-out, transform 0.6s ease-out;
}

.award img:hover{
    transform: scale(1.1);
}

.author-story {
    display: flex;
    flex-direction: column;
    
    justify-content: center;
    align-items: center;


    max-width: 100vw;
    padding: 60px 10%;
    background: #f8f8f8;
}

.author-story img {
    width: 100%;
    height: 20%;

}
.author-story .text {
    justify-content: center;
    align-items: center;
    max-width: 100%;
}
.author-story h2 {
    padding: 20px;
    max-width: 100%;
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    color: #b29564
}
.author-story p {
    font-size: 18px;
 color: #666;
}
.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #b29564;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}
.stats::before,
.stats::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #b29564;
}
.stats::before {
    top: 0;
}
.stats::after {
    bottom: 0;
}
.stats div {
    position: relative;
}
.stats div::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50%;
    width: 2px;
    height: 90%;
    background: #b29564;
    transform: translateY(-50%);
}
.stats div:first-child::before {
    display: none;
}
.stats span {
    display: block;
    font-size: 50px;
}

.featured-video{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
    .featured-video {
        padding: 0 10px;
    }
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 15px;
    color: #525252;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid #b29564;
    transition: all 1s ease-in-out;
}

.read-more:hover {
    background-color: #b29564;
    color: #000000;
}

.video-interview {
    display: inline-block;
    width: 100%;
    padding: 40px 5%;
    text-align: center;
    background-color: #e6effe;
    min-height: auto;
}

.video-interview h1 {
    font-size: clamp(24px, 2.5vw, 36px);
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 0;
    color: #b29564;
}

.video-gallery {   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.video-card {
    background-image: url('./styles/hero-bg.avif');
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 50px;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
} 


.overlay{
    position: relative;
    margin-top: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 500;
    color:#3a2b12;
}

/* Modal styles update */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;  /* Changed from flex to none by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal video {
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 85vh;
    border-radius: 12px;
    
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: clamp(24px, 4vw, 40px);
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.event-but{
    padding-bottom: 120px;
    position: relative;
    
    
}

button.custom-btn {
    background-color: #e6effe;
}

.btn-12{
    left: 60%;
    transform: translateX(-30%);
    position: relative;
    
    border:none;
    box-shadow: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    height: 80px;
    line-height: 70px;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }

  .btn-12 a{
    text-decoration: none;
    color: #fff5ea;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 2px;
    font-size: 20px;
    align-self: center;
  }
  .btn-12 span {
    
    background: linear-gradient(0deg, #241700 0%, #99712d 100%);
    display: block;
    position: absolute;
    width: 40%;
    height: 70px;
    transform: translateX(50%);
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    margin:0;
    align-self: center;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all .3s;
    transition: all .3s;
  }
  .btn-12 span:nth-child(1) {
    box-shadow:
     -7px -7px 20px 0px #fff9,
     -4px -4px 5px 0px #fff9,
     7px 7px 20px 0px #0002,
     4px 4px 5px 0px #0001;
    -webkit-transform: rotateX(90deg);
    -moz-transform: rotateX(90deg);
    transform: rotateX(90deg);
    -webkit-transform-origin: 50% 50% -20px;
    -moz-transform-origin: 50% 50% -20px;
    transform-origin: 50% 50% -20px;
  }
  .btn-12 span:nth-child(2) {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: 50% 50% -20px;
    -moz-transform-origin: 50% 50% -20px;
    transform-origin: 50% 50% -20px;
  }
  .btn-12:hover span:nth-child(1) {
    box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
     7px 7px 20px 0px rgba(0,0,0,.1),
     4px 4px 5px 0px rgba(0,0,0,.1);
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
  }
  .btn-12:hover span:nth-child(2) {
    box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
     7px 7px 20px 0px rgba(0,0,0,.1),
     4px 4px 5px 0px rgba(0,0,0,.1);
   color: transparent;
    -webkit-transform: rotateX(-90deg);
    -moz-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
  }

@media (max-width: 768px) {
    
    .modal {
        border-radius: 10px;
    }
    
    .modal video {
        width: 100%;
        
        max-height: 80vh;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .event-but{
       
        padding-top: 0;
        padding-bottom: 20px;
    }

    .btn-12{
        background: none;
        margin-top: -30px;
        left: 20%;
        transform: translateY(-10%);
        transform: translateX(-10%);
    }

    .btn-12 a{
        
        letter-spacing: 0.5px;
        font-weight: bold;
        font-size: 12px;

      }

      .btn-12 span{
        width: 80%;
      }

    
}

.modal video {
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 80vh;
}

@media (max-width: 768px) {

   
    .video-interview {
        padding: 30px 15px;
        border-radius: 10px;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
        

    }

    .video-interview h1{
        font-size: 30px;
        text-align: center;
    }

    .video-card {

        margin-bottom: 70px;
    }
    .overlay p{
        text-align: center;
        color: #666;
        letter-spacing: 2px;
        font-weight: 700;
        font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-size: 12px;
    }
    .overlay {
        
        margin-top: 15px;
        border-radius: 5px;
        
        padding: 15px;
        
    }
    
    .modal video {
        width: 95%;
    }
}

.newsletter-section {

    padding: 100px 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100vw;
}
.newsletter-section h2 {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}
.newsletter-section input {
    width: 400px;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.newsletter-section button {
    padding: 10px;
    margin-top: 10px;
    background-color: #00296b;
    border: 1px solid #797575;
    box-shadow: 2.5px 4px #888888;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.8s ease;
    text-decoration: none;
    color: #ffffff;
}
.newsletter-section button:hover {
    color: #fff;
    transition: all 1s ease;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.footer{
    top: 100%;
    bottom: 0;
}


footer .nav ul {
    display: flex;
    gap: 20px;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    margin-bottom: 20px;
    list-style: none;

}

footer li a {
    text-decoration: none;
    color: #666;

}

.footer-header nav{

    display: flex;
    max-width: 100%;
    background: #d4e0f5;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    color: #d6d4d4;
}


.footer-header nav {
    display: flex;
    gap: 20%;
    align-items: center;
}

.footer-header a {
    font-size: 2vw;
}

.footer-header-text:hover {
    transform: scale(1, 1);
    box-shadow: none;
    background-image: none;
}

footer {
    justify-content: center;
    align-items: center;
    background: #d4e0f5;
    color: rgb(64, 64, 66);
    font-family: "Poppins", sans-serif;
    max-width: 100vw;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 20px;
    text-decoration: none;
}

footer a {
    text-decoration: none;

}

.seaamos h4 {
    text-decoration: none;
    font-weight: 300;
    font-style: normal;
}

.seaamos a {
    font-family: "Poppins", sans-serif;
    color: rgb(64, 64, 66);
    text-decoration: none;
}

.seaamos a:hover,
footer a:hover {
    color: #cc0000;
}

.auth-text-footer {
    color: #000000;
}

.auth-text-footer:hover::before {
    opacity: 0;
}

.awards.ellis-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-top: 30px;
}

.ellis-photos .award img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    transition: 2s ease-out, transform 0.6s ease-out;
}

@media screen and (max-width: 768px) {
    .ellis-photos {
        flex-direction: column;
    }
    
    .ellis-photos .award img {
        width: 90%;
        height: auto;
        max-height: 350px;
    }
}

/* Book display styling for uniform appearance */
.book-series .award img {
    width: 280px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease-out;
}

.book-series .award img:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .book-series {
        flex-direction: column;
        align-items: center;
    }
    
    .book-series .award img {
        width: 220px;
        height: 320px;
        margin-bottom: 20px;
    }
}