/* ===================================================
   CDTI – Centre for Digital Transformation & Innovation
   Digital University Kerala – Custom Styles
   =================================================== */

/* --- Root Variables --- */
:root {
  --cdti-primary: #1a3a6b;
  /* Deep university blue */
  --cdti-secondary: #0d6efd;
  /* Bright accent blue */
  --cdti-accent: #e8a020;
  /* Gold/amber accent */
  --cdti-dark: #0a1f3d;
  /* Very dark navy */
  --cdti-teal: #0d9488;
  /* Teal for highlights */
  --cdti-light: #f0f5ff;
  /* Light blue-white bg */
  --cdti-text: #2c3e50;
}

/* --- Hero Slide Dark Overlay for text readability --- */
.slide-inner {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
}

.slide-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(5, 15, 40, 0.82) 0%,
      rgba(5, 15, 40, 0.60) 55%,
      rgba(5, 15, 40, 0.28) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Ensure the container and all text content sit above the overlay */
.slide-inner .container,
.slide-inner .header-text,
.slide-inner .header-text h2,
.slide-inner .header-text p,
.slide-inner .header-text .buttons,
.slide-inner .header-text .excellence-badge,
.slide-inner .div-dec {
  position: relative;
  z-index: 2;
}

/* Ensure swiper slides handle vertical alignment correctly */
.swiper-slide {
  overflow: hidden;
}

.slide-inner {
  display: flex;
  align-items: center;
  min-height: 100%;
}

/* --- Logo / Brand --- */
.logo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none !important;
  padding: 4px 0;
}

.logo-brand .brand-main {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-brand .brand-sub {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

header.header-sticky .logo-brand .brand-main,
header.header-sticky.header-scrolled .logo-brand .brand-main {
  color: var(--cdti-primary);
}

header.header-sticky.header-scrolled .logo-brand .brand-sub {
  color: #666;
}

/* Nav logo image sizing (Image Only) */
.main-nav .logo {
  padding-top: 5px;
  /* Add padding on top of logo */
}

.main-nav .logo img {
  height: 65px;
  /* Larger logo since there's no text */
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}

header.header-sticky.header-scrolled .main-nav .logo img {
  height: 50px;
  /* Slightly smaller on scroll */
}

/* --- Override template green/orange to CDTI colors --- */
.green-button a,
button.orange-button,
.orange-button a {
  background-color: var(--cdti-primary) !important;
  border-color: var(--cdti-primary) !important;
  color: #fff !important;
}

.green-button a:hover,
.orange-button a:hover {
  background-color: var(--cdti-accent) !important;
  border-color: var(--cdti-accent) !important;
}

.orange-button a {
  background-color: var(--cdti-accent) !important;
  border-color: var(--cdti-accent) !important;
  color: #fff !important;
}

.orange-button a:hover {
  background-color: var(--cdti-primary) !important;
  border-color: var(--cdti-primary) !important;
}

.section-heading h6 {
  color: var(--cdti-teal) !important;
}

.gradient-border.active {
  background: linear-gradient(135deg, var(--cdti-primary), var(--cdti-teal)) !important;
}

.service-item i {
  color: var(--cdti-primary) !important;
}

/* --- Stats Banner --- */
.cdti-stats {
  background: linear-gradient(135deg, var(--cdti-dark) 0%, var(--cdti-primary) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.cdti-stats .stat-item h3 {
  font-size: 48px;
  font-weight: 800;
  color: var(--cdti-accent);
  margin-bottom: 5px;
}

.cdti-stats .stat-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cdti-stats .stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.cdti-stats .stat-item:last-child {
  border-right: none;
}

/* --- Excellence Badge --- */
.excellence-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--cdti-teal), var(--cdti-secondary));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

/* --- Page Heading Overlay (Banner) --- */
.page-heading {
  background-image: url('assets/images/page-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 220px;
  width: 100%;
}

.page-heading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 61, 0.72);
}

.page-heading .header-text {
  position: relative;
  z-index: 2;
}

/* --- Simple CTA Override --- */
.simple-cta {
  background: linear-gradient(135deg, var(--cdti-primary), var(--cdti-dark)) !important;
}

.simple-cta h4 em {
  color: var(--cdti-accent) !important;
}

.simple-cta h4 strong {
  color: #fff !important;
}

/* --- Domain Tags --- */
.domain-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.12);
  color: var(--cdti-teal);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 3px 2px;
}

/* --- Contact Info Cards --- */
.info-item {
  background: var(--cdti-light);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(26, 58, 107, 0.15);
}

.info-item i {
  color: var(--cdti-primary) !important;
}

.info-item a {
  color: var(--cdti-primary) !important;
  font-weight: 500;
}

/* --- What We Do steps --- */
.what-we-do .item em {
  color: var(--cdti-primary) !important;
  border-color: var(--cdti-primary) !important;
}

/* --- Footer override --- */
footer {
  background: var(--cdti-dark) !important;
}

footer p {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer p a {
  color: var(--cdti-accent) !important;
}

/* --- DUK Tag in footer --- */
.duk-footer-brand {
  font-weight: 700;
  color: var(--cdti-accent) !important;
}

/* --- Contact form button override --- */
#contact button[type="submit"] {
  background-color: var(--cdti-primary) !important;
  border-color: var(--cdti-primary) !important;
  color: #fff !important;
  padding: 15px 30px !important;
  cursor: pointer !important;
  border-radius: 5px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: background-color 0.3s ease;
}

#contact button[type="submit"]:hover {
  background-color: var(--cdti-accent) !important;
  border-color: var(--cdti-accent) !important;
}

/* Alert box for form submission feedback */
.form-alert {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid var(--cdti-teal);
  color: var(--cdti-teal);
  display: block;
}

.form-alert.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid #dc2626;
  color: #dc2626;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .logo-brand .brand-main {
    font-size: 13px;
  }

  .logo-brand .brand-sub {
    font-size: 9px;
  }

  .cdti-stats .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cdti-stats .stat-item:last-child {
    border-bottom: none;
  }
}