/*
Theme Name: Shendi_University_Main_Portal
Theme URI: https://ush.edu.sd/
Author: Shendi University - Portal & IT Development Center
Author URI: https://ush.edu.sd/
Description: Shendi_University_Main_Portal - Enterprise Academic Portal & Unified Educational Services Theme for Shendi University (جامعة شندي). Fully responsive, multilingual, high-performance, and fortified against cybersecurity threats and spam cloaking.
Version: 3.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ush-theme
Domain Path: /languages
Tags: Shendi_University_Main_Portal, Shendi University, جامعة شندي, شندي, السودان, university, education, academic-portal, student-services, secure, multilingual, rtl-support
*/

@import url('assets/css/main.css');
@import url('assets/css/mega-menu.css');
@import url('assets/css/student-portal.css');

/* ==========================================================================
   CSS Variables & Design Tokens (Academic Blue & Royal Gold)
   ========================================================================== */
:root {
  /* Brand Colors */
  --ush-primary: #0D2C54;
  /* Royal Academic Navy Blue */
  --ush-primary-dark: #071C35;
  /* Deep Midnight Navy */
  --ush-primary-light: #1A467C;
  /* Light Academic Navy */
  --ush-secondary: #C69214;
  /* Traditional Academic Gold */
  --ush-secondary-hover: #DFAC2D;
  /* Bright Gold */
  --ush-secondary-dark: #9E740C;
  /* Deep Bronze Gold */
  --ush-accent: #0F766E;
  /* Emerald Green for Services */
  --ush-accent-crimson: #991B1B;
  /* Urgent Alert Red */

  /* Neutral Palette */
  --ush-bg-main: #F8FAFC;
  /* Soft Off-White */
  --ush-bg-card: #FFFFFF;
  --ush-bg-alt: #F1F5F9;
  --ush-border: #E2E8F0;
  --ush-border-hover: #CBD5E1;

  /* Text Colors */
  --ush-text-main: #0F172A;
  /* Slate 900 */
  --ush-text-muted: #64748B;
  /* Slate 500 */
  --ush-text-light: #94A3B8;
  /* Slate 400 */
  --ush-text-white: #FFFFFF;

  /* Typography */
  --ush-font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ush-font-latin: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ush-font-chinese: 'Noto Sans SC', "Microsoft YaHei", sans-serif;
  --ush-font-current: var(--ush-font-arabic);

  /* Elevation & Shadows */
  --ush-shadow-sm: 0 1px 2px 0 rgba(13, 44, 84, 0.05);
  --ush-shadow-md: 0 4px 6px -1px rgba(13, 44, 84, 0.08), 0 2px 4px -2px rgba(13, 44, 84, 0.04);
  --ush-shadow-lg: 0 10px 15px -3px rgba(13, 44, 84, 0.1), 0 4px 6px -4px rgba(13, 44, 84, 0.06);
  --ush-shadow-xl: 0 20px 25px -5px rgba(13, 44, 84, 0.12), 0 8px 10px -6px rgba(13, 44, 84, 0.08);
  --ush-shadow-gold: 0 10px 20px -5px rgba(198, 146, 20, 0.35);

  /* Transitions & Radii */
  --ush-radius-sm: 6px;
  --ush-radius-md: 10px;
  --ush-radius-lg: 16px;
  --ush-radius-full: 9999px;
  --ush-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ush-transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Sizing */
  --ush-container-max: 1320px;
  --ush-header-height: 86px;
  --ush-topbar-height: 40px;
  --ush-ticker-height: 38px;
}

/* Base Cross-Browser Normalization */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ush-font-current);
  background-color: var(--ush-bg-main);
  color: var(--ush-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ush-font-current);
  color: var(--ush-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.15rem;
}

a {
  color: var(--ush-primary);
  text-decoration: none;
  transition: var(--ush-transition);
}

a:hover {
  color: var(--ush-secondary);
}

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

.ush-container {
  max-width: var(--ush-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Utility Buttons */
.ush-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--ush-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ush-transition);
  text-align: center;
  text-decoration: none;
}

.ush-btn-primary {
  background-color: var(--ush-primary);
  color: #fff;
  border-color: var(--ush-primary);
}

.ush-btn-primary:hover {
  background-color: var(--ush-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ush-shadow-md);
}

.ush-btn-gold {
  background: linear-gradient(135deg, var(--ush-secondary), var(--ush-secondary-hover));
  color: #0d2c54;
  font-weight: 700;
  box-shadow: var(--ush-shadow-gold);
}

.ush-btn-gold:hover {
  background: linear-gradient(135deg, var(--ush-secondary-hover), var(--ush-secondary));
  color: #071c35;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(198, 146, 20, 0.45);
}

.ush-btn-outline {
  background-color: transparent;
  color: var(--ush-primary);
  border-color: var(--ush-primary);
}

.ush-btn-outline:hover {
  background-color: var(--ush-primary);
  color: #fff;
}

.ush-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ush-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ush-badge-gold {
  background-color: rgba(198, 146, 20, 0.15);
  color: #9e740c;
  border: 1px solid rgba(198, 146, 20, 0.3);
}

.ush-badge-blue {
  background-color: rgba(13, 44, 84, 0.1);
  color: var(--ush-primary);
}

.ush-badge-red {
  background-color: rgba(153, 27, 27, 0.1);
  color: var(--ush-accent-crimson);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--ush-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 999999;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}