/*
Theme Name: DayyaniHub
Theme URI: https://dayyanihub.com
Author: DayyaniHub
Description: Professional Institute Website for DayyaniHub - Spoken English, Web Development & Accounting Courses in Hyderabad
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dayyanihub
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1340a8;
  --primary-light: #e8f0fe;
  --accent: #f0b429;
  --text-dark: #1a202c;
  --text-mid: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --bg-light: #f7faff;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); line-height: 1.8; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}
.btn-accent:hover {
  background: #d69e2e;
  transform: translateY(-2px);
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #f7faff 0%, #e8f0fe 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,86,219,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge::before { content: '🎓'; }

.hero-title { margin-bottom: 20px; }
.hero-title strong { color: var(--primary); }

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--text-mid);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
}
.hero-card-title {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.course-preview-list { display: flex; flex-direction: column; gap: 16px; }
.course-preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: 0.2s;
}
.course-preview-item:hover { background: var(--primary-light); }
.course-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.course-icon.blue { background: #dbeafe; }
.course-icon.green { background: #d1fae5; }
.course-icon.purple { background: #ede9fe; }
.course-preview-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.course-preview-info p { font-size: 0.8rem; color: var(--text-light); }

/* ===== SECTION STYLES ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: 0.3s;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }

/* ===== COURSES GRID ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.course-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.course-thumb.english { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.course-thumb.webdev { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.course-thumb.accounting { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }

.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.course-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.course-body p { font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.course-price .original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  display: block;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-course { font-size: 0.8rem; color: var(--text-light); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ===== COURSES PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, #f7faff 0%, #e8f0fe 100%);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.courses-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-mid);
  transition: 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: 0.2s;
  font-family: inherit;
  color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.about-visual-icon { font-size: 6rem; margin-bottom: 20px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.value-item { display: flex; gap: 12px; align-items: flex-start; }
.value-check {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== LOGIN / REGISTER ===== */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  padding: 60px 0;
}
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 0.95rem; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-light); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}
.dashboard-sidebar {
  background: #0f172a;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(26,86,219,0.3);
  color: white;
}
.sidebar-link span { font-size: 1.1rem; }
.dashboard-main { padding: 40px; background: var(--bg-light); }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h2 { margin-bottom: 4px; }
.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.enrolled-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  margin: 12px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 9999;
    padding: 24px;
    flex-direction: column;
    gap: 24px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 1.2rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .mobile-close { align-self: flex-end; font-size: 1.5rem; cursor: pointer; background: none; border: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .auth-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
