/* Make the hero a stacking context and remove the template bg image */
.banner-area-2.big-bg-2.has-video {
  position: relative;
  overflow: hidden;
  background: none !important;         /* kills background-image on .big-bg-2 */
  /* Optional: ensure height if your template relies on bg image height */
  height: 100vh;
  padding: 0;
}

.default-btn{
	border-radius: 15px;
}
.banner-content-2 .content span{
	font-size: 14px;
	margin-bottom: 0px;
}

/* Reduce the fixed top padding on small screens */
.banner-area-2.big-bg-2.has-video .banner-content-2 {
	padding-top: clamp(72px, 10vh, 140px);/* was 140px*/
}
.banner-content-2 .content .buttons-action{
	margin-bottom: 0px;
}

/* Fluid display size: min 34px, ideal 6vw, max 92px */
.hero-title,
.banner-content-2 .content h1 {
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 10px auto 14px;
}

.hero-title{
	margin-top: 0 !important;
}

.event .content{
	margin-bottom: 0;
}

#cubio-fluid{
	/* opacity: 0.7; */
}

/* Some templates add overlays via ::before — neutralize them */
.banner-area-2.big-bg-2.has-video::before,
.banner-area-2.big-bg-2.has-video::after {
  background: none !important;
  content: none !important;
}

/* The video wrapper fills the hero */
.banner-area-2.big-bg-2.has-video .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* don't block clicks on buttons/links */
}

/* The video behaves like a background image */
.banner-area-2.big-bg-2.has-video .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(13px);
}

/* Keep hero content above the video */
.banner-area-2.big-bg-2.has-video .container,
.banner-area-2.big-bg-2.has-video .banner-content-2,
.banner-area-2.big-bg-2.has-video .content {
  position: relative;
  z-index: 2;
}

/* Optional: add a subtle contrast overlay for readability */
.banner-area-2.big-bg-2.has-video > .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.15));
}

/* Cap the content width so very long lines don't happen on desktops */
.banner-area-2.big-bg-2.homepage-hero .content {
  max-width: min(92vw, 1100px);
  margin: 0 auto;
  padding-inline: 16px;
}

/* Center the content block */
.banner-area-2 .content.text-center {
    text-align: center;
}

/* Center the logo box with the same max-width behavior as Bootstrap container */
.logo-layer {
  display: flex;
  justify-content: center;
}

.cubio-logo {
    display: block;          /* force logo on its own line */
    margin: 0 auto 15px;     /* center horizontally + space below */
    max-width: 420px;        /* adjust as desired */
    height: auto;
}

.cubio-tagline {
    display: block;          /* tagline on its own line too */
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Optional: slightly reduce heading size on small screens */
@media (max-width: 768px) {
    .cubio-logo {
        max-width: 240px;
    }
}

.logo-light, .logo-dark{
	height: 70px;
}

/* Full-site overlay */
#cubio-fluid {
	position: absolute;
	top: 0; left: 0;
	width: 100%; /* vw */
	height: 100%; /* vh */
	z-index: 5; /* content above */
	pointer-events: none; /* so clicks pass through */
}

/* ========== 3D LOGO BOX SIZING ========== */
/* Size #logo-3d by width, maintain aspect ratio, and let height follow */
#logo-3d {
  position: relative;
  z-index: 110;
  width: min(100%, 900px);   /* was: min(90vw, 900px) */
  max-width: 100%;           /* never exceed the container */
  aspect-ratio: 2 / 1;       /* keep the 800x400 look */
  height: auto;
  margin: 0 auto 0px;       /* keep it centered */
}

/* The renderer canvas will be absolutely positioned inside #logo-3d */
#logo-3d > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@media (max-width: 768px) {
  #logo-3d { width: 88%; }   /* align visually with text block */
}

/* Tweak hero video blur on mobile so text stays readable without over-blur */
@media (max-width: 640px) {
  .banner-area-2.big-bg-2.has-video .hero-video {
    filter: blur(9px);
  }
}

/* Keep your existing text shadows, but ensure they don’t overpower on mobile */
@media (max-width: 480px) {
  .banner-area-2.big-bg-2.homepage-hero h1 {
    text-shadow: 3px 3px 0px black, 0px 0px 12px black;
  }
}


/* Make the whole hero layer sit above the trail */
.banner-area-2.big-bg-2.homepage-hero {
	position: relative;
	z-index: auto;
}

/* Remove those low stacking contexts so children aren't trapped at 2 */
.banner-area-2.big-bg-2.homepage-hero .container,
.banner-area-2.big-bg-2.homepage-hero .banner-content-2,
.banner-area-2.big-bg-2.homepage-hero .content {
	z-index: auto; /* or just delete the z-index rules */
	text-shadow: 2px 2px 0px black, 0px 0px 15px black;
}

.banner-area-2.big-bg-2.homepage-hero p{
	font-weight: bold;
	font-size: clamp(14px, 2.3vw, 20px);
	line-height: 1.45;
	margin: 0 auto 18px;
}

.banner-area-2.big-bg-2.homepage-hero .default-btn{
	text-shadow: none;
}

.banner-area-2.big-bg-2.homepage-hero h1{
	text-shadow: 5px 5px 0px black, 0px 0px 15px black;
}

/* Button group wraps on small screens */
.buttons-action {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

/* =========================
   Campus Card + Owl Carousel Fix
   ========================= */

.campus-card {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Cover */
.campus-card img.cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

/* Video - initially hidden */
.campus-card video.trailer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Logo overlay */
.campus-card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.campus-card .content img.logo {
    width: 57%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.campus-card:hover img.logo {
    opacity: 0;
}

.campus-card:hover img.cover {
    opacity: 0;
}

.campus-card:hover video.trailer {
    opacity: 1;
}


.discord-feed { background: rgba(0,0,0,0.6); border-radius: 12px; padding: 16px; color: #fff; }
.discord-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.discord-item { border-left: 3px solid rgba(255,255,255,0.2); padding-left: 12px; }
.discord-meta { font-size: 0.9rem; opacity: 0.85; margin-bottom: 4px; }
.discord-user { font-weight: 600; }
.discord-time { margin-left: 8px; font-variant-numeric: tabular-nums; }
.discord-text {
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow: visible;          /* ensure no clipping */
	display: block;             /* avoid line-clamp tricks */
	max-height: none;           /* remove any accidental caps */
}


#output{
	background: #fff;
	height: auto;
}
#output img{
	background: #fff;
	width: 600px;
	height: auto;    
	transition: 0.4s;
}
.blueprint-embed .embed-content{
	display: flex;
}

.upcoming-event p {
	word-wrap: break-word;
}

/* For markdown-rendered items */
.discord-md { white-space: normal; }

/* Optional: nicer code blocks */
.discord-md code {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}
.discord-md pre code {
  display: block;
  padding: 0.75rem;
  overflow: auto;
}
.discord-md p{
	margin-bottom: 0;
	margin-top: 5px;
}

.copy-logo{
	background-color: #fff;
	width: 100px;
	height: 100px;
	margin: 0 auto;
	border-radius: 15px;
	padding: 10px;
}
.copy-logo img{
	width: 110px;
}

/* Responsive video wrapper for events section */
.events-area-2 .event .content .image.video-embed {
  position: relative;
  width: 100%;
  /* modern browsers */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px; /* optional: match your card rounding */
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .events-area-2 .event .content .image.video-embed {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.events-area-2 .event .content .image.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* In case your theme sets .image img heights, prevent conflicts */
.events-area-2 .event .content .image.video-embed img {
  display: none;
}

/* Small video thumbs in the tools list */
#creative-tools .thumb-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #0f1b2a; /* fallback bg */
  box-shadow: 0 0 0 2px rgba(117, 209, 255, 0.6) inset;
}

#creative-tools .thumb-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

/* Optional: pause until hovered for CPU savings */
#creative-tools .thumb-video video:not(.autoplay) { opacity: 0.95; }
#creative-tools .thumb-video:hover video { filter: none; opacity: 1; }

.faculty-model .faculty-card .content{
	margin-top: 5px;
	margin-bottom: 10px;
}
.faculty-model .faculty-card .content p{
	font-size: 12px;
}

.faculty-model .faculty-card .content h4{
	margin-bottom: 0px;
}

.faculty-model .faculty-card .image .info p{
	font-size: 14px;
	line-height: initial;
}

.navbar-area.sticky.style-2 .navbar .others-option .option-item:last-child a{
	color: var(--whiteColor);
}

.subscribe-area{
	background-image: 
		url(../img/characters-intro.webp),
		url(../img/bg-footer.png);
}

.campus-tour .section-title{
	margin-top: 50px;
}

.events-area-2{
	padding-bottom: 0px;
}

.campus-tour .image{
	padding: 240px;
}

/* Per-icon swap animation */
#icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background-color: var(--mainColor);
  position:absolute;
  inset:0;
  grid-auto-rows:1fr;
}

/* Cells stay square */
#icon-grid .cell{
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#fff;
  margin: 5px;
  border-radius: 15px;
  transition: transform .35s cubic-bezier(0.34,1.56,0.64,1), box-shadow .25s ease;
}

#icon-grid .cell:hover {
	transform: scale(1.12);
	box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

#icon-grid img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	transform: scale(1);
	transition: opacity .28s ease, transform .28s ease;
	will-change: opacity, transform;
}

/* Tablet: maybe 4 columns */
@media (max-width: 991px) {
  #icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .icon-grid-image{
	  padding-left: 0px !important;
	  padding-right: 0px !important;
  }
}

/* Mobile: exactly 3 columns */
@media (max-width: 575px) {
  #icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


#icon-grid img.swap-out {
	opacity: 0;
	transform: scale(.5);
}

#icon-grid img.swap-in {
	opacity: 1;
	transform: scale(1);
}

.campus-tour .content p{
	text-align: justify;
}

.image.aos-init.aos-animate {
	border-radius: 15px;
}

.go-top{
	border-radius: 5px;
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
}


/* Ensure smooth swipe/fade effect */
.swap-container {
	display: grid;
}

.swap-container > * {
	grid-area: 1 / 1;
	transition: opacity 0.35s ease;
}

/* ensure the text starts right at the top */
.swap-container p {
	margin: 0;
}

.swap-container .hidden {
	opacity: 0;
	pointer-events: none;
}

.swap-container .visible {
	opacity: 1;
	pointer-events: auto;
}

.update-feed .date ul{
	list-style: none;
	padding: 0;
}

.update-feed .date ul .mnt{
	padding: 4px;
	background: var(--mainColor);
	text-align: center;
	color: var(--whiteColor);
}

.update-feed .date ul .det{
	padding: 5px 12px;
	background: var(--whiteColor);
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	box-shadow: inset 0 0px 8px rgba(0,0,0,0.2);
}

/* Tabs wrapper */
.update-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 24px;
	align-items: center;
}

/* Individual tab button */
.update-tab {
	flex: 1 1 auto;
	min-width: 120px; /* so they don’t get too tiny */
	text-align: center;
	background: none;
	border: none;
	padding: 6px 26px;
	font-weight: 600;
	border-radius: 25px;
	font-size: 16px;
	cursor: pointer;
	background-color: var(--secounderyColor);
	color: var(--mainColor);
	transition: transform .1s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.update-tab:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.update-tab.is-active {
	background-color: var(--mainColor);
	color: var(--whiteColor);
}

/* Active slider visibility */
.update-slider.is-active {
	display: block;
}

.update-slider[hidden] {
	display: none !important;
}

.update-slider-wrap {
	position: relative;
	min-height: 220px; /* ensures stable space while loading */
}

.update-loading {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	gap: 10px;
	padding: 16px;
	pointer-events: none;
}

.skeleton-line {
	display: block;
	height: 14px;
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.12), rgba(0,0,0,.06));
	background-size: 200% 100%;
	animation: update-skeleton-shimmer 1.2s infinite linear;
}

.skeleton-date { width: 120px; height: 16px; }
.skeleton-title { width: 60%; height: 20px; }
.skeleton-text { width: 90%; }
.skeleton-text.short { width: 55%; }

@keyframes update-skeleton-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Hide slider until Owl is ready to avoid flash */
.update-slider:not(.owl-loaded) {
	visibility: hidden;
}

.update-feed .owl-carousel .owl-nav button.owl-next, .update-feed .owl-carousel .owl-nav button.owl-prev{
	color: var(--mainColor);
	border: none;
	background-color: var(--whiteColor);
	padding: 0;
	height: 50px;
	width: 50px;
	line-height: 0px;
	border-radius: 36px;
	font-size: 30px;
	transition: var(--transition);
}

.update-feed .owl-carousel .owl-nav .disabled {
	color: #D6D6D6 !important;
	opacity: inherit;
}

.update-feed .owl-carousel .owl-dot.active span {
	color: var(--mainColor);
	background-color: var(--mainColor);
}

.contact-info .info-details ul li{
	margin-bottom: 5px;
}

.contact-form .form-group{
	margin-bottom: 30px;
}

.contact-form .form-control{
	margin-bottom: 0;
}

/* Footer 3D logo sizing */
.copy-logo {
  display: grid;
  place-items: center;
}

#footer-logo-3d {
  width: 100%;   /* or clamp/min/max to be responsive */
  height: 100%;
  margin: 0 auto;
  position: relative;
}

#footer-logo-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}


/* Optional: darker footer looks cleaner with a little extra contrast */
.footer-area .copy-right-area.style-2 {
  /* nothing required here, just a reminder this lives on dark bg */
}

.blog-single-card .content {
  min-height: 180px; /* adjust until they all look even */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.blog-single-card .content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* keep ~3 lines, like Etherdrive */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-btn a{
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
}





/* --- Liquid Button Effect (pure CSS) --- */
:root{
  /* Customize the fill color here */
  --liquid-fill: #fd8853; /* set to your brand color if you prefer */
}

.default-btn.btn-liquid{
  position: relative;
  overflow: hidden;         /* so the fill stays inside the button */
  display: inline-block;
  isolation: isolate;       /* keeps z-index layers scoped */
}

.default-btn.btn-liquid .btn-text{
  position: relative;
  z-index: 2;               /* stays above the liquid */
}

.default-btn.btn-liquid .liquid{
  position: absolute;
  left: 50%;
  top: 110%;                /* starts below the button */
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: var(--liquid-fill);
  box-shadow: inset 0 0 50px rgba(0,0,0,.5);
  border-radius: 38%;
  pointer-events: none;
  z-index: 1;
  transition: top .45s ease;
}

/* Hover/Focus brings the liquid up to fill */
.default-btn.btn-liquid:hover .liquid,
.default-btn.btn-liquid:focus-visible .liquid{
  top: -100px;
}
.default-btn.btn-liquid .liquid{
  top: -75px;
}

/* Blobby rotating shapes to sell the “liquid” look */
.default-btn.btn-liquid .liquid::before,
.default-btn.btn-liquid .liquid::after{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -75%);
  border-radius: 42%;
  background: rgb(229, 116, 92,.9); /* dark waves inside the liquid */
  animation: cubio-swirl 6s linear infinite;
}
.default-btn.btn-liquid .liquid::after{
  border-radius: 47%;
  opacity: .85;
  animation-duration: 10s;
}

@keyframes cubio-swirl{
  0%   { transform: translate(-50%, -75%) rotate(0deg); }
  100% { transform: translate(-50%, -75%) rotate(360deg); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce){
  .default-btn.btn-liquid .liquid,
  .default-btn.btn-liquid .liquid::before,
  .default-btn.btn-liquid .liquid::after{
    animation: none !important;
    transition: none !important;
  }
}




