/*
==========================================
RIYAADA ACADEMY DESIGN SYSTEM
Theme: MSDTech Custom Theme
==========================================
*/

/* ==========================================
   ROOT VARIABLES
========================================== */

:root {

	/* Brand Colors */
	--primary: #0B1F3A;
	--secondary: #4A90E2;
	--accent: #D4AF37;
	--teal: #0E8C9C;

	/* Neutral Colors */
	--white: #ffffff;
	--light: #F8FAFC;
	--gray-100: #F1F5F9;
	--gray-200: #E2E8F0;
	--gray-400: #94A3B8;
	--gray-600: #475569;
	--gray-800: #1E293B;
	--dark: #0F172A;

	/* Typography */
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	/* Container */
	--container-width: 1320px;

	/* Radius */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;

	/* Shadow */
	--shadow-sm: 0 2px 10px rgba(0,0,0,.05);
	--shadow-md: 0 10px 30px rgba(0,0,0,.08);
	--shadow-lg: 0 20px 50px rgba(0,0,0,.12);

	/* Transition */
	--transition: all .3s ease;

}


/* ==========================================
   RESET
========================================== */

*,
*::before,
*::after{
	margin:0;
	padding:0;
	box-sizing:border-box;
}

html{
	scroll-behavior:smooth;
}

body{
	font-family:var(--font-body);
	font-size:16px;
	line-height:1.7;
	font-weight:400;
	color:var(--gray-600);
	background:#fff;
	overflow-x:hidden;
}


/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3,
h4,
h5,
h6{
	font-family:var(--font-heading);
	color:var(--primary);
	font-weight:700;
	line-height:1.2;
	margin-bottom:20px;
}

h1{
	font-size:64px;
}

h2{
	font-size:48px;
}

h3{
	font-size:32px;
}

h4{
	font-size:24px;
}

h5{
	font-size:20px;
}

h6{
	font-size:18px;
}

p{
	margin-bottom:20px;
}

a{
	text-decoration:none;
	color:var(--secondary);
	transition:var(--transition);
}

a:hover{
	color:var(--primary);
}


/* ==========================================
   IMAGES
========================================== */

img {
	max-width:100%;
	height:auto;
	display:block;
}


/* ==========================================
   CONTAINER
========================================== */

.container{
	max-width: var(--container-width);
	margin:0 auto;
	padding-left:15px;
	padding-right:15px;
}


/* ==========================================
   BUTTONS
========================================== */

.btn-primary-custom{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:14px 28px;
	background:var(--primary);
	color:#fff;
	border:none;
	border-radius: var(--radius-sm);
	font-weight:600;
	font-family:var(--font-heading);
	transition:var(--transition);
}

.btn-primary-custom:hover{
	background:var(--secondary);
	color:#fff;
}

.btn-secondary-custom{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:14px 28px;
	background:var(--accent);
	color:var(--primary);
	border:none;
	border-radius: var(--radius-sm);
	font-weight:600;
	font-family:var(--font-heading);
	transition:var(--transition);
}

.btn-secondary-custom:hover{
	background:var(--primary);
	color:#fff;
}


/* ==========================================
   TOP BAR
========================================== */

.top-bar{
	background:var(--primary);
	color:#fff;
	font-size:14px;
	padding:10px 0;
}

.top-bar .container{
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:15px;
}

.top-bar a{
	color:#fff;
}

.top-bar-right{
	display:flex;
	align-items:center;
	gap:20px;
}

.apply-btn{
	background:var(--accent);
	color:var(--primary) !important;
	padding:10px 18px;
	border-radius: var(--radius-sm);
	font-weight:600;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--white);
	z-index: 9999;
	box-shadow: var(--shadow-sm);
}

.header-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 90px;
	gap: 40px;
}

/* ==========================================
   LOGO
========================================== */

.site-branding {
	flex-shrink: 0;
}

.site-branding .custom-logo {
	width: auto;
	height: auto;
	max-height: 70px;
}

.site-title {
	font-size: 28px;
	font-weight: 700;
	font-family: var(--font-heading);
	color: var(--primary);
}

/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.desktop-navigation {
	margin-left: auto;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 35px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: flex;
	align-items: center;
	height: 90px;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 600;
	color: var(--primary);
	position: relative;
}

.primary-menu > li > a:hover {
	color: var(--secondary);
}

/* Active Menu */

.current-menu-item > a,
.current-menu-ancestor > a {
	color: var(--secondary);
}

/* ==========================================
   DROPDOWN ARROW
========================================== */

.primary-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: var(--transition);
}

.primary-menu .menu-item-has-children:hover > a::after {
	transform: rotate(225deg);
}

/* ==========================================
   DROPDOWN MENU
========================================== */

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;

	min-width: 260px;

	background: var(--white);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);

	box-shadow: 0 15px 40px rgba(0,0,0,.08);

	list-style: none;
	padding: 10px 0;
	margin: 0;

	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);

	transition: .3s ease;
	z-index: 999;
}

.primary-menu .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--accent);
}

.primary-menu .sub-menu li {
	width: 100%;
}

.primary-menu .sub-menu a {
	display: block;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gray-800);
	transition: var(--transition);
}

.primary-menu .sub-menu a:hover {
	background: var(--light);
	color: var(--secondary);
	padding-left: 28px;
}

/* ==========================================
   HEADER CTA
========================================== */

.header-actions {
	flex-shrink: 0;
}

.header-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 12px 24px;

	background: var(--accent);
	color: var(--primary);

	font-family: var(--font-heading);
	font-weight: 600;

	border-radius: var(--radius-md);

	transition: var(--transition);
}

.header-cta-btn:hover {
	background: var(--primary);
	color: var(--white);
}

/* ==========================================
   MOBILE TOGGLE
========================================== */

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;

	background: none;
	border: none;

	cursor: pointer;
	padding: 0;
}

.mobile-menu-toggle span {
	width: 28px;
	height: 3px;

	background: var(--primary);
	border-radius: var(--radius-sm);
}

/* ==========================================
   MOBILE MENU
========================================== */

.mobile-navigation {
	display: none;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

	.desktop-navigation,
	.header-actions {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.header-wrapper {
		min-height: 80px;
	}

	.site-branding .custom-logo {
		max-height: 60px;
	}
}



/* ==========================================
   SECTION
========================================== */

section{
	padding:100px 0;
}

.section-title{
	max-width:700px;
	margin:0 auto 60px;
	text-align:center;
}

.section-subtitle{
	color:var(--accent);
	font-weight:600;
	letter-spacing:1px;
	text-transform:uppercase;
	margin-bottom:15px;
}


/* ==========================================
   CARD
========================================== */

.card-custom{
	background:#fff;
	padding:35px;
	border-radius: var(--radius-sm);
	box-shadow:var(--shadow-sm);
	transition:var(--transition);
	height:100%;
}

.card-custom:hover{
	transform:translateY(-8px);
	box-shadow:var(--shadow-md);
}


/* ==========================================
   FOOTER
========================================== */

.site-footer{
	background:var(--primary);
	color:#fff;
	padding-top:80px;
}

.site-footer h4{
	color:#fff;
	font-size:20px;
	margin-bottom:25px;
}

.site-footer p,
.site-footer li,
.site-footer a{
	color:rgba(255,255,255,.85);
}

.footer-menu,
.footer-contact{
	list-style:none;
	padding:0;
	margin:0;
}

.footer-menu li,
.footer-contact li{
	margin-bottom:12px;
}

.footer-newsletter{
	margin-top:20px;
}

.footer-newsletter input{
	width:100%;
	height:52px;
	padding:0 15px;
	border:none;
	border-radius: var(--radius-sm);
	margin-bottom:12px;
}

.footer-newsletter button{
	width:100%;
	height:52px;
	background:var(--accent);
	border:none;
	color:var(--primary);
	font-weight:600;
	border-radius: var(--radius-sm);
}

.footer-bottom{
	margin-top:60px;
	padding:20px 0;
	border-top:1px solid rgba(255,255,255,.15);
}

.footer-bottom-inner{
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:15px;
}

.footer-legal{
	display:flex;
	gap:20px;
}


/* ==========================================
   ACCESSIBILITY
========================================== */

.skip-link{
	position:absolute;
	left:-9999px;
	top:auto;
	width:1px;
	height:1px;
	overflow:hidden;
}

.skip-link:focus{
	left:20px;
	top:20px;
	width:auto;
	height:auto;
	padding:10px 15px;
	background:#000;
	color:#fff;
	z-index:9999;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:991px){

	h1{
		font-size:48px;
	}

	h2{
		font-size:38px;
	}

	.main-navigation{
		display:none;
	}

	.mobile-menu-toggle{
		display:block;
	}

	.header-inner{
		min-height:80px;
	}

}

@media (max-width:767px){

	h1{
		font-size:38px;
	}

	h2{
		font-size:30px;
	}

	section{
		padding:70px 0;
	}

	.top-bar .container{
		flex-direction:column;
		text-align:center;
	}

	.footer-bottom-inner{
		flex-direction:column;
		text-align:center;
	}

	.footer-legal{
		flex-wrap:wrap;
		justify-content:center;
	}

}

/* ==========================================================
   ADMISSIONS PAGE
========================================================== */

/* ==========================================
   HERO
========================================== */

.admissions-hero{
    position:relative;
    overflow:hidden;
    padding:160px 0;
    background:linear-gradient(135deg,var(--primary) 0%,#16345D 100%);
    color:var(--white);
}

.admissions-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(11,31,58,.35);
}

.admissions-hero .container{
    position:relative;
    z-index:2;
}

.page-hero-content{
    max-width:760px;
}

.page-label{
    display:inline-flex;
    align-items:center;
    padding:10px 22px;
    margin-bottom:25px;
    border-radius: var(--radius-sm);
    background:rgba(255,255,255,.12);
    color:var(--accent);
    font-size:14px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.admissions-hero h1{
    color:var(--white);
    margin-bottom:25px;
}

.admissions-hero p{
    max-width:650px;
    color:rgba(255,255,255,.90);
    font-size:20px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;
}

/* ==========================================================
   HERO QUICK ENQUIRY
========================================================== */

.hero-enquiry-card{
    background:var(--white);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lg);
    padding:45px;
    position:relative;
    overflow:hidden;
}

.hero-enquiry-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:var(--accent);
}

/* ==========================================
   HEADER
========================================== */

.hero-enquiry-header{
    margin-bottom:35px;
}

.hero-enquiry-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 18px;
    margin-bottom:18px;

    background:rgba(212,175,55,.12);
    color:var(--accent);

    border-radius:50px;

    font-size:13px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
}

.hero-enquiry-header h3{
    margin-bottom:15px;
    color:var(--primary);
}

.hero-enquiry-header p{
    margin:0;
    color:var(--gray-600);
    line-height:1.7;
}


/* ==========================================================
   FORM
========================================================== */

.hero-enquiry-form{
    margin-bottom:35px;
}

.hero-enquiry-form p{
    margin:0;
}

.cf7-quick-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.cf7-quick-grid .cf7-full{
    grid-column:1 / -1;
}

.hero-enquiry-form .wpcf7-form-control-wrap{
    display:block;
    width:100%;
}

/* Inputs */

.hero-enquiry-form input,
.hero-enquiry-form select,
.hero-enquiry-form textarea{

    width:100%;

    padding:15px 18px;

    border:1px solid var(--gray-200);
    border-radius:var(--radius-sm);

    background:var(--white);

    font-family:var(--font-body);
    font-size:15px;
    color:var(--gray-800);

    transition:var(--transition);

    outline:none;
}

.hero-enquiry-form textarea{
    min-height:140px;
    resize:vertical;
}

/* Select */

.hero-enquiry-form select{

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    cursor:pointer;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat:no-repeat;
    background-position:right 18px center;
    background-size:14px;

    padding-right:50px;
}

/* Placeholder */

.hero-enquiry-form input::placeholder,
.hero-enquiry-form textarea::placeholder{
    color:var(--gray-400);
}

/* Focus */

.hero-enquiry-form input:focus,
.hero-enquiry-form select:focus,
.hero-enquiry-form textarea:focus{

    border-color:var(--accent);

    box-shadow:0 0 0 4px rgba(212,175,55,.12);
}

/* Submit Button */

.hero-enquiry-form input[type="submit"]{

    width:100%;

    padding:16px 28px;

    background:var(--primary);
    color:var(--white);

    border:none;
    border-radius:var(--radius-sm);

    font-family:var(--font-heading);
    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:var(--transition);
}

.hero-enquiry-form input[type="submit"]:hover{

    background:var(--secondary);

}

/* ==========================================================
   CONTACT DETAILS
========================================================== */

.hero-enquiry-footer{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:25px;

    padding-top:28px;

    border-top:1px solid var(--gray-200);
}

.hero-contact-item{
    flex:1;
}

.hero-contact-item strong{

    display:block;

    margin-bottom:6px;

    font-family:var(--font-heading);
    font-size:15px;
    font-weight:600;

    color:var(--primary);
}

.hero-contact-item span{

    display:block;

    color:var(--gray-600);

    font-size:14px;
    line-height:1.7;
}

/* ==========================================================
   CONTACT FORM 7
========================================================== */

.hero-enquiry-form .wpcf7-spinner{
    margin-left:12px;
}

.hero-enquiry-form .wpcf7-not-valid-tip{

    margin-top:6px;

    font-size:13px;

    color:#dc2626;
}

.hero-enquiry-form .wpcf7-response-output{

    margin-top:20px !important;

    padding:15px 18px !important;

    border-radius:var(--radius-sm);

    font-size:14px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:991px){

    .hero-enquiry-card{
        margin-top:60px;
        padding:35px;
    }

}

@media (max-width:767px){

    .hero-enquiry-card{
        padding:28px;
    }

    .cf7-quick-grid{
        grid-template-columns:1fr;
    }

    .cf7-quick-grid .cf7-full{
        grid-column:auto;
    }

    .hero-enquiry-footer{
        flex-direction:column;
        gap:20px;
    }

}

/* ==========================================
   WHY RIYAADA
========================================== */

.why-riyaada{
    background:var(--light);
}

.why-riyaada .card-custom{
    text-align:center;
}

.why-riyaada .card-custom h4{
    margin-bottom:18px;
}


/* ==========================================
   ADMISSION PROCESS
========================================== */

.admission-process{
    background:var(--white);
}

.admission-process .card-custom{
    position:relative;
    text-align:center;
}

.admission-process h3{
    font-size:52px;
    color:var(--accent);
    margin-bottom:20px;
}

.admission-process h5{
    margin-bottom:15px;
}


/* ==========================================
   ENTRY REQUIREMENTS
========================================== */

.entry-requirements{
    background:var(--gray-100);
}

.entry-requirements h2{
    margin-bottom:25px;
}

.entry-requirements ul{
    list-style:none;
    padding:0;
    margin-top:30px;
}

.entry-requirements li{
    position:relative;
    padding-left:34px;
    margin-bottom:18px;
    color:var(--gray-800);
}

.entry-requirements li::before{
    content: "\2713";
    position:absolute;
    left:0;
    top:0;
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--accent);
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.entry-requirements .card-custom{
    padding:50px;
}


/* ==========================================
   PROGRAMMES
========================================== */

.available-programmes{
    background:var(--white);
}

.available-programmes .card-custom{
    text-align:center;
    border-top:4px solid var(--accent);
}

.available-programmes .card-custom h4{
    margin-bottom:0;
}


/* ==========================================
   FAQ
========================================== */

.faq-section{
    background:var(--light);
}

.faq-section .accordion{
    max-width:900px;
    margin:auto;
}

.faq-section .accordion-item{
    border:none;
    margin-bottom:20px;
    border-radius:var(--radius-sm);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.faq-section .accordion-button{
    background:#fff;
    font-family:var(--font-heading);
    font-weight:600;
    color:var(--primary);
    padding:24px 30px;
    box-shadow:none;
}

.faq-section .accordion-button:not(.collapsed){
    background:var(--primary);
    color:#fff;
}

.faq-section .accordion-button:focus{
    box-shadow:none;
}

.faq-section .accordion-body{
    padding:25px 30px;
    background:#fff;
}


/* ==========================================
   CTA
========================================== */

.admissions-cta{
    background:linear-gradient(135deg,var(--primary),#16345D);
}

.admissions-cta .card-custom{
    background:transparent;
    box-shadow:none;
    text-align:center;
    max-width:900px;
    margin:auto;
}

.admissions-cta h2{
    color:#fff;
}

.admissions-cta p{
    color:rgba(255,255,255,.85);
    max-width:700px;
    margin:0 auto 35px;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:991px){

    .admissions-hero{
        padding:120px 0;
    }

    .hero-buttons{
        gap:15px;
    }

    .entry-requirements .card-custom{
        margin-top:40px;
    }

}

@media (max-width:767px){

    .admissions-hero{
        padding:90px 0;
        text-align:center;
    }

    .page-hero-content{
        margin:auto;
    }

    .admissions-hero p{
        font-size:17px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .admission-process h3{
        font-size:40px;
    }

    .entry-requirements li{
        padding-left:30px;
    }

}

/* ==========================================================
   CONTACT FORM 7
========================================================== */

.cf7-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px 30px;
}

.cf7-full{
    grid-column:1 / -1;
}

.cf7-field{
    width:100%;
}

.cf7-field label{
    display:block;
    margin-bottom:10px;
    font-family:var(--font-heading);
    font-size:15px;
    font-weight:600;
    color:var(--primary);
}

/* Inputs */

.cf7-field input,
.cf7-field select,
.cf7-field textarea{
    width:100%;
    padding:15px 18px;
    border:1px solid var(--gray-200);
    border-radius:var(--radius-sm);
    background:var(--white);
    font-family:var(--font-body);
    font-size:15px;
    color:var(--gray-800);
    transition:var(--transition);
    outline:none;
}

.cf7-field textarea{
    min-height:180px;
    resize:vertical;
}

.cf7-field select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    cursor:pointer;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 18px center;
    background-size:14px;
    padding-right:48px;
}

/* Focus */

.cf7-field input:focus,
.cf7-field select:focus,
.cf7-field textarea:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 4px rgba(212,175,55,.15);
}

/* Placeholder */

.cf7-field input::placeholder,
.cf7-field textarea::placeholder{
    color:var(--gray-400);
}

/* Submit */

.cf7-field input[type="submit"]{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:auto;
    min-width:220px;

    padding:15px 34px;

    background:var(--primary);
    color:var(--white);

    border:none;
    border-radius:var(--radius-sm);

    font-family:var(--font-heading);
    font-size:16px;
    font-weight:600;

    cursor:pointer;
    transition:var(--transition);
}

.cf7-field input[type="submit"]:hover{
    background:var(--secondary);
}

/* Contact Form 7 Messages */

.wpcf7-response-output{
    margin-top:25px !important;
    padding:16px 20px !important;
    border-radius:var(--radius-sm);
    font-size:15px;
}

.wpcf7-not-valid-tip{
    margin-top:6px;
    font-size:13px;
    color:#dc2626;
}

.wpcf7-spinner{
    margin-left:15px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:767px){

    .cf7-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .cf7-full{
        grid-column:auto;
    }

    .cf7-field input[type="submit"]{
        width:100%;
    }

}