|
69 | 69 | transition: var(--courses-transition-slow); |
70 | 70 | font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
71 | 71 | line-height: 1.6; |
| 72 | + min-height: 100vh; |
| 73 | + position: relative; |
72 | 74 | } |
73 | 75 |
|
74 | 76 | /* Section Layouts */ |
|
924 | 926 | } |
925 | 927 | } |
926 | 928 |
|
927 | | -/* Mobile Large (576px - 767px) */ |
928 | | -@media (max-width: 767px) and (min-width: 576px) { |
| 929 | +/* Mobile and Small Tablet (320px - 768px) - RESPONSIVE FIX */ |
| 930 | +@media (max-width: 768px) and (min-width: 320px) { |
| 931 | + /* Main page layout fixes */ |
| 932 | + .courses-page { |
| 933 | + min-height: 100vh; |
| 934 | + position: relative; |
| 935 | + padding-bottom: var(--courses-spacing-xl); |
| 936 | + } |
| 937 | + |
929 | 938 | .courses-container { |
930 | | - max-width: 540px; |
| 939 | + max-width: 100%; |
| 940 | + padding: 0 var(--courses-spacing-md); |
| 941 | + } |
| 942 | + |
| 943 | + .courses-container-wide { |
| 944 | + max-width: 100%; |
931 | 945 | padding: 0 var(--courses-spacing-md); |
932 | 946 | } |
933 | 947 |
|
| 948 | + /* Ensure proper section spacing */ |
| 949 | + .courses-section { |
| 950 | + margin-bottom: var(--courses-spacing-lg); |
| 951 | + padding: var(--courses-spacing-lg) 0; |
| 952 | + } |
| 953 | + |
| 954 | + .courses-stats-section { |
| 955 | + margin-bottom: var(--courses-spacing-lg); |
| 956 | + padding: var(--courses-spacing-lg) 0; |
| 957 | + } |
| 958 | + |
| 959 | + .courses-faq-section { |
| 960 | + margin-bottom: var(--courses-spacing-xl); |
| 961 | + padding: var(--courses-spacing-lg) 0; |
| 962 | + } |
| 963 | + |
934 | 964 | .courses-heading-1 { |
935 | 965 | font-size: 2.5rem; |
936 | 966 | line-height: 1.2; |
|
947 | 977 | text-align: center; |
948 | 978 | } |
949 | 979 |
|
| 980 | + /* Force all grids to single column for better mobile experience */ |
950 | 981 | .courses-grid-4, |
951 | 982 | .courses-grid-3, |
952 | 983 | .courses-grid-2 { |
953 | 984 | grid-template-columns: 1fr; |
954 | 985 | gap: var(--courses-spacing-md); |
955 | 986 | } |
956 | 987 |
|
| 988 | + /* Enhanced card styling for mobile */ |
| 989 | + .courses-card { |
| 990 | + padding: var(--courses-spacing-md); |
| 991 | + margin-bottom: var(--courses-spacing-sm); |
| 992 | + text-align: center; |
| 993 | + display: flex; |
| 994 | + flex-direction: column; |
| 995 | + align-items: center; |
| 996 | + justify-content: center; |
| 997 | + } |
| 998 | + |
| 999 | + /* Testimonial cards specific improvements */ |
| 1000 | + .courses-card img { |
| 1001 | + width: 60px !important; |
| 1002 | + height: 60px !important; |
| 1003 | + margin-bottom: var(--courses-spacing-sm); |
| 1004 | + } |
| 1005 | + |
| 1006 | + .courses-card h4 { |
| 1007 | + margin-bottom: var(--courses-spacing-xs); |
| 1008 | + font-size: var(--courses-text-lg); |
| 1009 | + } |
| 1010 | + |
| 1011 | + .courses-card p { |
| 1012 | + line-height: 1.5; |
| 1013 | + font-size: var(--courses-text-sm); |
| 1014 | + text-align: center; |
| 1015 | + } |
| 1016 | + |
| 1017 | + /* Stat cards improvements */ |
| 1018 | + .courses-stat-card { |
| 1019 | + padding: var(--courses-spacing-md); |
| 1020 | + text-align: center; |
| 1021 | + } |
| 1022 | + |
| 1023 | + /* Timeline cards improvements */ |
| 1024 | + .courses-timeline-card { |
| 1025 | + padding: var(--courses-spacing-md); |
| 1026 | + flex-direction: column; |
| 1027 | + text-align: center; |
| 1028 | + align-items: center; |
| 1029 | + } |
| 1030 | + |
| 1031 | + .courses-flex { |
| 1032 | + flex-direction: column; |
| 1033 | + gap: var(--courses-spacing-md); |
| 1034 | + } |
| 1035 | + |
957 | 1036 | .courses-spacing-3xl { |
958 | 1037 | --courses-spacing-3xl: 2.5rem; |
959 | 1038 | } |
|
972 | 1051 | text-align: center; |
973 | 1052 | } |
974 | 1053 |
|
975 | | - /* Cards */ |
976 | | - .courses-card, |
977 | | - .courses-stat-card, |
978 | | - .courses-timeline-card { |
979 | | - padding: var(--courses-spacing-md); |
980 | | - } |
981 | | - |
982 | 1054 | /* Buttons */ |
983 | 1055 | .courses-button { |
984 | 1056 | width: 100%; |
985 | 1057 | padding: var(--courses-spacing-md) var(--courses-spacing-lg); |
986 | 1058 | font-size: var(--courses-text-base); |
| 1059 | + justify-content: center; |
987 | 1060 | } |
988 | 1061 |
|
989 | 1062 | .courses-button-primary, |
|
0 commit comments