/* STREAMING_CHUNK:Styling CSS variables and base setup */
:root {
--primary-color: #1b4332;
--primary-light: #2d6a4f;
--accent-color: #d8f3dc;
--gold-color: #b7791f;
--hover-color: #FF9F03;
--text-color: #2d3748;
--text-light: #718096;
--bg-white: #ffffff;
--bg-light: #f8f9fa;
--transition: all 0.3s ease;
--shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
--radius: 12px;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Cairo', sans-serif;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 90px;
}

body {
color: var(--text-color);
background-color: var(--bg-white);
line-height: 1.6;
overflow-x: hidden;
}

/* STREAMING_CHUNK:Styling reusable utilities and components */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.section-padding {
padding: 90px 0;
}

.bg-light {
background-color: var(--bg-light);
}

.text-center {
text-align: center;
}

.w-full {
width: 100%;
}

.hidden {
display: none !important;
}

.section-subtitle {
display: inline-block;
color: var(--primary-light);
font-weight: 700;
text-transform: uppercase;
font-size: 0.9rem;
margin-bottom: 10px;
letter-spacing: 1px;
}

.section-header h2 {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 15px;
font-weight: 900;
}

.section-desc {
color: var(--text-light);
max-width: 600px;
margin: 0 auto 50px auto;
font-size: 1.1rem;
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 28px;
font-weight: 700;
border-radius: var(--radius);
cursor: pointer;
text-decoration: none;
transition: var(--transition);
font-size: 1rem;
border: none;
}

.btn-primary {
background-color: var(--primary-light);
color: #fff;
box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
background-color: var(--hover-color);
transform: translateY(-2px);
}

.btn-secondary {
background-color: rgba(255, 255, 255, 0.2);
color: #fff;
border: 2px solid #fff;
}

.btn-secondary:hover {
background-color: #fff;
color: var(--primary-color);
}

.btn-outline {
background: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-light);
}

.btn-outline:hover {
background: var(--hover-color);
color: #fff;
}

/* STREAMING_CHUNK:Styling navigation bar /
/ Navbar */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
z-index: 1000;
transition: var(--transition);
}

.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
height: 80px;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: 900;
color: var(--primary-color);
}

.logo-icon {
font-size: 2rem;
color: var(--primary-light);
}

.logo-img {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--primary-light);
flex-shrink: 0;
}

.logo-text {
display: block;
font-size: 1.2rem;
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
min-width: 0;
flex-shrink: 1;
}

.logo-text-short {
display: none;
}

.nav-portal {
display: none;
}

.nav-links {
display: flex;
gap: 30px;
align-items: center;
}

.nav-links a {
text-decoration: none;
color: var(--text-color);
font-weight: 600;
transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
color: var(--hover-color);
}

.header-actions {
display: flex;
align-items: center;
gap: 15px;
}

.menu-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
color: var(--primary-color);
cursor: pointer;
}

/* STREAMING_CHUNK:Styling hero section /
/ Hero Section */
.hero {
position: relative;
min-height: 100vh;
background: url('img/first_img.jpg') center/cover no-repeat;
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 80px;
color: #fff;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(27, 67, 50, 0.9), rgba(45, 106, 79, 0.8));
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 80px auto;
text-align: center;
}

.hero-content .badge {
background-color: var(--gold-color);
color: #fff;
padding: 6px 16px;
border-radius: 50px;
font-size: 0.85rem;
font-weight: 700;
display: inline-block;
margin-bottom: 20px;
}

.hero-content h1 {
font-size: 3.2rem;
font-weight: 900;
line-height: 1.2;
margin-bottom: 20px;
}

.hero-content p {
font-size: 1.2rem;
color: var(--accent-color);
margin-bottom: 40px;
line-height: 1.8;
}

.hero-buttons {
display: flex;
gap: 20px;
justify-content: center;
}

/* Hero Stats Banner */
.hero-stats {
position: relative;
z-index: 2;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-top: 1px solid rgba(255, 255, 255, 0.2);
padding: 30px 0;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
text-align: center;
}

.stat-item {
color: #fff;
}

.stat-number {
font-size: 2.5rem;
font-weight: 900;
color: var(--accent-color);
}

.stat-item span:nth-child(2) {
font-size: 2.2rem;
font-weight: 900;
color: var(--accent-color);
}

.stat-label {
display: block;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.8);
margin-top: 5px;
}

/* STREAMING_CHUNK:Styling about section /
/ About Section */
.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
align-items: center;
}

.about-image-wrapper {
position: relative;
}

/* About image: framed main photo with decorative outline */
.about-img-frame {
position: relative;
border: 5px solid var(--primary-light);
border-radius: calc(var(--radius) + 6px);
padding: 12px;
background: var(--bg-white);
box-shadow: var(--shadow);
}

.about-img-frame::before {
content: '';
position: absolute;
inset: -14px;
border: 2px dashed rgba(183, 121, 31, 0.45);
border-radius: calc(var(--radius) + 14px);
pointer-events: none;
z-index: 1;
}

.about-img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: calc(var(--radius) - 4px);
transition: transform 0.5s ease;
}

.about-img:hover {
transform: scale(1.02);
}

/* Accredited badge pinned to the frame corner */
.experience-badge {
position: absolute;
bottom: -20px;
right: -20px;
background: var(--primary-color);
color: #fff;
padding: 20px;
border-radius: var(--radius);
display: flex;
align-items: center;
gap: 15px;
box-shadow: var(--shadow);
z-index: 2;
}

.experience-badge i {
font-size: 2.5rem;
color: var(--gold-color);
}

.about-content h2 {
font-size: 2.2rem;
color: var(--primary-color);
margin-bottom: 20px;
font-weight: 900;
}

.about-content p {
color: var(--text-light);
margin-bottom: 30px;
line-height: 1.8;
}

.features-list {
display: flex;
flex-direction: column;
gap: 20px;
}

.feature-row {
display: flex;
gap: 20px;
align-items: flex-start;
}

.feature-icon {
width: 50px;
height: 50px;
background: var(--accent-color);
color: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
flex-shrink: 0;
}

.feature-row h4 {
font-size: 1.1rem;
color: var(--primary-color);
margin-bottom: 5px;
}

.feature-row p {
font-size: 0.95rem;
margin-bottom: 0;
}

/* STREAMING_CHUNK:Styling programs and research sections /
/ Programs Section */
.programs-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

.program-card {
background: var(--bg-white);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
}

.program-card:hover {
transform: translateY(-10px);
}

.program-img-wrap img {
width: 100%;
height: 200px;
object-fit: cover;
}

.program-body {
padding: 25px;
}

.program-tag {
background: var(--accent-color);
color: var(--primary-color);
font-size: 0.8rem;
padding: 4px 12px;
border-radius: 50px;
font-weight: 700;
display: inline-block;
margin-bottom: 12px;
}

.program-body h3 {
font-size: 1.3rem;
color: var(--primary-color);
margin-bottom: 10px;
}

.program-body p {
color: var(--text-light);
font-size: 0.95rem;
margin-bottom: 20px;
}

.card-link {
color: var(--primary-light);
text-decoration: none;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 8px;
transition: var(--transition);
}

.card-link:hover {
gap: 12px;
color: var(--hover-color);
}

/* Research Section */
.research-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

.research-card {
background: var(--bg-white);
padding: 30px;
border-radius: var(--radius);
box-shadow: var(--shadow);
border-right: 4px solid var(--primary-light);
transition: var(--transition);
}

.research-card:hover {
transform: translateY(-5px);
}

.research-date {
font-size: 0.85rem;
color: var(--gold-color);
font-weight: 700;
margin-bottom: 10px;
}

.research-card h3 {
font-size: 1.2rem;
color: var(--primary-color);
margin-bottom: 15px;
}

.research-card p {
color: var(--text-light);
font-size: 0.95rem;
margin-bottom: 20px;
}

.btn-text {
background: none;
border: none;
color: var(--primary-light);
font-weight: 700;
cursor: pointer;
font-size: 0.95rem;
}

.btn-text:hover {
text-decoration: underline;
}

/* Admission requirements box */
.admission-box {
background: var(--bg-white);
border: 2px dashed var(--gold-color);
border-radius: var(--radius);
padding: 25px 30px;
margin-top: 40px;
box-shadow: var(--shadow);
}

.admission-box h3 {
font-size: 1.25rem;
font-weight: 800;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
}

.admission-box ul {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
}

.admission-box ul li {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--accent-color);
color: var(--primary-color);
font-size: 0.95rem;
font-weight: 700;
padding: 9px 18px;
border-radius: 50px;
}

.admission-box ul li i {
color: var(--primary-light);
}

/* STREAMING_CHUNK:Styling contact and footer sections /
/ Contact Section */
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
}

.contact-info h2 {
font-size: 2.2rem;
color: var(--primary-color);
margin-bottom: 20px;
font-weight: 900;
}

.contact-info p {
color: var(--text-light);
margin-bottom: 30px;
}

.contact-details {
list-style: none;
display: flex;
flex-direction: column;
gap: 20px;
}

.contact-details li {
display: flex;
align-items: center;
gap: 15px;
color: var(--text-color);
font-weight: 600;
}

.contact-details i {
width: 40px;
height: 40px;
background: var(--primary-light);
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.contact-form {
background: var(--bg-white);
padding: 40px;
border-radius: var(--radius);
box-shadow: var(--shadow);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(--primary-color);
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 12px 15px;
border: 1px solid #e2e8f0;
border-radius: var(--radius);
outline: none;
font-family: 'Cairo', sans-serif;
transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
border-color: var(--primary-light);
box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-feedback {
margin-top: 15px;
padding: 12px;
border-radius: var(--radius);
font-weight: 600;
text-align: center;
}

.form-feedback.success {
background-color: #d1fae5;
color: #065f46;
}

/* Footer */
.footer {
background-color: var(--primary-color);
color: #fff;
padding-top: 70px;
}

.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 40px;
padding-bottom: 50px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col .logo {
color: #fff;
margin-bottom: 15px;
}

.footer-col p {
color: rgba(255, 255, 255, 0.7);
font-size: 0.95rem;
}

.footer-col h4 {
font-size: 1.2rem;
margin-bottom: 20px;
color: var(--accent-color);
}

.footer-col ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}

.footer-col ul li a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: var(--transition);
}

.footer-col ul li a:hover {
color: var(--hover-color);
padding-left: 5px;
}

.social-links {
display: flex;
gap: 15px;
}

.social-links a {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
text-decoration: none;
}

.social-links a:hover {
background: var(--hover-color);
transform: translateY(-3px);
}

.footer-bottom {
padding: 20px 0;
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
}

/* =========================================================
   About section — framed image: responsive overrides
   ========================================================= */
@media (max-width: 992px) {
.about-img-frame {
padding: 10px;
border-width: 4px;
}

.about-img-frame::before {
inset: -10px;
}

.experience-badge {
padding: 14px;
bottom: -16px;
right: -16px;
}

.experience-badge i {
font-size: 1.8rem;
}

.experience-badge div strong {
font-size: 0.95rem;
}

.experience-badge div span {
font-size: 0.75rem;
}
}

@media (max-width: 768px) {
.about-img-frame {
padding: 8px;
border-width: 3px;
}

.about-img-frame::before {
display: none;
}

.experience-badge {
padding: 12px;
bottom: -12px;
right: -12px;
}

.experience-badge i {
font-size: 1.5rem;
}
}

@media (max-width: 480px) {
.experience-badge {
bottom: -10px;
right: -10px;
padding: 10px;
}
}

/* STREAMING_CHUNK:Styling responsive media queries /
/ Responsive Media Queries */
@media (max-width: 992px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}
.about-grid,
.programs-grid,
.research-grid,
.contact-grid {
grid-template-columns: 1fr;
}
.footer-content {
grid-template-columns: 1fr;
}
.hero-content h1 {
font-size: 2.5rem;
}
}

@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 80px;
right: -100%;
width: 100%;
height: calc(100vh - 80px);
background: #fff;
flex-direction: column;
justify-content: center;
transition: var(--transition);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.nav-links.active {
right: 0;
}
.menu-toggle {
display: block;
}
.hero-buttons {
flex-direction: column;
}
}

/* =========================================================
   Header — responsive overrides (applied after the base
   media queries so these win for conflicting properties)
   ========================================================= */
body.menu-open {
overflow: hidden;
}

@media (max-width: 992px) {
.nav-container {
height: 70px;
}
.logo-img {
width: 44px;
height: 44px;
}
.logo-text {
display: none;
}
.logo-text-short {
display: block;
font-size: 1.2rem;
}
.nav-links {
gap: 20px;
}
.header-actions .btn {
padding: 9px 18px;
font-size: 0.9rem;
}
}

@media (max-width: 768px) {
.nav-container {
height: 62px;
}
.logo-img {
width: 40px;
height: 40px;
}
.logo-text-short {
font-size: 1.05rem;
white-space: nowrap;
}
.nav-links {
position: fixed;
top: 62px;
right: -100%;
width: 100%;
height: calc(100vh - 62px);
background: #fff;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 20px 40px;
overflow-y: auto;
transition: var(--transition);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
z-index: 999;
}
.nav-links.active {
right: 0;
}
.nav-links a {
display: block;
width: 100%;
text-align: center;
font-size: 1.15rem;
font-weight: 700;
padding: 14px 0;
border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}
.nav-links a.nav-portal {
margin-top: 28px;
background: var(--primary-light);
color: #fff;
border: none;
border-radius: var(--radius);
}
/* زر بوابة المسؤول أسفل زر بوابة الطالب في القائمة */
.nav-links a.nav-portal + .nav-links a.nav-portal {
margin-top: 12px;
}
.header-actions .btn {
display: none;
}
.menu-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
font-size: 1.4rem;
}
}

@media (max-width: 480px) {
.nav-container {
height: 56px;
}
.logo-img {
width: 36px;
height: 36px;
}
.logo-text-short {
font-size: 0.95rem;
}
.nav-links {
top: 56px;
height: calc(100vh - 56px);
}
.menu-toggle {
width: 40px;
height: 40px;
}
}