/* ========================================
   NEWS SECTION
   ======================================== */

.news-section {
  padding: 100px 0;
  background: var(--gradient-light);
}

.news-section .section-title {
  color: var(--slate-800);
}

.news-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}


.carousel-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.news-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(120%) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(79, 70, 229, 0.08);
    pointer-events: none;
}

.news-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: all;
}

.news-card.prev {
    opacity: 0;
    transform: translateX(-120%) scale(0.95);
    z-index: 1;
}

/* Next card preparation - hidden on the right */
.news-card.next-prep {
    opacity: 0;
    transform: translateX(120%) scale(0.95);
    z-index: 1;
}

/* Ensure images display properly */
.news-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    width: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card.active .news-image img {
    animation: zoomInImage 0.8s ease-out forwards;
}
@keyframes zoomInImage {
    from { 
        transform: scale(1.15); 
    }
    to { 
        transform: scale(1); 
    }
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.news-content {
    padding: 34px 37px;
    background: white;
}

.news-content h4 {
    font-size: 26px;
    color: #1e293b;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.news-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    font-weight: 500;
}

/* Carousel buttons */
.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(79, 70, 229, 0.15);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #4f46e5;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}


.carousel-btn.prev {
    right: -28px;
}

.carousel-btn.next {
    left: -28px;
}

.carousel-btn:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
    border-color: #4f46e5;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: #94a3b8;
    transform: scale(1.15);
}

.dot.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    width: 38px;
    border-radius: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: auto;
        min-height: 480px;
    }

    .news-image {
        height: 280px;
    }

    .news-content {
        padding: 24px;
    }

    .news-content h4 {
        font-size: 22px;
    }

    .news-content p {
        font-size: 15px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .carousel-btn.prev {
        right: -20px;
    }

    .carousel-btn.next {
        left: -20px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 240px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h4 {
        font-size: 20px;
    }

    .news-content p {
        font-size: 14px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-btn.prev {
        right: -16px;
    }

    .carousel-btn.next {
        left: -16px;
    }
}

/* Touch-friendly swipe area */
.carousel-container {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* Ensure carousel doesn't break layout */
.news-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .news-carousel {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .news-carousel {
        padding: 0 25px;
    }
}

/* ========================================
   ACTION SECTION
   ======================================== */

.action-section {
  padding: 100px 0;
  background: var(--gradient-slate);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.action-card {
  background: linear-gradient(135deg, var(--primary-8), var(--purple-8));
  backdrop-filter: blur(12px);
  border: 2px solid var(--white-12);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.action-card:hover::before {
  opacity: 0.12;
}

.action-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-40);
  box-shadow: var(--shadow-action);
}

.card-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  opacity: 0;
  filter: blur(24px);
  transition: opacity var(--transition-base);
  z-index: -1;
}

.action-card:hover .card-glow {
  opacity: 0.4;
}

.action-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.action-card:hover .action-icon {
  transform: scale(1.18) rotate(8deg);
}

.action-card h4 {
  font-size: 22px;
  color: white;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.action-card p {
  font-size: 16px;
  color: var(--white-75);
  margin-bottom: 32px;
  font-weight: 500;
}

.action-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 16px 38px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
  letter-spacing: 0.3px;
}

.action-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
  padding: 100px 0;
  background: var(--gradient-light);
}

.contact-section .section-title {
  color: var(--slate-800);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-8);
}

.contact-info {
  background: var(--gradient-primary);
  padding: 65px;
  color: white;
}

.contact-info h4 {
  font-size: 26px;
  margin-bottom: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 38px;
  transition: transform var(--transition-fast);
}

.contact-item:hover {
  transform: translateX(-4px);
}

.contact-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-item p {
  color: var(--white-92);
  font-size: 15px;
  font-weight: 500;
}

.contact-form {
  padding: 65px;
}

.form-group {
  margin-bottom: 26px;
}

.form-input {
  width: 100%;
  padding: 16px 22px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: all var(--transition-fast);
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  color: var(--slate-700);
}

.form-input::placeholder {
  color: var(--slate-400);
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-indigo);
  box-shadow: 0 0 0 3px var(--primary-12);
}

textarea.form-input {
  resize: none;
}

.submit-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
  letter-spacing: 0.3px;
}

.submit-btn span {
  position: relative;
  z-index: 2;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:hover .btn-glow {
  opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  padding: 42px 0;
  text-align: center;
}

.footer-text {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-contact {
  color: var(--primary-indigo);
  font-size: 20px;
  font-weight: 700;
}

