/* --- EXACT 100% MATCH CSS --- */

:root {
    --primary-purple: #5a4bda; /* Exact purple from original images */
    --primary-purple-hover: #4839bd;
    --hero-gradient-1: rgba(104, 33, 168, 0.85); /* Deep purple overlay */
    --hero-gradient-2: rgba(88, 28, 135, 0.95);
    --yellow-accent: #ffc107; /* The exact yellow "with EduGyaan.in" */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #ffffff;
    --bg-blueish: #f4f6fa; /* Light blueish bg for articles section */
    --footer-bg: #111827; /* Dark navy */
    --footer-border: #1f2937;
    --premium-shadow: 0 16px 34px rgba(24, 26, 60, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Clean, modern font matching the screenshot */
}

body{
  background:
    radial-gradient(900px 600px at 8% 12%, rgba(42,130,255,0.10), transparent 60%),
    radial-gradient(800px 500px at 92% 18%, rgba(0,180,255,0.08), transparent 60%),
    radial-gradient(700px 500px at 30% 95%, rgba(255,215,140,0.12), transparent 65%),
    linear-gradient(180deg, #f7f9ff 0%, #f1f5ff 45%, #ffffff 100%);
  
  background-attachment: fixed;
  color:#222;
  padding-top:78px;
  overflow-x:hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.text-purple { color: var(--primary-purple) !important; font-weight: 600; }

/* --- Navbar --- */
.main-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:78px;
  background: linear-gradient(135deg,
    rgba(16, 6, 90, 0.95),
    rgba(65, 16, 181, 0.92),
    rgba(121, 30, 209, 0.9),
    rgba(190, 51, 229, 0.88),
    rgba(245, 116, 211, 0.84));
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  z-index:1000;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
  gap: 18px;
}
.logo{
  font-size:24px;
  font-weight:700;
  color:#fff;
  flex-shrink: 0;
}

.logo-image {
  display: flex;
  align-items: center;
  width: 250px;   /* navbar ke hisaab se */
  height: 75px;   /* standard navbar height */
}

.logo-image img {
  width: 100%;
  height: 85%;
  object-fit: contain;
  display: block;
}

.nav{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav ul{
  list-style:none;
  display:flex;
  gap:10px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav ul li {
  position: relative;
}

.nav ul li a{
  color:#fff;
  text-decoration:none;
  padding:8px 14px;
  border-radius:6px;
  transition:.3s;
}

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 150%;
  left: 0;
  width: 280px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 0;
  background: linear-gradient(145deg, rgba(53, 20, 148, 0.96), rgba(149, 47, 210, 0.95));
  box-shadow: 0 16px 30px rgba(9, 4, 37, 0.34);
  z-index: 2200;
  overflow: hidden;
}

.nav-dropdown a {
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-size: 14px;
  line-height: 1.3;
}

.nav-dropdown a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: flex;
}

#articleNavTrigger {
  min-width: 78px;
  justify-content: center;
}


.has-dropdown.open > #articleNavTrigger {
  background: rgba(255,255,255,.18);
  color: #ffeb73;
}

.login-btn,
.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-chip {
  padding: 8px !important;
  border-radius: 999px !important;
  min-width: 48px;
  min-height: 48px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.profile-chip:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

.profile-chip .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0a8, #f7c600);
  color: #19325d;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.profile-chip .meta {
  display: none;
}

.nav ul li a:hover{
  background:rgba(255,255,255,.15);
  color: yellow;
}

.menu-icon{
  display:none;
  font-size:20px;
  color:#fff;
  cursor:pointer;
}

.header-search-wrap {
  order: 4;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-search-wrap i {
  color: rgba(255, 255, 255, 0.92);
}

.header-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.header-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search-wrap button {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #122055;
  background: linear-gradient(135deg, #fff2ab, #ffd84a);
  transition: transform .25s ease, box-shadow .25s ease;
}

.header-search-wrap button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 211, 77, 0.36);
}

.header-search-status {
  order: 5;
  width: 100%;
  margin: -4px 4px 0;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 500;
}

.login-wrapper {
  position: relative;
}

.login-drawer{
  position: absolute;
  top: 100%;
  right: 18px;
  width: 200px;
  background: linear-gradient(145deg, #5d3cd9 0%, #a83de4 62%, #c34de8 100%);
  border: 1px solid rgba(255,255,255,0.24);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 30px rgba(22, 13, 70, 0.36);
  display: none;
  flex-direction: column;
  z-index: 3000;
  overflow: hidden;
}

.login-drawer.open{
  display: flex;
}
/* Drawer jab mobile menu ke andar move hota hai */
.login-drawer.in-mobile{
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
  border-radius: 14px;
  border-top: 1px solid rgba(255,255,255,0.24);
  right: auto;
  top: auto;
  overflow: hidden; 
}

.drawer-item{
  padding: 15px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .2s, color .2s, transform .2s;
  line-height: 1;
  outline: none;
}

.drawer-item.user{
  background: linear-gradient(90deg, rgba(67, 44, 186, 0.96), rgba(176, 59, 220, 0.95));
}

.drawer-item.admin{
  background: linear-gradient(90deg, rgba(90, 49, 205, 0.95), rgba(206, 86, 230, 0.94));
}

.drawer-item:hover{
  background: linear-gradient(90deg, rgba(102, 65, 224, 0.98), rgba(220, 110, 242, 0.95));
  color: #ffffff;
  transform: translateX(1px);
}

.drawer-item:focus-visible{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.45);
}

.drawer-item + .drawer-item{
  border-top: 1px solid rgba(255,255,255,0.18);
}

.drawer-item.user{
  opacity: .92;
  pointer-events: none;
}

.drawer-item.actionable{
  opacity: 1;
  pointer-events: auto;
}
.drawer-item i{
  margin-right: 10px;
  font-size: 20px;
  color: rgba(239, 238, 255, 0.88);
}



/* ===== MOBILE MENU ===== */
.mobile-menu{
  position:fixed;
  top:0;
  left:-100%;
  width:60%;
  height:100%;
  background: linear-gradient(145deg, #2510a4 0%, #5720c5 48%, #a93ee5 100%);
  padding:20px;
  z-index:4000;
  transition:.3s;
  overflow-y:auto;
  box-shadow: 0 22px 44px rgba(9, 5, 38, 0.45);
}

.mobile-menu > a{
  display:block;
  padding:14px 0;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.2);
}

.mobile-article-toggle{
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font: inherit;
  font-size: 18px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-article-toggle i {
  font-size: 14px;
  transition: transform .2s ease;
}

.mobile-article-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-article-links{
  display: grid;
  margin: 0;
}

.mobile-article-links[hidden]{
  display: none !important;
}

.mobile-article-links .mobile-sub-link {
  display:block;
  padding: 10px 0 10px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px dashed rgba(255,255,255,.18);
}

.mobile-menu > a.profile-chip{
  width: 48px;
  padding: 8px 0;
  border-bottom: none;
  background: transparent;
  border-radius: 999px !important;
  box-shadow: none;
}


.mobile-menu .close{
  font-size:20px;
  color:#fff;
  cursor:pointer;
  display:block;
  text-align:right;
}
@media(max-width:768px){
  .mobile-menu .login-drawer{
    width: 100%;
    margin-top: 0px;
    box-shadow: none;
    border-radius: 0;
  }
}


/* ===== SOCIAL SLIDER ===== */
.social-slider{
  position:fixed;
  top:45%;
  left:0;
  background:#fff;
  padding:5px 5px;
  border-radius:0 14px 14px 0;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  z-index:999;
}

.social-slider a{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  margin:6px 0;
  font-size:17px;
  text-decoration:none;
  transition:.2s;
}

.social-slider a:hover{
  transform:scale(1.1);
}

.fb{background:#1877f2;}
.wa{background:#25d366;}
.tw{background:#1da1f2;}
.ig{
  background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285AEB 90%);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 10px; /* Extra bottom padding for cards */
    background: linear-gradient(135deg, 
                rgba(16, 6, 90, 0.85), 
                rgba(65, 16, 181, 0.85), 
                rgba(121, 30, 209, 0.85), 
                rgba(190, 51, 229, 0.85), 
                rgba(245, 116, 211, 0.85)), 
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom right, var(--hero-gradient-1), var(--hero-gradient-2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--yellow-accent);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-search-wrap {
    width: min(860px, 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-search-wrap i {
    color: rgba(255, 255, 255, 0.95);
    margin-left: 6px;
}

.hero-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
}

.hero-search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.hero-search-wrap button {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #122055;
    background: linear-gradient(135deg, #fff2ab, #ffd84a);
}

.hero-search-status {
    min-height: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.btn-pill-white {
    background: white;
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pill-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
}

.premium-hover,
.btn-pill-white,
.btn-pill-outline,
.btn-primary-rect,
.view-details-btn,
.nav ul li a {
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, color .28s ease;
}

.premium-hover:hover,
.btn-pill-white:hover,
.btn-pill-outline:hover,
.btn-primary-rect:hover,
.view-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--premium-shadow);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 32px;
    color: var(--yellow-accent);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* --- Featured Content (Courses) --- */
.featured-section {
    padding: 80px 0;
    background: #ffffff;
}

.ppt-cloud-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.ppt-cloud {
    border: none;
    cursor: pointer;
    min-height: 165px;
    padding: 16px;
    color: #1f2f6d;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f5f8ff);
    border-radius: 54% 46% 57% 43% / 54% 60% 40% 46%;
    box-shadow: 0 12px 25px rgba(42, 78, 183, 0.14), inset 0 -8px 14px rgba(198, 222, 255, 0.55);
    border: 2px dashed rgba(38, 76, 193, 0.34);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.ppt-cloud::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(103, 152, 255, 0.22);
    top: -12px;
    right: -4px;
}

.ppt-cloud:nth-child(2n) {
    border-radius: 48% 52% 43% 57% / 58% 46% 54% 42%;
}

.ppt-cloud:nth-child(3n) {
    border-radius: 60% 40% 53% 47% / 50% 60% 40% 50%;
}

.ppt-cloud span {
    position: relative;
    z-index: 1;
}

.ppt-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(10, 16, 34, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ppt-modal.active {
    display: flex;
}

.ppt-modal-box {
    width: min(540px, 100%);
    border-radius: 22px;
    background: linear-gradient(170deg, #ffffff, #eef4ff);
    border: 1px solid #d7e6ff;
    box-shadow: 0 30px 80px rgba(14, 26, 59, 0.3);
    padding: 26px;
    position: relative;
}

.ppt-modal-box h3 {
    font-size: 30px;
    color: #1e2f6f;
    margin-bottom: 8px;
}

.ppt-modal-box p {
    color: #5c6f98;
    margin-bottom: 20px;
}

.ppt-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: #5b6da1;
}

.class-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.class-choice-grid button {
    border: 1px solid #bfd4ff;
    background: #fff;
    color: #1f2f6d;
    border-radius: 12px;
    padding: 12px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.class-choice-grid button:hover {
    transform: translateY(-2px);
    border-color: #5f89ff;
    box-shadow: 0 12px 20px rgba(60, 108, 232, 0.2);
}

.search-hidden {
    display: none !important;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-img-box {
    position: relative;
    height: 180px;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-purple);
    color: white;
    padding: 4px 12px;
    border-radius: 20px; /* Pill shape exactly like image */
    font-size: 13px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta i { margin-right: 4px; }

.card-rating {
    font-size: 13px;
    color: var(--text-muted);
}

.card-rating .fa-star {
    color: var(--yellow-accent);
}

.card-rating strong {
    color: #111827;
    font-weight: 700;
}

.view-details-btn {
    width: 100%;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.view-details-btn:hover { background: var(--primary-purple-hover); }

.btn-primary-rect {
    background: var(--primary-purple);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Latest Articles --- */
.articles-section {
    padding: 80px 0;
    background: var(--bg-blueish); /* The exact light blue-gray background */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.article-card-link {
    display: block;
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-body {
    padding: 24px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.article-label {
    display: inline-flex;
    margin-bottom: 12px;
    background: rgba(90, 75, 218, 0.12);
    color: var(--primary-purple);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.article-label-link:hover {
    background: rgba(90, 75, 218, 0.22);
}

.article-title-link {
    display: block;
}

.article-title-link .article-title {
    transition: color 0.2s ease;
}

.article-title-link:hover .article-title {
    color: #3746c8;
}

.article-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9ca3af;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(to right, #8b5cf6, var(--primary-purple));
    padding: 80px 0;
    color: white;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: #9ca3af;
    padding: 50px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 48px;
    margin-bottom: 20px;
}

.footer-logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-image {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 150px;
    height: 75px;
    overflow: hidden;
}

.footer-logo-image img {
    
    width: 100%;
    height: 90%;
    object-fit: contain;
    display: block;
}

.brand-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.social-icons a {
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s;
}

.social-icons a:hover { color: white; }

.site-footer h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.links-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-col p {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-col i { font-size: 16px; }

.newsletter-col p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.newsletter-form input {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 12px 16px;
    color: white;
    flex-grow: 1;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.newsletter-feedback {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
}

.newsletter-feedback.success {
    color: #c9ffde;
}

.newsletter-feedback.error {
    color: #ffd3d3;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 24px;
    font-size: 13px;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 52px;
    }

    .stats-container,
    .ppt-cloud-grid,
    .cards-grid,
    .articles-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
        background-attachment: scroll;
    }

    .main-header {
        height: 68px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-image img {
        transform: scale(1.52);
    }

    .logo-image {
        width: 180px;
        height: 54px;
    }

    .nav {
        display: none;
    }

    .menu-icon {
        display: block;
    }

  .mobile-menu {
        width: min(82vw, 320px);
    }

    .profile-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .social-slider {
        display: flex;
        flex-direction: column;
        top: 42%;
        bottom: auto;
        left: 0;
        padding: 5px;
        border-radius: 0 12px 12px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.22);
    }

    .social-slider a {
        width: 28px;
        height: 28px;
        margin: 5px 0;
        font-size: 14px;
    }

    .hero-section,
    .featured-section,
    .articles-section,
    .cta-section,
    .site-footer {
        padding: 56px 0;
    }

    .hero-title {
        font-size: 38px;
        margin-bottom: 16px;
        line-height: 1.15;
    }

    .hero-subtitle,
    .cta-desc {
        font-size: 16px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }

    .hero-search-wrap {
        margin-bottom: 18px;
        padding: 9px;
    }

    .hero-search-wrap button {
        padding: 9px 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 32px;
    }

    .btn-pill-white,
    .btn-pill-outline,
    .btn-primary-rect {
        width: 100%;
        justify-content: center;
    }

    .stats-container,
    .ppt-cloud-grid,
    .cards-grid,
    .articles-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-meta,
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-header h2,
    .cta-title {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        overflow: visible;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-height: 46px;
        border-radius: 8px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .class-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-box {
        padding: 24px 16px;
    }
}
