/* style.css — FutureX Learning (Full Final Version) */

/* ================= 1. VARIABLES & RESET ================= */
:root {
  --bg: #eef6ff;
  --card: #ffffff;
  --muted: #6b7b8c;
  --brand: #114b8a;
  --accent: #ff7b00;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 16px 40px rgba(12, 30, 80, 0.08);
  --rounded: 16px;
  --max-width: 1200px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #f7fbff);
  color: #072033;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ================= 2. HEADER (PREMIUM) ================= */
header.premium-header {
  position: sticky; top: 0; z-index: 9999;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 40, 80, 0.04);
  box-shadow: 0 6px 24px rgba(8, 20, 40, 0.04);
}

.ph-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}

.ph-left { display: flex; align-items: center; gap: 12px; }

.logo-wrap { display: flex; gap: 10px; align-items: center; }

/* Desktop Logo */
.logo-wrap img { 
  height: 48px;       
  width: auto;        
  object-fit: contain;
  border-radius: 6px; 
}

.brand-text { line-height: 1; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--brand); }
.brand-line { font-size: 12px; color: var(--muted); margin-top: 2px; }

nav.ph-nav { display: flex; gap: 18px; margin-left: 26px; align-items: center; }
nav.ph-nav a { font-weight: 700; color: #0b2b42; padding: 8px 10px; border-radius: 10px; transition: 0.2s; }
nav.ph-nav a:hover { background: rgba(17, 75, 138, 0.06); color: var(--brand); }

.ph-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn-ghost {
  background: transparent; border: 1px solid rgba(12, 30, 60, 0.06);
  padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--brand); cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 12px;
  font-weight: 800; border: none; cursor: pointer; box-shadow: 0 8px 30px rgba(255, 123, 0, 0.18);
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); }

/* --- PROFILE AVATAR BUTTON --- */
.avatar-btn {
  width: 42px; 
  height: 42px; 
  border-radius: 50%; 
  overflow: hidden;
  border: 2px solid #e2e8f0; 
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  background-color: #0b5fa5; 
  color: #ffffff;            
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s;
}
.avatar-btn:hover { transform: scale(1.05); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Hamburger Menu */
.ph-hamburger {
  display: none; 
  background: var(--card); border-radius: 10px; padding: 8px;
  border: 1px solid rgba(12, 20, 30, 0.03); cursor: pointer;
}

/* ================= 3. MOBILE DRAWER ================= */
#mobileDrawer {
  position: fixed; right: -100%; top: 0; bottom: 0; width: 320px;
  background: #fff; box-shadow: -20px 0 40px rgba(7, 10, 20, 0.12);
  transition: right .28s ease; z-index: 10020; padding: 20px;
}
#mobileDrawer .close-btn { background: none; border: 0; font-size: 20px; cursor: pointer; }

/* ================= 4. HERO SECTION ================= */
.hero {
  max-width: var(--max-width); margin: 28px auto; padding: 26px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 1));
  border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
}
.kicker { color: var(--muted); font-weight: 700; font-size: 13px; }
.hero-title { font-size: 44px; line-height: 1.02; font-weight: 900; margin: 10px 0 12px; color: #072033; }
.hero-sub { color: var(--muted); margin-bottom: 18px; max-width: 560px; font-size: 16px; }

.cta-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }

.features { display: flex; gap: 14px; margin-top: 12px; }
.feature-pill {
  background: var(--card); padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 30, 80, 0.04);
  font-weight: 800; display: flex; gap: 10px; align-items: center;
}

/* ================= 5. UPDATED COURSES (2 Columns Fixed) ================= */
.section { max-width: 900px; margin: 28px auto; padding: 0 20px; }
.section h2 { text-align: center; font-size: 28px; color: var(--brand); margin-bottom: 18px; }

/* GRID LAYOUT - Forces 2 Columns side-by-side always */
.courses {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% 50% split */
  gap: 15px; /* Nice gap between cards */
  width: 100%;
}

.course-card {
  background: var(--card); 
  border-radius: 16px; 
  padding: 24px 10px; /* Vertical padding comfortable, horizontal tight for phone */
  width: 100%; 
  box-shadow: 0 12px 34px rgba(12, 30, 80, 0.06); 
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid #f0f6fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.course-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--brand);
}

.course-card h3 {
  font-size: 16px;
  margin: 12px 0 4px 0;
  color: #0b2b42;
  font-weight: 800;
}

.muted { color: var(--muted); font-weight: 600; font-size: 13px; margin: 0; line-height: 1.3; }
.center { text-align: center; }

/* ================= 6. VIDEO CAROUSEL ================= */
.video-wrap { max-width: 980px; margin: 28px auto; padding: 18px; }
.video-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
  position: relative;
}
.video-area {
  position: relative; overflow: hidden; border-radius: 10px;
  padding: 12px; background: #000; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.video-iframe { width: 100%; height: 420px; border-radius: 12px; border: 0; }

.video-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.video-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(43, 99, 184, 0.16); cursor: pointer; z-index: 5;
}
.video-arrow.left { left: -10px; }
.video-arrow.right { right: -10px; }

/* ================= 7. APP PROMO ================= */
.fx-app-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #f0f7ff 0%, #eef4f9 100%);
  position: relative; overflow: hidden;
}
.fx-app-wrapper {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "text  image" "btns  image";
  align-items: center; gap: 20px 40px;
}
.fx-app-text { grid-area: text; }
.fx-app-title { font-size: 32px; line-height: 1.1; color: #0b2b42; font-weight: 800; margin-bottom: 18px; }
.fx-app-features-list { list-style: none; padding: 0; margin: 0; }
.fx-app-features-list li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  color: #4a5e6d; font-size: 15px; font-weight: 500;
}
.fx-app-features-list li::before {
  content: "✔"; position: absolute; left: 0; color: #2f86ff; font-weight: 800;
}
.fx-app-image { grid-area: image; display: flex; justify-content: center; position: relative; z-index: 1; }
.fx-app-image::before {
  content: ""; position: absolute; width: 360px; height: 360px;
  background: #dbeafe; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: -1;
}
.fx-photo-frame { width: 280px; }
.fx-photo-frame img { width: 100%; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }

.fx-store-row { grid-area: btns; display: flex; gap: 12px; justify-content: flex-start; }
.fx-store-btn img {
  height: 48px !important; width: auto !important;
  display: block; box-shadow: 0 8px 20px rgba(10, 30, 60, 0.08); border-radius: 8px;
}

/* ================= 8. FORM CARD ================= */
.form-card {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 900px; margin: 40px auto;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-weight: 700; margin-bottom: 8px; color: #3a506b; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid transparent; background: #f0f7ff;
  font-size: 15px; color: #0b2b42; font-weight: 500; transition: all 0.2s ease;
}
input:focus, select:focus {
  background: #ffffff; border-color: #2f86ff;
  box-shadow: 0 0 0 4px rgba(47, 134, 255, 0.15); outline: none;
}

/* Submit Button & Profile Dropdown */
.submit-wrap { text-align: center; margin-top: 24px; }
.fx-profile-dropdown {
  position: absolute; right: 0; top: 48px; min-width: 160px;
  background: #fff; border-radius: 10px; box-shadow: 0 14px 40px rgba(10, 30, 70, 0.12);
  display: none; z-index: 12000; overflow: hidden;
}
.fx-profile-dropdown a { display: block; padding: 10px 12px; color: #123; font-weight: 700; }
.fx-profile-dropdown a:hover { background: rgba(17, 75, 138, 0.04); }
.fx-profile-wrap { position: relative; flex-shrink: 0; z-index: 10001; }

/* ================= 9. FOOTER ================= */
.site-footer {
  background: #212121; color: #b0b0b0; padding: 40px 20px;
  font-family: 'Inter', sans-serif; font-size: 14px; margin-top: auto;
}
.footer-content {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
}
.footer-left { flex: 1; min-width: 250px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.social-label { margin-bottom: 12px; font-size: 14px; color: #888; }
.social-icons { display: flex; gap: 10px; }

.footer-right { flex: 1; min-width: 250px; text-align: right; }
.company-name { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.address-block p { margin: 0 0 8px; line-height: 1.5; }

/* ================= 10. GALLERY STYLES ================= */
.page-header {
  position: relative;
  background: linear-gradient(rgba(5, 25, 45, 0.6), rgba(5, 25, 45, 0.4)), 
              url('assets/parrypora.jpg'); 
  background-size: cover; 
  background-position: center;
  padding: 80px 20px 100px;
  text-align: center; 
  color: #fff; 
  margin-bottom: 20px;
}
.page-header h1 { margin: 0; font-size: 36px; font-weight: 900; }
.page-header p { font-size: 18px; opacity: 0.9; margin-top: 10px; }

.custom-shape-divider-bottom-1689 {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0;
}
.custom-shape-divider-bottom-1689 svg {
    position: relative; display: block; width: calc(130% + 1.3px); height: 60px;
}
.custom-shape-divider-bottom-1689 .shape-fill { fill: #f7fbff; }

.gallery-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.gallery-grid { column-count: 4; column-gap: 15px; }

.gallery-item {
    break-inside: avoid; margin-bottom: 15px; 
    background: #fff; padding: 6px; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    cursor: zoom-in; position: relative; overflow: hidden;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.gallery-item img { width: 100%; display: block; border-radius: 8px; }

.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); display: none;
  justify-content: center; align-items: center; z-index: 20000;
  animation: fadeIn 0.2s ease-out;
}
.lightbox.active { display: flex; }
.lb-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lb-close {
  position: absolute; top: -40px; right: 0; background: none; border: none;
  color: #fff; font-size: 40px; cursor: pointer;
}

/* ================= 11. RESPONSIVE ================= */
@media (max-width: 1024px) {
  .container, .section, .ph-inner { padding-left: 16px; padding-right: 16px; width: 100%; }
  body, html { overflow-x: hidden; }

  nav.ph-nav { display: none; }
  .ph-hamburger {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; min-width: 44px; width: 44px; height: 44px; margin-right: 10px;
  }
  .ph-actions { gap: 8px; }
  .hero { display: flex; flex-direction: column; padding: 20px 16px; gap: 30px; }
  .hero-card { width: 100%; max-width: 100%; padding: 24px 20px; margin: 0; }
  .gallery-grid { column-count: 3; }
}

@media (max-width: 900px) {
  .fx-app-wrapper { display: flex; flex-direction: column; text-align: center; gap: 24px; }
  .fx-app-text { order: 1; }
  .fx-app-features-list { display: inline-block; text-align: left; }
  .fx-app-image { order: 2; margin: 10px 0; }
  .fx-app-image::before { width: 260px; height: 260px; }
  .fx-photo-frame { width: 200px; }
  .fx-store-row { order: 3; justify-content: center; }
  .fx-store-btn img { height: 42px !important; }
  
  .footer-content { flex-direction: column; gap: 30px; }
  .footer-right { text-align: left; }
}

/* --- MOBILE (Max 600px) --- */
@media (max-width: 600px) {
  .ph-inner { padding: 10px 12px !important; gap: 0 !important; justify-content: space-between !important; }
  .ph-left { gap: 8px !important; flex: 0 0 auto; }
  .ph-hamburger { width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 8px !important; }

  .logo-wrap img { height: 32px !important; width: auto !important; border-radius: 4px !important; }
  .brand-text { display: none !important; }

  .ph-actions { gap: 8px !important; margin-left: auto !important; }
  .btn-ghost, .btn-primary { 
    padding: 6px 12px !important; font-size: 13px !important; height: 36px !important; 
    white-space: nowrap; display: block; 
  }
  #loginBtn { display: block; }

  .avatar-btn { width: 34px !important; height: 34px !important; font-size: 14px !important; }
  .fx-profile-wrap { margin-left: 8px !important; }

  .hero-title { font-size: 28px; line-height: 1.1; }
  .cta-row { flex-direction: column; gap: 10px; width: 100%; }
  .cta-row .btn-primary, .cta-row .btn-ghost { width: 100%; text-align: center; }
  
  .features { flex-direction: column; width: 100%; }
  
  /* Form card fix */
  .grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px; border-radius: 20px; margin: 20px 0; }
  
  /* Video Fix */
  .video-iframe { height: 220px; }
  .video-arrow { width: 40px; height: 40px; }

  /* Gallery Mobile (2 Columns) */
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; padding: 5px; }
  .page-header { padding: 50px 20px 80px; }
  .page-header h1 { font-size: 28px; }
}
/* ================= MODERN UPDATES SECTION ================= */
.updates-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .updates-grid { grid-template-columns: 1fr; }
}

/* Card Container */
.update-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Soft modern shadow */
  border: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px; /* Fixed height for scrolling */
}

/* Header */
.update-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.update-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b2b42;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-box {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.icon-box.orange { background: #fff0e0; color: #ff7b00; }
.icon-box.blue { background: #e0f0ff; color: #007bff; }

/* Scrollable List Area */
.update-list {
  flex: 1;
  overflow-y: auto; /* Internal scrolling */
  padding: 0;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.update-list::-webkit-scrollbar { width: 4px; }
.update-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* List Items */
.update-item {
  padding: 16px 24px;
  border-bottom: 1px solid #f7f9fc;
  transition: background 0.2s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.update-item:hover { background: #fcfdfe; }
.update-item:last-child { border-bottom: none; }

.update-content { flex: 1; }

.update-text {
  font-size: 14px;
  font-weight: 600;
  color: #334e68;
  line-height: 1.5;
  margin-bottom: 6px;
  display: block;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #829ab1;
}

/* Badges */
.badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.badge.new { background: #ff7b00; color: #fff; }
.badge.info { background: #e0f0ff; color: #007bff; }

/* Links */
.action-link {
  color: #007bff;
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}
.action-link:hover { text-decoration: underline; }

/* --- SKELETON LOADING (The "0 Loading" Effect) --- */
.skeleton-item {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f4f8;
}
.skeleton-line {
  height: 14px;
  background: #f0f4f8;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-line.short { width: 60%; }
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
/* --- MOBILE DRAWER CSS (Paste this in style.css) --- */
#mobileDrawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transform: translateX(100%); /* Default: Hidden off-screen */
  transition: transform 0.3s ease-in-out;
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Jab 'active' class add ho, tab drawer dikhega */
#mobileDrawer.active {
  transform: translateX(0);
}

/* Close Button Styling */
.close-btn {
  align-self: flex-end;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

/* Overlay (Optional: Background ko dim karne ke liye) */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  display: none;
}
.drawer-overlay.active {
  display: block;
}
/* --- FORCE FIX DRAWER CSS --- */
#mobileDrawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    background-color: #ffffff !important; /* Solid White Background */
    box-shadow: -5px 0 20px rgba(0,0,0,0.2) !important;
    z-index: 99999 !important; /* Sabse Upar */
    transform: translateX(100%) !important; /* Default: Chupa hua */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 25px !important;
}

/* Jab Active ho */
#mobileDrawer.active {
    transform: translateX(0) !important; /* Screen pe aajaye */
}

/* Close Button ko visible karein */
#drawerClose {
    font-size: 30px !important;
    color: #333 !important;
    cursor: pointer !important;
    align-self: flex-end !important;
    margin-bottom: 20px !important;
}
