/* Floating rounded navbar like Material Kit */
.nav-floating {
    background-color: #ffffff;   /* solid white */
    backdrop-filter: none;        /* remove blur */
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 12px 28px;
    width: 100%;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.navbar {
    background-color: #ffffff !important;
}


/* ============================= */
/* MULTI-LEVEL DROPDOWN — OPEN LEFT */
/* ============================= */

.dropdown-submenu {
    position: relative;
}

/* Open submenu to the LEFT */
.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    left: auto;
    display: none;
    min-width: 220px;
    border-radius: 0.5rem;
}
.dropdown-menu {
  pointer-events: auto;
}


/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;   /* bridge the gap */
  width: 12px;
  height: 100%;
}
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
/* Arrow indicator (points left) */
.dropdown-submenu > a.dropdown-toggle::after {
    content: "‹";
    float: right;
    font-size: 18px;
    margin-top: 2px;
}
@media (max-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
    position: static;
    display: none;
    margin-left: 1rem;
    box-shadow: none;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
    .nav-floating {
        background-color: #ffffff;
        border-radius: 0;
    }
}


/* ❌ REMOVE THIS COMPLETELY */

body {
    padding-top: 0px !important;
}


/* HERO SECTION */
.hero-section {
    position: relative;
    height: 80vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../imgs/Global_automotive_img1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(50%);
    z-index: 1;
}

/* Text on image */
.hero-content {
    position: relative;
    z-index: 2;
    color: rgb(255, 255, 255);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 1;
    font-weight: 500;
    font-style: italic;
}

/*regulation_details.html*/
.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/*About.html*/
.page-header {
    min-height: 650px;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: 50%;
    background-image: url('../imgs/AB_BG.jpg')
}

.bg-gradient-dark {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.info>i {
    color: rgb(18, 112, 244);
    font-size: xx-large
}



.footer {
    background-color: #e8e5e5;
}
body {
    background: #f8f9fb;
}

.book-section {
    padding: 80px 0;
}

/* BOOK */
.book-wrapper {
    perspective: 2000px;
    width: 320px;
    height: 460px;
}

/* Book container */
.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Cover & page */
.book-cover,
.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: visible;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Cover */
.book-cover {
    transform-origin: left;
    transition: transform 0.8s ease;
    z-index: 2;
}

/* Page (hidden initially) */
.book-page {
    background: #fff;
    transform: translateX(0);
    transition: transform 0.5s ease;
    z-index: 1;
}

/* Images */
.book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HOVER EFFECT ===== */

/* Step 1: cover opens */
.book-wrapper:hover .book-cover {
    transform: rotateY(-80deg);
}

/* Step 2: page slides AFTER cover opens */
.book-wrapper:hover .book-page {
    transform: translateX(40px);
    transition-delay: 0.1s; /* waits for cover animation */
}

/* Reset delay when hover ends */
.book-page {
    transition-delay: 0s;
}


/* INFO CARDS */
.info-card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 6px;
    text-align: left;
}

.info-card h6 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* SOCIAL */
.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
#downloadBtn:not(.btn-orange):hover {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
}

/* Clicked state */
.btn-orange,
#downloadBtn:hover {
    
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    color: #fff;
}
/* Smooth transition */
#downloadBtn {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.box{
    text-align: center;
}
.author-avatar {
    position: absolute;
    left: 50%;
    bottom: -100px;           /* half of image height */
    transform: translateX(-50%);
    z-index: 10;
}

.author-avatar img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid #fff;   /* clean border over image */
    background: #fff;
}
.min-height-400 {
    min-height: 400px; /* reduced height */
}
a i {
    z-index: -1;
  transition: transform 0.2s ease, color 0.2s ease;
}

a:hover i {
  transform: translateY(-3px);
  color: #0d6efd;
}

