/*
Theme Name: CSUCC Theme
Theme URI: https://csucc.edu.ph/
Author: Rustum Goden
Description: Custom theme for Caraga State University Cabadbaran City
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: csucc-theme
*/

/* ==========================================================================
   OFFICIAL BRANDING & GLOBAL VARIABLES (SINGLE ROOT)
   ========================================================================== */
:root {
  /* Official Primary Colors */
  --csu-green: #009900; /* Productivity and fertility */
  --csu-gold: #f9dc07; /* Wisdom and intellect */
  --csu-orange: #ff9900; /* Strength and fortitude */
  --csu-white: #ffffff; /* Purity and unity */

  /* Official Secondary Colors */
  --csu-emerald: #003300; /* Peace and balance */
  --csu-gray: #4d4d4d; /* Formality and practicality */

  /* Global Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   GLOBAL FONT & RESET SETTINGS - Barlow Condensed
   ========================================================================== */
*,
body,
html,
.cs-header,
.main-content,
.dynamic-footer,
.site-footer,
button,
input,
select,
textarea,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
div {
  font-family:
    "Barlow Condensed",
    "Barlow",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  box-sizing: border-box;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--csu-white);
  color: var(--csu-emerald);
}

/* Ensure specific elements maintain proper letter spacing for condensed font */
.cs-header,
.footer-widget a,
.site-footer a,
.top-links a,
.login-btn {
  letter-spacing: 0.3px;
}

/* Prevent content overlap */
body {
  padding-top: 110px !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.cs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background-color: var(--csu-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 3000;
  transition: all var(--transition-smooth);
  border-bottom: 2px solid var(--csu-green);
}

/* Left container: Logo */
.cs-header .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Logo */
.cs-header .site-logo {
  height: 65px;
  width: auto;
}

/* Top Links */
.cs-header .top-links {
  display: flex;
  gap: 25px;
}

.cs-header .top-links a {
  color: var(--csu-emerald);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.cs-header .top-links a:hover {
  color: var(--csu-green);
}

/* Glassmorphism effect on scroll */
.cs-header.glass {
  background-color: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--csu-green);
  box-shadow: 0 8px 24px rgba(0, 51, 0, 0.12);
}

/* Mobile Header Styles */
@media (max-width: 768px) {
  .cs-header {
    padding: 0 15px;
    height: 90px;
  }

  .cs-header .site-logo {
    content: url("/wp-content/uploads/2025/11/cropped-Site-Logo.png");
    height: 50px;
  }

  .cs-header .top-links a .link-text {
    display: none;
  }

  .cs-header .top-links {
    gap: 15px;
  }

  .cs-header .login-btn {
    padding: 8px 10px;
    font-size: 14px;
    background-color: var(--csu-gold);
    color: var(--csu-emerald);
    border-radius: 4px;
  }

  .cs-header .top-links a {
    font-size: 0;
    flex-shrink: 0;
  }

  .cs-header .top-links a i {
    font-size: 20px;
    color: var(--csu-emerald);
  }
}

/* ==========================================================================
   DYNAMIC WIDGETIZED FOOTER
   ========================================================================== */
.dynamic-footer {
  margin-top: 15px;
  min-height: 400px;
  padding: 40px;
  color: var(--csu-emerald);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 5px solid var(--csu-gold);
  background: var(--csu-white);
}

/* Watermark Text */
.dynamic-footer::before {
  content: "CSUCC";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-size: 25rem;
  font-weight: 900;
  color: var(--csu-green);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Gold Accent Shape */
.dynamic-footer::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--csu-gold) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}

.footer-shape-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, rgba(0, 153, 0, 0.03) 25%, transparent 25%),
    linear-gradient(-44deg, rgba(0, 153, 0, 0.03) 25%, transparent 25%);
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.footer-columns {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 0;
}

.footer-title {
  color: var(--csu-green) !important;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-widget p,
.footer-widget li {
  font-size: 14px;
  line-height: 2;
  color: var(--csu-emerald);
  margin-bottom: 8px;
}

.footer-widget a {
  font-size: 14px;
  color: var(--csu-gray);
  text-decoration: none;
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-widget a:hover {
  color: var(--csu-green);
  transform: translateX(8px);
}

.footer-widget i {
  color: var(--csu-green);
  transition: all var(--transition-smooth);
}

.footer-widget a:hover i {
  color: var(--csu-orange);
  transform: scale(1.1);
}

.footer-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  height: auto;
}

.footer-logos img {
  height: 100%;
  max-height: 80px;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--csu-white);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(77, 77, 77, 0.2);
  transition: all var(--transition-smooth);
}

.footer-logos img:hover {
  border-color: var(--csu-green);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 51, 0, 0.1);
}

/* ==========================================================================
   PRIMARY FOOTER (BOTTOM BAR)
   ========================================================================== */
.site-footer {
  background-color: var(--csu-emerald);
  color: var(--csu-white);
  padding: 30px 60px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--csu-gold);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
}

.footer-left p {
  margin: 0;
  font-size: 14px;
  color: var(--csu-white);
}

.footer-center .footer-logo {
  width: 70px;
  height: auto;
}

.footer-right {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-right a {
  color: var(--csu-white);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-smooth);
}

.footer-right a i {
  color: var(--csu-gold);
  font-size: 16px;
}

.footer-right a:hover {
  color: var(--csu-gold);
}

.footer-right a:hover i {
  color: var(--csu-orange);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .dynamic-footer {
    height: auto;
    padding: 60px 20px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 20px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-logos {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   BANNER CAROUSEL IMAGES
   ========================================================================== */
#bannerCarousel .carousel-item {
  text-align: center;
  background-color: var(--csu-emerald);
}

#bannerCarousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: var(--csu-emerald);
  margin: 0 auto;
}
