/* Open University Educational Website Styles */

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #ffedd5;
  --secondary: #8b5cf6;
  --secondary-dark: #7c3aed;
  --secondary-light: #ede9fe;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --success: #22c55e;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

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

.grid {
  display: grid;
  gap: 2rem;
}

.flex {
  display: flex;
}

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-content-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray-600 { color: var(--gray); }
.text-gray-700 { color: var(--dark); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 2rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded { border-radius: 0.25rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

.absolute { position: absolute; }
.relative { position: relative; }

.inline-block { display: inline-block; }
.block { display: block; }

.hidden { display: none; }

section { padding: 6rem 0; }
section.section-light { background-color: var(--light); }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  section { padding: 4rem 0; }
}

.section-description {
  color: var(--gray);
  max-width: 600px;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 20px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.cta-btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--primary-dark);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--gray);
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
  }
}

.hero {
  position: relative;
  height: 100vh;
  /*min-height: 600px;*/
  display: flex;
  align-items: center;
  /*background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);*/
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  /*color: var(--dark);*/
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
}

.hero p {
  font-size: 1.25rem;
  color: #ffffff !important;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

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

.card {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  color: var(--white);
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.card-text {
  color: var(--gray);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.course-card {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: var(--white);
}

.course-card:hover {
  transform: translateY(-8px);
}

.course-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.course-content {
  padding: 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.testimonial-name {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.testimonial-designation {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-content {
  color: var(--gray);
  line-height: 1.6;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  padding-bottom: 0.5rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--gray);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--gray);
  line-height: 1.6;
  margin-top: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-success {
  background-color: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
}

footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-link {
  color: #9ca3af;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #374151;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: scale(1.1);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 4rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 4rem 0; }
  #backToTop { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
}

.hero-slider{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity 0.8s ease-in-out;
}

.slide::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
}

.slide.active{
    opacity:1;
    z-index:1;
}

.content{
    position:relative;
    color:#fff;
    text-align:center;
    max-width:700px;
    padding:20px;
}

.content h1{
    font-size:60px;
    margin-bottom:20px;
}

.content p{
    font-size:20px;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    text-decoration:none;
    color:#fff;
    background:#ff6b00;
    padding:15px 35px;
    border-radius:30px;
    transition:.3s;
}

.btn:hover{
    background:#fff;
    color:#ff6b00;
}

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:50px;
    height:50px;
    border:none;
    background:rgba(255,255,255,.3);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    border-radius:50%;
    z-index:10;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.prev:hover,
.next:hover{
    background:#ff6b00;
}

.dots{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:10;
}

.dot{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    opacity:.5;
    cursor:pointer;
}

.dot.active{
    background:#ff6b00;
    opacity:1;
}

@media(max-width:768px){

.content h1{
    font-size:36px;
}

.content p{
    font-size:16px;
}

.btn{ padding:12px 25px;}
}
section.hero-slider {
    padding: 10px;
}