:root {
    /* Blue & white palette inspired by logo and mission images */
    --primary: #0B5394; /* deep blue */
    --moreprimary:#002d53; /*darker blue*/
    --secondary: #1976D2; /* medium blue */
    --accent: #FFFFFF; /* white accent */
    --text-dark: #0b2236; /* dark slate for readable text */
    --bg-light: #F6FBFF; /* very light blue background */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
}

/* Ensure Bootstrap .text-primary uses our primary color */
.text-primary {
    color: var(--primary) !important;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
}

/* Top Bar */
.top-bar {
    /* background-color: transparent; */
    /*background: linear-gradient(175deg, #104777, #033b69) !important;*/
    background: linear-gradient(135deg, #252f38, #023561) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border: none;
}

.btn-primary:hover {
    background-color: #155a96;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-accent:hover {
    background-color: #d9aa1e;
}

/* Hero / Carousel */
.hero-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11,60,93,0.45), rgba(11,60,93,0.45));
    z-index: 1;
    pointer-events: none;
}

.hero-section .carousel-item img {
    height: 70vh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-overlay h1, .hero-overlay p {
    text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Sections */
.section-padding {
    padding: 50px 0;
}

/* Justified text for about section */
.about-paragraph {
    text-align: justify;
}
/* Justified text for vision and mission section */
.vision-mission-paragraph {
    text-align: justify;
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header img {
    width: 75%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Partner Cards */
.partner-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Benefit Cards */
.benefit-card {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    color: var(--secondary);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Cards */
.program-card {
    border-radius: 12px;
    box-shadow: 6px 6px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.academic-calendar-card {
    border-radius: 12px;
    box-shadow: 6px 6px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* Top bar logo */
.top-bar-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* Top bar school title */
.top-bar .navbar-brand {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
    transition: all 0.3s ease;
}

.top-bar .navbar-brand:hover {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* Ensure sticky navbar stays above other content */
.navbar.sticky-top {
    z-index: 1030;
}

/* Navbar */
.top-bar-contact-info {
            background: transparent;
            color: white;
            text-decoration: none;
            padding: 20px;
            text-align: center;
        }

/* Social icons in the top bar */
.top-bar .social-icons a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    padding: 6px;
    border-radius: 50%;
}

.top-bar .social-icons svg {
    width: 20px;
    height: 20px;
    display: block;
    color: #ffffff;
}

.top-bar .social-icons a + a {
    margin-left: 0.5rem;
}

.top-bar .social-icons a:hover {
    opacity: 0.95;
}

/* Adjust specific social icon sizes in top bar */
.top-bar .social-icons .fa-facebook-f {
    font-size: 20px; /* slightly larger than other icons */
}
.top-bar .social-icons i {
    vertical-align: middle;
}

/* Navbar link styles and active color (use logo blue) */
.navbar .nav-link {
    display: inline-block;
    color: rgba(11,34,54,0.85);
    transition: color .15s ease, opacity .15s ease;
}

.navbar .nav-link:hover {
    color: var(--secondary);
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    position: relative;
}

.navbar .nav-link.active::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    margin-top: 6px;
    border-radius: 2px;
}
  /* Remove focus from all navbar elements */
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link:focus-within {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

/* For dropdown active state - apply underline only to the span */
.navbar .nav-link.dropdown-toggle.active {
    position: relative;
}

.navbar .nav-link.dropdown-toggle.active span {
    position: relative;
}

.navbar .nav-link.dropdown-toggle.active span::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    margin-top: 6px;
    border-radius: 2px;
}

/* Override the default active underline for dropdown toggles */
.navbar .nav-link.dropdown-toggle.active::after {
    display: none;
}

/* Position dropdown arrow icon to the right of text */
.navbar .nav-link.dropdown-toggle .fa-chevron-down {
    position: absolute;
    right: -10px;
    top: 15px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Hide Bootstrap's default dropdown arrow */
.navbar .nav-link.dropdown-toggle::after {
    display: none !important;
}
.quick-links{
    background-color: var(--moreprimary) !important;
}

/* Footer */
footer.footer {
    background-color: var(--moreprimary) !important;
    padding: 30px 0;
}

.footer {
    /* background-color: var(--moreprimary) !important; */
    padding: 30px 0;
    background: linear-gradient(135deg, #252f38, #023561) !important;
    color: white;
}
.faq-section {
            padding: 80px 0;
        }
.faq-header {
            text-align: center;
            margin-bottom: 60px;
        }
.faq-header h1 {
            color: var(--primary-color);
            font-weight: 700;
            margin-bottom: 20px;
        }
.faq-header p {
            font-size: 1.1rem;
            color: #666;
            max-width: 800px;
            margin: 0 auto;
        }
.faq-category {
            margin-bottom: 40px;
        }
.faq-category h3 {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary);
        }
.accordion-item {
            border: none;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
        }
.accordion-button {
            background-color: #f8f9fa;
            font-weight: 500;
            color: #333;
            border: none;
            padding: 20px;
            font-size: 1rem;
        }
.accordion-button:not(.collapsed) {
            background-color: var(--primary);
            color: white;
        }
.accordion-button:focus {
            box-shadow: none;
            border-color: transparent;
        }
.accordion-button::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }
.accordion-button:not(.collapsed)::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }
.accordion-body {
            padding: 25px 20px;
            background-color: white;
            line-height: 1.6;
        }
.contact-info {
            background: linear-gradient(165deg, rgb(65, 63, 63), #86949e);
            color: white;
            padding: 20px;
            border-radius: 15px;
            margin-top: 50px;
            text-align: center;
        }
.footer-contact-info {
            color: white;
        }
.footer-contact-info .phone {
            font-size: 1.1rem;
            font-weight: 300;
            color: white;
            text-decoration: none;
            display: inline-block;
        }
.footer-contact-info .phone:hover {
            color: #ffd700;
        }
.footer-contact-info p {
            font-size: 1.1rem;
        }
.contact-info h3 {
            margin-bottom: 25px;
            font-weight: 200;
        }
.contact-info p {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
.contact-info .phone {
            font-size: 1.3rem;
            font-weight: 600;
            color: white;
            text-decoration: none;            
            margin-bottom: 30px;
        }
.contact-info .phone:hover {
            color: #ffd700;
        }
.contact-item {
            display: flex;
            align-items: center;
            font-size: 1.1rem;
            margin-bottom: 15px;
        }
.contact-item i {
            color: #ffd700;
            font-size: 1.2rem;
            width: 20px;
            text-align: center;
        }
.contact-item .phone {
            font-size: 1.1rem;
            font-weight: 400;
            color: white;
            text-decoration: none;
            margin-bottom: 0;
        }
.contact-item .phone:hover {
            color: #ffd700;
        }
.contact-item span {
            color: white;
        }
.useful-links {
            text-align: left;
        }
.useful-links h5 {
            margin-bottom: 15px;
        }
.useful-links ul {
            list-style: none;
            padding: 0;
        }
.useful-links li {
            margin-bottom: 10px;
        }
.useful-links a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }
.useful-links a:hover {
            color: #ffd700;
        }
.social-links {
            margin-top: 25px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
.social-links h5 {
            margin: 0;
            white-space: nowrap;
        }
.social-links a {
            color: white;
            font-size: 1.5rem;
            margin: 0;
            transition: color 0.3s;
        }
.social-links a:hover {
            color: #ffd700;
        }

/* Footer horizontal line */
footer hr {
    border: none;
    height: 2px;
    background: white;
    opacity: 0.75;
    margin: 2rem 0;
    width: 100%;
}

footer hr.bg-white {
    background: rgba(255, 255, 255, 0.945) !important;
    height: 1px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: left;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        text-align: left;
        border-bottom: none; /* Remove underline for all nav-links in mobile */
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* Remove focus from all navbar elements */
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link:focus-within {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Fix active underline in mobile - make it shorter and align left */
    .navbar-nav .nav-link.active::after {
        width: 100px !important;
        margin-top: 0;
        left: 0;
    }
    
    /* Specific styling for Contact menu in mobile */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none !important;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Style Apply Now button in mobile */
    .navbar-nav ~ .btn-primary,
    .navbar-nav ~ .btn-outline-primary {
        display: block;
        width: calc(100% - 2rem);
        margin: 0.5rem 1rem 1rem 1rem;
        text-align: center;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Contact form button in mobile */
    .contact-form .btn-primary,
    form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 2rem;
        min-height: 48px;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
        display: block;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 2rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        color: rgba(11,34,54,0.7);
        font-size: 0.8rem;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* Remove focus from all dropdown items */
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item:focus-visible,
    .navbar-nav .dropdown-item:active,
    .navbar-nav .dropdown-item:focus-within {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        background-color: transparent !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: transparent;
        color: var(--secondary);
    }
    
    /* Fix dropdown arrow positioning in mobile */
    .navbar .nav-link.dropdown-toggle .fa-chevron-down {
        position: static;
        right: auto;
        top: auto;
        margin-left: 0.5rem;
    }
    
    /* Hide ms-3 spacing in mobile */
    .navbar-nav .nav-item.ms-3 {
        margin-left: 0 !important;
    }
}

/* Tablet Responsive Design */
@media (min-width: 768px) and (max-width: 1024px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .hero-section .carousel-item img {
        height: 60vh;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
    
    .academic-calendar-card {
        margin-bottom: 2rem;
    }
    
    .top-bar .navbar-brand {
        font-size: 1.1rem;
    }
    
    .top-bar-contact-info {
        font-size: 0.9rem;
        padding: 15px;
    }
    
    .top-bar .social-icons a {
        padding: 4px;
    }
    
    .top-bar .social-icons svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Phone Responsive Design */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .hero-section .carousel-item img {
        height: 50vh;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    .program-card {
        margin-bottom: 1.5rem;
    }
    
    .academic-calendar-card {
        margin-bottom: 1.5rem;
    }
    
    .top-bar {
        padding: 1rem 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .top-bar .d-flex.align-items-center {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
        text-align: center;
    }
    
    .top-bar-logo {
        height: 60px;
    }
    
    .top-bar div:last-child {
        text-align: center;
        width: 100%;
    }
    
    .top-bar-contact-info {
        font-size: 1rem;
        padding: 8px;
        margin: 0 4px;
    }
    
    .top-bar .social-icons {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .top-bar .social-icons a {
        padding: 4px;
        margin: 0;
    }
    
    .top-bar .social-icons svg {
        width: 18px;
        height: 18px;
    }
    
    .navbar .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .navbar .btn-primary,
    .navbar .btn-outline-primary {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    /* Contact form button in tablet */
    .contact-form .btn-primary,
    form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 2rem;
        min-height: 48px;
        width: 100%;
        max-width: 280px;
        margin: 1rem auto;
        display: block;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    .footer-contact-info {
        font-size: 0.9rem;
    }
    
    .footer-contact-info .phone {
        font-size: 1rem;
    }
    
    .useful-links ul {
        margin-bottom: 1rem;
    }
    
    .useful-links li {
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        margin-top: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-links h5 {
        margin: 0;
        white-space: nowrap;
        font-size: 1.1rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        margin: 0;
    }
    
    /* Footer privacy and terms links */
    footer .row.align-items-center .col-md-6 {
        text-align: center !important;
        margin-top: 0.5rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Contact form button in mobile phone */
    .contact-form .btn-primary,
    form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        min-height: 48px;
        width: 100%;
        max-width: 250px;
        margin: 1rem auto;
        display: block;
    }
    
    .btn-accent {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-section {
        height: 45vh;
    }
    
    .hero-section .carousel-item img {
        height: 45vh;
    }
    
    .hero-overlay h1 {
        font-size: 1.5rem;
    }
    
    .hero-overlay p {
        font-size: 0.9rem;
    }
    
    .program-card {
        margin-bottom: 1rem;
    }
    
    .academic-calendar-card {
        margin-bottom: 1rem;
    }
    
    .top-bar {
        padding: 0.75rem 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar .d-flex.align-items-center {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar .navbar-brand {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        text-align: center;
    }
    
    .top-bar-logo {
        height: 50px;
    }
    
    .top-bar div:last-child {
        text-align: center;
        width: 100%;
    }
    
    .top-bar-contact-info {
        font-size: 0.85rem;
        padding: 6px;
        margin: 0 2px;
        display: inline-block;
    }
    
    .top-bar .social-icons {
        display: flex;
        justify-content: center;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .top-bar .social-icons a {
        padding: 3px;
        margin: 0;
    }
    
    .top-bar .social-icons svg {
        width: 16px;
        height: 16px;
    }
    
    .navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .navbar .btn-primary,
    .navbar .btn-outline-primary {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Contact form button in extra small mobile */
    .contact-form .btn-primary,
    form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        min-height: 48px;
        width: 100%;
        max-width: 200px;
        margin: 1rem auto;
        display: block;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .footer-contact-info {
        font-size: 0.8rem;
    }
    
    .footer-contact-info .phone {
        font-size: 0.9rem;
    }
    
    .useful-links ul {
        margin-bottom: 0.8rem;
    }
    
    .useful-links li {
        margin-bottom: 0.4rem;
    }
    
    .social-links {
        margin-top: 25px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .social-links h5 {
        margin: 0;
        white-space: nowrap;
        font-size: 1rem;
    }
    
    .social-links a {
        font-size: 1rem;
        margin: 0;
    }
    
    /* Footer privacy and terms links */
    footer .row.align-items-center .col-md-6 {
        text-align: center !important;
        margin-top: 0.5rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Contact form button in general mobile */
    .contact-form .btn-primary,
    form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        min-height: 48px;
        width: 100%;
        max-width: 220px;
        margin: 1rem auto;
        display: block;
    }
    
    .btn-accent {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Hide some elements on very small screens */
    .hero-overlay p {
        display: none;
    }
    
    .program-card .card-body {
        padding: 1rem;
    }
    
    .academic-calendar-card .card-body {
        padding: 1rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-section .carousel-item img {
        height: 70vh;
    }
    
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}
