/* ========================================
   GYANVERSE INSTITUTE - PROFESSIONAL STYLES
   ======================================== */

/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* TOP BAR */
.topbar {
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .left {
    display: flex;
    gap: 20px;
}

.topbar i {
    margin-right: 8px;
    color: #ff9933;
}

.topbar .right {
    display: flex;
    gap: 12px;
}

.topbar .right a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

.topbar .right a:hover {
    color: #ff9933;
    transform: scale(1.1);
}

/* BRAND BAR */
.brandbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    text-align: center;
    padding: 10px 8px;
    border-bottom: 3px solid #ff9933;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brandbar .logo-img {
    height: 70px;
    margin-right: 15px;
    vertical-align: middle;
}

.brandbar h1 {
    display: inline-block;
    color: #d35400;
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    vertical-align: middle;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* HEADER NAVIGATION - DESKTOP */
header {
    background: linear-gradient(to right, #ff9933, #fff, #138808);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    gap: 10px;
}

header nav a,
header nav li {
    margin: 0 15px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    padding: 2px 3px;
    border-radius: 5px;
}

header nav a:hover {
    color: #d35400;
    background: rgba(255, 255, 255, 0.3);
}

header nav a.active {
    color: #d35400;
    background: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    border-bottom: 3px solid #d35400;
}

/* DROPDOWN MENU */
.nav-item.dropdown {
    position: relative;
    list-style: none;
}

.nav-item .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
    margin-top: 0px;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 6px 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(to right, #ff9933, #fff);
    border-left: 3px solid #ff9933;
    color: #d35400;
    padding-left: 15px;
}

/* HAMBURGER ICON - ALWAYS CENTERED */
.hamburger {
    display: none;
    position: fixed;
    right: 20px;
    top: 80px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 10001;
    padding: 0;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

/* HAMBURGER ACTIVE STATE (X ICON) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: -10px;
}

/* MOBILE NAVIGATION PANEL */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;

  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;

  padding-top: 180px;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

body.menu-open::before {
  z-index: 9998;
}

.hamburger {
  z-index: 10001;
}

/* MOBILE NAV SCROLLBAR */
.mobile-nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: #ff9933;
    border-radius: 10px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* MOBILE NAV LINKS */
.mobile-nav a,
.mobile-nav li {
    display: block;
    padding: 16px 25px;
    font-size: 17px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
    list-style: none;
    margin: 0;
}

.mobile-nav a:hover {
    background: linear-gradient(to right, #ff9933, #fff);
    color: #d35400;
    padding-left: 35px;
    border-left: 4px solid #ff9933;
}

.mobile-nav a.active {
    background: linear-gradient(to right, #ff9933, #fff);
    color: #d35400;
    font-weight: 600;
    border-left: 4px solid #d35400;
}

/* SUBMENU IN MOBILE */
.has-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-submenu > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    font-size: 12px;
    font-weight: 900;
    transition: transform 0.3s;
}

.has-submenu.open > a .arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: #f0f4f8;
    border-left: 3px solid #ff9933;
    margin: 0;
    padding: 0;
}

.submenu.show {
    display: block;
}

.submenu a {
    padding-left: 45px !important;
    font-size: 15px;
    border-bottom: 1px solid #d0d7de;
    color: #555;
}

.submenu a:hover {
    background: linear-gradient(to right, #ff9933, #fff);
    color: #d35400;
    padding-left: 55px !important;
}

/* OVERLAY WHEN MENU IS OPEN */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==============================
   MOBILE & TABLET
   ============================== */
@media (max-width: 991px) {
  header nav {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 10001;
  }

  .mobile-nav {
    padding-top: 180px;
    overflow-y: auto;
  }
}


/* ==============================
   DESKTOP ONLY
   ============================== */
@media (min-width: 992px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ANNOUNCEMENT TICKER */
.announcement {
    background: linear-gradient(90deg, #ff9933, #ff7518);
    border-top: 2px solid #138808;
    border-bottom: 2px solid #138808;
    overflow: hidden;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker ul {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.ticker li {
    padding: 0 60px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* HERO SECTION */
.hero {
    background-image: url('../images/common/background.svg') !important;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 80px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* BUTTON STYLES */
.btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #ff9933, #d35400);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(135deg, #d35400, #a03e00);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
}

/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: space-around;
    margin: 80px auto;
    max-width: 1200px;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.feature {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    width: 30%;
    min-width: 280px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s;
    border: 1px solid #e0e0e0;
}

.feature:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #ff9933;
}

.feature img {
    width: 80px;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #138808;
    font-size: 22px;
    font-weight: 600;
}

.feature p {
    line-height: 1.6;
    color: #555;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #138808 0%, #0d5c06 100%);
    color: #fff;
    padding: 50px 0 20px;
    font-family: 'Roboto', sans-serif;
}

.footer_box {
    margin-bottom: 30px;
}

.footer_head {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-left: 4px solid #facc15;
    padding-left: 12px;
}

.footer_para {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 10px;
    display: block;
}

.footer_para i {
    margin-right: 10px;
    color: #facc15;
}

footer a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

footer a:hover {
    color: #facc15;
    padding-left: 5px;
}

.footer_last {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer_last i {
    font-size: 18px;
    margin-right: 12px;
    color: #facc15;
    margin-top: 3px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons .facebook {
    background: #1877f2;
}

.social-icons .pinterest {
    background: #e60023;
}

.social-icons .instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949 45%, #d6249f 70%, #285aeb 100%);
}

.social-icons .twitter {
    background: #000;
}

.social-icons a:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer img.app-badge {
    max-width: 180px;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

footer img.app-badge:hover {
    transform: scale(1.05);
}

footer .copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #e0e0e0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .topbar {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .topbar .left {
        flex-direction: column;
        gap: 5px;
    }
    
    .brandbar h1 {
        font-size: 20px;
    }
    
    .brandbar .logo-img {
        height: 50px;
    }
    
    header {
        position: relative;
    }
    
    header nav {
        display: none;
    }
        
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        width: 90%;
    }
}

/* ANIMATIONS */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFade 1s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.mobile-nav li {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 16px 25px;
}
.mobile-nav {
  padding-top: 180px;   /* adjust if needed */
  overflow-y: auto;
}

