.nav-menu li {
    position: relative;
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    z-index: 1100;
    border: 1px solid #f0f0f0;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    top: -0.5rem;
    right: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    border: 1px solid #f0f0f0;
}

.nav-menu li:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li:hover > .dropdown-submenu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
    position: relative;
}

.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #22334f;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s, padding-right 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f5f2ed;
    color: #c89a66;
    padding-right: 1.8rem;
}

.dropdown-menu li.has-submenu > a::before {
    content: '◀';
    font-size: 0.7rem;
    margin-left: 10px;
    color: #c89a66;
}

.page-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #22334f, #152033);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 154, 102, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: 1;
}

.page-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.8rem;
    text-shadow: 0px 0px 10px #000000;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: #c89a66;
    max-width: 600px;
    text-shadow: 0px 0px 10px #000000;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    padding: 4rem 0;
    background-color: #f5f2ed;
}

.content-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2.5rem;
}

.main-column {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: #22334f;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li a {
    text-decoration: none;
    color: #22334f;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s, padding-right 0.3s;
}

.sidebar-links li a:hover {
    color: #c89a66;
    padding-right: 0.5rem;
}

.sidebar-links li:last-child a {
    border-bottom: none;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2,
.main-column h2 {
    font-size: 1.8rem;
    color: #22334f;
    border-right: 5px solid #c89a66;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-section p,
.main-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.content-section ul,
.main-column ul {
    list-style: none;
    padding-right: 1rem;
}

.content-section li,
.main-column li {
    font-size: 1rem;
    color: #333;
    position: relative;
    padding-right: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-section li::before,
.main-column li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    color: #c89a66;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.info-card-image {
    height: 300;
    background-color: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #22334f;
}

.info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card-content {
    padding: 1.5rem;
}

.info-card-content h3 {
    font-size: 1.25rem;
    color: #22334f;
    margin-bottom: 0.5rem;
}

.info-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.info-card-content .info-tag {
    display: inline-block;
    background: rgba(200, 154, 102, 0.15);
    color: #c89a66;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #22334f;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c89a66;
    box-shadow: 0 0 0 3px rgba(200, 154, 102, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-container .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #22334f;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #c89a66;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #333;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.table-container {
    overflow-x: auto;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.styled-table th,
.styled-table td {
    padding: 1rem 1.2rem;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.styled-table th {
    background-color: #f8f9fa;
    color: #22334f;
    font-weight: 600;
}

.styled-table tbody tr:hover {
    background-color: #f5f2ed;
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    width: 120px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #c89a66, #a07645);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.2rem;
    color: #22334f;
    margin-bottom: 0.5rem;
}

.team-member-role {
    color: #c89a66;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #c89a66, #a07645);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

a,
button,
input,
select,
textarea {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-links li a {
    position: relative;
    overflow: hidden;
}

.sidebar-links li a::before {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-links li a:hover {
    padding-right: 1.2rem;
    color: #c89a66;
}

.sidebar-links li a:hover::before {
    right: 0;
    opacity: 1;
}

.content-section h2 {
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-section h2:hover {
    transform: translateX(8px);
    color: #c89a66;
    border-right: 5px solid #c89a66;
}

.content-section li {
    transition: transform 0.25s ease, color 0.25s ease;
    cursor: default;
}

.content-section li:hover {
    transform: translateX(5px);
    color: #c89a66;
}

.content-section li:hover::before {
    transform: scale(1.2);
}

.info-card {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.info-card:hover .info-card-content h3 {
    color: #c89a66;
}

.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #c89a66;
    background-color: #fff;
}

.styled-table tbody tr {
    transition: all 0.25s ease;
}

.styled-table tbody tr:hover {
    background-color: #fcfcf9;
    transform: translateX(5px);
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #fcfaf6;
    padding-right: 1.7rem;
}

.team-member {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-member:hover .team-member-role {
    color: #c89a66;
}

.stat-card {
    transition: all 0.35s ease;
    transform-origin: center;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary,
.form-container .btn-primary {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.btn-primary:hover,
.form-container .btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 25px rgba(200, 154, 102, 0.5);
}

.page-hero h1,
.page-hero p {
    transition: transform 0.4s ease;
}

.page-hero h1:hover {
    transform: scale(1.02);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-hero p:hover {
    transform: scale(1.01);
}

.styled-table th {
    transition: background-color 0.25s ease;
    cursor: default;
}

.styled-table th:hover {
    background-color: #f0eae2;
    color: #c89a66;
}

.content-section p {
    transition: color 0.25s ease;
}

.content-section p:hover {
    color: #2a2a3e;
}

* {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

tr.demand-high {
    background-color: rgba(67, 160, 71, 0.1);
}

tr.demand-medium {
    background-color: rgba(255, 167, 38, 0.1);
}

tr.demand-low {
    background-color: rgba(158, 158, 158, 0.1);
}

tr.salary-high td:nth-child(4) {
    background-color: rgba(46, 125, 50, 0.12);
    font-weight: 600;
}

tr.salary-medium td:nth-child(4) {
    background-color: rgba(255, 167, 38, 0.12);
    font-weight: 500;
}

tr.salary-low td:nth-child(4) {
    background-color: rgba(158, 158, 158, 0.12);
    color: #555;
}

tr[data-href] {
    cursor: pointer;
    transition: background-color 0.2s;
}

tr[data-href]:hover {
    background-color: rgba(200, 154, 102, 0.15) !important;
}

.charts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
}

.chart-frame {
    flex: 1;
    min-width: 300px;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .logo-text {
        display: none;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        top: auto;
        margin-top: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .styled-table th:nth-child(2),
    .styled-table td:nth-child(2),
    .styled-table th:nth-child(5),
    .styled-table td:nth-child(5) {
        display: none;
    }

    .chart-frame {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .main-column {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1101;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #22334f;
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    body.dark-mode .hamburger span {
        background: #f0f0f0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navbar .nav-menu,
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        background: white;
        display: flex !important;
        flex-direction: column;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1500;
        overflow-y: auto;
    }

    body.dark-mode .nav-menu {
        background: #22334f;
        color: #f0f0f0;
    }

    .navbar .nav-menu.active,
    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid #eee;
        white-space: normal;
    }

    body.dark-mode .nav-menu li {
        border-bottom: 1px solid #2d4a75;
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        font-size: 1.1rem;
        color: #22334f;
        text-decoration: none;
    }

    body.dark-mode .nav-menu > li > a {
        color: #f0f0f0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu,
    .dropdown-submenu {
        display: none;
        position: static;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0;
        border: none;
        width: 100%;
        min-width: unset;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu li.active > .dropdown-menu,
    .nav-menu li.active > .dropdown-submenu {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    body.dark-mode .dropdown-menu,
    body.dark-mode .dropdown-submenu {
        background: #152033;
    }

    .dropdown-menu a,
    .dropdown-submenu a {
        padding: 12px 35px !important;
        font-size: 1rem;
    }

    .nav-menu li.has-submenu > a::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

    .nav-menu li.has-submenu.active > a::after {
        transform: rotate(180deg);
    }
}


body.dark-mode .university-card {
    background: #1e3a5f;
    border: 2px solid #334155;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #f8fafc;
}

body.dark-mode .university-card:hover {
    border-color: #d4a574;
}

body.dark-mode .university-card h3 {
    color: #f8fafc;
}

body.dark-mode .university-type {
    color: inherit;
}

body.dark-mode .public-type {
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
}

body.dark-mode .private-type {
    background: rgba(255, 152, 0, 0.15);
    color: #ffe082;
}


body.dark-mode .major-card {
    background: #2d4a75;
    border-left: 4px solid #d4a574;
    color: #f8fafc;
}

body.dark-mode .major-card:hover {
    background: #335588;
    transform: translateX(5px);
}

body.dark-mode .major-card h4 {
    color: #f8fafc;
}

body.dark-mode .requirements {
    color: #cbd5e1;
}

body.dark-mode .demand-level {
    color: inherit;
}

body.dark-mode .high-demand {
    background: rgba(244, 67, 54, 0.15);
    color: #ef9a9a;
}

body.dark-mode .medium-demand {
    background: rgba(255, 152, 0, 0.15);
    color: #ffe082;
}

body.dark-mode .low-demand {
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
}

body.dark-mode .university-link {
    background: linear-gradient(135deg, #d4a574, #c49560);
    color: #0a1628;
}

body.dark-mode .university-link:hover {
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.4);
}


body.dark-mode .stat-item {
    background: #2d4a75;
    color: #f8fafc;
}

body.dark-mode .stat-value {
    color: #f8fafc;
}

body.dark-mode .stat-label {
    color: #cbd5e1;
}


body.dark-mode .search-input {
    background: #334155;
    border: 2px solid #475569;
    color: #f8fafc;
}

body.dark-mode .search-input::placeholder {
    color: #94a3b8;
}

body.dark-mode .search-input:focus {
    border-color: #d4a574;
}

body.dark-mode .search-icon {
    color: #cbd5e1;
}

/* Messages */
body.dark-mode .no-results {
    background: #1e3a5f;
    color: #cbd5e1;
    border: 1px solid #334155;
}

body.dark-mode .loading-spinner {
    color: #d4a574;
}