@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Outfit:wght@100..900&display=swap');

:root {
  --primary: #0a1931; /* Deep Navy */
  --primary-light: #185adb; /* Vibrant Blue */
  --secondary: #ffc947; /* Metallic Gold/Yellow */
  --secondary-dark: #ff7300;
  --accent: #ef4444;
  --dark: #000000;
  --light: #f9f9f9;
  --white: #ffffff;
  --gray-light: #f3f4f6;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
  text-transform: uppercase;
  letter-spacing: -2px;
}
.logo-text span {
  color: var(--secondary);
}
.tagline {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
  margin-top: -5px;
  opacity: 0.9;
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.premium-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 201, 71, 0.4);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header and Navigation Refinements */
.navbar-wrapper {
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent; /* Transparent background when not scrolled at top */
    padding: 0;
    height: 90px; /* Lock height of navbar globally to look ultra slim and professional */
}

/* Center all items vertically inside the locked height active container */
.navbar-wrapper .continer-full {
    height: 100%;
    align-items: center;
}

/* Force zero extra layout bloating from nav links */
.navbar-wrapper .nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.top-bar-header {
    background: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1002;
    position: relative; /* Standard flow relative layout so video starts below it */
    width: 100%;
    height: 95px;
}

.continer-full {
    margin: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    flex: 1;
}

.top-menu-row, .main-menu-row {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.top-menu-row .nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.main-menu-row .nav-link {
    text-transform: uppercase !important;
    font-size: 0.90rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    position: relative;
    padding-bottom: 6px !important;
    transition: color 0.3s ease !important;
}

.main-menu-row .nav-link:hover {
    color: #ff7300 !important;
}

/* Dropdown Logic */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 2px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Logo Area - Always a sleek white badge card */
.logo-area {
    background: white;
    padding: 0 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0;
    height: 74px; /* Locked slim logo card height always */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Make logo graphic prominent by scaling internally to counter the PNG's built-in canvas padding */
.logo-area img {
    height: 74px !important;
    width: auto !important;
    transform: scale(1.8) !important; /* Scale to 1.8 always to make the original logo bold and highly readable */
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.logo-text span {
    color: white; /* Keep all white for now to match screenshot simplicity */
}

.tagline {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    margin-top: 5px;
    font-weight: 700;
    text-align: center;
    max-width: 160px;
    line-height: 1.2;
}

/* Active State - Transition background to blue, slide up to top: 0, and add elegant shadow */
.navbar-wrapper.activeHeader {
    background: var(--primary); /* Blue color when scrolled */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    top: 0; /* Slide to top of the screen when top-bar-header scrolls out of view */
}

/* Banner / Hero */
.banner-area.has-video {
    position: relative;
    height: 85vh; /* Increased height as requested */
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-bg-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 84.375vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Overlay Refinement */
.search-box-input {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 82, 157, 0.98); /* Institute Blue Overlay */
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.search-box-input.active {
    display: flex;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-search:hover {
    transform: rotate(90deg);
}

.search-input-btn {
    width: 80%;
    max-width: 800px;
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding: 10px 0;
}

.search-input-btn input {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    width: 100%;
    outline: none;
    padding: 10px 0;
}

.search-input-btn input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input-btn .btn {
    background: transparent;
    color: white;
    font-size: 2rem;
    border: none;
    padding: 0 20px;
}

.btn-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.btn-search-icon i {
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.navbar-wrapper.activeHeader .btn-search-icon i {
    color: var(--primary);
}

/* Announcements Box Style */
.announcements-box {
    box-shadow: 0 15px 40px rgba(44, 82, 157, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--primary);
    border-radius: 4px !important;
}

.announcement-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.announcement-item:hover {
    padding-left: 10px;
    background: rgba(255,255,255,0.05);
}

.announcement-item p {
    color: rgba(255,255,255,0.9) !important;
}

/* Content Layouts */
.intro-section {
    background: white;
}

.intro-section .row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.intro-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.intro-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}
.hero-content h1 {
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1;
}
.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
}


/* Course Spotlight */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}
.course-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  position: relative;
}
.course-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}
.course-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.course-card:hover .course-img img {
  transform: scale(1.05);
}
.course-body {
  padding: 30px;
  background: var(--white);
}
.course-body h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}
.course-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Announcements Section */
.intro-section {
  padding: 80px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.announcements-box {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: 0;
  position: relative;
}
.announcements-box h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 10px;
  display: inline-block;
}
.announcement-item {
  margin-bottom: 25px;
}
.announcement-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 5px;
}
.announcement-item p {
  font-weight: 500;
  line-height: 1.4;
}

/* Programme Structure */
.programme-structure {
  background-color: #f0f2f5;
  padding: 100px 0;
}
.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.structure-card {
  background: white;
  padding: 0;
  transition: var(--transition);
  border-bottom: 4px solid var(--secondary);
}
.structure-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.structure-content {
  padding: 30px;
}
.structure-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
}


/* Why Choose Us */
.bg-light { background-color: var(--light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.feature-card {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  background: white;
}

/* CTA */
.call-to-action {
  background: url('https://giftifi.in/wp-content/uploads/2023/05/cta-bg.jpg') center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 120px 0;
}
.cta-content {
  padding: 60px;
  border-radius: 30px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--dark);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.newsletter-form {
  display: flex;
  position: relative;
}
.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 40px;
  background: var(--primary);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}
.modal-overlay.open {
  display: flex;
}
.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
}
.form-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 25px;
}
input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

/* Floating Widget */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.8rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .floating-widget span { display: none; }
  .floating-widget { padding: 15px; border-radius: 50%; }
}

/* Announcement Ticker Animation */
@keyframes tickerVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-75%); /* Adjust based on the number of items and their height */
    }
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}
/* Course Card Hover Effects */
.feature-card:hover img {
    transform: scale(1.1);
}
.feature-card .hover-btn:hover {
    background: #b34300 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 82, 0, 0.4);
}
