/* Main stylesheet for Egypt Top Page - Responsive Design */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Desktop styles (default) */
/* Desktop alignment fix */
@media (min-width: 701px) {
    .container {
        padding: 0 40px;
    }
    
    .services-hub-content,
    .tutorials-content,
    .contact-content {
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }
}

/* Tablet styles */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        padding: 0 30px;
    }
}

/* Mobile styles (iPhone and smaller) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    body {
        font-size: 14px;
    }
}

/* Header Styles */
.header {
    background: transparent;
    padding: 30px 0 40px 0;
    position: relative;
    min-height: 120px;
}

/* Corner Decoration */
.corner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    overflow: hidden;
    z-index: 1;
}

.corner-triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.corner-triangle-1 {
    border-top: 100px solid rgb(228, 0, 127);
    border-right: 100px solid transparent;
    top: 0;
    left: 0;
}

.corner-triangle-2 {
    border-top: 65px solid rgb(29, 32, 136);
    border-right: 65px solid transparent;
    top: 0;
    left: 0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
}

.header-title {
    font-size: 4rem;
    font-weight: 700;
    color: rgb(29, 32, 136);
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sprix-header-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    vertical-align: middle;
}

.header-title .highlight-t {
    color: rgb(228, 0, 127);
}

.header-logo {
    position: absolute;
    right: 0;
    flex-shrink: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Tablet breakpoint for iPad Air, iPad mini and similar devices */
@media (max-width: 949px) and (min-width: 701px) {
    .header-title {
        font-size: 2.8rem;
        gap: 12px;
    }
    
    .sprix-header-logo {
        height: 42px;
    }
    
    .logo {
        height: 115px;
    }
    
    .header-logo {
        right: 15px;
    }
}

/* Header Responsive Styles for mobile */
@media (max-width: 700px) {
    .header {
        padding: 20px 0 25px 0;
        min-height: 90px;
    }
    
    .header-content {
        min-height: 60px;
    }
    
    .header-title {
        font-size: 2.2rem;
        gap: 10px;
    }
    
    .sprix-header-logo {
        height: 35px;
    }
    
    .logo {
        height: 92px;
    }
    
    .header-logo {
        right: 10px;
    }
    
    .corner-decoration {
        width: 100px;
        height: 100px;
    }
    
    .corner-triangle-1 {
        border-top: 62px solid rgb(228, 0, 127);
        border-right: 62px solid transparent;
    }
    
    .corner-triangle-2 {
        border-top: 40px solid rgb(29, 32, 136);
        border-right: 40px solid transparent;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0 20px 0;
        min-height: 70px;
    }
    
    .header-content {
        min-height: 50px;
    }
    
    .header-title {
        font-size: 1.8rem;
        gap: 8px;
    }
    
    .sprix-header-logo {
        height: 30px;
    }
    
    .logo {
        height: 58px;
    }
    
    .header-logo {
        right: 0;
    }
    
    .corner-decoration {
        width: 80px;
        height: 80px;
    }
    
    .corner-triangle-1 {
        border-top: 50px solid rgb(228, 0, 127);
        border-right: 50px solid transparent;
    }
    
    .corner-triangle-2 {
        border-top: 32px solid rgb(29, 32, 136);
        border-right: 32px solid transparent;
    }
}

@media (max-width: 390px) {
    .header {
        padding: 12px 0 18px 0;
        min-height: 65px;
    }
    
    .header-title {
        font-size: 1.6rem;
        gap: 6px;
    }
    
    .sprix-header-logo {
        height: 25px;
    }
    
    .logo {
        height: 48px;
    }
    
    .header-logo {
        right: 0;
    }
    
    .corner-decoration {
        width: 70px;
        height: 70px;
    }
    
    .corner-triangle-1 {
        border-top: 44px solid rgb(228, 0, 127);
        border-right: 44px solid transparent;
    }
    
    .corner-triangle-2 {
        border-top: 28px solid rgb(29, 32, 136);
        border-right: 28px solid transparent;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 10px 0 15px 0;
        min-height: 60px;
    }
    
    .header-title {
        font-size: 1.4rem;
        gap: 5px;
    }
    
    .sprix-header-logo {
        height: 22px;
    }
    
    .logo {
        height: 40px;
    }
    
    .header-logo {
        right: 0;
    }
    
    .corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .corner-triangle-1 {
        border-top: 38px solid rgb(228, 0, 127);
        border-right: 38px solid transparent;
    }
    
    .corner-triangle-2 {
        border-top: 24px solid rgb(29, 32, 136);
        border-right: 24px solid transparent;
    }
}

/* Surface Duo and similar narrow devices */
@media (min-width: 520px) and (max-width: 560px) {
    .logo {
        height: 65px;
    }
    
    .header-logo {
        right: 8px;
    }
    
    .sprix-header-logo {
        height: 30px;
    }
    
    .header-title {
        font-size: 2rem;
        gap: 8px;
    }
}

/* Services Hub Responsive */
@media (max-width: 700px) {
    .services-hub-section {
        padding: 40px 0;
    }
    
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .service-column {
        padding: 25px 15px;
    }
    
    .service-logo {
        min-height: 60px;
        margin-bottom: 20px;
    }
    
    .service-logo-img {
        height: 50px;
    }
    
    .quero-badge {
        height: 12px;
        bottom: -15px;
        right: -6px;
    }
    
    .ict-logo-text {
        font-size: 2.1rem;
    }
    
    .service-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .service-buttons {
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .services-hub-section {
        padding: 30px 0;
    }
    
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .services-grid {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .service-column {
        padding: 20px 12px;
    }
    
    .service-logo {
        min-height: 50px;
        margin-bottom: 15px;
    }
    
    .service-logo-img {
        height: 40px;
    }
    
    .quero-badge {
        height: 10px;
        bottom: -12px;
        right: -4px;
    }
    
    .ict-logo-text {
        font-size: 1.9rem;
    }
    
    .service-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        flex: 1;
    }
    
    .service-btn-ar {
        font-size: 0.95rem;
    }
    
    .service-buttons {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 390px) {
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-column {
        padding: 18px 10px;
    }
    
    .service-logo-img {
        height: 35px;
    }
    
    .quero-badge {
        height: 8px;
        bottom: -10px;
        right: -3px;
    }
    
    .ict-logo-text {
        font-size: 1.6rem;
    }
    
    .service-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .service-buttons {
        flex-direction: row;
        gap: 6px;
    }
}

@media (max-width: 320px) {
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .services-grid {
        gap: 12px;
    }
    
    .service-column {
        padding: 15px 8px;
    }
    
    .service-logo-img {
        height: 30px;
    }
    
    .quero-badge {
        height: 6px;
        bottom: -8px;
        right: -2px;
    }
    
    .ict-logo-text {
        font-size: 1.4rem;
    }
    
    .service-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        flex: 1;
    }
    
    .service-btn-ar {
        font-size: 0.85rem;
    }
    
    .service-buttons {
        flex-direction: row;
        gap: 5px;
    }
}
@media (max-width: 767px) {
    .services-hub-section {
        padding: 40px 0;
    }
    
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .button-row {
        gap: 30px;
    }
    
    .btn-logo {
        height: 28px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .services-hub-section {
        padding: 30px 0;
    }
    
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .button-row {
        gap: 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .top-row {
        gap: 15px;
    }
    
    .bottom-row {
        gap: 0;
    }
    
    .btn-logo {
        height: 14px;
        max-width: 75px;
    }
}

@media (max-width: 390px) {
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .top-row {
        gap: 12px;
    }
}

@media (max-width: 320px) {
    .services-hub-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .top-row {
        gap: 10px;
    }
}

/* Main content area */
.main-content {
    flex: 1;
}

/* Services Hub Section */
.services-hub-section {
    padding: 40px 0;
}

.services-hub-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Mascot styling - Always centered below services */
.mascot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    width: 100%;
    margin-top: 30px;
}

.quero-mascot {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Desktop mascot */
@media (min-width: 992px) {
    .mascot-container {
        margin-top: 40px;
    }
    
    .quero-mascot {
        height: 180px;
    }
}

/* Tablet mascot */
@media (max-width: 700px) {
    .mascot-container {
        margin-top: 30px;
    }
    
    .quero-mascot {
        height: 140px;
    }
}

@media (max-width: 767px) {
    .mascot-container {
        margin-top: 25px;
    }
    
    .quero-mascot {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .mascot-container {
        margin-top: 20px;
    }
    
    .quero-mascot {
        height: 100px;
    }
}

@media (max-width: 390px) {
    .mascot-container {
        margin-top: 15px;
    }
    
    .quero-mascot {
        height: 80px;
    }
}

@media (max-width: 320px) {
    .mascot-container {
        margin-top: 12px;
    }
    
    .quero-mascot {
        height: 70px;
    }
}

.services-hub-title,
.tutorials-title,
.contact-title {
    font-size: 1.6rem;
    color: rgb(29, 32, 136);
    text-align: left;
    margin-bottom: 40px;
    font-weight: 600;
    margin-left: 0;
    padding-left: 0;
}

.services-hub-title {
    font-size: 1.6rem;
    color: rgb(29, 32, 136);
    margin-bottom: 40px;
    font-weight: 600;
    text-align: left;
}

/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Desktop: 3 columns for large screens */
@media (min-width: 950px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Tablet: 2 columns on top, 1 column centered below */
@media (min-width: 701px) and (max-width: 949px) {
    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
        max-width: 800px;
        margin: 0 auto 35px auto;
    }
    
    .service-column:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .service-column:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .service-column:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc((100% - 30px) / 2);
        margin: 0 auto;
        justify-self: center;
    }
}

/* Mobile: 1 column for small screens */
@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 35px;
    }
}

.service-column {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.service-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(228, 0, 127);
}

.service-logo {
    margin-bottom: 25px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo container for positioning badges */
.logo-container {
    position: relative;
    display: inline-block;
}

.quero-badge {
    position: absolute;
    bottom: -18px;
    right: -8px;
    height: 14px;
    width: auto;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.ict-logo-text {
    color: rgb(29, 32, 136);
    font-weight: 600;
    font-size: 2.4rem;
    display: inline-block;
}

.ict-logo-text .highlight-t {
    color: rgb(228, 0, 127);
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgb(29, 32, 136);
    background: white;
    color: rgb(29, 32, 136);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-btn:hover {
    background: rgb(29, 32, 136);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 32, 136, 0.3);
}

.service-btn:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.service-btn:disabled:hover {
    background: #f5f5f5;
    color: #999;
    transform: none;
    box-shadow: none;
}

.service-btn-ar {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    direction: rtl;
}

/* Interface Tutorials Section */
.tutorials-section {
    padding: 60px 0;
}

.tutorials-content {
    max-width: 900px;
    margin: 0 auto;
}

.tutorials-title {
    font-size: 1.6rem;
    color: rgb(29, 32, 136);
    text-align: left;
    margin-bottom: 40px;
    font-weight: 600;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.tutorial-column {
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tutorial-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(228, 0, 127);
}

.column-title {
    font-size: 1.5rem;
    color: rgb(29, 32, 136);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.column-logo {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(29, 32, 136, 0.1);
}

.tutorial-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.column-content {
    color: #333;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Align content elements uniformly */
.tutorial-video,
.tutorial-text,
.tutorial-image {
    flex: 0 0 auto;
}

.tutorial-text {
    background: rgba(29, 32, 136, 0.03);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid rgb(29, 32, 136);
}

.column-content p {
    margin-bottom: 15px;
}

/* Tutorials Responsive */
@media (max-width: 767px) {
    .tutorials-section {
        padding: 40px 0;
    }
    
    .tutorials-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .column-logo {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .column-content {
        gap: 20px;
    }
    
    .tutorial-column {
        padding: 25px;
    }
    
    .column-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tutorials-section {
        padding: 30px 0;
    }
    
    .tutorials-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .tutorials-grid {
        gap: 20px;
    }
    
    .tutorial-column {
        padding: 20px;
    }
    
    .column-logo {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .column-content {
        gap: 18px;
    }
    
    .tutorial-text {
        padding: 15px;
    }
    
    .column-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 390px) {
    .tutorials-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .tutorials-grid {
        gap: 20px;
    }
    
    .column-logo {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }
    
    .column-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .tutorials-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .tutorials-grid {
        gap: 18px;
    }
    
    .column-logo {
        margin-bottom: 18px;
        padding-bottom: 15px;
    }
    
    .column-title {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: transparent;
    padding: 40px 0 30px 0;
    position: relative;
    min-height: 120px;
    margin-top: auto;
}

/* Footer Corner Decoration (bottom right) */
.footer-corner-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 160px;
    height: 160px;
    overflow: hidden;
    z-index: 1;
}

.footer-corner-triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.footer-corner-triangle-1 {
    border-bottom: 100px solid rgb(228, 0, 127);
    border-left: 100px solid transparent;
    bottom: 0;
    right: 0;
}

.footer-corner-triangle-2 {
    border-bottom: 65px solid rgb(29, 32, 136);
    border-left: 65px solid transparent;
    bottom: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
}

.footer-logo {
    flex-shrink: 0;
}

.sprix-logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.sprix-logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.sprix-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.sprix-logo-link:hover .sprix-logo {
    filter: drop-shadow(0 2px 6px rgba(228, 0, 127, 0.3));
}

/* Footer Responsive Styles */
@media (max-width: 767px) {
    .footer {
        padding: 25px 0 20px 0;
        min-height: 80px;
    }
    
    .footer-content {
        min-height: 60px;
    }
    
    .footer-corner-decoration {
        width: 100px;
        height: 100px;
    }
    
    .footer-corner-triangle-1 {
        border-bottom: 62px solid rgb(228, 0, 127);
        border-left: 62px solid transparent;
    }
    
    .footer-corner-triangle-2 {
        border-bottom: 40px solid rgb(29, 32, 136);
        border-left: 40px solid transparent;
    }
    
    .sprix-logo {
        height: 42px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 15px 0;
        min-height: 65px;
    }
    
    .footer-content {
        min-height: 45px;
    }
    
    .footer-corner-decoration {
        width: 80px;
        height: 80px;
    }
    
    .footer-corner-triangle-1 {
        border-bottom: 50px solid rgb(228, 0, 127);
        border-left: 50px solid transparent;
    }
    
    .footer-corner-triangle-2 {
        border-bottom: 32px solid rgb(29, 32, 136);
        border-left: 32px solid transparent;
    }
    
    .sprix-logo {
        height: 35px;
    }
}

@media (max-width: 390px) {
    .footer {
        padding: 18px 0 12px 0;
        min-height: 60px;
    }
    
    .footer-content {
        min-height: 40px;
    }
    
    .footer-corner-decoration {
        width: 70px;
        height: 70px;
    }
    
    .footer-corner-triangle-1 {
        border-bottom: 44px solid rgb(228, 0, 127);
        border-left: 44px solid transparent;
    }
    
    .footer-corner-triangle-2 {
        border-bottom: 28px solid rgb(29, 32, 136);
        border-left: 28px solid transparent;
    }
    
    .sprix-logo {
        height: 30px;
    }
}

@media (max-width: 320px) {
    .footer {
        padding: 15px 0 10px 0;
        min-height: 55px;
    }
    
    .footer-content {
        min-height: 35px;
    }
    
    .footer-corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .footer-corner-triangle-1 {
        border-bottom: 38px solid rgb(228, 0, 127);
        border-left: 38px solid transparent;
    }
    
    .footer-corner-triangle-2 {
        border-bottom: 24px solid rgb(29, 32, 136);
        border-left: 24px solid transparent;
    }
    
    .sprix-logo {
        height: 25px;
    }
}

/* Tutorial Content Styles */
.tutorial-video {
    margin-bottom: 30px;
}

.tutorial-video-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tutorial-text {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-text h3 {
    color: rgb(29, 32, 136);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tutorial-text p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.tutorial-text p:last-child {
    margin-bottom: 0;
}

.tutorial-image {
    margin-bottom: 20px;
}

.interface-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile responsive adjustments for tutorial content */
@media (max-width: 767px) {
    .tutorial-text {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .tutorial-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .tutorial-text p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .tutorial-video {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .tutorial-text {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .tutorial-text h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .tutorial-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .tutorial-video {
        margin-bottom: 15px;
    }
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 1.6rem;
    color: rgb(29, 32, 136);
    text-align: left;
    margin-bottom: 40px;
    font-weight: 600;
}

.contact-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-btn {
    background: linear-gradient(135deg, rgb(228, 0, 127) 0%, rgb(29, 32, 136) 100%);
    border: none;
    border-radius: 50px;
    padding: 22px 45px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(228, 0, 127, 0.4), 
                0 4px 15px rgba(29, 32, 136, 0.2);
    min-width: 220px;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(228, 0, 127, 0.5), 
                0 8px 25px rgba(29, 32, 136, 0.3),
                0 0 0 3px rgba(228, 0, 127, 0.1);
    letter-spacing: 1.5px;
}

.contact-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(228, 0, 127, 0.4);
    transition: all 0.1s ease;
}

/* Mobile responsive for contact section */
@media (max-width: 767px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .contact-btn {
        padding: 18px 35px;
        font-size: 1rem;
        min-width: 180px;
        min-height: 55px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .contact-btn {
        padding: 18px 35px;
        font-size: 1rem;
        min-width: 180px;
        min-height: 55px;
        border-radius: 40px;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 390px) {
    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .contact-btn {
        padding: 16px 30px;
        font-size: 0.95rem;
        min-width: 160px;
        min-height: 50px;
        border-radius: 35px;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 320px) {
    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .contact-btn {
        padding: 14px 22px;
        font-size: 0.85rem;
        min-width: 140px;
        min-height: 45px;
        border-radius: 30px;
        letter-spacing: 0.4px;
    }
}

/* Media Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto 2% auto;
    padding: 50px 0 0 0;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: rgb(228, 0, 127);
}

.modal-media-container {
    width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 8px;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Add cursor pointer to clickable media */
.tutorial-video-player,
.interface-screenshot {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tutorial-video-player:hover,
.interface-screenshot:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Mobile responsive modal */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 8% auto 3% auto;
        padding: 45px 0 0 0;
        max-height: 80vh;
    }
    
    .modal-close {
        top: 5px;
        right: 5px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-video,
    .modal-image {
        max-height: 75vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10% auto 3% auto;
        padding: 40px 0 0 0;
        max-height: 75vh;
    }
    
    .modal-close {
        top: 3px;
        right: 3px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
    
    .modal-video,
    .modal-image {
        max-height: 70vh;
    }
}

/* Contact Page Styles */
.contact-page-section {
    padding: 60px 0;
    min-height: 60vh;
}

.contact-page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-page-title {
    font-size: 2.5rem;
    color: rgb(29, 32, 136);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

/* Contact content layout */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-section {
    margin-bottom: 60px;
    text-align: left;
}

.contact-form-section {
    margin-bottom: 40px;
}

/* Section titles */
.section-title {
    font-size: 1.8rem;
    color: rgb(29, 32, 136);
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
}

.contact-form-section .section-title {
    text-align: left;
}

.contact-info {
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(29, 32, 136, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: rgb(29, 32, 136);
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a {
    color: rgb(228, 0, 127);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: rgb(29, 32, 136);
    text-decoration: underline;
    transform: translateX(3px);
}

.contact-item span {
    font-size: 1.05rem;
    color: #555;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    border-color: rgb(228, 0, 127);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgb(29, 32, 136);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(29, 32, 136, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(228, 0, 127);
    box-shadow: 0 0 0 3px rgba(228, 0, 127, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    background: linear-gradient(135deg, rgb(228, 0, 127) 0%, rgb(29, 32, 136) 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(228, 0, 127, 0.4), 
                0 4px 15px rgba(29, 32, 136, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(228, 0, 127, 0.5), 
                0 6px 20px rgba(29, 32, 136, 0.3);
    letter-spacing: 1.5px;
}

.contact-submit-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.back-to-home {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-block;
    padding: 12px 25px;
    color: rgb(29, 32, 136);
    text-decoration: none;
    border: 2px solid rgb(29, 32, 136);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background: rgb(29, 32, 136);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 32, 136, 0.3);
}

/* Contact Page Responsive */
@media (max-width: 767px) {
    .contact-page-section {
        padding: 40px 0;
    }
    
    .contact-page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .contact-info-section {
        margin-bottom: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-page-section {
        padding: 30px 0;
    }
    
    .contact-page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .contact-info-section {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .contact-item strong {
        font-size: 1rem;
    }
    
    .contact-item a,
    .contact-item span {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .contact-submit-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Google Form Styling */
.google-form-container {
    margin-top: 30px;
    text-align: center;
}

.google-form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.google-form-iframe {
    width: 100%;
    height: 1100px;
    border: none;
    display: block;
}

/* Mobile optimization for Google Form text overflow */
@media (max-width: 700px) {
    .google-form-wrapper {
        transform: scale(1);
        transform-origin: center top;
    }
}

/* Responsive adjustments for Google Form */
@media (max-width: 700px) {
    .google-form-iframe {
        height: 1100px;
    }
}

@media (max-width: 700px) {
    .google-form-wrapper {
        max-width: 100%;
        border-radius: 5px;
        transform: scale(1);
        transform-origin: center top;
    }
    
    .google-form-iframe {
        height: 1100px;
    }
}

@media (max-width: 480px) {
    .google-form-container {
        margin-top: 20px;
    }
    
    .google-form-wrapper {
        transform: scale(0.98);
        transform-origin: center top;
        margin-bottom: -10px;
    }
    
    .google-form-iframe {
        height: 1200px;
    }
}

@media (max-width: 390px) {
    .google-form-wrapper {
        transform: scale(0.96);
        transform-origin: center top;
        margin-bottom: -15px;
    }
    
    .google-form-iframe {
        height: 1250px;
    }
}

@media (max-width: 320px) {
    .google-form-wrapper {
        transform: scale(0.94);
        transform-origin: center top;
        margin-bottom: -20px;
    }
    
    .google-form-iframe {
        height: 1300px;
    }
}

/* Galaxy Z Fold 5 specific adjustments */
@media (min-width: 344px) and (max-width: 374px) and (min-height: 800px) {
    .google-form-iframe {
        height: 1400px;
    }
    
    .google-form-wrapper {
        transform: scale(0.95);
        transform-origin: center top;
        margin-bottom: -20px;
    }
}

/* Back to Home Section */
.back-to-home-section {
    padding: 40px 0;
    text-align: center;
}

.back-to-home-container {
    max-width: 600px;
    margin: 0 auto;
}

.back-to-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgb(29, 32, 136);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgb(29, 32, 136);
}

.back-to-home-btn:hover {
    background: white;
    color: rgb(29, 32, 136);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 32, 136, 0.3);
}

/* Galaxy Z Fold 5 unfolded (tablet mode) */
@media (min-width: 673px) and (max-width: 884px) and (min-height: 820px) {
    .google-form-iframe {
        height: 1200px;
    }
    
    .google-form-wrapper {
        transform: scale(1);
        transform-origin: center top;
    }
}

/* Textbook Page Styles */
.textbook-section {
    padding: 60px 0;
    min-height: 70vh;
}

.textbook-content {
    max-width: 1000px;
    margin: 0 auto;
}

.textbook-title {
    font-size: 2.5rem;
    color: rgb(29, 32, 136);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.textbook-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Chapters Table Styles */
.chapters-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chapters-table-container:hover {
    border-color: rgb(228, 0, 127);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.chapters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.chapters-table thead {
    background: linear-gradient(135deg, rgb(29, 32, 136) 0%, rgb(228, 0, 127) 100%);
    color: white;
}

.chapters-table th {
    padding: 20px 15px;
    font-weight: 600;
    text-align: left;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Center align the Download header */
.chapters-table th:last-child {
    text-align: center;
}

.chapters-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(29, 32, 136, 0.1);
    vertical-align: middle;
}

.chapters-table tbody tr {
    transition: background-color 0.3s ease;
}

.chapters-table tbody tr:hover {
    background-color: rgba(29, 32, 136, 0.05);
}

.chapters-table tbody tr:last-child td {
    border-bottom: none;
}

/* Chapter column */
.chapters-table td:first-child {
    font-weight: 600;
    color: rgb(29, 32, 136);
    width: 15%;
}

/* Content column */
.chapters-table td:nth-child(2) {
    color: #333;
    line-height: 1.5;
    width: 55%;
}

/* Download column */
.chapters-table td:last-child {
    width: 30%;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, rgb(228, 0, 127) 0%, rgb(29, 32, 136) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 0, 127, 0.4);
    letter-spacing: 1px;
}

/* Responsive Table */
@media (max-width: 767px) {
    .textbook-section {
        padding: 40px 0;
    }
    
    .textbook-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .textbook-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .chapters-table-container {
        border-radius: 10px;
    }
    
    .chapters-table th {
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .chapters-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .download-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .textbook-title {
        font-size: 1.8rem;
    }
    
    .textbook-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .chapters-table th {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .chapters-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .chapters-table td:first-child {
        width: 20%;
    }
    
    .chapters-table td:nth-child(2) {
        width: 50%;
    }
    
    .chapters-table td:last-child {
        width: 30%;
    }
    
    .download-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
}
